/GraphicsMagick-1.3.16/configure.rpath

# · Shell · 33646 lines · 30678 code · 1670 blank · 1298 comment · 1464 complexity · 2977b6c7270ee5cb3d0c93f44cddab72 MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  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. lt_ltdl_dir='ltdl'
  521. lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
  522. test -n "$DJDIR" || exec 7<&0 </dev/null
  523. exec 6>&1
  524. # Name of the host.
  525. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  526. # so uname gets run too.
  527. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  528. #
  529. # Initializations.
  530. #
  531. ac_default_prefix=/usr/local
  532. ac_clean_files=
  533. ac_config_libobj_dir=.
  534. LIBOBJS=
  535. cross_compiling=no
  536. subdirs=
  537. MFLAGS=
  538. MAKEFLAGS=
  539. # Identity of this package.
  540. PACKAGE_NAME=
  541. PACKAGE_TARNAME=
  542. PACKAGE_VERSION=
  543. PACKAGE_STRING=
  544. PACKAGE_BUGREPORT=
  545. PACKAGE_URL=
  546. ac_unique_file="magick/magick.h"
  547. ac_config_libobj_dir=ltdl
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='ltdl_LTLIBOBJS
  584. ltdl_LIBOBJS
  585. am__EXEEXT_FALSE
  586. am__EXEEXT_TRUE
  587. LTLIBOBJS
  588. LIBOBJS
  589. MAGICK_API_LIBS
  590. MAGICK_API_LDFLAGS
  591. MAGICK_API_PC_CPPFLAGS
  592. MAGICK_API_CPPFLAGS
  593. MAGICK_API_CFLAGS
  594. MAGICK_DEP_LIBS
  595. MAGICK_LTDLDEPS
  596. MAGICK_LIBLTDL
  597. DELEGATES
  598. MAGICKLIBDIR
  599. MAGICKLIB
  600. PERL_SUPPORTS_DESTDIR
  601. WITH_PERL_DYNAMIC_FALSE
  602. WITH_PERL_DYNAMIC_TRUE
  603. WITH_PERL_STATIC_FALSE
  604. WITH_PERL_STATIC_TRUE
  605. WITH_PERL_FALSE
  606. WITH_PERL_TRUE
  607. PERL
  608. GSVersion
  609. GSEPSDevice
  610. GSPSDevice
  611. GSPDFDevice
  612. GSColorAlphaDevice
  613. GSColorDevice
  614. GSPaletteDevice
  615. GSGrayDevice
  616. GSCMYKDevice
  617. GSMonoDevice
  618. HAS_ZIP_FALSE
  619. HAS_ZIP_TRUE
  620. ZIP
  621. HAS_P7ZIP_FALSE
  622. HAS_P7ZIP_TRUE
  623. P7ZIP
  624. HAS_RPM_FALSE
  625. HAS_RPM_TRUE
  626. RPM
  627. ShowImageDelegate
  628. MogrifyDelegate
  629. ConvertDelegate
  630. type_include_files
  631. ghostscript_font_dir
  632. windows_font_dir
  633. HasTXT2HTML_FALSE
  634. HasTXT2HTML_TRUE
  635. TXT2HTML
  636. HasRST2HTML_FALSE
  637. HasRST2HTML_TRUE
  638. RST2HTML
  639. HasPSDelegate_FALSE
  640. HasPSDelegate_TRUE
  641. PrintDelegate
  642. ZipDelegate
  643. WWWDecodeDelegate
  644. WMFDecodeDelegate
  645. TXTDelegate
  646. SCANDecodeDelegate
  647. RMDelegate
  648. RLEEncodeDelegate
  649. RADDecodeDelegate
  650. PSDelegate
  651. POVDelegate
  652. PGPDecodeDelegate
  653. MVDelegate
  654. MPEGEncodeDelegate
  655. MPEGDecodeDelegate
  656. MANDelegate
  657. LaunchDelegate
  658. LZWEncodeDelegate
  659. LZWDecodeDelegate
  660. LPRDelegate
  661. LPDelegate
  662. ILBMEncodeDelegate
  663. ILBMDecodeDelegate
  664. HTMLDecodeDelegate
  665. HPGLDecodeDelegate
  666. GnuplotDecodeDelegate
  667. GMDelegate
  668. FIGDecodeDelegate
  669. EditorDelegate
  670. EchoDelegate
  671. DVIDecodeDelegate
  672. DOTDecodeDelegate
  673. DCRAWDecodeDelegate
  674. CatDelegate
  675. CGMDecodeDelegate
  676. BrowseDelegate
  677. BZIPDelegate
  678. AutotraceDecodeDelegate
  679. MagickShareConfigPath
  680. MagickSharePath
  681. MagickFilterModulesPath
  682. MagickCoderModulesPath
  683. MagickLibConfigPath
  684. MagickLibPath
  685. MagickBinPath
  686. PERLMAINCC
  687. LIB_WMF_DEPS
  688. LIB_WMF
  689. HasWMF_FALSE
  690. HasWMF_TRUE
  691. LIB_XML
  692. HasXML_FALSE
  693. HasXML_TRUE
  694. xml2_config
  695. LIB_JBIG
  696. HasJBIG_FALSE
  697. HasJBIG_TRUE
  698. LIB_TIFF
  699. HasTIFF_FALSE
  700. HasTIFF_TRUE
  701. LIB_TTF
  702. HasTTF_FALSE
  703. HasTTF_TRUE
  704. freetype_config
  705. LIB_GS
  706. HasGS_FALSE
  707. HasGS_TRUE
  708. LIB_JP2
  709. HasJP2_FALSE
  710. HasJP2_TRUE
  711. LIB_JPEG
  712. HasJPEG_FALSE
  713. HasJPEG_TRUE
  714. LIB_PNG
  715. HasPNG_FALSE
  716. HasPNG_TRUE
  717. LIB_LCMS
  718. HasLCMS_FALSE
  719. HasLCMS_TRUE
  720. LIB_FPX
  721. HasFPX_FALSE
  722. HasFPX_TRUE
  723. LIB_DPS
  724. HasDPS_FALSE
  725. HasDPS_TRUE
  726. LIB_DL
  727. LIB_XEXT
  728. LIB_X11
  729. HasX11_FALSE
  730. HasX11_TRUE
  731. X_EXTRA_LIBS
  732. X_LIBS
  733. X_PRE_LIBS
  734. X_CFLAGS
  735. XMKMF
  736. LIB_LZMA
  737. HasLZMA_FALSE
  738. HasLZMA_TRUE
  739. LIB_BZLIB
  740. HasBZLIB_FALSE
  741. HasBZLIB_TRUE
  742. LIB_ZLIB
  743. HasZLIB_FALSE
  744. HasZLIB_TRUE
  745. LIB_TRIO
  746. LIB_MATH
  747. CCMALLOCDelegate
  748. LIB_OMP
  749. LIB_UMEM
  750. HasUMEM_FALSE
  751. HasUMEM_TRUE
  752. LIB_THREAD
  753. WITH_MAGICK_PLUS_PLUS_FALSE
  754. WITH_MAGICK_PLUS_PLUS_TRUE
  755. SysCtlDelegate
  756. UINTPTR_F
  757. UINTPTR_T
  758. UINTMAX_F
  759. UINTMAX_T
  760. UINT64_F
  761. UINT64_T
  762. INT64_F
  763. INT64_T
  764. UINT32_F
  765. UINT32_T
  766. INT32_F
  767. INT32_T
  768. UINT16_T
  769. INT16_T
  770. UINT8_T
  771. INT8_T
  772. LIBRARY_EXTRA_CPPFLAGS
  773. MODULE_EXTRA_CPPFLAGS
  774. LIBSTDCLDFLAGS
  775. PERL_MAKE_OPTIONS
  776. QuantumDepth
  777. MAGICK_COMPAT_FALSE
  778. MAGICK_COMPAT_TRUE
  779. MAINT
  780. MAINTAINER_MODE_FALSE
  781. MAINTAINER_MODE_TRUE
  782. DLLDFLAGS
  783. WITH_LTDL_FALSE
  784. WITH_LTDL_TRUE
  785. WITH_MODULES_FALSE
  786. WITH_MODULES_TRUE
  787. WITH_SHARED_LIBS_FALSE
  788. WITH_SHARED_LIBS_TRUE
  789. LTDLOPEN
  790. LT_CONFIG_H
  791. CONVENIENCE_LTDL_FALSE
  792. CONVENIENCE_LTDL_TRUE
  793. INSTALL_LTDL_FALSE
  794. INSTALL_LTDL_TRUE
  795. ARGZ_H
  796. sys_symbol_underscore
  797. LIBADD_DL
  798. LT_DLPREOPEN
  799. LIBADD_DLD_LINK
  800. LIBADD_SHL_LOAD
  801. LIBADD_DLOPEN
  802. LT_DLLOADERS
  803. INCLTDL
  804. LTDLINCL
  805. LTDLDEPS
  806. LIBLTDL
  807. LIBTOOL_DEPS
  808. CXXCPP
  809. am__fastdepCXX_FALSE
  810. am__fastdepCXX_TRUE
  811. CXXDEPMODE
  812. ac_ct_CXX
  813. CXXFLAGS
  814. CXX
  815. OTOOL64
  816. OTOOL
  817. LIPO
  818. NMEDIT
  819. DSYMUTIL
  820. MANIFEST_TOOL
  821. RANLIB
  822. ac_ct_AR
  823. AR
  824. NM
  825. ac_ct_DUMPBIN
  826. DUMPBIN
  827. LIBTOOL
  828. OBJDUMP
  829. DLLTOOL
  830. AS
  831. LFS_CPPFLAGS
  832. OPENMP_CFLAGS
  833. PTHREAD_CFLAGS
  834. PTHREAD_LIBS
  835. PTHREAD_CXX
  836. PTHREAD_CC
  837. acx_pthread_config
  838. WinPathScript
  839. CYGWIN_BUILD_FALSE
  840. CYGWIN_BUILD_TRUE
  841. WIN32_NATIVE_BUILD_FALSE
  842. WIN32_NATIVE_BUILD_TRUE
  843. HasWINGDI32_FALSE
  844. HasWINGDI32_TRUE
  845. LIB_GDI32
  846. LN_S
  847. LD
  848. FGREP
  849. SED
  850. DIRSEP
  851. MAGICK_FILTER_MODULE_PATH
  852. MAGICK_CONFIGURE_BUILD_PATH
  853. MAGICK_CONFIGURE_SRC_PATH
  854. MAGICK_CODER_MODULE_PATH
  855. MAN_DIR
  856. INFO_DIR
  857. OLDINCLUDE_DIR
  858. INCLUDE_DIR
  859. LIB_DIR
  860. LOCALSTATE_DIR
  861. SHAREDSTATE_DIR
  862. SYSCONF_DIR
  863. HTML_DIR
  864. DOC_DIR
  865. DATA_DIR
  866. LIBEXEC_DIR
  867. SBIN_DIR
  868. BIN_DIR
  869. EXEC_PREFIX_DIR
  870. PREFIX_DIR
  871. EGREP
  872. GREP
  873. CPP
  874. am__fastdepCC_FALSE
  875. am__fastdepCC_TRUE
  876. CCDEPMODE
  877. am__nodep
  878. AMDEPBACKSLASH
  879. AMDEP_FALSE
  880. AMDEP_TRUE
  881. am__quote
  882. am__include
  883. DEPDIR
  884. OBJEXT
  885. EXEEXT
  886. ac_ct_CC
  887. CPPFLAGS
  888. LDFLAGS
  889. CFLAGS
  890. CC
  891. CONFIG_STATUS_DEPENDENCIES
  892. AM_BACKSLASH
  893. AM_DEFAULT_VERBOSITY
  894. am__untar
  895. am__tar
  896. AMTAR
  897. am__leading_dot
  898. SET_MAKE
  899. AWK
  900. mkdir_p
  901. MKDIR_P
  902. INSTALL_STRIP_PROGRAM
  903. STRIP
  904. install_sh
  905. MAKEINFO
  906. AUTOHEADER
  907. AUTOMAKE
  908. AUTOCONF
  909. ACLOCAL
  910. VERSION
  911. PACKAGE
  912. CYGPATH_W
  913. am__isrc
  914. INSTALL_DATA
  915. INSTALL_SCRIPT
  916. INSTALL_PROGRAM
  917. MAGICK_LIB_VERSION_NUMBER
  918. MAGICK_LIB_VERSION_TEXT
  919. MAGICK_LIB_VERSION
  920. HG_BRANCH_TAG
  921. PACKAGE_RELEASE_DATE
  922. PACKAGE_CHANGE_DATE
  923. PACKAGE_VERSION_ADDENDUM
  924. MAGICK_WAND_LIBRARY_AGE
  925. MAGICK_WAND_LIBRARY_REVISION
  926. MAGICK_WAND_LIBRARY_CURRENT
  927. MAGICK_PLUS_PLUS_LIBRARY_AGE
  928. MAGICK_PLUS_PLUS_LIBRARY_REVISION
  929. MAGICK_PLUS_PLUS_LIBRARY_CURRENT
  930. MAGICK_LIB_INTERFACE_OLDEST
  931. MAGICK_LIB_INTERFACE_NEWEST
  932. MAGICK_LIBRARY_AGE
  933. MAGICK_LIBRARY_REVISION
  934. MAGICK_LIBRARY_CURRENT
  935. MAGICK_TARGET_OS
  936. MAGICK_TARGET_VENDOR
  937. MAGICK_TARGET_CPU
  938. host_os
  939. host_vendor
  940. host_cpu
  941. host
  942. build_os
  943. build_vendor
  944. build_cpu
  945. build
  946. DISTCHECK_CONFIG_FLAGS
  947. target_alias
  948. host_alias
  949. build_alias
  950. LIBS
  951. ECHO_T
  952. ECHO_N
  953. ECHO_C
  954. DEFS
  955. mandir
  956. localedir
  957. libdir
  958. psdir
  959. pdfdir
  960. dvidir
  961. htmldir
  962. infodir
  963. docdir
  964. oldincludedir
  965. includedir
  966. localstatedir
  967. sharedstatedir
  968. sysconfdir
  969. datadir
  970. datarootdir
  971. libexecdir
  972. sbindir
  973. bindir
  974. program_transform_name
  975. prefix
  976. exec_prefix
  977. PACKAGE_URL
  978. PACKAGE_BUGREPORT
  979. PACKAGE_STRING
  980. PACKAGE_VERSION
  981. PACKAGE_TARNAME
  982. PACKAGE_NAME
  983. PATH_SEPARATOR
  984. SHELL'
  985. ac_subst_files=''
  986. ac_user_opts='
  987. enable_option_checking
  988. enable_silent_rules
  989. enable_dependency_tracking
  990. with_gnu_ld
  991. with_threads
  992. enable_openmp
  993. enable_openmp_slow
  994. enable_largefile
  995. enable_shared
  996. enable_static
  997. with_pic
  998. enable_fast_install
  999. with_sysroot
  1000. enable_libtool_lock
  1001. with_included_ltdl
  1002. with_ltdl_include
  1003. with_ltdl_lib
  1004. enable_ltdl_install
  1005. with_modules
  1006. enable_installed
  1007. enable_maintainer_mode
  1008. enable_ccmalloc
  1009. enable_efence
  1010. enable_prof
  1011. enable_gprof
  1012. enable_gcov
  1013. enable_symbol_prefix
  1014. enable_magick_compat
  1015. with_quantum_depth
  1016. with_frozenpaths
  1017. with_magick_plus_plus
  1018. with_perl
  1019. with_perl_options
  1020. with_bzlib
  1021. with_dps
  1022. with_fpx
  1023. with_gslib
  1024. with_jbig
  1025. with_jpeg
  1026. with_jp2
  1027. with_lcms
  1028. with_lcms2
  1029. with_lzma
  1030. with_png
  1031. with_tiff
  1032. with_trio
  1033. with_ttf
  1034. with_umem
  1035. with_wmf
  1036. with_fontpath
  1037. with_gs_font_dir
  1038. with_windows_font_dir
  1039. with_xml
  1040. with_zlib
  1041. with_libstdc
  1042. with_x
  1043. '
  1044. ac_precious_vars='build_alias
  1045. host_alias
  1046. target_alias
  1047. CC
  1048. CFLAGS
  1049. LDFLAGS
  1050. LIBS
  1051. CPPFLAGS
  1052. CPP
  1053. CXX
  1054. CXXFLAGS
  1055. CCC
  1056. CXXCPP
  1057. XMKMF'
  1058. # Initialize some variables set by options.
  1059. ac_init_help=
  1060. ac_init_version=false
  1061. ac_unrecognized_opts=
  1062. ac_unrecognized_sep=
  1063. # The variables have the same names as the options, with
  1064. # dashes changed to underlines.
  1065. cache_file=/dev/null
  1066. exec_prefix=NONE
  1067. no_create=
  1068. no_recursion=
  1069. prefix=NONE
  1070. program_prefix=NONE
  1071. program_suffix=NONE
  1072. program_transform_name=s,x,x,
  1073. silent=
  1074. site=
  1075. srcdir=
  1076. verbose=
  1077. x_includes=NONE
  1078. x_libraries=NONE
  1079. # Installation directory options.
  1080. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1081. # and all the variables that are supposed to be based on exec_prefix
  1082. # by default will actually change.
  1083. # Use braces instead of parens because sh, perl, etc. also accept them.
  1084. # (The list follows the same order as the GNU Coding Standards.)
  1085. bindir='${exec_prefix}/bin'
  1086. sbindir='${exec_prefix}/sbin'
  1087. libexecdir='${exec_prefix}/libexec'
  1088. datarootdir='${prefix}/share'
  1089. datadir='${datarootdir}'
  1090. sysconfdir='${prefix}/etc'
  1091. sharedstatedir='${prefix}/com'
  1092. localstatedir='${prefix}/var'
  1093. includedir='${prefix}/include'
  1094. oldincludedir='/usr/include'
  1095. docdir='${datarootdir}/doc/${PACKAGE}'
  1096. infodir='${datarootdir}/info'
  1097. htmldir='${docdir}'
  1098. dvidir='${docdir}'
  1099. pdfdir='${docdir}'
  1100. psdir='${docdir}'
  1101. libdir='${exec_prefix}/lib'
  1102. localedir='${datarootdir}/locale'
  1103. mandir='${datarootdir}/man'
  1104. ac_prev=
  1105. ac_dashdash=
  1106. for ac_option
  1107. do
  1108. # If the previous option needs an argument, assign it.
  1109. if test -n "$ac_prev"; then
  1110. eval $ac_prev=\$ac_option
  1111. ac_prev=
  1112. continue
  1113. fi
  1114. case $ac_option in
  1115. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1116. *=) ac_optarg= ;;
  1117. *) ac_optarg=yes ;;
  1118. esac
  1119. # Accept the important Cygnus configure options, so we can diagnose typos.
  1120. case $ac_dashdash$ac_option in
  1121. --)
  1122. ac_dashdash=yes ;;
  1123. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1124. ac_prev=bindir ;;
  1125. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1126. bindir=$ac_optarg ;;
  1127. -build | --build | --buil | --bui | --bu)
  1128. ac_prev=build_alias ;;
  1129. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1130. build_alias=$ac_optarg ;;
  1131. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1132. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1133. ac_prev=cache_file ;;
  1134. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1135. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1136. cache_file=$ac_optarg ;;
  1137. --config-cache | -C)
  1138. cache_file=config.cache ;;
  1139. -datadir | --datadir | --datadi | --datad)
  1140. ac_prev=datadir ;;
  1141. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1142. datadir=$ac_optarg ;;
  1143. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1144. | --dataroo | --dataro | --datar)
  1145. ac_prev=datarootdir ;;
  1146. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1147. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1148. datarootdir=$ac_optarg ;;
  1149. -disable-* | --disable-*)
  1150. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1151. # Reject names that are not valid shell variable names.
  1152. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1153. as_fn_error $? "invalid feature name: $ac_useropt"
  1154. ac_useropt_orig=$ac_useropt
  1155. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1156. case $ac_user_opts in
  1157. *"
  1158. "enable_$ac_useropt"
  1159. "*) ;;
  1160. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1161. ac_unrecognized_sep=', ';;
  1162. esac
  1163. eval enable_$ac_useropt=no ;;
  1164. -docdir | --docdir | --docdi | --doc | --do)
  1165. ac_prev=docdir ;;
  1166. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1167. docdir=$ac_optarg ;;
  1168. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1169. ac_prev=dvidir ;;
  1170. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1171. dvidir=$ac_optarg ;;
  1172. -enable-* | --enable-*)
  1173. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1174. # Reject names that are not valid shell variable names.
  1175. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1176. as_fn_error $? "invalid feature name: $ac_useropt"
  1177. ac_useropt_orig=$ac_useropt
  1178. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1179. case $ac_user_opts in
  1180. *"
  1181. "enable_$ac_useropt"
  1182. "*) ;;
  1183. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1184. ac_unrecognized_sep=', ';;
  1185. esac
  1186. eval enable_$ac_useropt=\$ac_optarg ;;
  1187. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1188. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1189. | --exec | --exe | --ex)
  1190. ac_prev=exec_prefix ;;
  1191. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1192. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1193. | --exec=* | --exe=* | --ex=*)
  1194. exec_prefix=$ac_optarg ;;
  1195. -gas | --gas | --ga | --g)
  1196. # Obsolete; use --with-gas.
  1197. with_gas=yes ;;
  1198. -help | --help | --hel | --he | -h)
  1199. ac_init_help=long ;;
  1200. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1201. ac_init_help=recursive ;;
  1202. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1203. ac_init_help=short ;;
  1204. -host | --host | --hos | --ho)
  1205. ac_prev=host_alias ;;
  1206. -host=* | --host=* | --hos=* | --ho=*)
  1207. host_alias=$ac_optarg ;;
  1208. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1209. ac_prev=htmldir ;;
  1210. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1211. | --ht=*)
  1212. htmldir=$ac_optarg ;;
  1213. -includedir | --includedir | --includedi | --included | --include \
  1214. | --includ | --inclu | --incl | --inc)
  1215. ac_prev=includedir ;;
  1216. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1217. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1218. includedir=$ac_optarg ;;
  1219. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1220. ac_prev=infodir ;;
  1221. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1222. infodir=$ac_optarg ;;
  1223. -libdir | --libdir | --libdi | --libd)
  1224. ac_prev=libdir ;;
  1225. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1226. libdir=$ac_optarg ;;
  1227. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1228. | --libexe | --libex | --libe)
  1229. ac_prev=libexecdir ;;
  1230. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1231. | --libexe=* | --libex=* | --libe=*)
  1232. libexecdir=$ac_optarg ;;
  1233. -localedir | --localedir | --localedi | --localed | --locale)
  1234. ac_prev=localedir ;;
  1235. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1236. localedir=$ac_optarg ;;
  1237. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1238. | --localstate | --localstat | --localsta | --localst | --locals)
  1239. ac_prev=localstatedir ;;
  1240. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1241. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1242. localstatedir=$ac_optarg ;;
  1243. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1244. ac_prev=mandir ;;
  1245. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1246. mandir=$ac_optarg ;;
  1247. -nfp | --nfp | --nf)
  1248. # Obsolete; use --without-fp.
  1249. with_fp=no ;;
  1250. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1251. | --no-cr | --no-c | -n)
  1252. no_create=yes ;;
  1253. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1254. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1255. no_recursion=yes ;;
  1256. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1257. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1258. | --oldin | --oldi | --old | --ol | --o)
  1259. ac_prev=oldincludedir ;;
  1260. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1261. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1262. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1263. oldincludedir=$ac_optarg ;;
  1264. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1265. ac_prev=prefix ;;
  1266. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1267. prefix=$ac_optarg ;;
  1268. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1269. | --program-pre | --program-pr | --program-p)
  1270. ac_prev=program_prefix ;;
  1271. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1272. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1273. program_prefix=$ac_optarg ;;
  1274. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1275. | --program-suf | --program-su | --program-s)
  1276. ac_prev=program_suffix ;;
  1277. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1278. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1279. program_suffix=$ac_optarg ;;
  1280. -program-transform-name | --program-transform-name \
  1281. | --program-transform-nam | --program-transform-na \
  1282. | --program-transform-n | --program-transform- \
  1283. | --program-transform | --program-transfor \
  1284. | --program-transfo | --program-transf \
  1285. | --program-trans | --program-tran \
  1286. | --progr-tra | --program-tr | --program-t)
  1287. ac_prev=program_transform_name ;;
  1288. -program-transform-name=* | --program-transform-name=* \
  1289. | --program-transform-nam=* | --program-transform-na=* \
  1290. | --program-transform-n=* | --program-transform-=* \
  1291. | --program-transform=* | --program-transfor=* \
  1292. | --program-transfo=* | --program-transf=* \
  1293. | --program-trans=* | --program-tran=* \
  1294. | --progr-tra=* | --program-tr=* | --program-t=*)
  1295. program_transform_name=$ac_optarg ;;
  1296. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1297. ac_prev=pdfdir ;;
  1298. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1299. pdfdir=$ac_optarg ;;
  1300. -psdir | --psdir | --psdi | --psd | --ps)
  1301. ac_prev=psdir ;;
  1302. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1303. psdir=$ac_optarg ;;
  1304. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1305. | -silent | --silent | --silen | --sile | --sil)
  1306. silent=yes ;;
  1307. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1308. ac_prev=sbindir ;;
  1309. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1310. | --sbi=* | --sb=*)
  1311. sbindir=$ac_optarg ;;
  1312. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1313. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1314. | --sharedst | --shareds | --shared | --share | --shar \
  1315. | --sha | --sh)
  1316. ac_prev=sharedstatedir ;;
  1317. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1318. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1319. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1320. | --sha=* | --sh=*)
  1321. sharedstatedir=$ac_optarg ;;
  1322. -site | --site | --sit)
  1323. ac_prev=site ;;
  1324. -site=* | --site=* | --sit=*)
  1325. site=$ac_optarg ;;
  1326. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1327. ac_prev=srcdir ;;
  1328. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1329. srcdir=$ac_optarg ;;
  1330. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1331. | --syscon | --sysco | --sysc | --sys | --sy)
  1332. ac_prev=sysconfdir ;;
  1333. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1334. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1335. sysconfdir=$ac_optarg ;;
  1336. -target | --target | --targe | --targ | --tar | --ta | --t)
  1337. ac_prev=target_alias ;;
  1338. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1339. target_alias=$ac_optarg ;;
  1340. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1341. verbose=yes ;;
  1342. -version | --version | --versio | --versi | --vers | -V)
  1343. ac_init_version=: ;;
  1344. -with-* | --with-*)
  1345. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1346. # Reject names that are not valid shell variable names.
  1347. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1348. as_fn_error $? "invalid package name: $ac_useropt"
  1349. ac_useropt_orig=$ac_useropt
  1350. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1351. case $ac_user_opts in
  1352. *"
  1353. "with_$ac_useropt"
  1354. "*) ;;
  1355. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1356. ac_unrecognized_sep=', ';;
  1357. esac
  1358. eval with_$ac_useropt=\$ac_optarg ;;
  1359. -without-* | --without-*)
  1360. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1361. # Reject names that are not valid shell variable names.
  1362. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1363. as_fn_error $? "invalid package name: $ac_useropt"
  1364. ac_useropt_orig=$ac_useropt
  1365. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1366. case $ac_user_opts in
  1367. *"
  1368. "with_$ac_useropt"
  1369. "*) ;;
  1370. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1371. ac_unrecognized_sep=', ';;
  1372. esac
  1373. eval with_$ac_useropt=no ;;
  1374. --x)
  1375. # Obsolete; use --with-x.
  1376. with_x=yes ;;
  1377. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1378. | --x-incl | --x-inc | --x-in | --x-i)
  1379. ac_prev=x_includes ;;
  1380. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1381. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1382. x_includes=$ac_optarg ;;
  1383. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1384. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1385. ac_prev=x_libraries ;;
  1386. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1387. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1388. x_libraries=$ac_optarg ;;
  1389. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1390. Try \`$0 --help' for more information"
  1391. ;;
  1392. *=*)
  1393. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1394. # Reject names that are not valid shell variable names.
  1395. case $ac_envvar in #(
  1396. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1397. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1398. esac
  1399. eval $ac_envvar=\$ac_optarg
  1400. export $ac_envvar ;;
  1401. *)
  1402. # FIXME: should be removed in autoconf 3.0.
  1403. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1404. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1405. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1406. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1407. ;;
  1408. esac
  1409. done
  1410. if test -n "$ac_prev"; then
  1411. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1412. as_fn_error $? "missing argument to $ac_option"
  1413. fi
  1414. if test -n "$ac_unrecognized_opts"; then
  1415. case $enable_option_checking in
  1416. no) ;;
  1417. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1418. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1419. esac
  1420. fi
  1421. # Check all directory arguments for consistency.
  1422. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1423. datadir sysconfdir sharedstatedir localstatedir includedir \
  1424. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1425. libdir localedir mandir
  1426. do
  1427. eval ac_val=\$$ac_var
  1428. # Remove trailing slashes.
  1429. case $ac_val in
  1430. */ )
  1431. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1432. eval $ac_var=\$ac_val;;
  1433. esac
  1434. # Be sure to have absolute directory names.
  1435. case $ac_val in
  1436. [\\/$]* | ?:[\\/]* ) continue;;
  1437. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1438. esac
  1439. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1440. done
  1441. # There might be people who depend on the old broken behavior: `$host'
  1442. # used to hold the argument of --host etc.
  1443. # FIXME: To remove some day.
  1444. build=$build_alias
  1445. host=$host_alias
  1446. target=$target_alias
  1447. # FIXME: To remove some day.
  1448. if test "x$host_alias" != x; then
  1449. if test "x$build_alias" = x; then
  1450. cross_compiling=maybe
  1451. elif test "x$build_alias" != "x$host_alias"; then
  1452. cross_compiling=yes
  1453. fi
  1454. fi
  1455. ac_tool_prefix=
  1456. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1457. test "$silent" = yes && exec 6>/dev/null
  1458. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1459. ac_ls_di=`ls -di .` &&
  1460. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1461. as_fn_error $? "working directory cannot be determined"
  1462. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1463. as_fn_error $? "pwd does not report name of working directory"
  1464. # Find the source files, if location was not specified.
  1465. if test -z "$srcdir"; then
  1466. ac_srcdir_defaulted=yes
  1467. # Try the directory containing this script, then the parent directory.
  1468. ac_confdir=`$as_dirname -- "$as_myself" ||
  1469. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1470. X"$as_myself" : 'X\(//\)[^/]' \| \
  1471. X"$as_myself" : 'X\(//\)$' \| \
  1472. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1473. $as_echo X"$as_myself" |
  1474. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1475. s//\1/
  1476. q
  1477. }
  1478. /^X\(\/\/\)[^/].*/{
  1479. s//\1/
  1480. q
  1481. }
  1482. /^X\(\/\/\)$/{
  1483. s//\1/
  1484. q
  1485. }
  1486. /^X\(\/\).*/{
  1487. s//\1/
  1488. q
  1489. }
  1490. s/.*/./; q'`
  1491. srcdir=$ac_confdir
  1492. if test ! -r "$srcdir/$ac_unique_file"; then
  1493. srcdir=..
  1494. fi
  1495. else
  1496. ac_srcdir_defaulted=no
  1497. fi
  1498. if test ! -r "$srcdir/$ac_unique_file"; then
  1499. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1500. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1501. fi
  1502. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1503. ac_abs_confdir=`(
  1504. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1505. pwd)`
  1506. # When building in place, set srcdir=.
  1507. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1508. srcdir=.
  1509. fi
  1510. # Remove unnecessary trailing slashes from srcdir.
  1511. # Double slashes in file names in object file debugging info
  1512. # mess up M-x gdb in Emacs.
  1513. case $srcdir in
  1514. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1515. esac
  1516. for ac_var in $ac_precious_vars; do
  1517. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1518. eval ac_env_${ac_var}_value=\$${ac_var}
  1519. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1520. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1521. done
  1522. #
  1523. # Report the --help message.
  1524. #
  1525. if test "$ac_init_help" = "long"; then
  1526. # Omit some internal or obsolete options to make the list less imposing.
  1527. # This message is too long to be a string in the A/UX 3.1 sh.
  1528. cat <<_ACEOF
  1529. \`configure' configures this package to adapt to many kinds of systems.
  1530. Usage: $0 [OPTION]... [VAR=VALUE]...
  1531. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1532. VAR=VALUE. See below for descriptions of some of the useful variables.
  1533. Defaults for the options are specified in brackets.
  1534. Configuration:
  1535. -h, --help display this help and exit
  1536. --help=short display options specific to this package
  1537. --help=recursive display the short help of all the included packages
  1538. -V, --version display version information and exit
  1539. -q, --quiet, --silent do not print \`checking ...' messages
  1540. --cache-file=FILE cache test results in FILE [disabled]
  1541. -C, --config-cache alias for \`--cache-file=config.cache'
  1542. -n, --no-create do not create output files
  1543. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1544. Installation directories:
  1545. --prefix=PREFIX install architecture-independent files in PREFIX
  1546. [$ac_default_prefix]
  1547. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1548. [PREFIX]
  1549. By default, \`make install' will install all the files in
  1550. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1551. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1552. for instance \`--prefix=\$HOME'.
  1553. For better control, use the options below.
  1554. Fine tuning of the installation directories:
  1555. --bindir=DIR user executables [EPREFIX/bin]
  1556. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1557. --libexecdir=DIR program executables [EPREFIX/libexec]
  1558. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1559. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1560. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1561. --libdir=DIR object code libraries [EPREFIX/lib]
  1562. --includedir=DIR C header files [PREFIX/include]
  1563. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1564. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1565. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1566. --infodir=DIR info documentation [DATAROOTDIR/info]
  1567. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1568. --mandir=DIR man documentation [DATAROOTDIR/man]
  1569. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1570. --htmldir=DIR html documentation [DOCDIR]
  1571. --dvidir=DIR dvi documentation [DOCDIR]
  1572. --pdfdir=DIR pdf documentation [DOCDIR]
  1573. --psdir=DIR ps documentation [DOCDIR]
  1574. _ACEOF
  1575. cat <<\_ACEOF
  1576. Program names:
  1577. --program-prefix=PREFIX prepend PREFIX to installed program names
  1578. --program-suffix=SUFFIX append SUFFIX to installed program names
  1579. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1580. X features:
  1581. --x-includes=DIR X include files are in DIR
  1582. --x-libraries=DIR X library files are in DIR
  1583. System types:
  1584. --build=BUILD configure for building on BUILD [guessed]
  1585. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1586. _ACEOF
  1587. fi
  1588. if test -n "$ac_init_help"; then
  1589. cat <<\_ACEOF
  1590. Optional Features:
  1591. --disable-option-checking ignore unrecognized --enable/--with options
  1592. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1593. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1594. --enable-silent-rules less verbose build output (undo: `make V=1')
  1595. --disable-silent-rules verbose build output (undo: `make V=0')
  1596. --disable-dependency-tracking speeds up one-time build
  1597. --enable-dependency-tracking do not reject slow dependency extractors
  1598. --disable-openmp do not use OpenMP
  1599. --enable-openmp-slow enable OpenMP for algorithms which sometimes run slower
  1600. --disable-largefile omit support for large files
  1601. --enable-shared[=PKGS] build shared libraries [default=no]
  1602. --enable-static[=PKGS] build static libraries [default=yes]
  1603. --enable-fast-install[=PKGS]
  1604. optimize for fast installation [default=yes]
  1605. --disable-libtool-lock avoid locking (might break parallel builds)
  1606. --enable-ltdl-install install libltdl
  1607. --disable-installed disable building an installed GraphicsMagick
  1608. (default enabled)
  1609. --enable-maintainer-mode enable make rules and dependencies not useful
  1610. (and sometimes confusing) to the casual installer
  1611. --enable-ccmalloc enable 'ccmalloc' memory debug support (default disabled)
  1612. --enable-efence enable 'Electric Fence' memory debug support (default disabled)
  1613. --enable-prof enable 'prof' profiling support (default disabled)
  1614. --enable-gprof enable 'gprof' profiling support (default disabled)
  1615. --enable-gcov enable 'gcov' profiling support (default disabled)
  1616. --enable-symbol-prefix enable prefixing library symbols with "Gm"
  1617. --enable-magick-compat install ImageMagick utility shortcuts (default disabled)
  1618. Optional Packages:
  1619. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1620. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1621. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1622. --without-threads disable threads support
  1623. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1624. both]
  1625. --with-sysroot=DIR Search for dependent libraries within DIR
  1626. (or the compiler's sysroot if not specified).
  1627. --with-included-ltdl use the GNU ltdl sources included here
  1628. --with-ltdl-include=DIR use the ltdl headers installed in DIR
  1629. --with-ltdl-lib=DIR use the libltdl.la installed in DIR
  1630. --with-modules enable building dynamically loadable modules
  1631. --with-quantum-depth number of bits in a pixel quantum (default 8)
  1632. --with-frozenpaths enable frozen delegate paths
  1633. --without-magick-plus-plus disable build/install of Magick++
  1634. --with-perl enable build/install of PerlMagick
  1635. or
  1636. --with-perl=PERL use specified Perl binary to configure PerlMagick
  1637. --with-perl-options=OPTIONS options to pass on command-line when
  1638. generating PerlMagick's Makefile from Makefile.PL
  1639. --without-bzlib disable BZLIB support
  1640. --without-dps disable Display Postscript support
  1641. --with-fpx enable FlashPIX support
  1642. --with-gslib enable Ghostscript library support (not recommended)
  1643. --without-jbig disable JBIG support
  1644. --without-jpeg disable JPEG support
  1645. --without-jp2 disable JPEG v2 support
  1646. --without-lcms disable lcms (v1.1X) support
  1647. --without-lcms2 disable lcms (v2.X) support
  1648. --without-lzma disable LZMA support
  1649. --without-png disable PNG support
  1650. --without-tiff disable TIFF support
  1651. --without-trio disable TRIO support
  1652. --without-ttf disable TrueType support
  1653. --with-umem enable umem memory allocation library support
  1654. --without-wmf disable WMF support
  1655. --with-fontpath=DIR prepend to default font search path
  1656. --with-gs-font-dir=DIR directory containing Ghostscript fonts
  1657. --with-windows-font-dir=DIR
  1658. directory containing MS-Windows fonts
  1659. --without-xml disable XML support
  1660. --without-zlib disable ZLIB support
  1661. --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
  1662. --with-x use the X Window System
  1663. --without-png disable PNG support
  1664. Some influential environment variables:
  1665. CC C compiler command
  1666. CFLAGS C compiler flags
  1667. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1668. nonstandard directory <lib dir>
  1669. LIBS libraries to pass to the linker, e.g. -l<library>
  1670. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1671. you have headers in a nonstandard directory <include dir>
  1672. CPP C preprocessor
  1673. CXX C++ compiler command
  1674. CXXFLAGS C++ compiler flags
  1675. CXXCPP C++ preprocessor
  1676. XMKMF Path to xmkmf, Makefile generator for X Window System
  1677. Use these variables to override the choices made by `configure' or to help
  1678. it to find libraries and programs with nonstandard names/locations.
  1679. Report bugs to the package provider.
  1680. _ACEOF
  1681. ac_status=$?
  1682. fi
  1683. if test "$ac_init_help" = "recursive"; then
  1684. # If there are subdirs, report their specific --help.
  1685. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1686. test -d "$ac_dir" ||
  1687. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1688. continue
  1689. ac_builddir=.
  1690. case "$ac_dir" in
  1691. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1692. *)
  1693. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1694. # A ".." for each directory in $ac_dir_suffix.
  1695. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1696. case $ac_top_builddir_sub in
  1697. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1698. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1699. esac ;;
  1700. esac
  1701. ac_abs_top_builddir=$ac_pwd
  1702. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1703. # for backward compatibility:
  1704. ac_top_builddir=$ac_top_build_prefix
  1705. case $srcdir in
  1706. .) # We are building in place.
  1707. ac_srcdir=.
  1708. ac_top_srcdir=$ac_top_builddir_sub
  1709. ac_abs_top_srcdir=$ac_pwd ;;
  1710. [\\/]* | ?:[\\/]* ) # Absolute name.
  1711. ac_srcdir=$srcdir$ac_dir_suffix;
  1712. ac_top_srcdir=$srcdir
  1713. ac_abs_top_srcdir=$srcdir ;;
  1714. *) # Relative name.
  1715. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1716. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1717. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1718. esac
  1719. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1720. cd "$ac_dir" || { ac_status=$?; continue; }
  1721. # Check for guested configure.
  1722. if test -f "$ac_srcdir/configure.gnu"; then
  1723. echo &&
  1724. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1725. elif test -f "$ac_srcdir/configure"; then
  1726. echo &&
  1727. $SHELL "$ac_srcdir/configure" --help=recursive
  1728. else
  1729. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1730. fi || ac_status=$?
  1731. cd "$ac_pwd" || { ac_status=$?; break; }
  1732. done
  1733. fi
  1734. test -n "$ac_init_help" && exit $ac_status
  1735. if $ac_init_version; then
  1736. cat <<\_ACEOF
  1737. configure
  1738. generated by GNU Autoconf 2.69
  1739. Copyright (C) 2012 Free Software Foundation, Inc.
  1740. This configure script is free software; the Free Software Foundation
  1741. gives unlimited permission to copy, distribute and modify it.
  1742. _ACEOF
  1743. exit
  1744. fi
  1745. ## ------------------------ ##
  1746. ## Autoconf initialization. ##
  1747. ## ------------------------ ##
  1748. # ac_fn_c_try_compile LINENO
  1749. # --------------------------
  1750. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1751. ac_fn_c_try_compile ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. rm -f conftest.$ac_objext
  1755. if { { ac_try="$ac_compile"
  1756. case "(($ac_try" in
  1757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1758. *) ac_try_echo=$ac_try;;
  1759. esac
  1760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1761. $as_echo "$ac_try_echo"; } >&5
  1762. (eval "$ac_compile") 2>conftest.err
  1763. ac_status=$?
  1764. if test -s conftest.err; then
  1765. grep -v '^ *+' conftest.err >conftest.er1
  1766. cat conftest.er1 >&5
  1767. mv -f conftest.er1 conftest.err
  1768. fi
  1769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1770. test $ac_status = 0; } && {
  1771. test -z "$ac_c_werror_flag" ||
  1772. test ! -s conftest.err
  1773. } && test -s conftest.$ac_objext; then :
  1774. ac_retval=0
  1775. else
  1776. $as_echo "$as_me: failed program was:" >&5
  1777. sed 's/^/| /' conftest.$ac_ext >&5
  1778. ac_retval=1
  1779. fi
  1780. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1781. as_fn_set_status $ac_retval
  1782. } # ac_fn_c_try_compile
  1783. # ac_fn_c_try_cpp LINENO
  1784. # ----------------------
  1785. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1786. ac_fn_c_try_cpp ()
  1787. {
  1788. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1789. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1790. case "(($ac_try" in
  1791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1792. *) ac_try_echo=$ac_try;;
  1793. esac
  1794. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1795. $as_echo "$ac_try_echo"; } >&5
  1796. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1797. ac_status=$?
  1798. if test -s conftest.err; then
  1799. grep -v '^ *+' conftest.err >conftest.er1
  1800. cat conftest.er1 >&5
  1801. mv -f conftest.er1 conftest.err
  1802. fi
  1803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1804. test $ac_status = 0; } > conftest.i && {
  1805. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1806. test ! -s conftest.err
  1807. }; then :
  1808. ac_retval=0
  1809. else
  1810. $as_echo "$as_me: failed program was:" >&5
  1811. sed 's/^/| /' conftest.$ac_ext >&5
  1812. ac_retval=1
  1813. fi
  1814. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_c_try_cpp
  1817. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1818. # -------------------------------------------------------
  1819. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1820. # the include files in INCLUDES and setting the cache variable VAR
  1821. # accordingly.
  1822. ac_fn_c_check_header_mongrel ()
  1823. {
  1824. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1825. if eval \${$3+:} false; then :
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1827. $as_echo_n "checking for $2... " >&6; }
  1828. if eval \${$3+:} false; then :
  1829. $as_echo_n "(cached) " >&6
  1830. fi
  1831. eval ac_res=\$$3
  1832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1833. $as_echo "$ac_res" >&6; }
  1834. else
  1835. # Is the header compilable?
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1837. $as_echo_n "checking $2 usability... " >&6; }
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. #include <$2>
  1842. _ACEOF
  1843. if ac_fn_c_try_compile "$LINENO"; then :
  1844. ac_header_compiler=yes
  1845. else
  1846. ac_header_compiler=no
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1850. $as_echo "$ac_header_compiler" >&6; }
  1851. # Is the header present?
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1853. $as_echo_n "checking $2 presence... " >&6; }
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. #include <$2>
  1857. _ACEOF
  1858. if ac_fn_c_try_cpp "$LINENO"; then :
  1859. ac_header_preproc=yes
  1860. else
  1861. ac_header_preproc=no
  1862. fi
  1863. rm -f conftest.err conftest.i conftest.$ac_ext
  1864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1865. $as_echo "$ac_header_preproc" >&6; }
  1866. # So? What about this header?
  1867. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1868. yes:no: )
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1870. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1872. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1873. ;;
  1874. no:yes:* )
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1876. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1878. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1880. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1882. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1884. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1885. ;;
  1886. esac
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1888. $as_echo_n "checking for $2... " >&6; }
  1889. if eval \${$3+:} false; then :
  1890. $as_echo_n "(cached) " >&6
  1891. else
  1892. eval "$3=\$ac_header_compiler"
  1893. fi
  1894. eval ac_res=\$$3
  1895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1896. $as_echo "$ac_res" >&6; }
  1897. fi
  1898. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1899. } # ac_fn_c_check_header_mongrel
  1900. # ac_fn_c_try_run LINENO
  1901. # ----------------------
  1902. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1903. # that executables *can* be run.
  1904. ac_fn_c_try_run ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. if { { ac_try="$ac_link"
  1908. case "(($ac_try" in
  1909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1910. *) ac_try_echo=$ac_try;;
  1911. esac
  1912. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1913. $as_echo "$ac_try_echo"; } >&5
  1914. (eval "$ac_link") 2>&5
  1915. ac_status=$?
  1916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1917. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1918. { { case "(($ac_try" in
  1919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1920. *) ac_try_echo=$ac_try;;
  1921. esac
  1922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1923. $as_echo "$ac_try_echo"; } >&5
  1924. (eval "$ac_try") 2>&5
  1925. ac_status=$?
  1926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1927. test $ac_status = 0; }; }; then :
  1928. ac_retval=0
  1929. else
  1930. $as_echo "$as_me: program exited with status $ac_status" >&5
  1931. $as_echo "$as_me: failed program was:" >&5
  1932. sed 's/^/| /' conftest.$ac_ext >&5
  1933. ac_retval=$ac_status
  1934. fi
  1935. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. as_fn_set_status $ac_retval
  1938. } # ac_fn_c_try_run
  1939. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1940. # -------------------------------------------------------
  1941. # Tests whether HEADER exists and can be compiled using the include files in
  1942. # INCLUDES, setting the cache variable VAR accordingly.
  1943. ac_fn_c_check_header_compile ()
  1944. {
  1945. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1947. $as_echo_n "checking for $2... " >&6; }
  1948. if eval \${$3+:} false; then :
  1949. $as_echo_n "(cached) " >&6
  1950. else
  1951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1952. /* end confdefs.h. */
  1953. $4
  1954. #include <$2>
  1955. _ACEOF
  1956. if ac_fn_c_try_compile "$LINENO"; then :
  1957. eval "$3=yes"
  1958. else
  1959. eval "$3=no"
  1960. fi
  1961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. fi
  1963. eval ac_res=\$$3
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1965. $as_echo "$ac_res" >&6; }
  1966. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1967. } # ac_fn_c_check_header_compile
  1968. # ac_fn_c_try_link LINENO
  1969. # -----------------------
  1970. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1971. ac_fn_c_try_link ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. rm -f conftest.$ac_objext conftest$ac_exeext
  1975. if { { ac_try="$ac_link"
  1976. case "(($ac_try" in
  1977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1978. *) ac_try_echo=$ac_try;;
  1979. esac
  1980. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1981. $as_echo "$ac_try_echo"; } >&5
  1982. (eval "$ac_link") 2>conftest.err
  1983. ac_status=$?
  1984. if test -s conftest.err; then
  1985. grep -v '^ *+' conftest.err >conftest.er1
  1986. cat conftest.er1 >&5
  1987. mv -f conftest.er1 conftest.err
  1988. fi
  1989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1990. test $ac_status = 0; } && {
  1991. test -z "$ac_c_werror_flag" ||
  1992. test ! -s conftest.err
  1993. } && test -s conftest$ac_exeext && {
  1994. test "$cross_compiling" = yes ||
  1995. test -x conftest$ac_exeext
  1996. }; then :
  1997. ac_retval=0
  1998. else
  1999. $as_echo "$as_me: failed program was:" >&5
  2000. sed 's/^/| /' conftest.$ac_ext >&5
  2001. ac_retval=1
  2002. fi
  2003. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2004. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2005. # interfere with the next link command; also delete a directory that is
  2006. # left behind by Apple's compiler. We do this before executing the actions.
  2007. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. as_fn_set_status $ac_retval
  2010. } # ac_fn_c_try_link
  2011. # ac_fn_c_check_func LINENO FUNC VAR
  2012. # ----------------------------------
  2013. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2014. ac_fn_c_check_func ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2018. $as_echo_n "checking for $2... " >&6; }
  2019. if eval \${$3+:} false; then :
  2020. $as_echo_n "(cached) " >&6
  2021. else
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2025. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2026. #define $2 innocuous_$2
  2027. /* System header to define __stub macros and hopefully few prototypes,
  2028. which can conflict with char $2 (); below.
  2029. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2030. <limits.h> exists even on freestanding compilers. */
  2031. #ifdef __STDC__
  2032. # include <limits.h>
  2033. #else
  2034. # include <assert.h>
  2035. #endif
  2036. #undef $2
  2037. /* Override any GCC internal prototype to avoid an error.
  2038. Use char because int might match the return type of a GCC
  2039. builtin and then its argument prototype would still apply. */
  2040. #ifdef __cplusplus
  2041. extern "C"
  2042. #endif
  2043. char $2 ();
  2044. /* The GNU C library defines this for functions which it implements
  2045. to always fail with ENOSYS. Some functions are actually named
  2046. something starting with __ and the normal name is an alias. */
  2047. #if defined __stub_$2 || defined __stub___$2
  2048. choke me
  2049. #endif
  2050. int
  2051. main ()
  2052. {
  2053. return $2 ();
  2054. ;
  2055. return 0;
  2056. }
  2057. _ACEOF
  2058. if ac_fn_c_try_link "$LINENO"; then :
  2059. eval "$3=yes"
  2060. else
  2061. eval "$3=no"
  2062. fi
  2063. rm -f core conftest.err conftest.$ac_objext \
  2064. conftest$ac_exeext conftest.$ac_ext
  2065. fi
  2066. eval ac_res=\$$3
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2068. $as_echo "$ac_res" >&6; }
  2069. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2070. } # ac_fn_c_check_func
  2071. # ac_fn_cxx_try_compile LINENO
  2072. # ----------------------------
  2073. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2074. ac_fn_cxx_try_compile ()
  2075. {
  2076. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2077. rm -f conftest.$ac_objext
  2078. if { { ac_try="$ac_compile"
  2079. case "(($ac_try" in
  2080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2081. *) ac_try_echo=$ac_try;;
  2082. esac
  2083. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2084. $as_echo "$ac_try_echo"; } >&5
  2085. (eval "$ac_compile") 2>conftest.err
  2086. ac_status=$?
  2087. if test -s conftest.err; then
  2088. grep -v '^ *+' conftest.err >conftest.er1
  2089. cat conftest.er1 >&5
  2090. mv -f conftest.er1 conftest.err
  2091. fi
  2092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2093. test $ac_status = 0; } && {
  2094. test -z "$ac_cxx_werror_flag" ||
  2095. test ! -s conftest.err
  2096. } && test -s conftest.$ac_objext; then :
  2097. ac_retval=0
  2098. else
  2099. $as_echo "$as_me: failed program was:" >&5
  2100. sed 's/^/| /' conftest.$ac_ext >&5
  2101. ac_retval=1
  2102. fi
  2103. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2104. as_fn_set_status $ac_retval
  2105. } # ac_fn_cxx_try_compile
  2106. # ac_fn_cxx_try_cpp LINENO
  2107. # ------------------------
  2108. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2109. ac_fn_cxx_try_cpp ()
  2110. {
  2111. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2112. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2113. case "(($ac_try" in
  2114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2115. *) ac_try_echo=$ac_try;;
  2116. esac
  2117. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2118. $as_echo "$ac_try_echo"; } >&5
  2119. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2120. ac_status=$?
  2121. if test -s conftest.err; then
  2122. grep -v '^ *+' conftest.err >conftest.er1
  2123. cat conftest.er1 >&5
  2124. mv -f conftest.er1 conftest.err
  2125. fi
  2126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2127. test $ac_status = 0; } > conftest.i && {
  2128. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2129. test ! -s conftest.err
  2130. }; then :
  2131. ac_retval=0
  2132. else
  2133. $as_echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. ac_retval=1
  2136. fi
  2137. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2138. as_fn_set_status $ac_retval
  2139. } # ac_fn_cxx_try_cpp
  2140. # ac_fn_cxx_try_link LINENO
  2141. # -------------------------
  2142. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2143. ac_fn_cxx_try_link ()
  2144. {
  2145. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2146. rm -f conftest.$ac_objext conftest$ac_exeext
  2147. if { { ac_try="$ac_link"
  2148. case "(($ac_try" in
  2149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2150. *) ac_try_echo=$ac_try;;
  2151. esac
  2152. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2153. $as_echo "$ac_try_echo"; } >&5
  2154. (eval "$ac_link") 2>conftest.err
  2155. ac_status=$?
  2156. if test -s conftest.err; then
  2157. grep -v '^ *+' conftest.err >conftest.er1
  2158. cat conftest.er1 >&5
  2159. mv -f conftest.er1 conftest.err
  2160. fi
  2161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2162. test $ac_status = 0; } && {
  2163. test -z "$ac_cxx_werror_flag" ||
  2164. test ! -s conftest.err
  2165. } && test -s conftest$ac_exeext && {
  2166. test "$cross_compiling" = yes ||
  2167. test -x conftest$ac_exeext
  2168. }; then :
  2169. ac_retval=0
  2170. else
  2171. $as_echo "$as_me: failed program was:" >&5
  2172. sed 's/^/| /' conftest.$ac_ext >&5
  2173. ac_retval=1
  2174. fi
  2175. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2176. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2177. # interfere with the next link command; also delete a directory that is
  2178. # left behind by Apple's compiler. We do this before executing the actions.
  2179. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2180. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2181. as_fn_set_status $ac_retval
  2182. } # ac_fn_cxx_try_link
  2183. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2184. # ---------------------------------------------
  2185. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2186. # accordingly.
  2187. ac_fn_c_check_decl ()
  2188. {
  2189. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2190. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2191. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2193. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2194. if eval \${$3+:} false; then :
  2195. $as_echo_n "(cached) " >&6
  2196. else
  2197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2198. /* end confdefs.h. */
  2199. $4
  2200. int
  2201. main ()
  2202. {
  2203. #ifndef $as_decl_name
  2204. #ifdef __cplusplus
  2205. (void) $as_decl_use;
  2206. #else
  2207. (void) $as_decl_name;
  2208. #endif
  2209. #endif
  2210. ;
  2211. return 0;
  2212. }
  2213. _ACEOF
  2214. if ac_fn_c_try_compile "$LINENO"; then :
  2215. eval "$3=yes"
  2216. else
  2217. eval "$3=no"
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. fi
  2221. eval ac_res=\$$3
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2223. $as_echo "$ac_res" >&6; }
  2224. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2225. } # ac_fn_c_check_decl
  2226. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2227. # -------------------------------------------
  2228. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2229. # variable VAR accordingly.
  2230. ac_fn_c_check_type ()
  2231. {
  2232. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2234. $as_echo_n "checking for $2... " >&6; }
  2235. if eval \${$3+:} false; then :
  2236. $as_echo_n "(cached) " >&6
  2237. else
  2238. eval "$3=no"
  2239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2240. /* end confdefs.h. */
  2241. $4
  2242. int
  2243. main ()
  2244. {
  2245. if (sizeof ($2))
  2246. return 0;
  2247. ;
  2248. return 0;
  2249. }
  2250. _ACEOF
  2251. if ac_fn_c_try_compile "$LINENO"; then :
  2252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2253. /* end confdefs.h. */
  2254. $4
  2255. int
  2256. main ()
  2257. {
  2258. if (sizeof (($2)))
  2259. return 0;
  2260. ;
  2261. return 0;
  2262. }
  2263. _ACEOF
  2264. if ac_fn_c_try_compile "$LINENO"; then :
  2265. else
  2266. eval "$3=yes"
  2267. fi
  2268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2269. fi
  2270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2271. fi
  2272. eval ac_res=\$$3
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2274. $as_echo "$ac_res" >&6; }
  2275. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2276. } # ac_fn_c_check_type
  2277. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2278. # --------------------------------------------
  2279. # Tries to find the compile-time value of EXPR in a program that includes
  2280. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2281. # computed
  2282. ac_fn_c_compute_int ()
  2283. {
  2284. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2285. if test "$cross_compiling" = yes; then
  2286. # Depending upon the size, compute the lo and hi bounds.
  2287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2288. /* end confdefs.h. */
  2289. $4
  2290. int
  2291. main ()
  2292. {
  2293. static int test_array [1 - 2 * !(($2) >= 0)];
  2294. test_array [0] = 0;
  2295. return test_array [0];
  2296. ;
  2297. return 0;
  2298. }
  2299. _ACEOF
  2300. if ac_fn_c_try_compile "$LINENO"; then :
  2301. ac_lo=0 ac_mid=0
  2302. while :; do
  2303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2304. /* end confdefs.h. */
  2305. $4
  2306. int
  2307. main ()
  2308. {
  2309. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2310. test_array [0] = 0;
  2311. return test_array [0];
  2312. ;
  2313. return 0;
  2314. }
  2315. _ACEOF
  2316. if ac_fn_c_try_compile "$LINENO"; then :
  2317. ac_hi=$ac_mid; break
  2318. else
  2319. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2320. if test $ac_lo -le $ac_mid; then
  2321. ac_lo= ac_hi=
  2322. break
  2323. fi
  2324. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2325. fi
  2326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2327. done
  2328. else
  2329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2330. /* end confdefs.h. */
  2331. $4
  2332. int
  2333. main ()
  2334. {
  2335. static int test_array [1 - 2 * !(($2) < 0)];
  2336. test_array [0] = 0;
  2337. return test_array [0];
  2338. ;
  2339. return 0;
  2340. }
  2341. _ACEOF
  2342. if ac_fn_c_try_compile "$LINENO"; then :
  2343. ac_hi=-1 ac_mid=-1
  2344. while :; do
  2345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2346. /* end confdefs.h. */
  2347. $4
  2348. int
  2349. main ()
  2350. {
  2351. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2352. test_array [0] = 0;
  2353. return test_array [0];
  2354. ;
  2355. return 0;
  2356. }
  2357. _ACEOF
  2358. if ac_fn_c_try_compile "$LINENO"; then :
  2359. ac_lo=$ac_mid; break
  2360. else
  2361. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2362. if test $ac_mid -le $ac_hi; then
  2363. ac_lo= ac_hi=
  2364. break
  2365. fi
  2366. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2367. fi
  2368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2369. done
  2370. else
  2371. ac_lo= ac_hi=
  2372. fi
  2373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2374. fi
  2375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2376. # Binary search between lo and hi bounds.
  2377. while test "x$ac_lo" != "x$ac_hi"; do
  2378. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2380. /* end confdefs.h. */
  2381. $4
  2382. int
  2383. main ()
  2384. {
  2385. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2386. test_array [0] = 0;
  2387. return test_array [0];
  2388. ;
  2389. return 0;
  2390. }
  2391. _ACEOF
  2392. if ac_fn_c_try_compile "$LINENO"; then :
  2393. ac_hi=$ac_mid
  2394. else
  2395. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2396. fi
  2397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2398. done
  2399. case $ac_lo in #((
  2400. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2401. '') ac_retval=1 ;;
  2402. esac
  2403. else
  2404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2405. /* end confdefs.h. */
  2406. $4
  2407. static long int longval () { return $2; }
  2408. static unsigned long int ulongval () { return $2; }
  2409. #include <stdio.h>
  2410. #include <stdlib.h>
  2411. int
  2412. main ()
  2413. {
  2414. FILE *f = fopen ("conftest.val", "w");
  2415. if (! f)
  2416. return 1;
  2417. if (($2) < 0)
  2418. {
  2419. long int i = longval ();
  2420. if (i != ($2))
  2421. return 1;
  2422. fprintf (f, "%ld", i);
  2423. }
  2424. else
  2425. {
  2426. unsigned long int i = ulongval ();
  2427. if (i != ($2))
  2428. return 1;
  2429. fprintf (f, "%lu", i);
  2430. }
  2431. /* Do not output a trailing newline, as this causes \r\n confusion
  2432. on some platforms. */
  2433. return ferror (f) || fclose (f) != 0;
  2434. ;
  2435. return 0;
  2436. }
  2437. _ACEOF
  2438. if ac_fn_c_try_run "$LINENO"; then :
  2439. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2440. else
  2441. ac_retval=1
  2442. fi
  2443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2444. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2445. rm -f conftest.val
  2446. fi
  2447. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2448. as_fn_set_status $ac_retval
  2449. } # ac_fn_c_compute_int
  2450. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2451. # ---------------------------------------------------------
  2452. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2453. # the include files in INCLUDES and setting the cache variable VAR
  2454. # accordingly.
  2455. ac_fn_cxx_check_header_mongrel ()
  2456. {
  2457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2458. if eval \${$3+:} false; then :
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2460. $as_echo_n "checking for $2... " >&6; }
  2461. if eval \${$3+:} false; then :
  2462. $as_echo_n "(cached) " >&6
  2463. fi
  2464. eval ac_res=\$$3
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2466. $as_echo "$ac_res" >&6; }
  2467. else
  2468. # Is the header compilable?
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2470. $as_echo_n "checking $2 usability... " >&6; }
  2471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2472. /* end confdefs.h. */
  2473. $4
  2474. #include <$2>
  2475. _ACEOF
  2476. if ac_fn_cxx_try_compile "$LINENO"; then :
  2477. ac_header_compiler=yes
  2478. else
  2479. ac_header_compiler=no
  2480. fi
  2481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2483. $as_echo "$ac_header_compiler" >&6; }
  2484. # Is the header present?
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2486. $as_echo_n "checking $2 presence... " >&6; }
  2487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2488. /* end confdefs.h. */
  2489. #include <$2>
  2490. _ACEOF
  2491. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2492. ac_header_preproc=yes
  2493. else
  2494. ac_header_preproc=no
  2495. fi
  2496. rm -f conftest.err conftest.i conftest.$ac_ext
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2498. $as_echo "$ac_header_preproc" >&6; }
  2499. # So? What about this header?
  2500. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2501. yes:no: )
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2503. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2505. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2506. ;;
  2507. no:yes:* )
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2509. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2511. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2513. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2515. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2518. ;;
  2519. esac
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2521. $as_echo_n "checking for $2... " >&6; }
  2522. if eval \${$3+:} false; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. eval "$3=\$ac_header_compiler"
  2526. fi
  2527. eval ac_res=\$$3
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2529. $as_echo "$ac_res" >&6; }
  2530. fi
  2531. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2532. } # ac_fn_cxx_check_header_mongrel
  2533. cat >config.log <<_ACEOF
  2534. This file contains any messages produced by compilers while
  2535. running configure, to aid debugging if configure makes a mistake.
  2536. It was created by $as_me, which was
  2537. generated by GNU Autoconf 2.69. Invocation command line was
  2538. $ $0 $@
  2539. _ACEOF
  2540. exec 5>>config.log
  2541. {
  2542. cat <<_ASUNAME
  2543. ## --------- ##
  2544. ## Platform. ##
  2545. ## --------- ##
  2546. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2547. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2548. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2549. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2550. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2551. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2552. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2553. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2554. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2555. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2556. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2557. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2558. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2559. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2560. _ASUNAME
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. $as_echo "PATH: $as_dir"
  2567. done
  2568. IFS=$as_save_IFS
  2569. } >&5
  2570. cat >&5 <<_ACEOF
  2571. ## ----------- ##
  2572. ## Core tests. ##
  2573. ## ----------- ##
  2574. _ACEOF
  2575. # Keep a trace of the command line.
  2576. # Strip out --no-create and --no-recursion so they do not pile up.
  2577. # Strip out --silent because we don't want to record it for future runs.
  2578. # Also quote any args containing shell meta-characters.
  2579. # Make two passes to allow for proper duplicate-argument suppression.
  2580. ac_configure_args=
  2581. ac_configure_args0=
  2582. ac_configure_args1=
  2583. ac_must_keep_next=false
  2584. for ac_pass in 1 2
  2585. do
  2586. for ac_arg
  2587. do
  2588. case $ac_arg in
  2589. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2590. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2591. | -silent | --silent | --silen | --sile | --sil)
  2592. continue ;;
  2593. *\'*)
  2594. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2595. esac
  2596. case $ac_pass in
  2597. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2598. 2)
  2599. as_fn_append ac_configure_args1 " '$ac_arg'"
  2600. if test $ac_must_keep_next = true; then
  2601. ac_must_keep_next=false # Got value, back to normal.
  2602. else
  2603. case $ac_arg in
  2604. *=* | --config-cache | -C | -disable-* | --disable-* \
  2605. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2606. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2607. | -with-* | --with-* | -without-* | --without-* | --x)
  2608. case "$ac_configure_args0 " in
  2609. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2610. esac
  2611. ;;
  2612. -* ) ac_must_keep_next=true ;;
  2613. esac
  2614. fi
  2615. as_fn_append ac_configure_args " '$ac_arg'"
  2616. ;;
  2617. esac
  2618. done
  2619. done
  2620. { ac_configure_args0=; unset ac_configure_args0;}
  2621. { ac_configure_args1=; unset ac_configure_args1;}
  2622. # When interrupted or exit'd, cleanup temporary files, and complete
  2623. # config.log. We remove comments because anyway the quotes in there
  2624. # would cause problems or look ugly.
  2625. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2626. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2627. trap 'exit_status=$?
  2628. # Save into config.log some information that might help in debugging.
  2629. {
  2630. echo
  2631. $as_echo "## ---------------- ##
  2632. ## Cache variables. ##
  2633. ## ---------------- ##"
  2634. echo
  2635. # The following way of writing the cache mishandles newlines in values,
  2636. (
  2637. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2638. eval ac_val=\$$ac_var
  2639. case $ac_val in #(
  2640. *${as_nl}*)
  2641. case $ac_var in #(
  2642. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2643. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2644. esac
  2645. case $ac_var in #(
  2646. _ | IFS | as_nl) ;; #(
  2647. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2648. *) { eval $ac_var=; unset $ac_var;} ;;
  2649. esac ;;
  2650. esac
  2651. done
  2652. (set) 2>&1 |
  2653. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2654. *${as_nl}ac_space=\ *)
  2655. sed -n \
  2656. "s/'\''/'\''\\\\'\'''\''/g;
  2657. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2658. ;; #(
  2659. *)
  2660. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2661. ;;
  2662. esac |
  2663. sort
  2664. )
  2665. echo
  2666. $as_echo "## ----------------- ##
  2667. ## Output variables. ##
  2668. ## ----------------- ##"
  2669. echo
  2670. for ac_var in $ac_subst_vars
  2671. do
  2672. eval ac_val=\$$ac_var
  2673. case $ac_val in
  2674. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2675. esac
  2676. $as_echo "$ac_var='\''$ac_val'\''"
  2677. done | sort
  2678. echo
  2679. if test -n "$ac_subst_files"; then
  2680. $as_echo "## ------------------- ##
  2681. ## File substitutions. ##
  2682. ## ------------------- ##"
  2683. echo
  2684. for ac_var in $ac_subst_files
  2685. do
  2686. eval ac_val=\$$ac_var
  2687. case $ac_val in
  2688. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2689. esac
  2690. $as_echo "$ac_var='\''$ac_val'\''"
  2691. done | sort
  2692. echo
  2693. fi
  2694. if test -s confdefs.h; then
  2695. $as_echo "## ----------- ##
  2696. ## confdefs.h. ##
  2697. ## ----------- ##"
  2698. echo
  2699. cat confdefs.h
  2700. echo
  2701. fi
  2702. test "$ac_signal" != 0 &&
  2703. $as_echo "$as_me: caught signal $ac_signal"
  2704. $as_echo "$as_me: exit $exit_status"
  2705. } >&5
  2706. rm -f core *.core core.conftest.* &&
  2707. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2708. exit $exit_status
  2709. ' 0
  2710. for ac_signal in 1 2 13 15; do
  2711. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2712. done
  2713. ac_signal=0
  2714. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2715. rm -f -r conftest* confdefs.h
  2716. $as_echo "/* confdefs.h */" > confdefs.h
  2717. # Predefined preprocessor variables.
  2718. cat >>confdefs.h <<_ACEOF
  2719. #define PACKAGE_NAME "$PACKAGE_NAME"
  2720. _ACEOF
  2721. cat >>confdefs.h <<_ACEOF
  2722. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2723. _ACEOF
  2724. cat >>confdefs.h <<_ACEOF
  2725. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2726. _ACEOF
  2727. cat >>confdefs.h <<_ACEOF
  2728. #define PACKAGE_STRING "$PACKAGE_STRING"
  2729. _ACEOF
  2730. cat >>confdefs.h <<_ACEOF
  2731. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2732. _ACEOF
  2733. cat >>confdefs.h <<_ACEOF
  2734. #define PACKAGE_URL "$PACKAGE_URL"
  2735. _ACEOF
  2736. # Let the site file select an alternate cache file if it wants to.
  2737. # Prefer an explicitly selected file to automatically selected ones.
  2738. ac_site_file1=NONE
  2739. ac_site_file2=NONE
  2740. if test -n "$CONFIG_SITE"; then
  2741. # We do not want a PATH search for config.site.
  2742. case $CONFIG_SITE in #((
  2743. -*) ac_site_file1=./$CONFIG_SITE;;
  2744. */*) ac_site_file1=$CONFIG_SITE;;
  2745. *) ac_site_file1=./$CONFIG_SITE;;
  2746. esac
  2747. elif test "x$prefix" != xNONE; then
  2748. ac_site_file1=$prefix/share/config.site
  2749. ac_site_file2=$prefix/etc/config.site
  2750. else
  2751. ac_site_file1=$ac_default_prefix/share/config.site
  2752. ac_site_file2=$ac_default_prefix/etc/config.site
  2753. fi
  2754. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2755. do
  2756. test "x$ac_site_file" = xNONE && continue
  2757. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2759. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2760. sed 's/^/| /' "$ac_site_file" >&5
  2761. . "$ac_site_file" \
  2762. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2763. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2764. as_fn_error $? "failed to load site script $ac_site_file
  2765. See \`config.log' for more details" "$LINENO" 5; }
  2766. fi
  2767. done
  2768. if test -r "$cache_file"; then
  2769. # Some versions of bash will fail to source /dev/null (special files
  2770. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2771. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2773. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2774. case $cache_file in
  2775. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2776. *) . "./$cache_file";;
  2777. esac
  2778. fi
  2779. else
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2781. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2782. >$cache_file
  2783. fi
  2784. # Check that the precious variables saved in the cache have kept the same
  2785. # value.
  2786. ac_cache_corrupted=false
  2787. for ac_var in $ac_precious_vars; do
  2788. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2789. eval ac_new_set=\$ac_env_${ac_var}_set
  2790. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2791. eval ac_new_val=\$ac_env_${ac_var}_value
  2792. case $ac_old_set,$ac_new_set in
  2793. set,)
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2795. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2796. ac_cache_corrupted=: ;;
  2797. ,set)
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2799. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2800. ac_cache_corrupted=: ;;
  2801. ,);;
  2802. *)
  2803. if test "x$ac_old_val" != "x$ac_new_val"; then
  2804. # differences in whitespace do not lead to failure.
  2805. ac_old_val_w=`echo x $ac_old_val`
  2806. ac_new_val_w=`echo x $ac_new_val`
  2807. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2809. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2810. ac_cache_corrupted=:
  2811. else
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2813. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2814. eval $ac_var=\$ac_old_val
  2815. fi
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2817. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2819. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2820. fi;;
  2821. esac
  2822. # Pass precious variables to config.status.
  2823. if test "$ac_new_set" = set; then
  2824. case $ac_new_val in
  2825. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2826. *) ac_arg=$ac_var=$ac_new_val ;;
  2827. esac
  2828. case " $ac_configure_args " in
  2829. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2830. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2831. esac
  2832. fi
  2833. done
  2834. if $ac_cache_corrupted; then
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2838. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2839. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2840. fi
  2841. ## -------------------- ##
  2842. ## Main body of script. ##
  2843. ## -------------------- ##
  2844. ac_ext=c
  2845. ac_cpp='$CPP $CPPFLAGS'
  2846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2849. # Specify directory where m4 macros may be found.
  2850. # Directory where AC_LIBOBJ replacement files are to be found.
  2851. # Directory where autotools helper scripts lives.
  2852. ac_aux_dir=
  2853. for ac_dir in ltdl/config "$srcdir"/ltdl/config; do
  2854. if test -f "$ac_dir/install-sh"; then
  2855. ac_aux_dir=$ac_dir
  2856. ac_install_sh="$ac_aux_dir/install-sh -c"
  2857. break
  2858. elif test -f "$ac_dir/install.sh"; then
  2859. ac_aux_dir=$ac_dir
  2860. ac_install_sh="$ac_aux_dir/install.sh -c"
  2861. break
  2862. elif test -f "$ac_dir/shtool"; then
  2863. ac_aux_dir=$ac_dir
  2864. ac_install_sh="$ac_aux_dir/shtool install -c"
  2865. break
  2866. fi
  2867. done
  2868. if test -z "$ac_aux_dir"; then
  2869. as_fn_error $? "cannot find install-sh, install.sh, or shtool in ltdl/config \"$srcdir\"/ltdl/config" "$LINENO" 5
  2870. fi
  2871. # These three variables are undocumented and unsupported,
  2872. # and are intended to be withdrawn in a future Autoconf release.
  2873. # They can cause serious problems if a builder's source tree is in a directory
  2874. # whose full name contains unusual characters.
  2875. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2876. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2877. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2878. #
  2879. # Save initial user-tunable values
  2880. #
  2881. LIBS_USER=$LIBS
  2882. for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
  2883. eval isset=\${$var+set}
  2884. if test "$isset" = 'set' ; then
  2885. eval val=$`echo $var`
  2886. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
  2887. fi
  2888. done
  2889. # Source file containing package/library versioning information.
  2890. . ${srcdir}/version.sh
  2891. echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
  2892. # Make sure we can run config.sub.
  2893. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2894. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2896. $as_echo_n "checking build system type... " >&6; }
  2897. if ${ac_cv_build+:} false; then :
  2898. $as_echo_n "(cached) " >&6
  2899. else
  2900. ac_build_alias=$build_alias
  2901. test "x$ac_build_alias" = x &&
  2902. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2903. test "x$ac_build_alias" = x &&
  2904. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2905. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2906. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2907. fi
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2909. $as_echo "$ac_cv_build" >&6; }
  2910. case $ac_cv_build in
  2911. *-*-*) ;;
  2912. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2913. esac
  2914. build=$ac_cv_build
  2915. ac_save_IFS=$IFS; IFS='-'
  2916. set x $ac_cv_build
  2917. shift
  2918. build_cpu=$1
  2919. build_vendor=$2
  2920. shift; shift
  2921. # Remember, the first character of IFS is used to create $*,
  2922. # except with old shells:
  2923. build_os=$*
  2924. IFS=$ac_save_IFS
  2925. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2927. $as_echo_n "checking host system type... " >&6; }
  2928. if ${ac_cv_host+:} false; then :
  2929. $as_echo_n "(cached) " >&6
  2930. else
  2931. if test "x$host_alias" = x; then
  2932. ac_cv_host=$ac_cv_build
  2933. else
  2934. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2935. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2936. fi
  2937. fi
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2939. $as_echo "$ac_cv_host" >&6; }
  2940. case $ac_cv_host in
  2941. *-*-*) ;;
  2942. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2943. esac
  2944. host=$ac_cv_host
  2945. ac_save_IFS=$IFS; IFS='-'
  2946. set x $ac_cv_host
  2947. shift
  2948. host_cpu=$1
  2949. host_vendor=$2
  2950. shift; shift
  2951. # Remember, the first character of IFS is used to create $*,
  2952. # except with old shells:
  2953. host_os=$*
  2954. IFS=$ac_save_IFS
  2955. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2956. MAGICK_TARGET_CPU=$host_cpu
  2957. MAGICK_TARGET_VENDOR=$host_vendor
  2958. MAGICK_TARGET_OS=$host_os
  2959. # Compute newest and oldest interface numbers.
  2960. MAGICK_LIB_INTERFACE_NEWEST=$MAGICK_LIBRARY_CURRENT
  2961. MAGICK_LIB_INTERFACE_OLDEST=`expr ${MAGICK_LIBRARY_CURRENT} - ${MAGICK_LIBRARY_AGE}`
  2962. # Substitute Magick library versioning
  2963. # Substitute Magick++ library versioning
  2964. # Substitute Magick Wand library versioning
  2965. # Substitute Mercurial branch tag
  2966. # Definition used to define MagickLibVersion in version.h
  2967. MAGICK_LIB_VERSION="0x"
  2968. if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
  2969. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
  2970. fi
  2971. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
  2972. if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
  2973. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
  2974. fi
  2975. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
  2976. if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
  2977. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
  2978. fi
  2979. MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
  2980. # Definition used to define MagickLibVersionText in version.h
  2981. MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
  2982. # Definition used to define MagickLibVersionNumber in version.h
  2983. MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
  2984. # Ensure that make can run correctly
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2986. $as_echo_n "checking whether build environment is sane... " >&6; }
  2987. # Just in case
  2988. sleep 1
  2989. echo timestamp > conftest.file
  2990. # Reject unsafe characters in $srcdir or the absolute working directory
  2991. # name. Accept space and tab only in the latter.
  2992. am_lf='
  2993. '
  2994. case `pwd` in
  2995. *[\\\"\#\$\&\'\`$am_lf]*)
  2996. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2997. esac
  2998. case $srcdir in
  2999. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3000. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3001. esac
  3002. # Do `set' in a subshell so we don't clobber the current shell's
  3003. # arguments. Must try -L first in case configure is actually a
  3004. # symlink; some systems play weird games with the mod time of symlinks
  3005. # (eg FreeBSD returns the mod time of the symlink's containing
  3006. # directory).
  3007. if (
  3008. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3009. if test "$*" = "X"; then
  3010. # -L didn't work.
  3011. set X `ls -t "$srcdir/configure" conftest.file`
  3012. fi
  3013. rm -f conftest.file
  3014. if test "$*" != "X $srcdir/configure conftest.file" \
  3015. && test "$*" != "X conftest.file $srcdir/configure"; then
  3016. # If neither matched, then we have a broken ls. This can happen
  3017. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3018. # broken ls alias from the environment. This has actually
  3019. # happened. Such a system could not be considered "sane".
  3020. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3021. alias in your environment" "$LINENO" 5
  3022. fi
  3023. test "$2" = conftest.file
  3024. )
  3025. then
  3026. # Ok.
  3027. :
  3028. else
  3029. as_fn_error $? "newly created file is older than distributed files!
  3030. Check your system clock" "$LINENO" 5
  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3033. $as_echo "yes" >&6; }
  3034. # Generate configure header.
  3035. ac_config_headers="$ac_config_headers magick/magick_config.h magick/magick_config_api.h"
  3036. am__api_version='1.11'
  3037. # Find a good install program. We prefer a C program (faster),
  3038. # so one script is as good as another. But avoid the broken or
  3039. # incompatible versions:
  3040. # SysV /etc/install, /usr/sbin/install
  3041. # SunOS /usr/etc/install
  3042. # IRIX /sbin/install
  3043. # AIX /bin/install
  3044. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3045. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3046. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3047. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3048. # OS/2's system install, which has a completely different semantic
  3049. # ./install, which can be erroneously created by make from ./install.sh.
  3050. # Reject install programs that cannot install multiple files.
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3052. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3053. if test -z "$INSTALL"; then
  3054. if ${ac_cv_path_install+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3058. for as_dir in $PATH
  3059. do
  3060. IFS=$as_save_IFS
  3061. test -z "$as_dir" && as_dir=.
  3062. # Account for people who put trailing slashes in PATH elements.
  3063. case $as_dir/ in #((
  3064. ./ | .// | /[cC]/* | \
  3065. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3066. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3067. /usr/ucb/* ) ;;
  3068. *)
  3069. # OSF1 and SCO ODT 3.0 have their own names for install.
  3070. # Don't use installbsd from OSF since it installs stuff as root
  3071. # by default.
  3072. for ac_prog in ginstall scoinst install; do
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3075. if test $ac_prog = install &&
  3076. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3077. # AIX install. It has an incompatible calling convention.
  3078. :
  3079. elif test $ac_prog = install &&
  3080. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3081. # program-specific install script used by HP pwplus--don't use.
  3082. :
  3083. else
  3084. rm -rf conftest.one conftest.two conftest.dir
  3085. echo one > conftest.one
  3086. echo two > conftest.two
  3087. mkdir conftest.dir
  3088. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3089. test -s conftest.one && test -s conftest.two &&
  3090. test -s conftest.dir/conftest.one &&
  3091. test -s conftest.dir/conftest.two
  3092. then
  3093. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3094. break 3
  3095. fi
  3096. fi
  3097. fi
  3098. done
  3099. done
  3100. ;;
  3101. esac
  3102. done
  3103. IFS=$as_save_IFS
  3104. rm -rf conftest.one conftest.two conftest.dir
  3105. fi
  3106. if test "${ac_cv_path_install+set}" = set; then
  3107. INSTALL=$ac_cv_path_install
  3108. else
  3109. # As a last resort, use the slow shell script. Don't cache a
  3110. # value for INSTALL within a source directory, because that will
  3111. # break other packages using the cache if that directory is
  3112. # removed, or if the value is a relative name.
  3113. INSTALL=$ac_install_sh
  3114. fi
  3115. fi
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3117. $as_echo "$INSTALL" >&6; }
  3118. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3119. # It thinks the first close brace ends the variable substitution.
  3120. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3121. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3122. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3123. test "$program_prefix" != NONE &&
  3124. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3125. # Use a double $ so make ignores it.
  3126. test "$program_suffix" != NONE &&
  3127. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3128. # Double any \ or $.
  3129. # By default was `s,x,x', remove it if useless.
  3130. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3131. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3132. # expand $ac_aux_dir to an absolute path
  3133. am_aux_dir=`cd $ac_aux_dir && pwd`
  3134. if test x"${MISSING+set}" != xset; then
  3135. case $am_aux_dir in
  3136. *\ * | *\ *)
  3137. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3138. *)
  3139. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3140. esac
  3141. fi
  3142. # Use eval to expand $SHELL
  3143. if eval "$MISSING --run true"; then
  3144. am_missing_run="$MISSING --run "
  3145. else
  3146. am_missing_run=
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3148. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3149. fi
  3150. if test x"${install_sh}" != xset; then
  3151. case $am_aux_dir in
  3152. *\ * | *\ *)
  3153. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3154. *)
  3155. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3156. esac
  3157. fi
  3158. # Installed binaries are usually stripped using `strip' when the user
  3159. # run `make install-strip'. However `strip' might not be the right
  3160. # tool to use in cross-compilation environments, therefore Automake
  3161. # will honor the `STRIP' environment variable to overrule this program.
  3162. if test "$cross_compiling" != no; then
  3163. if test -n "$ac_tool_prefix"; then
  3164. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3165. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3167. $as_echo_n "checking for $ac_word... " >&6; }
  3168. if ${ac_cv_prog_STRIP+:} false; then :
  3169. $as_echo_n "(cached) " >&6
  3170. else
  3171. if test -n "$STRIP"; then
  3172. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3173. else
  3174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3175. for as_dir in $PATH
  3176. do
  3177. IFS=$as_save_IFS
  3178. test -z "$as_dir" && as_dir=.
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3181. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3183. break 2
  3184. fi
  3185. done
  3186. done
  3187. IFS=$as_save_IFS
  3188. fi
  3189. fi
  3190. STRIP=$ac_cv_prog_STRIP
  3191. if test -n "$STRIP"; then
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3193. $as_echo "$STRIP" >&6; }
  3194. else
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3196. $as_echo "no" >&6; }
  3197. fi
  3198. fi
  3199. if test -z "$ac_cv_prog_STRIP"; then
  3200. ac_ct_STRIP=$STRIP
  3201. # Extract the first word of "strip", so it can be a program name with args.
  3202. set dummy strip; ac_word=$2
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3204. $as_echo_n "checking for $ac_word... " >&6; }
  3205. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3206. $as_echo_n "(cached) " >&6
  3207. else
  3208. if test -n "$ac_ct_STRIP"; then
  3209. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3210. else
  3211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3212. for as_dir in $PATH
  3213. do
  3214. IFS=$as_save_IFS
  3215. test -z "$as_dir" && as_dir=.
  3216. for ac_exec_ext in '' $ac_executable_extensions; do
  3217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3218. ac_cv_prog_ac_ct_STRIP="strip"
  3219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3220. break 2
  3221. fi
  3222. done
  3223. done
  3224. IFS=$as_save_IFS
  3225. fi
  3226. fi
  3227. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3228. if test -n "$ac_ct_STRIP"; then
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3230. $as_echo "$ac_ct_STRIP" >&6; }
  3231. else
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3233. $as_echo "no" >&6; }
  3234. fi
  3235. if test "x$ac_ct_STRIP" = x; then
  3236. STRIP=":"
  3237. else
  3238. case $cross_compiling:$ac_tool_warned in
  3239. yes:)
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3241. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3242. ac_tool_warned=yes ;;
  3243. esac
  3244. STRIP=$ac_ct_STRIP
  3245. fi
  3246. else
  3247. STRIP="$ac_cv_prog_STRIP"
  3248. fi
  3249. fi
  3250. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3252. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3253. if test -z "$MKDIR_P"; then
  3254. if ${ac_cv_path_mkdir+:} false; then :
  3255. $as_echo_n "(cached) " >&6
  3256. else
  3257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3258. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3259. do
  3260. IFS=$as_save_IFS
  3261. test -z "$as_dir" && as_dir=.
  3262. for ac_prog in mkdir gmkdir; do
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3265. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3266. 'mkdir (GNU coreutils) '* | \
  3267. 'mkdir (coreutils) '* | \
  3268. 'mkdir (fileutils) '4.1*)
  3269. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3270. break 3;;
  3271. esac
  3272. done
  3273. done
  3274. done
  3275. IFS=$as_save_IFS
  3276. fi
  3277. test -d ./--version && rmdir ./--version
  3278. if test "${ac_cv_path_mkdir+set}" = set; then
  3279. MKDIR_P="$ac_cv_path_mkdir -p"
  3280. else
  3281. # As a last resort, use the slow shell script. Don't cache a
  3282. # value for MKDIR_P within a source directory, because that will
  3283. # break other packages using the cache if that directory is
  3284. # removed, or if the value is a relative name.
  3285. MKDIR_P="$ac_install_sh -d"
  3286. fi
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3289. $as_echo "$MKDIR_P" >&6; }
  3290. mkdir_p="$MKDIR_P"
  3291. case $mkdir_p in
  3292. [\\/$]* | ?:[\\/]*) ;;
  3293. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3294. esac
  3295. for ac_prog in gawk mawk nawk awk
  3296. do
  3297. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3298. set dummy $ac_prog; ac_word=$2
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3300. $as_echo_n "checking for $ac_word... " >&6; }
  3301. if ${ac_cv_prog_AWK+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. if test -n "$AWK"; then
  3305. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3306. else
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_exec_ext in '' $ac_executable_extensions; do
  3313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3314. ac_cv_prog_AWK="$ac_prog"
  3315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3316. break 2
  3317. fi
  3318. done
  3319. done
  3320. IFS=$as_save_IFS
  3321. fi
  3322. fi
  3323. AWK=$ac_cv_prog_AWK
  3324. if test -n "$AWK"; then
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3326. $as_echo "$AWK" >&6; }
  3327. else
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3329. $as_echo "no" >&6; }
  3330. fi
  3331. test -n "$AWK" && break
  3332. done
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3334. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3335. set x ${MAKE-make}
  3336. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3337. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3338. $as_echo_n "(cached) " >&6
  3339. else
  3340. cat >conftest.make <<\_ACEOF
  3341. SHELL = /bin/sh
  3342. all:
  3343. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3344. _ACEOF
  3345. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3346. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3347. *@@@%%%=?*=@@@%%%*)
  3348. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3349. *)
  3350. eval ac_cv_prog_make_${ac_make}_set=no;;
  3351. esac
  3352. rm -f conftest.make
  3353. fi
  3354. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3356. $as_echo "yes" >&6; }
  3357. SET_MAKE=
  3358. else
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3360. $as_echo "no" >&6; }
  3361. SET_MAKE="MAKE=${MAKE-make}"
  3362. fi
  3363. rm -rf .tst 2>/dev/null
  3364. mkdir .tst 2>/dev/null
  3365. if test -d .tst; then
  3366. am__leading_dot=.
  3367. else
  3368. am__leading_dot=_
  3369. fi
  3370. rmdir .tst 2>/dev/null
  3371. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3372. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3373. # is not polluted with repeated "-I."
  3374. am__isrc=' -I$(srcdir)'
  3375. # test to see if srcdir already configured
  3376. if test -f $srcdir/config.status; then
  3377. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3378. fi
  3379. fi
  3380. # test whether we have cygpath
  3381. if test -z "$CYGPATH_W"; then
  3382. if (cygpath --version) >/dev/null 2>/dev/null; then
  3383. CYGPATH_W='cygpath -w'
  3384. else
  3385. CYGPATH_W=echo
  3386. fi
  3387. fi
  3388. # Define the identity of the package.
  3389. PACKAGE=$PACKAGE_NAME
  3390. VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
  3391. # Some tools Automake needs.
  3392. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3393. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3394. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3395. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3396. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3397. # We need awk for the "check" target. The system "awk" is bad on
  3398. # some platforms.
  3399. # Always define AMTAR for backward compatibility.
  3400. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3401. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3402. # Enable support for silent build rules
  3403. # Check whether --enable-silent-rules was given.
  3404. if test "${enable_silent_rules+set}" = set; then :
  3405. enableval=$enable_silent_rules;
  3406. fi
  3407. case $enable_silent_rules in
  3408. yes) AM_DEFAULT_VERBOSITY=0;;
  3409. no) AM_DEFAULT_VERBOSITY=1;;
  3410. *) AM_DEFAULT_VERBOSITY=1;;
  3411. esac
  3412. AM_BACKSLASH='\'
  3413. # Regenerate config.status if ChangeLog or version.sh is updated.
  3414. CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/ChangeLog $(top_srcdir)/version.sh'
  3415. PERLMAINCC=$CC
  3416. MAGICK_API_CFLAGS=''
  3417. MAGICK_API_CPPFLAGS=''
  3418. MAGICK_API_PC_CPPFLAGS=''
  3419. MAGICK_API_LDFLAGS=''
  3420. MAGICK_API_LIBS=''
  3421. #
  3422. # Standards compliance definitions
  3423. #
  3424. #AC_DEFINE(_XOPEN_SOURCE,500,[Required X Open interface level (500)])
  3425. #AC_DEFINE(_POSIX_C_SOURCE,199506L,[Required POSIX interface level (199506L)])
  3426. #AC_DEFINE(_ISOC99_SOURCE,1,[Code may make use of ISO C '99 features])
  3427. #AC_DEFINE(__EXTENSIONS__,1,[Enable all API extensions (for Solaris)])
  3428. #AC_DEFINE(_GNU_SOURCE,1,[Enable all API extensions (for GNU Linux libc)])
  3429. #AC_DEFINE(_NETBSD_SOURCE,1,[Enable all API extensions (for NetBSD)])
  3430. DEPDIR="${am__leading_dot}deps"
  3431. ac_config_commands="$ac_config_commands depfiles"
  3432. am_make=${MAKE-make}
  3433. cat > confinc << 'END'
  3434. am__doit:
  3435. @echo this is the am__doit target
  3436. .PHONY: am__doit
  3437. END
  3438. # If we don't find an include directive, just comment out the code.
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3440. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3441. am__include="#"
  3442. am__quote=
  3443. _am_result=none
  3444. # First try GNU make style include.
  3445. echo "include confinc" > confmf
  3446. # Ignore all kinds of additional output from `make'.
  3447. case `$am_make -s -f confmf 2> /dev/null` in #(
  3448. *the\ am__doit\ target*)
  3449. am__include=include
  3450. am__quote=
  3451. _am_result=GNU
  3452. ;;
  3453. esac
  3454. # Now try BSD make style include.
  3455. if test "$am__include" = "#"; then
  3456. echo '.include "confinc"' > confmf
  3457. case `$am_make -s -f confmf 2> /dev/null` in #(
  3458. *the\ am__doit\ target*)
  3459. am__include=.include
  3460. am__quote="\""
  3461. _am_result=BSD
  3462. ;;
  3463. esac
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3466. $as_echo "$_am_result" >&6; }
  3467. rm -f confinc confmf
  3468. # Check whether --enable-dependency-tracking was given.
  3469. if test "${enable_dependency_tracking+set}" = set; then :
  3470. enableval=$enable_dependency_tracking;
  3471. fi
  3472. if test "x$enable_dependency_tracking" != xno; then
  3473. am_depcomp="$ac_aux_dir/depcomp"
  3474. AMDEPBACKSLASH='\'
  3475. am__nodep='_no'
  3476. fi
  3477. if test "x$enable_dependency_tracking" != xno; then
  3478. AMDEP_TRUE=
  3479. AMDEP_FALSE='#'
  3480. else
  3481. AMDEP_TRUE='#'
  3482. AMDEP_FALSE=
  3483. fi
  3484. ac_ext=c
  3485. ac_cpp='$CPP $CPPFLAGS'
  3486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3489. if test -n "$ac_tool_prefix"; then
  3490. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3491. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if ${ac_cv_prog_CC+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3507. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. CC=$ac_cv_prog_CC
  3517. if test -n "$CC"; then
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3519. $as_echo "$CC" >&6; }
  3520. else
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. $as_echo "no" >&6; }
  3523. fi
  3524. fi
  3525. if test -z "$ac_cv_prog_CC"; then
  3526. ac_ct_CC=$CC
  3527. # Extract the first word of "gcc", so it can be a program name with args.
  3528. set dummy gcc; ac_word=$2
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3530. $as_echo_n "checking for $ac_word... " >&6; }
  3531. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if test -n "$ac_ct_CC"; then
  3535. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3536. else
  3537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3538. for as_dir in $PATH
  3539. do
  3540. IFS=$as_save_IFS
  3541. test -z "$as_dir" && as_dir=.
  3542. for ac_exec_ext in '' $ac_executable_extensions; do
  3543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3544. ac_cv_prog_ac_ct_CC="gcc"
  3545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3546. break 2
  3547. fi
  3548. done
  3549. done
  3550. IFS=$as_save_IFS
  3551. fi
  3552. fi
  3553. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3554. if test -n "$ac_ct_CC"; then
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3556. $as_echo "$ac_ct_CC" >&6; }
  3557. else
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3559. $as_echo "no" >&6; }
  3560. fi
  3561. if test "x$ac_ct_CC" = x; then
  3562. CC=""
  3563. else
  3564. case $cross_compiling:$ac_tool_warned in
  3565. yes:)
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3568. ac_tool_warned=yes ;;
  3569. esac
  3570. CC=$ac_ct_CC
  3571. fi
  3572. else
  3573. CC="$ac_cv_prog_CC"
  3574. fi
  3575. if test -z "$CC"; then
  3576. if test -n "$ac_tool_prefix"; then
  3577. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3578. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3580. $as_echo_n "checking for $ac_word... " >&6; }
  3581. if ${ac_cv_prog_CC+:} false; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. if test -n "$CC"; then
  3585. ac_cv_prog_CC="$CC" # Let the user override the test.
  3586. else
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3594. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi
  3602. fi
  3603. CC=$ac_cv_prog_CC
  3604. if test -n "$CC"; then
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3606. $as_echo "$CC" >&6; }
  3607. else
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. $as_echo "no" >&6; }
  3610. fi
  3611. fi
  3612. fi
  3613. if test -z "$CC"; then
  3614. # Extract the first word of "cc", so it can be a program name with args.
  3615. set dummy cc; ac_word=$2
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3617. $as_echo_n "checking for $ac_word... " >&6; }
  3618. if ${ac_cv_prog_CC+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -n "$CC"; then
  3622. ac_cv_prog_CC="$CC" # Let the user override the test.
  3623. else
  3624. ac_prog_rejected=no
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3632. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3633. ac_prog_rejected=yes
  3634. continue
  3635. fi
  3636. ac_cv_prog_CC="cc"
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3638. break 2
  3639. fi
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. if test $ac_prog_rejected = yes; then
  3644. # We found a bogon in the path, so make sure we never use it.
  3645. set dummy $ac_cv_prog_CC
  3646. shift
  3647. if test $# != 0; then
  3648. # We chose a different compiler from the bogus one.
  3649. # However, it has the same basename, so the bogon will be chosen
  3650. # first if we set CC to just the basename; use the full file name.
  3651. shift
  3652. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3653. fi
  3654. fi
  3655. fi
  3656. fi
  3657. CC=$ac_cv_prog_CC
  3658. if test -n "$CC"; then
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3660. $as_echo "$CC" >&6; }
  3661. else
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. $as_echo "no" >&6; }
  3664. fi
  3665. fi
  3666. if test -z "$CC"; then
  3667. if test -n "$ac_tool_prefix"; then
  3668. for ac_prog in cl.exe
  3669. do
  3670. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3671. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3673. $as_echo_n "checking for $ac_word... " >&6; }
  3674. if ${ac_cv_prog_CC+:} false; then :
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. if test -n "$CC"; then
  3678. ac_cv_prog_CC="$CC" # Let the user override the test.
  3679. else
  3680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3681. for as_dir in $PATH
  3682. do
  3683. IFS=$as_save_IFS
  3684. test -z "$as_dir" && as_dir=.
  3685. for ac_exec_ext in '' $ac_executable_extensions; do
  3686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3687. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3689. break 2
  3690. fi
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. fi
  3695. fi
  3696. CC=$ac_cv_prog_CC
  3697. if test -n "$CC"; then
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3699. $as_echo "$CC" >&6; }
  3700. else
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3702. $as_echo "no" >&6; }
  3703. fi
  3704. test -n "$CC" && break
  3705. done
  3706. fi
  3707. if test -z "$CC"; then
  3708. ac_ct_CC=$CC
  3709. for ac_prog in cl.exe
  3710. do
  3711. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3712. set dummy $ac_prog; ac_word=$2
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3714. $as_echo_n "checking for $ac_word... " >&6; }
  3715. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. if test -n "$ac_ct_CC"; then
  3719. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3720. else
  3721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3722. for as_dir in $PATH
  3723. do
  3724. IFS=$as_save_IFS
  3725. test -z "$as_dir" && as_dir=.
  3726. for ac_exec_ext in '' $ac_executable_extensions; do
  3727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3728. ac_cv_prog_ac_ct_CC="$ac_prog"
  3729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3730. break 2
  3731. fi
  3732. done
  3733. done
  3734. IFS=$as_save_IFS
  3735. fi
  3736. fi
  3737. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3738. if test -n "$ac_ct_CC"; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3740. $as_echo "$ac_ct_CC" >&6; }
  3741. else
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745. test -n "$ac_ct_CC" && break
  3746. done
  3747. if test "x$ac_ct_CC" = x; then
  3748. CC=""
  3749. else
  3750. case $cross_compiling:$ac_tool_warned in
  3751. yes:)
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3754. ac_tool_warned=yes ;;
  3755. esac
  3756. CC=$ac_ct_CC
  3757. fi
  3758. fi
  3759. fi
  3760. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3761. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3762. as_fn_error $? "no acceptable C compiler found in \$PATH
  3763. See \`config.log' for more details" "$LINENO" 5; }
  3764. # Provide some information about the compiler.
  3765. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3766. set X $ac_compile
  3767. ac_compiler=$2
  3768. for ac_option in --version -v -V -qversion; do
  3769. { { ac_try="$ac_compiler $ac_option >&5"
  3770. case "(($ac_try" in
  3771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3772. *) ac_try_echo=$ac_try;;
  3773. esac
  3774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3775. $as_echo "$ac_try_echo"; } >&5
  3776. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3777. ac_status=$?
  3778. if test -s conftest.err; then
  3779. sed '10a\
  3780. ... rest of stderr output deleted ...
  3781. 10q' conftest.err >conftest.er1
  3782. cat conftest.er1 >&5
  3783. fi
  3784. rm -f conftest.er1 conftest.err
  3785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3786. test $ac_status = 0; }
  3787. done
  3788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3789. /* end confdefs.h. */
  3790. int
  3791. main ()
  3792. {
  3793. ;
  3794. return 0;
  3795. }
  3796. _ACEOF
  3797. ac_clean_files_save=$ac_clean_files
  3798. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3799. # Try to create an executable without -o first, disregard a.out.
  3800. # It will help us diagnose broken compilers, and finding out an intuition
  3801. # of exeext.
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3803. $as_echo_n "checking whether the C compiler works... " >&6; }
  3804. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3805. # The possible output files:
  3806. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3807. ac_rmfiles=
  3808. for ac_file in $ac_files
  3809. do
  3810. case $ac_file in
  3811. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3812. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3813. esac
  3814. done
  3815. rm -f $ac_rmfiles
  3816. if { { ac_try="$ac_link_default"
  3817. case "(($ac_try" in
  3818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3819. *) ac_try_echo=$ac_try;;
  3820. esac
  3821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3822. $as_echo "$ac_try_echo"; } >&5
  3823. (eval "$ac_link_default") 2>&5
  3824. ac_status=$?
  3825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3826. test $ac_status = 0; }; then :
  3827. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3828. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3829. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3830. # so that the user can short-circuit this test for compilers unknown to
  3831. # Autoconf.
  3832. for ac_file in $ac_files ''
  3833. do
  3834. test -f "$ac_file" || continue
  3835. case $ac_file in
  3836. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3837. ;;
  3838. [ab].out )
  3839. # We found the default executable, but exeext='' is most
  3840. # certainly right.
  3841. break;;
  3842. *.* )
  3843. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3844. then :; else
  3845. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3846. fi
  3847. # We set ac_cv_exeext here because the later test for it is not
  3848. # safe: cross compilers may not add the suffix if given an `-o'
  3849. # argument, so we may need to know it at that point already.
  3850. # Even if this section looks crufty: it has the advantage of
  3851. # actually working.
  3852. break;;
  3853. * )
  3854. break;;
  3855. esac
  3856. done
  3857. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3858. else
  3859. ac_file=''
  3860. fi
  3861. if test -z "$ac_file"; then :
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3863. $as_echo "no" >&6; }
  3864. $as_echo "$as_me: failed program was:" >&5
  3865. sed 's/^/| /' conftest.$ac_ext >&5
  3866. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3867. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3868. as_fn_error 77 "C compiler cannot create executables
  3869. See \`config.log' for more details" "$LINENO" 5; }
  3870. else
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3872. $as_echo "yes" >&6; }
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3875. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3877. $as_echo "$ac_file" >&6; }
  3878. ac_exeext=$ac_cv_exeext
  3879. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3880. ac_clean_files=$ac_clean_files_save
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3882. $as_echo_n "checking for suffix of executables... " >&6; }
  3883. if { { ac_try="$ac_link"
  3884. case "(($ac_try" in
  3885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3886. *) ac_try_echo=$ac_try;;
  3887. esac
  3888. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3889. $as_echo "$ac_try_echo"; } >&5
  3890. (eval "$ac_link") 2>&5
  3891. ac_status=$?
  3892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3893. test $ac_status = 0; }; then :
  3894. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3895. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3896. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3897. # `rm'.
  3898. for ac_file in conftest.exe conftest conftest.*; do
  3899. test -f "$ac_file" || continue
  3900. case $ac_file in
  3901. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3902. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3903. break;;
  3904. * ) break;;
  3905. esac
  3906. done
  3907. else
  3908. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3909. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3910. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3911. See \`config.log' for more details" "$LINENO" 5; }
  3912. fi
  3913. rm -f conftest conftest$ac_cv_exeext
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3915. $as_echo "$ac_cv_exeext" >&6; }
  3916. rm -f conftest.$ac_ext
  3917. EXEEXT=$ac_cv_exeext
  3918. ac_exeext=$EXEEXT
  3919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end confdefs.h. */
  3921. #include <stdio.h>
  3922. int
  3923. main ()
  3924. {
  3925. FILE *f = fopen ("conftest.out", "w");
  3926. return ferror (f) || fclose (f) != 0;
  3927. ;
  3928. return 0;
  3929. }
  3930. _ACEOF
  3931. ac_clean_files="$ac_clean_files conftest.out"
  3932. # Check that the compiler produces executables we can run. If not, either
  3933. # the compiler is broken, or we cross compile.
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3935. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3936. if test "$cross_compiling" != yes; then
  3937. { { ac_try="$ac_link"
  3938. case "(($ac_try" in
  3939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3940. *) ac_try_echo=$ac_try;;
  3941. esac
  3942. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3943. $as_echo "$ac_try_echo"; } >&5
  3944. (eval "$ac_link") 2>&5
  3945. ac_status=$?
  3946. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3947. test $ac_status = 0; }
  3948. if { ac_try='./conftest$ac_cv_exeext'
  3949. { { case "(($ac_try" in
  3950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3951. *) ac_try_echo=$ac_try;;
  3952. esac
  3953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3954. $as_echo "$ac_try_echo"; } >&5
  3955. (eval "$ac_try") 2>&5
  3956. ac_status=$?
  3957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3958. test $ac_status = 0; }; }; then
  3959. cross_compiling=no
  3960. else
  3961. if test "$cross_compiling" = maybe; then
  3962. cross_compiling=yes
  3963. else
  3964. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3965. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3966. as_fn_error $? "cannot run C compiled programs.
  3967. If you meant to cross compile, use \`--host'.
  3968. See \`config.log' for more details" "$LINENO" 5; }
  3969. fi
  3970. fi
  3971. fi
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3973. $as_echo "$cross_compiling" >&6; }
  3974. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3975. ac_clean_files=$ac_clean_files_save
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3977. $as_echo_n "checking for suffix of object files... " >&6; }
  3978. if ${ac_cv_objext+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3982. /* end confdefs.h. */
  3983. int
  3984. main ()
  3985. {
  3986. ;
  3987. return 0;
  3988. }
  3989. _ACEOF
  3990. rm -f conftest.o conftest.obj
  3991. if { { ac_try="$ac_compile"
  3992. case "(($ac_try" in
  3993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3994. *) ac_try_echo=$ac_try;;
  3995. esac
  3996. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3997. $as_echo "$ac_try_echo"; } >&5
  3998. (eval "$ac_compile") 2>&5
  3999. ac_status=$?
  4000. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4001. test $ac_status = 0; }; then :
  4002. for ac_file in conftest.o conftest.obj conftest.*; do
  4003. test -f "$ac_file" || continue;
  4004. case $ac_file in
  4005. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4006. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4007. break;;
  4008. esac
  4009. done
  4010. else
  4011. $as_echo "$as_me: failed program was:" >&5
  4012. sed 's/^/| /' conftest.$ac_ext >&5
  4013. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4015. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4016. See \`config.log' for more details" "$LINENO" 5; }
  4017. fi
  4018. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4019. fi
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4021. $as_echo "$ac_cv_objext" >&6; }
  4022. OBJEXT=$ac_cv_objext
  4023. ac_objext=$OBJEXT
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4025. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4026. if ${ac_cv_c_compiler_gnu+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4030. /* end confdefs.h. */
  4031. int
  4032. main ()
  4033. {
  4034. #ifndef __GNUC__
  4035. choke me
  4036. #endif
  4037. ;
  4038. return 0;
  4039. }
  4040. _ACEOF
  4041. if ac_fn_c_try_compile "$LINENO"; then :
  4042. ac_compiler_gnu=yes
  4043. else
  4044. ac_compiler_gnu=no
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4047. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4050. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4051. if test $ac_compiler_gnu = yes; then
  4052. GCC=yes
  4053. else
  4054. GCC=
  4055. fi
  4056. ac_test_CFLAGS=${CFLAGS+set}
  4057. ac_save_CFLAGS=$CFLAGS
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4059. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4060. if ${ac_cv_prog_cc_g+:} false; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. ac_save_c_werror_flag=$ac_c_werror_flag
  4064. ac_c_werror_flag=yes
  4065. ac_cv_prog_cc_g=no
  4066. CFLAGS="-g"
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. int
  4070. main ()
  4071. {
  4072. ;
  4073. return 0;
  4074. }
  4075. _ACEOF
  4076. if ac_fn_c_try_compile "$LINENO"; then :
  4077. ac_cv_prog_cc_g=yes
  4078. else
  4079. CFLAGS=""
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. int
  4083. main ()
  4084. {
  4085. ;
  4086. return 0;
  4087. }
  4088. _ACEOF
  4089. if ac_fn_c_try_compile "$LINENO"; then :
  4090. else
  4091. ac_c_werror_flag=$ac_save_c_werror_flag
  4092. CFLAGS="-g"
  4093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4094. /* end confdefs.h. */
  4095. int
  4096. main ()
  4097. {
  4098. ;
  4099. return 0;
  4100. }
  4101. _ACEOF
  4102. if ac_fn_c_try_compile "$LINENO"; then :
  4103. ac_cv_prog_cc_g=yes
  4104. fi
  4105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4106. fi
  4107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4108. fi
  4109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4110. ac_c_werror_flag=$ac_save_c_werror_flag
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4113. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4114. if test "$ac_test_CFLAGS" = set; then
  4115. CFLAGS=$ac_save_CFLAGS
  4116. elif test $ac_cv_prog_cc_g = yes; then
  4117. if test "$GCC" = yes; then
  4118. CFLAGS="-g -O2"
  4119. else
  4120. CFLAGS="-g"
  4121. fi
  4122. else
  4123. if test "$GCC" = yes; then
  4124. CFLAGS="-O2"
  4125. else
  4126. CFLAGS=
  4127. fi
  4128. fi
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4130. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4131. if ${ac_cv_prog_cc_c89+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. ac_cv_prog_cc_c89=no
  4135. ac_save_CC=$CC
  4136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4137. /* end confdefs.h. */
  4138. #include <stdarg.h>
  4139. #include <stdio.h>
  4140. struct stat;
  4141. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4142. struct buf { int x; };
  4143. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4144. static char *e (p, i)
  4145. char **p;
  4146. int i;
  4147. {
  4148. return p[i];
  4149. }
  4150. static char *f (char * (*g) (char **, int), char **p, ...)
  4151. {
  4152. char *s;
  4153. va_list v;
  4154. va_start (v,p);
  4155. s = g (p, va_arg (v,int));
  4156. va_end (v);
  4157. return s;
  4158. }
  4159. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4160. function prototypes and stuff, but not '\xHH' hex character constants.
  4161. These don't provoke an error unfortunately, instead are silently treated
  4162. as 'x'. The following induces an error, until -std is added to get
  4163. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4164. array size at least. It's necessary to write '\x00'==0 to get something
  4165. that's true only with -std. */
  4166. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4167. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4168. inside strings and character constants. */
  4169. #define FOO(x) 'x'
  4170. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4171. int test (int i, double x);
  4172. struct s1 {int (*f) (int a);};
  4173. struct s2 {int (*f) (double a);};
  4174. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4175. int argc;
  4176. char **argv;
  4177. int
  4178. main ()
  4179. {
  4180. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4181. ;
  4182. return 0;
  4183. }
  4184. _ACEOF
  4185. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4186. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4187. do
  4188. CC="$ac_save_CC $ac_arg"
  4189. if ac_fn_c_try_compile "$LINENO"; then :
  4190. ac_cv_prog_cc_c89=$ac_arg
  4191. fi
  4192. rm -f core conftest.err conftest.$ac_objext
  4193. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4194. done
  4195. rm -f conftest.$ac_ext
  4196. CC=$ac_save_CC
  4197. fi
  4198. # AC_CACHE_VAL
  4199. case "x$ac_cv_prog_cc_c89" in
  4200. x)
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4202. $as_echo "none needed" >&6; } ;;
  4203. xno)
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4205. $as_echo "unsupported" >&6; } ;;
  4206. *)
  4207. CC="$CC $ac_cv_prog_cc_c89"
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4209. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4210. esac
  4211. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4212. fi
  4213. ac_ext=c
  4214. ac_cpp='$CPP $CPPFLAGS'
  4215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4218. depcc="$CC" am_compiler_list=
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4220. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4221. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4225. # We make a subdir and do the tests there. Otherwise we can end up
  4226. # making bogus files that we don't know about and never remove. For
  4227. # instance it was reported that on HP-UX the gcc test will end up
  4228. # making a dummy file named `D' -- because `-MD' means `put the output
  4229. # in D'.
  4230. rm -rf conftest.dir
  4231. mkdir conftest.dir
  4232. # Copy depcomp to subdir because otherwise we won't find it if we're
  4233. # using a relative directory.
  4234. cp "$am_depcomp" conftest.dir
  4235. cd conftest.dir
  4236. # We will build objects and dependencies in a subdirectory because
  4237. # it helps to detect inapplicable dependency modes. For instance
  4238. # both Tru64's cc and ICC support -MD to output dependencies as a
  4239. # side effect of compilation, but ICC will put the dependencies in
  4240. # the current directory while Tru64 will put them in the object
  4241. # directory.
  4242. mkdir sub
  4243. am_cv_CC_dependencies_compiler_type=none
  4244. if test "$am_compiler_list" = ""; then
  4245. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4246. fi
  4247. am__universal=false
  4248. case " $depcc " in #(
  4249. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4250. esac
  4251. for depmode in $am_compiler_list; do
  4252. # Setup a source with many dependencies, because some compilers
  4253. # like to wrap large dependency lists on column 80 (with \), and
  4254. # we should not choose a depcomp mode which is confused by this.
  4255. #
  4256. # We need to recreate these files for each test, as the compiler may
  4257. # overwrite some of them when testing with obscure command lines.
  4258. # This happens at least with the AIX C compiler.
  4259. : > sub/conftest.c
  4260. for i in 1 2 3 4 5 6; do
  4261. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4262. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4263. # Solaris 8's {/usr,}/bin/sh.
  4264. touch sub/conftst$i.h
  4265. done
  4266. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4267. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4268. # mode. It turns out that the SunPro C++ compiler does not properly
  4269. # handle `-M -o', and we need to detect this. Also, some Intel
  4270. # versions had trouble with output in subdirs
  4271. am__obj=sub/conftest.${OBJEXT-o}
  4272. am__minus_obj="-o $am__obj"
  4273. case $depmode in
  4274. gcc)
  4275. # This depmode causes a compiler race in universal mode.
  4276. test "$am__universal" = false || continue
  4277. ;;
  4278. nosideeffect)
  4279. # after this tag, mechanisms are not by side-effect, so they'll
  4280. # only be used when explicitly requested
  4281. if test "x$enable_dependency_tracking" = xyes; then
  4282. continue
  4283. else
  4284. break
  4285. fi
  4286. ;;
  4287. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4288. # This compiler won't grok `-c -o', but also, the minuso test has
  4289. # not run yet. These depmodes are late enough in the game, and
  4290. # so weak that their functioning should not be impacted.
  4291. am__obj=conftest.${OBJEXT-o}
  4292. am__minus_obj=
  4293. ;;
  4294. none) break ;;
  4295. esac
  4296. if depmode=$depmode \
  4297. source=sub/conftest.c object=$am__obj \
  4298. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4299. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4300. >/dev/null 2>conftest.err &&
  4301. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4302. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4303. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4304. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4305. # icc doesn't choke on unknown options, it will just issue warnings
  4306. # or remarks (even with -Werror). So we grep stderr for any message
  4307. # that says an option was ignored or not supported.
  4308. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4309. # icc: Command line warning: ignoring option '-M'; no argument required
  4310. # The diagnosis changed in icc 8.0:
  4311. # icc: Command line remark: option '-MP' not supported
  4312. if (grep 'ignoring option' conftest.err ||
  4313. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4314. am_cv_CC_dependencies_compiler_type=$depmode
  4315. break
  4316. fi
  4317. fi
  4318. done
  4319. cd ..
  4320. rm -rf conftest.dir
  4321. else
  4322. am_cv_CC_dependencies_compiler_type=none
  4323. fi
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4326. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4327. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4328. if
  4329. test "x$enable_dependency_tracking" != xno \
  4330. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4331. am__fastdepCC_TRUE=
  4332. am__fastdepCC_FALSE='#'
  4333. else
  4334. am__fastdepCC_TRUE='#'
  4335. am__fastdepCC_FALSE=
  4336. fi
  4337. ac_ext=c
  4338. ac_cpp='$CPP $CPPFLAGS'
  4339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4343. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4344. # On Suns, sometimes $CPP names a directory.
  4345. if test -n "$CPP" && test -d "$CPP"; then
  4346. CPP=
  4347. fi
  4348. if test -z "$CPP"; then
  4349. if ${ac_cv_prog_CPP+:} false; then :
  4350. $as_echo_n "(cached) " >&6
  4351. else
  4352. # Double quotes because CPP needs to be expanded
  4353. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4354. do
  4355. ac_preproc_ok=false
  4356. for ac_c_preproc_warn_flag in '' yes
  4357. do
  4358. # Use a header file that comes with gcc, so configuring glibc
  4359. # with a fresh cross-compiler works.
  4360. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4361. # <limits.h> exists even on freestanding compilers.
  4362. # On the NeXT, cc -E runs the code through the compiler's parser,
  4363. # not just through cpp. "Syntax error" is here to catch this case.
  4364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4365. /* end confdefs.h. */
  4366. #ifdef __STDC__
  4367. # include <limits.h>
  4368. #else
  4369. # include <assert.h>
  4370. #endif
  4371. Syntax error
  4372. _ACEOF
  4373. if ac_fn_c_try_cpp "$LINENO"; then :
  4374. else
  4375. # Broken: fails on valid input.
  4376. continue
  4377. fi
  4378. rm -f conftest.err conftest.i conftest.$ac_ext
  4379. # OK, works on sane cases. Now check whether nonexistent headers
  4380. # can be detected and how.
  4381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4382. /* end confdefs.h. */
  4383. #include <ac_nonexistent.h>
  4384. _ACEOF
  4385. if ac_fn_c_try_cpp "$LINENO"; then :
  4386. # Broken: success on invalid input.
  4387. continue
  4388. else
  4389. # Passes both tests.
  4390. ac_preproc_ok=:
  4391. break
  4392. fi
  4393. rm -f conftest.err conftest.i conftest.$ac_ext
  4394. done
  4395. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4396. rm -f conftest.i conftest.err conftest.$ac_ext
  4397. if $ac_preproc_ok; then :
  4398. break
  4399. fi
  4400. done
  4401. ac_cv_prog_CPP=$CPP
  4402. fi
  4403. CPP=$ac_cv_prog_CPP
  4404. else
  4405. ac_cv_prog_CPP=$CPP
  4406. fi
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4408. $as_echo "$CPP" >&6; }
  4409. ac_preproc_ok=false
  4410. for ac_c_preproc_warn_flag in '' yes
  4411. do
  4412. # Use a header file that comes with gcc, so configuring glibc
  4413. # with a fresh cross-compiler works.
  4414. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4415. # <limits.h> exists even on freestanding compilers.
  4416. # On the NeXT, cc -E runs the code through the compiler's parser,
  4417. # not just through cpp. "Syntax error" is here to catch this case.
  4418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4419. /* end confdefs.h. */
  4420. #ifdef __STDC__
  4421. # include <limits.h>
  4422. #else
  4423. # include <assert.h>
  4424. #endif
  4425. Syntax error
  4426. _ACEOF
  4427. if ac_fn_c_try_cpp "$LINENO"; then :
  4428. else
  4429. # Broken: fails on valid input.
  4430. continue
  4431. fi
  4432. rm -f conftest.err conftest.i conftest.$ac_ext
  4433. # OK, works on sane cases. Now check whether nonexistent headers
  4434. # can be detected and how.
  4435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4436. /* end confdefs.h. */
  4437. #include <ac_nonexistent.h>
  4438. _ACEOF
  4439. if ac_fn_c_try_cpp "$LINENO"; then :
  4440. # Broken: success on invalid input.
  4441. continue
  4442. else
  4443. # Passes both tests.
  4444. ac_preproc_ok=:
  4445. break
  4446. fi
  4447. rm -f conftest.err conftest.i conftest.$ac_ext
  4448. done
  4449. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4450. rm -f conftest.i conftest.err conftest.$ac_ext
  4451. if $ac_preproc_ok; then :
  4452. else
  4453. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4454. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4455. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4456. See \`config.log' for more details" "$LINENO" 5; }
  4457. fi
  4458. ac_ext=c
  4459. ac_cpp='$CPP $CPPFLAGS'
  4460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4464. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4465. if ${ac_cv_path_GREP+:} false; then :
  4466. $as_echo_n "(cached) " >&6
  4467. else
  4468. if test -z "$GREP"; then
  4469. ac_path_GREP_found=false
  4470. # Loop through the user's path and test for each of PROGNAME-LIST
  4471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4472. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4473. do
  4474. IFS=$as_save_IFS
  4475. test -z "$as_dir" && as_dir=.
  4476. for ac_prog in grep ggrep; do
  4477. for ac_exec_ext in '' $ac_executable_extensions; do
  4478. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4479. as_fn_executable_p "$ac_path_GREP" || continue
  4480. # Check for GNU ac_path_GREP and select it if it is found.
  4481. # Check for GNU $ac_path_GREP
  4482. case `"$ac_path_GREP" --version 2>&1` in
  4483. *GNU*)
  4484. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4485. *)
  4486. ac_count=0
  4487. $as_echo_n 0123456789 >"conftest.in"
  4488. while :
  4489. do
  4490. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4491. mv "conftest.tmp" "conftest.in"
  4492. cp "conftest.in" "conftest.nl"
  4493. $as_echo 'GREP' >> "conftest.nl"
  4494. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4495. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4496. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4497. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4498. # Best one so far, save it but keep looking for a better one
  4499. ac_cv_path_GREP="$ac_path_GREP"
  4500. ac_path_GREP_max=$ac_count
  4501. fi
  4502. # 10*(2^10) chars as input seems more than enough
  4503. test $ac_count -gt 10 && break
  4504. done
  4505. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4506. esac
  4507. $ac_path_GREP_found && break 3
  4508. done
  4509. done
  4510. done
  4511. IFS=$as_save_IFS
  4512. if test -z "$ac_cv_path_GREP"; then
  4513. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4514. fi
  4515. else
  4516. ac_cv_path_GREP=$GREP
  4517. fi
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4520. $as_echo "$ac_cv_path_GREP" >&6; }
  4521. GREP="$ac_cv_path_GREP"
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4523. $as_echo_n "checking for egrep... " >&6; }
  4524. if ${ac_cv_path_EGREP+:} false; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4528. then ac_cv_path_EGREP="$GREP -E"
  4529. else
  4530. if test -z "$EGREP"; then
  4531. ac_path_EGREP_found=false
  4532. # Loop through the user's path and test for each of PROGNAME-LIST
  4533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4534. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4535. do
  4536. IFS=$as_save_IFS
  4537. test -z "$as_dir" && as_dir=.
  4538. for ac_prog in egrep; do
  4539. for ac_exec_ext in '' $ac_executable_extensions; do
  4540. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4541. as_fn_executable_p "$ac_path_EGREP" || continue
  4542. # Check for GNU ac_path_EGREP and select it if it is found.
  4543. # Check for GNU $ac_path_EGREP
  4544. case `"$ac_path_EGREP" --version 2>&1` in
  4545. *GNU*)
  4546. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4547. *)
  4548. ac_count=0
  4549. $as_echo_n 0123456789 >"conftest.in"
  4550. while :
  4551. do
  4552. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4553. mv "conftest.tmp" "conftest.in"
  4554. cp "conftest.in" "conftest.nl"
  4555. $as_echo 'EGREP' >> "conftest.nl"
  4556. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4557. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4558. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4559. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4560. # Best one so far, save it but keep looking for a better one
  4561. ac_cv_path_EGREP="$ac_path_EGREP"
  4562. ac_path_EGREP_max=$ac_count
  4563. fi
  4564. # 10*(2^10) chars as input seems more than enough
  4565. test $ac_count -gt 10 && break
  4566. done
  4567. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4568. esac
  4569. $ac_path_EGREP_found && break 3
  4570. done
  4571. done
  4572. done
  4573. IFS=$as_save_IFS
  4574. if test -z "$ac_cv_path_EGREP"; then
  4575. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4576. fi
  4577. else
  4578. ac_cv_path_EGREP=$EGREP
  4579. fi
  4580. fi
  4581. fi
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4583. $as_echo "$ac_cv_path_EGREP" >&6; }
  4584. EGREP="$ac_cv_path_EGREP"
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4586. $as_echo_n "checking for ANSI C header files... " >&6; }
  4587. if ${ac_cv_header_stdc+:} false; then :
  4588. $as_echo_n "(cached) " >&6
  4589. else
  4590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4591. /* end confdefs.h. */
  4592. #include <stdlib.h>
  4593. #include <stdarg.h>
  4594. #include <string.h>
  4595. #include <float.h>
  4596. int
  4597. main ()
  4598. {
  4599. ;
  4600. return 0;
  4601. }
  4602. _ACEOF
  4603. if ac_fn_c_try_compile "$LINENO"; then :
  4604. ac_cv_header_stdc=yes
  4605. else
  4606. ac_cv_header_stdc=no
  4607. fi
  4608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4609. if test $ac_cv_header_stdc = yes; then
  4610. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4612. /* end confdefs.h. */
  4613. #include <string.h>
  4614. _ACEOF
  4615. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4616. $EGREP "memchr" >/dev/null 2>&1; then :
  4617. else
  4618. ac_cv_header_stdc=no
  4619. fi
  4620. rm -f conftest*
  4621. fi
  4622. if test $ac_cv_header_stdc = yes; then
  4623. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4625. /* end confdefs.h. */
  4626. #include <stdlib.h>
  4627. _ACEOF
  4628. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4629. $EGREP "free" >/dev/null 2>&1; then :
  4630. else
  4631. ac_cv_header_stdc=no
  4632. fi
  4633. rm -f conftest*
  4634. fi
  4635. if test $ac_cv_header_stdc = yes; then
  4636. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4637. if test "$cross_compiling" = yes; then :
  4638. :
  4639. else
  4640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4641. /* end confdefs.h. */
  4642. #include <ctype.h>
  4643. #include <stdlib.h>
  4644. #if ((' ' & 0x0FF) == 0x020)
  4645. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4646. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4647. #else
  4648. # define ISLOWER(c) \
  4649. (('a' <= (c) && (c) <= 'i') \
  4650. || ('j' <= (c) && (c) <= 'r') \
  4651. || ('s' <= (c) && (c) <= 'z'))
  4652. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4653. #endif
  4654. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4655. int
  4656. main ()
  4657. {
  4658. int i;
  4659. for (i = 0; i < 256; i++)
  4660. if (XOR (islower (i), ISLOWER (i))
  4661. || toupper (i) != TOUPPER (i))
  4662. return 2;
  4663. return 0;
  4664. }
  4665. _ACEOF
  4666. if ac_fn_c_try_run "$LINENO"; then :
  4667. else
  4668. ac_cv_header_stdc=no
  4669. fi
  4670. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4671. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4672. fi
  4673. fi
  4674. fi
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4676. $as_echo "$ac_cv_header_stdc" >&6; }
  4677. if test $ac_cv_header_stdc = yes; then
  4678. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4679. fi
  4680. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4681. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4682. inttypes.h stdint.h unistd.h
  4683. do :
  4684. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4685. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4686. "
  4687. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4688. cat >>confdefs.h <<_ACEOF
  4689. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4690. _ACEOF
  4691. fi
  4692. done
  4693. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4694. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4695. MINIX=yes
  4696. else
  4697. MINIX=
  4698. fi
  4699. if test "$MINIX" = yes; then
  4700. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4701. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4702. $as_echo "#define _MINIX 1" >>confdefs.h
  4703. fi
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4705. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4706. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4710. /* end confdefs.h. */
  4711. # define __EXTENSIONS__ 1
  4712. $ac_includes_default
  4713. int
  4714. main ()
  4715. {
  4716. ;
  4717. return 0;
  4718. }
  4719. _ACEOF
  4720. if ac_fn_c_try_compile "$LINENO"; then :
  4721. ac_cv_safe_to_define___extensions__=yes
  4722. else
  4723. ac_cv_safe_to_define___extensions__=no
  4724. fi
  4725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4726. fi
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4728. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4729. test $ac_cv_safe_to_define___extensions__ = yes &&
  4730. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4731. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4732. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4733. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4734. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4735. #
  4736. # Evaluate shell variable equivalents to Makefile directory variables
  4737. #
  4738. if test "x$prefix" = xNONE
  4739. then
  4740. prefix=$ac_default_prefix
  4741. fi
  4742. # Let make expand exec_prefix.
  4743. if test "x$exec_prefix" = xNONE
  4744. then
  4745. exec_prefix='${prefix}'
  4746. fi
  4747. #
  4748. eval "eval PREFIX_DIR=${prefix}"
  4749. eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
  4750. eval "eval BIN_DIR=$bindir"
  4751. eval "eval SBIN_DIR=$sbindir"
  4752. eval "eval LIBEXEC_DIR=$libexecdir"
  4753. eval "eval DATA_DIR=$datadir"
  4754. eval "eval DOC_DIR=$docdir"
  4755. eval "eval HTML_DIR=$htmldir"
  4756. eval "eval SYSCONF_DIR=$sysconfdir"
  4757. eval "eval SHAREDSTATE_DIR=$sharedstatedir"
  4758. eval "eval LOCALSTATE_DIR=$localstatedir"
  4759. eval "eval LIB_DIR=$libdir"
  4760. eval "eval INCLUDE_DIR=$includedir"
  4761. eval "eval OLDINCLUDE_DIR=$oldincludedir"
  4762. eval "eval INFO_DIR=$infodir"
  4763. eval "eval MAN_DIR=$mandir"
  4764. # Get full paths to source and build directories
  4765. srcdirfull="`cd $srcdir && pwd`"
  4766. builddir="`pwd`"
  4767. #
  4768. # Compute variables useful for running uninstalled software
  4769. #
  4770. MAGICK_CODER_MODULE_PATH="${builddir}/coders"
  4771. MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
  4772. MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
  4773. MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
  4774. DIRSEP=':'
  4775. case "${build_os}" in
  4776. mingw* )
  4777. MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
  4778. MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
  4779. MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
  4780. MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
  4781. ;;
  4782. esac
  4783. case "${host_os}" in
  4784. mingw* )
  4785. DIRSEP=';'
  4786. ;;
  4787. esac
  4788. # Check for programs
  4789. ac_ext=c
  4790. ac_cpp='$CPP $CPPFLAGS'
  4791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4794. if test -n "$ac_tool_prefix"; then
  4795. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4796. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4798. $as_echo_n "checking for $ac_word... " >&6; }
  4799. if ${ac_cv_prog_CC+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -n "$CC"; then
  4803. ac_cv_prog_CC="$CC" # Let the user override the test.
  4804. else
  4805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4806. for as_dir in $PATH
  4807. do
  4808. IFS=$as_save_IFS
  4809. test -z "$as_dir" && as_dir=.
  4810. for ac_exec_ext in '' $ac_executable_extensions; do
  4811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4812. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4814. break 2
  4815. fi
  4816. done
  4817. done
  4818. IFS=$as_save_IFS
  4819. fi
  4820. fi
  4821. CC=$ac_cv_prog_CC
  4822. if test -n "$CC"; then
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4824. $as_echo "$CC" >&6; }
  4825. else
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4827. $as_echo "no" >&6; }
  4828. fi
  4829. fi
  4830. if test -z "$ac_cv_prog_CC"; then
  4831. ac_ct_CC=$CC
  4832. # Extract the first word of "gcc", so it can be a program name with args.
  4833. set dummy gcc; ac_word=$2
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4835. $as_echo_n "checking for $ac_word... " >&6; }
  4836. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. if test -n "$ac_ct_CC"; then
  4840. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4841. else
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845. IFS=$as_save_IFS
  4846. test -z "$as_dir" && as_dir=.
  4847. for ac_exec_ext in '' $ac_executable_extensions; do
  4848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4849. ac_cv_prog_ac_ct_CC="gcc"
  4850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4851. break 2
  4852. fi
  4853. done
  4854. done
  4855. IFS=$as_save_IFS
  4856. fi
  4857. fi
  4858. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4859. if test -n "$ac_ct_CC"; then
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4861. $as_echo "$ac_ct_CC" >&6; }
  4862. else
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4864. $as_echo "no" >&6; }
  4865. fi
  4866. if test "x$ac_ct_CC" = x; then
  4867. CC=""
  4868. else
  4869. case $cross_compiling:$ac_tool_warned in
  4870. yes:)
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4873. ac_tool_warned=yes ;;
  4874. esac
  4875. CC=$ac_ct_CC
  4876. fi
  4877. else
  4878. CC="$ac_cv_prog_CC"
  4879. fi
  4880. if test -z "$CC"; then
  4881. if test -n "$ac_tool_prefix"; then
  4882. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4883. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4885. $as_echo_n "checking for $ac_word... " >&6; }
  4886. if ${ac_cv_prog_CC+:} false; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. if test -n "$CC"; then
  4890. ac_cv_prog_CC="$CC" # Let the user override the test.
  4891. else
  4892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4893. for as_dir in $PATH
  4894. do
  4895. IFS=$as_save_IFS
  4896. test -z "$as_dir" && as_dir=.
  4897. for ac_exec_ext in '' $ac_executable_extensions; do
  4898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4899. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4901. break 2
  4902. fi
  4903. done
  4904. done
  4905. IFS=$as_save_IFS
  4906. fi
  4907. fi
  4908. CC=$ac_cv_prog_CC
  4909. if test -n "$CC"; then
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4911. $as_echo "$CC" >&6; }
  4912. else
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4914. $as_echo "no" >&6; }
  4915. fi
  4916. fi
  4917. fi
  4918. if test -z "$CC"; then
  4919. # Extract the first word of "cc", so it can be a program name with args.
  4920. set dummy cc; ac_word=$2
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4922. $as_echo_n "checking for $ac_word... " >&6; }
  4923. if ${ac_cv_prog_CC+:} false; then :
  4924. $as_echo_n "(cached) " >&6
  4925. else
  4926. if test -n "$CC"; then
  4927. ac_cv_prog_CC="$CC" # Let the user override the test.
  4928. else
  4929. ac_prog_rejected=no
  4930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4931. for as_dir in $PATH
  4932. do
  4933. IFS=$as_save_IFS
  4934. test -z "$as_dir" && as_dir=.
  4935. for ac_exec_ext in '' $ac_executable_extensions; do
  4936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4937. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4938. ac_prog_rejected=yes
  4939. continue
  4940. fi
  4941. ac_cv_prog_CC="cc"
  4942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. if test $ac_prog_rejected = yes; then
  4949. # We found a bogon in the path, so make sure we never use it.
  4950. set dummy $ac_cv_prog_CC
  4951. shift
  4952. if test $# != 0; then
  4953. # We chose a different compiler from the bogus one.
  4954. # However, it has the same basename, so the bogon will be chosen
  4955. # first if we set CC to just the basename; use the full file name.
  4956. shift
  4957. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4958. fi
  4959. fi
  4960. fi
  4961. fi
  4962. CC=$ac_cv_prog_CC
  4963. if test -n "$CC"; then
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4965. $as_echo "$CC" >&6; }
  4966. else
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4968. $as_echo "no" >&6; }
  4969. fi
  4970. fi
  4971. if test -z "$CC"; then
  4972. if test -n "$ac_tool_prefix"; then
  4973. for ac_prog in cl.exe
  4974. do
  4975. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4976. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4978. $as_echo_n "checking for $ac_word... " >&6; }
  4979. if ${ac_cv_prog_CC+:} false; then :
  4980. $as_echo_n "(cached) " >&6
  4981. else
  4982. if test -n "$CC"; then
  4983. ac_cv_prog_CC="$CC" # Let the user override the test.
  4984. else
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_exec_ext in '' $ac_executable_extensions; do
  4991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4992. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4994. break 2
  4995. fi
  4996. done
  4997. done
  4998. IFS=$as_save_IFS
  4999. fi
  5000. fi
  5001. CC=$ac_cv_prog_CC
  5002. if test -n "$CC"; then
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5004. $as_echo "$CC" >&6; }
  5005. else
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5007. $as_echo "no" >&6; }
  5008. fi
  5009. test -n "$CC" && break
  5010. done
  5011. fi
  5012. if test -z "$CC"; then
  5013. ac_ct_CC=$CC
  5014. for ac_prog in cl.exe
  5015. do
  5016. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5017. set dummy $ac_prog; ac_word=$2
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5019. $as_echo_n "checking for $ac_word... " >&6; }
  5020. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. if test -n "$ac_ct_CC"; then
  5024. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5025. else
  5026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5027. for as_dir in $PATH
  5028. do
  5029. IFS=$as_save_IFS
  5030. test -z "$as_dir" && as_dir=.
  5031. for ac_exec_ext in '' $ac_executable_extensions; do
  5032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5033. ac_cv_prog_ac_ct_CC="$ac_prog"
  5034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5035. break 2
  5036. fi
  5037. done
  5038. done
  5039. IFS=$as_save_IFS
  5040. fi
  5041. fi
  5042. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5043. if test -n "$ac_ct_CC"; then
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5045. $as_echo "$ac_ct_CC" >&6; }
  5046. else
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5048. $as_echo "no" >&6; }
  5049. fi
  5050. test -n "$ac_ct_CC" && break
  5051. done
  5052. if test "x$ac_ct_CC" = x; then
  5053. CC=""
  5054. else
  5055. case $cross_compiling:$ac_tool_warned in
  5056. yes:)
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5058. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5059. ac_tool_warned=yes ;;
  5060. esac
  5061. CC=$ac_ct_CC
  5062. fi
  5063. fi
  5064. fi
  5065. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5066. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5067. as_fn_error $? "no acceptable C compiler found in \$PATH
  5068. See \`config.log' for more details" "$LINENO" 5; }
  5069. # Provide some information about the compiler.
  5070. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5071. set X $ac_compile
  5072. ac_compiler=$2
  5073. for ac_option in --version -v -V -qversion; do
  5074. { { ac_try="$ac_compiler $ac_option >&5"
  5075. case "(($ac_try" in
  5076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5077. *) ac_try_echo=$ac_try;;
  5078. esac
  5079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5080. $as_echo "$ac_try_echo"; } >&5
  5081. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5082. ac_status=$?
  5083. if test -s conftest.err; then
  5084. sed '10a\
  5085. ... rest of stderr output deleted ...
  5086. 10q' conftest.err >conftest.er1
  5087. cat conftest.er1 >&5
  5088. fi
  5089. rm -f conftest.er1 conftest.err
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5091. test $ac_status = 0; }
  5092. done
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5094. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5095. if ${ac_cv_c_compiler_gnu+:} false; then :
  5096. $as_echo_n "(cached) " >&6
  5097. else
  5098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5099. /* end confdefs.h. */
  5100. int
  5101. main ()
  5102. {
  5103. #ifndef __GNUC__
  5104. choke me
  5105. #endif
  5106. ;
  5107. return 0;
  5108. }
  5109. _ACEOF
  5110. if ac_fn_c_try_compile "$LINENO"; then :
  5111. ac_compiler_gnu=yes
  5112. else
  5113. ac_compiler_gnu=no
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5117. fi
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5119. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5120. if test $ac_compiler_gnu = yes; then
  5121. GCC=yes
  5122. else
  5123. GCC=
  5124. fi
  5125. ac_test_CFLAGS=${CFLAGS+set}
  5126. ac_save_CFLAGS=$CFLAGS
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5128. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5129. if ${ac_cv_prog_cc_g+:} false; then :
  5130. $as_echo_n "(cached) " >&6
  5131. else
  5132. ac_save_c_werror_flag=$ac_c_werror_flag
  5133. ac_c_werror_flag=yes
  5134. ac_cv_prog_cc_g=no
  5135. CFLAGS="-g"
  5136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5137. /* end confdefs.h. */
  5138. int
  5139. main ()
  5140. {
  5141. ;
  5142. return 0;
  5143. }
  5144. _ACEOF
  5145. if ac_fn_c_try_compile "$LINENO"; then :
  5146. ac_cv_prog_cc_g=yes
  5147. else
  5148. CFLAGS=""
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. int
  5152. main ()
  5153. {
  5154. ;
  5155. return 0;
  5156. }
  5157. _ACEOF
  5158. if ac_fn_c_try_compile "$LINENO"; then :
  5159. else
  5160. ac_c_werror_flag=$ac_save_c_werror_flag
  5161. CFLAGS="-g"
  5162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5163. /* end confdefs.h. */
  5164. int
  5165. main ()
  5166. {
  5167. ;
  5168. return 0;
  5169. }
  5170. _ACEOF
  5171. if ac_fn_c_try_compile "$LINENO"; then :
  5172. ac_cv_prog_cc_g=yes
  5173. fi
  5174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5175. fi
  5176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5177. fi
  5178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5179. ac_c_werror_flag=$ac_save_c_werror_flag
  5180. fi
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5182. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5183. if test "$ac_test_CFLAGS" = set; then
  5184. CFLAGS=$ac_save_CFLAGS
  5185. elif test $ac_cv_prog_cc_g = yes; then
  5186. if test "$GCC" = yes; then
  5187. CFLAGS="-g -O2"
  5188. else
  5189. CFLAGS="-g"
  5190. fi
  5191. else
  5192. if test "$GCC" = yes; then
  5193. CFLAGS="-O2"
  5194. else
  5195. CFLAGS=
  5196. fi
  5197. fi
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5199. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5200. if ${ac_cv_prog_cc_c89+:} false; then :
  5201. $as_echo_n "(cached) " >&6
  5202. else
  5203. ac_cv_prog_cc_c89=no
  5204. ac_save_CC=$CC
  5205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5206. /* end confdefs.h. */
  5207. #include <stdarg.h>
  5208. #include <stdio.h>
  5209. struct stat;
  5210. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5211. struct buf { int x; };
  5212. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5213. static char *e (p, i)
  5214. char **p;
  5215. int i;
  5216. {
  5217. return p[i];
  5218. }
  5219. static char *f (char * (*g) (char **, int), char **p, ...)
  5220. {
  5221. char *s;
  5222. va_list v;
  5223. va_start (v,p);
  5224. s = g (p, va_arg (v,int));
  5225. va_end (v);
  5226. return s;
  5227. }
  5228. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5229. function prototypes and stuff, but not '\xHH' hex character constants.
  5230. These don't provoke an error unfortunately, instead are silently treated
  5231. as 'x'. The following induces an error, until -std is added to get
  5232. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5233. array size at least. It's necessary to write '\x00'==0 to get something
  5234. that's true only with -std. */
  5235. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5236. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5237. inside strings and character constants. */
  5238. #define FOO(x) 'x'
  5239. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5240. int test (int i, double x);
  5241. struct s1 {int (*f) (int a);};
  5242. struct s2 {int (*f) (double a);};
  5243. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5244. int argc;
  5245. char **argv;
  5246. int
  5247. main ()
  5248. {
  5249. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5250. ;
  5251. return 0;
  5252. }
  5253. _ACEOF
  5254. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5255. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5256. do
  5257. CC="$ac_save_CC $ac_arg"
  5258. if ac_fn_c_try_compile "$LINENO"; then :
  5259. ac_cv_prog_cc_c89=$ac_arg
  5260. fi
  5261. rm -f core conftest.err conftest.$ac_objext
  5262. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5263. done
  5264. rm -f conftest.$ac_ext
  5265. CC=$ac_save_CC
  5266. fi
  5267. # AC_CACHE_VAL
  5268. case "x$ac_cv_prog_cc_c89" in
  5269. x)
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5271. $as_echo "none needed" >&6; } ;;
  5272. xno)
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5274. $as_echo "unsupported" >&6; } ;;
  5275. *)
  5276. CC="$CC $ac_cv_prog_cc_c89"
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5278. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5279. esac
  5280. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5281. fi
  5282. ac_ext=c
  5283. ac_cpp='$CPP $CPPFLAGS'
  5284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5287. depcc="$CC" am_compiler_list=
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5289. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5290. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5291. $as_echo_n "(cached) " >&6
  5292. else
  5293. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5294. # We make a subdir and do the tests there. Otherwise we can end up
  5295. # making bogus files that we don't know about and never remove. For
  5296. # instance it was reported that on HP-UX the gcc test will end up
  5297. # making a dummy file named `D' -- because `-MD' means `put the output
  5298. # in D'.
  5299. rm -rf conftest.dir
  5300. mkdir conftest.dir
  5301. # Copy depcomp to subdir because otherwise we won't find it if we're
  5302. # using a relative directory.
  5303. cp "$am_depcomp" conftest.dir
  5304. cd conftest.dir
  5305. # We will build objects and dependencies in a subdirectory because
  5306. # it helps to detect inapplicable dependency modes. For instance
  5307. # both Tru64's cc and ICC support -MD to output dependencies as a
  5308. # side effect of compilation, but ICC will put the dependencies in
  5309. # the current directory while Tru64 will put them in the object
  5310. # directory.
  5311. mkdir sub
  5312. am_cv_CC_dependencies_compiler_type=none
  5313. if test "$am_compiler_list" = ""; then
  5314. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5315. fi
  5316. am__universal=false
  5317. case " $depcc " in #(
  5318. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5319. esac
  5320. for depmode in $am_compiler_list; do
  5321. # Setup a source with many dependencies, because some compilers
  5322. # like to wrap large dependency lists on column 80 (with \), and
  5323. # we should not choose a depcomp mode which is confused by this.
  5324. #
  5325. # We need to recreate these files for each test, as the compiler may
  5326. # overwrite some of them when testing with obscure command lines.
  5327. # This happens at least with the AIX C compiler.
  5328. : > sub/conftest.c
  5329. for i in 1 2 3 4 5 6; do
  5330. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5331. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5332. # Solaris 8's {/usr,}/bin/sh.
  5333. touch sub/conftst$i.h
  5334. done
  5335. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5336. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5337. # mode. It turns out that the SunPro C++ compiler does not properly
  5338. # handle `-M -o', and we need to detect this. Also, some Intel
  5339. # versions had trouble with output in subdirs
  5340. am__obj=sub/conftest.${OBJEXT-o}
  5341. am__minus_obj="-o $am__obj"
  5342. case $depmode in
  5343. gcc)
  5344. # This depmode causes a compiler race in universal mode.
  5345. test "$am__universal" = false || continue
  5346. ;;
  5347. nosideeffect)
  5348. # after this tag, mechanisms are not by side-effect, so they'll
  5349. # only be used when explicitly requested
  5350. if test "x$enable_dependency_tracking" = xyes; then
  5351. continue
  5352. else
  5353. break
  5354. fi
  5355. ;;
  5356. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5357. # This compiler won't grok `-c -o', but also, the minuso test has
  5358. # not run yet. These depmodes are late enough in the game, and
  5359. # so weak that their functioning should not be impacted.
  5360. am__obj=conftest.${OBJEXT-o}
  5361. am__minus_obj=
  5362. ;;
  5363. none) break ;;
  5364. esac
  5365. if depmode=$depmode \
  5366. source=sub/conftest.c object=$am__obj \
  5367. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5368. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5369. >/dev/null 2>conftest.err &&
  5370. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5371. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5372. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5373. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5374. # icc doesn't choke on unknown options, it will just issue warnings
  5375. # or remarks (even with -Werror). So we grep stderr for any message
  5376. # that says an option was ignored or not supported.
  5377. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5378. # icc: Command line warning: ignoring option '-M'; no argument required
  5379. # The diagnosis changed in icc 8.0:
  5380. # icc: Command line remark: option '-MP' not supported
  5381. if (grep 'ignoring option' conftest.err ||
  5382. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5383. am_cv_CC_dependencies_compiler_type=$depmode
  5384. break
  5385. fi
  5386. fi
  5387. done
  5388. cd ..
  5389. rm -rf conftest.dir
  5390. else
  5391. am_cv_CC_dependencies_compiler_type=none
  5392. fi
  5393. fi
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5395. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5396. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5397. if
  5398. test "x$enable_dependency_tracking" != xno \
  5399. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5400. am__fastdepCC_TRUE=
  5401. am__fastdepCC_FALSE='#'
  5402. else
  5403. am__fastdepCC_TRUE='#'
  5404. am__fastdepCC_FALSE=
  5405. fi
  5406. case $ac_cv_prog_cc_stdc in #(
  5407. no) :
  5408. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  5409. *) :
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  5411. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  5412. if ${ac_cv_prog_cc_c99+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. ac_cv_prog_cc_c99=no
  5416. ac_save_CC=$CC
  5417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5418. /* end confdefs.h. */
  5419. #include <stdarg.h>
  5420. #include <stdbool.h>
  5421. #include <stdlib.h>
  5422. #include <wchar.h>
  5423. #include <stdio.h>
  5424. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  5425. #define debug(...) fprintf (stderr, __VA_ARGS__)
  5426. #define showlist(...) puts (#__VA_ARGS__)
  5427. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  5428. static void
  5429. test_varargs_macros (void)
  5430. {
  5431. int x = 1234;
  5432. int y = 5678;
  5433. debug ("Flag");
  5434. debug ("X = %d\n", x);
  5435. showlist (The first, second, and third items.);
  5436. report (x>y, "x is %d but y is %d", x, y);
  5437. }
  5438. // Check long long types.
  5439. #define BIG64 18446744073709551615ull
  5440. #define BIG32 4294967295ul
  5441. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  5442. #if !BIG_OK
  5443. your preprocessor is broken;
  5444. #endif
  5445. #if BIG_OK
  5446. #else
  5447. your preprocessor is broken;
  5448. #endif
  5449. static long long int bignum = -9223372036854775807LL;
  5450. static unsigned long long int ubignum = BIG64;
  5451. struct incomplete_array
  5452. {
  5453. int datasize;
  5454. double data[];
  5455. };
  5456. struct named_init {
  5457. int number;
  5458. const wchar_t *name;
  5459. double average;
  5460. };
  5461. typedef const char *ccp;
  5462. static inline int
  5463. test_restrict (ccp restrict text)
  5464. {
  5465. // See if C++-style comments work.
  5466. // Iterate through items via the restricted pointer.
  5467. // Also check for declarations in for loops.
  5468. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  5469. continue;
  5470. return 0;
  5471. }
  5472. // Check varargs and va_copy.
  5473. static void
  5474. test_varargs (const char *format, ...)
  5475. {
  5476. va_list args;
  5477. va_start (args, format);
  5478. va_list args_copy;
  5479. va_copy (args_copy, args);
  5480. const char *str;
  5481. int number;
  5482. float fnumber;
  5483. while (*format)
  5484. {
  5485. switch (*format++)
  5486. {
  5487. case 's': // string
  5488. str = va_arg (args_copy, const char *);
  5489. break;
  5490. case 'd': // int
  5491. number = va_arg (args_copy, int);
  5492. break;
  5493. case 'f': // float
  5494. fnumber = va_arg (args_copy, double);
  5495. break;
  5496. default:
  5497. break;
  5498. }
  5499. }
  5500. va_end (args_copy);
  5501. va_end (args);
  5502. }
  5503. int
  5504. main ()
  5505. {
  5506. // Check bool.
  5507. _Bool success = false;
  5508. // Check restrict.
  5509. if (test_restrict ("String literal") == 0)
  5510. success = true;
  5511. char *restrict newvar = "Another string";
  5512. // Check varargs.
  5513. test_varargs ("s, d' f .", "string", 65, 34.234);
  5514. test_varargs_macros ();
  5515. // Check flexible array members.
  5516. struct incomplete_array *ia =
  5517. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  5518. ia->datasize = 10;
  5519. for (int i = 0; i < ia->datasize; ++i)
  5520. ia->data[i] = i * 1.234;
  5521. // Check named initializers.
  5522. struct named_init ni = {
  5523. .number = 34,
  5524. .name = L"Test wide string",
  5525. .average = 543.34343,
  5526. };
  5527. ni.number = 58;
  5528. int dynamic_array[ni.number];
  5529. dynamic_array[ni.number - 1] = 543;
  5530. // work around unused variable warnings
  5531. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  5532. || dynamic_array[ni.number - 1] != 543);
  5533. ;
  5534. return 0;
  5535. }
  5536. _ACEOF
  5537. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  5538. do
  5539. CC="$ac_save_CC $ac_arg"
  5540. if ac_fn_c_try_compile "$LINENO"; then :
  5541. ac_cv_prog_cc_c99=$ac_arg
  5542. fi
  5543. rm -f core conftest.err conftest.$ac_objext
  5544. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5545. done
  5546. rm -f conftest.$ac_ext
  5547. CC=$ac_save_CC
  5548. fi
  5549. # AC_CACHE_VAL
  5550. case "x$ac_cv_prog_cc_c99" in
  5551. x)
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5553. $as_echo "none needed" >&6; } ;;
  5554. xno)
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5556. $as_echo "unsupported" >&6; } ;;
  5557. *)
  5558. CC="$CC $ac_cv_prog_cc_c99"
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5560. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  5561. esac
  5562. if test "x$ac_cv_prog_cc_c99" != xno; then :
  5563. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5564. else
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5566. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5567. if ${ac_cv_prog_cc_c89+:} false; then :
  5568. $as_echo_n "(cached) " >&6
  5569. else
  5570. ac_cv_prog_cc_c89=no
  5571. ac_save_CC=$CC
  5572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5573. /* end confdefs.h. */
  5574. #include <stdarg.h>
  5575. #include <stdio.h>
  5576. struct stat;
  5577. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5578. struct buf { int x; };
  5579. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5580. static char *e (p, i)
  5581. char **p;
  5582. int i;
  5583. {
  5584. return p[i];
  5585. }
  5586. static char *f (char * (*g) (char **, int), char **p, ...)
  5587. {
  5588. char *s;
  5589. va_list v;
  5590. va_start (v,p);
  5591. s = g (p, va_arg (v,int));
  5592. va_end (v);
  5593. return s;
  5594. }
  5595. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5596. function prototypes and stuff, but not '\xHH' hex character constants.
  5597. These don't provoke an error unfortunately, instead are silently treated
  5598. as 'x'. The following induces an error, until -std is added to get
  5599. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5600. array size at least. It's necessary to write '\x00'==0 to get something
  5601. that's true only with -std. */
  5602. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5603. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5604. inside strings and character constants. */
  5605. #define FOO(x) 'x'
  5606. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5607. int test (int i, double x);
  5608. struct s1 {int (*f) (int a);};
  5609. struct s2 {int (*f) (double a);};
  5610. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5611. int argc;
  5612. char **argv;
  5613. int
  5614. main ()
  5615. {
  5616. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5617. ;
  5618. return 0;
  5619. }
  5620. _ACEOF
  5621. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5622. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5623. do
  5624. CC="$ac_save_CC $ac_arg"
  5625. if ac_fn_c_try_compile "$LINENO"; then :
  5626. ac_cv_prog_cc_c89=$ac_arg
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext
  5629. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5630. done
  5631. rm -f conftest.$ac_ext
  5632. CC=$ac_save_CC
  5633. fi
  5634. # AC_CACHE_VAL
  5635. case "x$ac_cv_prog_cc_c89" in
  5636. x)
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5638. $as_echo "none needed" >&6; } ;;
  5639. xno)
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5641. $as_echo "unsupported" >&6; } ;;
  5642. *)
  5643. CC="$CC $ac_cv_prog_cc_c89"
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5645. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5646. esac
  5647. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5648. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5649. else
  5650. ac_cv_prog_cc_stdc=no
  5651. fi
  5652. fi
  5653. ;;
  5654. esac
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  5656. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  5657. if ${ac_cv_prog_cc_stdc+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. fi
  5660. case $ac_cv_prog_cc_stdc in #(
  5661. no) :
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5663. $as_echo "unsupported" >&6; } ;; #(
  5664. '') :
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5666. $as_echo "none needed" >&6; } ;; #(
  5667. *) :
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  5669. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  5670. esac
  5671. ac_ext=c
  5672. ac_cpp='$CPP $CPPFLAGS'
  5673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5677. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5678. # On Suns, sometimes $CPP names a directory.
  5679. if test -n "$CPP" && test -d "$CPP"; then
  5680. CPP=
  5681. fi
  5682. if test -z "$CPP"; then
  5683. if ${ac_cv_prog_CPP+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. # Double quotes because CPP needs to be expanded
  5687. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5688. do
  5689. ac_preproc_ok=false
  5690. for ac_c_preproc_warn_flag in '' yes
  5691. do
  5692. # Use a header file that comes with gcc, so configuring glibc
  5693. # with a fresh cross-compiler works.
  5694. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5695. # <limits.h> exists even on freestanding compilers.
  5696. # On the NeXT, cc -E runs the code through the compiler's parser,
  5697. # not just through cpp. "Syntax error" is here to catch this case.
  5698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5699. /* end confdefs.h. */
  5700. #ifdef __STDC__
  5701. # include <limits.h>
  5702. #else
  5703. # include <assert.h>
  5704. #endif
  5705. Syntax error
  5706. _ACEOF
  5707. if ac_fn_c_try_cpp "$LINENO"; then :
  5708. else
  5709. # Broken: fails on valid input.
  5710. continue
  5711. fi
  5712. rm -f conftest.err conftest.i conftest.$ac_ext
  5713. # OK, works on sane cases. Now check whether nonexistent headers
  5714. # can be detected and how.
  5715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5716. /* end confdefs.h. */
  5717. #include <ac_nonexistent.h>
  5718. _ACEOF
  5719. if ac_fn_c_try_cpp "$LINENO"; then :
  5720. # Broken: success on invalid input.
  5721. continue
  5722. else
  5723. # Passes both tests.
  5724. ac_preproc_ok=:
  5725. break
  5726. fi
  5727. rm -f conftest.err conftest.i conftest.$ac_ext
  5728. done
  5729. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5730. rm -f conftest.i conftest.err conftest.$ac_ext
  5731. if $ac_preproc_ok; then :
  5732. break
  5733. fi
  5734. done
  5735. ac_cv_prog_CPP=$CPP
  5736. fi
  5737. CPP=$ac_cv_prog_CPP
  5738. else
  5739. ac_cv_prog_CPP=$CPP
  5740. fi
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5742. $as_echo "$CPP" >&6; }
  5743. ac_preproc_ok=false
  5744. for ac_c_preproc_warn_flag in '' yes
  5745. do
  5746. # Use a header file that comes with gcc, so configuring glibc
  5747. # with a fresh cross-compiler works.
  5748. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5749. # <limits.h> exists even on freestanding compilers.
  5750. # On the NeXT, cc -E runs the code through the compiler's parser,
  5751. # not just through cpp. "Syntax error" is here to catch this case.
  5752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5753. /* end confdefs.h. */
  5754. #ifdef __STDC__
  5755. # include <limits.h>
  5756. #else
  5757. # include <assert.h>
  5758. #endif
  5759. Syntax error
  5760. _ACEOF
  5761. if ac_fn_c_try_cpp "$LINENO"; then :
  5762. else
  5763. # Broken: fails on valid input.
  5764. continue
  5765. fi
  5766. rm -f conftest.err conftest.i conftest.$ac_ext
  5767. # OK, works on sane cases. Now check whether nonexistent headers
  5768. # can be detected and how.
  5769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5770. /* end confdefs.h. */
  5771. #include <ac_nonexistent.h>
  5772. _ACEOF
  5773. if ac_fn_c_try_cpp "$LINENO"; then :
  5774. # Broken: success on invalid input.
  5775. continue
  5776. else
  5777. # Passes both tests.
  5778. ac_preproc_ok=:
  5779. break
  5780. fi
  5781. rm -f conftest.err conftest.i conftest.$ac_ext
  5782. done
  5783. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5784. rm -f conftest.i conftest.err conftest.$ac_ext
  5785. if $ac_preproc_ok; then :
  5786. else
  5787. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5788. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5789. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5790. See \`config.log' for more details" "$LINENO" 5; }
  5791. fi
  5792. ac_ext=c
  5793. ac_cpp='$CPP $CPPFLAGS'
  5794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5798. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5799. if ${ac_cv_path_SED+:} false; then :
  5800. $as_echo_n "(cached) " >&6
  5801. else
  5802. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5803. for ac_i in 1 2 3 4 5 6 7; do
  5804. ac_script="$ac_script$as_nl$ac_script"
  5805. done
  5806. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5807. { ac_script=; unset ac_script;}
  5808. if test -z "$SED"; then
  5809. ac_path_SED_found=false
  5810. # Loop through the user's path and test for each of PROGNAME-LIST
  5811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5812. for as_dir in $PATH
  5813. do
  5814. IFS=$as_save_IFS
  5815. test -z "$as_dir" && as_dir=.
  5816. for ac_prog in sed gsed; do
  5817. for ac_exec_ext in '' $ac_executable_extensions; do
  5818. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5819. as_fn_executable_p "$ac_path_SED" || continue
  5820. # Check for GNU ac_path_SED and select it if it is found.
  5821. # Check for GNU $ac_path_SED
  5822. case `"$ac_path_SED" --version 2>&1` in
  5823. *GNU*)
  5824. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5825. *)
  5826. ac_count=0
  5827. $as_echo_n 0123456789 >"conftest.in"
  5828. while :
  5829. do
  5830. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5831. mv "conftest.tmp" "conftest.in"
  5832. cp "conftest.in" "conftest.nl"
  5833. $as_echo '' >> "conftest.nl"
  5834. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5835. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5836. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5837. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5838. # Best one so far, save it but keep looking for a better one
  5839. ac_cv_path_SED="$ac_path_SED"
  5840. ac_path_SED_max=$ac_count
  5841. fi
  5842. # 10*(2^10) chars as input seems more than enough
  5843. test $ac_count -gt 10 && break
  5844. done
  5845. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5846. esac
  5847. $ac_path_SED_found && break 3
  5848. done
  5849. done
  5850. done
  5851. IFS=$as_save_IFS
  5852. if test -z "$ac_cv_path_SED"; then
  5853. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5854. fi
  5855. else
  5856. ac_cv_path_SED=$SED
  5857. fi
  5858. fi
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5860. $as_echo "$ac_cv_path_SED" >&6; }
  5861. SED="$ac_cv_path_SED"
  5862. rm -f conftest.sed
  5863. test -z "$SED" && SED=sed
  5864. Xsed="$SED -e 1s/^X//"
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5866. $as_echo_n "checking for fgrep... " >&6; }
  5867. if ${ac_cv_path_FGREP+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5871. then ac_cv_path_FGREP="$GREP -F"
  5872. else
  5873. if test -z "$FGREP"; then
  5874. ac_path_FGREP_found=false
  5875. # Loop through the user's path and test for each of PROGNAME-LIST
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5878. do
  5879. IFS=$as_save_IFS
  5880. test -z "$as_dir" && as_dir=.
  5881. for ac_prog in fgrep; do
  5882. for ac_exec_ext in '' $ac_executable_extensions; do
  5883. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5884. as_fn_executable_p "$ac_path_FGREP" || continue
  5885. # Check for GNU ac_path_FGREP and select it if it is found.
  5886. # Check for GNU $ac_path_FGREP
  5887. case `"$ac_path_FGREP" --version 2>&1` in
  5888. *GNU*)
  5889. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5890. *)
  5891. ac_count=0
  5892. $as_echo_n 0123456789 >"conftest.in"
  5893. while :
  5894. do
  5895. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5896. mv "conftest.tmp" "conftest.in"
  5897. cp "conftest.in" "conftest.nl"
  5898. $as_echo 'FGREP' >> "conftest.nl"
  5899. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5900. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5901. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5902. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5903. # Best one so far, save it but keep looking for a better one
  5904. ac_cv_path_FGREP="$ac_path_FGREP"
  5905. ac_path_FGREP_max=$ac_count
  5906. fi
  5907. # 10*(2^10) chars as input seems more than enough
  5908. test $ac_count -gt 10 && break
  5909. done
  5910. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5911. esac
  5912. $ac_path_FGREP_found && break 3
  5913. done
  5914. done
  5915. done
  5916. IFS=$as_save_IFS
  5917. if test -z "$ac_cv_path_FGREP"; then
  5918. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5919. fi
  5920. else
  5921. ac_cv_path_FGREP=$FGREP
  5922. fi
  5923. fi
  5924. fi
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5926. $as_echo "$ac_cv_path_FGREP" >&6; }
  5927. FGREP="$ac_cv_path_FGREP"
  5928. test -z "$GREP" && GREP=grep
  5929. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5930. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5931. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5933. $as_echo_n "checking how to print strings... " >&6; }
  5934. # Test print first, because it will be a builtin if present.
  5935. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5936. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5937. ECHO='print -r --'
  5938. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5939. ECHO='printf %s\n'
  5940. else
  5941. # Use this function as a fallback that always works.
  5942. func_fallback_echo ()
  5943. {
  5944. eval 'cat <<_LTECHO_EOF
  5945. $1
  5946. _LTECHO_EOF'
  5947. }
  5948. ECHO='func_fallback_echo'
  5949. fi
  5950. # func_echo_all arg...
  5951. # Invoke $ECHO with all args, space-separated.
  5952. func_echo_all ()
  5953. {
  5954. $ECHO ""
  5955. }
  5956. case "$ECHO" in
  5957. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5958. $as_echo "printf" >&6; } ;;
  5959. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5960. $as_echo "print -r" >&6; } ;;
  5961. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5962. $as_echo "cat" >&6; } ;;
  5963. esac
  5964. # Check whether --with-gnu-ld was given.
  5965. if test "${with_gnu_ld+set}" = set; then :
  5966. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5967. else
  5968. with_gnu_ld=no
  5969. fi
  5970. ac_prog=ld
  5971. if test "$GCC" = yes; then
  5972. # Check if gcc -print-prog-name=ld gives a path.
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5974. $as_echo_n "checking for ld used by $CC... " >&6; }
  5975. case $host in
  5976. *-*-mingw*)
  5977. # gcc leaves a trailing carriage return which upsets mingw
  5978. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5979. *)
  5980. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5981. esac
  5982. case $ac_prog in
  5983. # Accept absolute paths.
  5984. [\\/]* | ?:[\\/]*)
  5985. re_direlt='/[^/][^/]*/\.\./'
  5986. # Canonicalize the pathname of ld
  5987. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5988. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5989. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5990. done
  5991. test -z "$LD" && LD="$ac_prog"
  5992. ;;
  5993. "")
  5994. # If it fails, then pretend we aren't using GCC.
  5995. ac_prog=ld
  5996. ;;
  5997. *)
  5998. # If it is relative, then search for the first ld in PATH.
  5999. with_gnu_ld=unknown
  6000. ;;
  6001. esac
  6002. elif test "$with_gnu_ld" = yes; then
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6004. $as_echo_n "checking for GNU ld... " >&6; }
  6005. else
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6007. $as_echo_n "checking for non-GNU ld... " >&6; }
  6008. fi
  6009. if ${lt_cv_path_LD+:} false; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. if test -z "$LD"; then
  6013. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6014. for ac_dir in $PATH; do
  6015. IFS="$lt_save_ifs"
  6016. test -z "$ac_dir" && ac_dir=.
  6017. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6018. lt_cv_path_LD="$ac_dir/$ac_prog"
  6019. # Check to see if the program is GNU ld. I'd rather use --version,
  6020. # but apparently some variants of GNU ld only accept -v.
  6021. # Break only if it was the GNU/non-GNU ld that we prefer.
  6022. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6023. *GNU* | *'with BFD'*)
  6024. test "$with_gnu_ld" != no && break
  6025. ;;
  6026. *)
  6027. test "$with_gnu_ld" != yes && break
  6028. ;;
  6029. esac
  6030. fi
  6031. done
  6032. IFS="$lt_save_ifs"
  6033. else
  6034. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6035. fi
  6036. fi
  6037. LD="$lt_cv_path_LD"
  6038. if test -n "$LD"; then
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6040. $as_echo "$LD" >&6; }
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6047. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6048. if ${lt_cv_prog_gnu_ld+:} false; then :
  6049. $as_echo_n "(cached) " >&6
  6050. else
  6051. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6052. case `$LD -v 2>&1 </dev/null` in
  6053. *GNU* | *'with BFD'*)
  6054. lt_cv_prog_gnu_ld=yes
  6055. ;;
  6056. *)
  6057. lt_cv_prog_gnu_ld=no
  6058. ;;
  6059. esac
  6060. fi
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6062. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6063. with_gnu_ld=$lt_cv_prog_gnu_ld
  6064. if test "x$CC" != xcc; then
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  6066. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  6067. else
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  6069. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  6070. fi
  6071. set dummy $CC; ac_cc=`$as_echo "$2" |
  6072. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  6073. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6077. /* end confdefs.h. */
  6078. int
  6079. main ()
  6080. {
  6081. ;
  6082. return 0;
  6083. }
  6084. _ACEOF
  6085. # Make sure it works both with $CC and with simple cc.
  6086. # We do the test twice because some compilers refuse to overwrite an
  6087. # existing .o file with -o, though they will create one.
  6088. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  6089. rm -f conftest2.*
  6090. if { { case "(($ac_try" in
  6091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6092. *) ac_try_echo=$ac_try;;
  6093. esac
  6094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6095. $as_echo "$ac_try_echo"; } >&5
  6096. (eval "$ac_try") 2>&5
  6097. ac_status=$?
  6098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6099. test $ac_status = 0; } &&
  6100. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  6101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6102. *) ac_try_echo=$ac_try;;
  6103. esac
  6104. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6105. $as_echo "$ac_try_echo"; } >&5
  6106. (eval "$ac_try") 2>&5
  6107. ac_status=$?
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6109. test $ac_status = 0; };
  6110. then
  6111. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  6112. if test "x$CC" != xcc; then
  6113. # Test first that cc exists at all.
  6114. if { ac_try='cc -c conftest.$ac_ext >&5'
  6115. { { case "(($ac_try" in
  6116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6117. *) ac_try_echo=$ac_try;;
  6118. esac
  6119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6120. $as_echo "$ac_try_echo"; } >&5
  6121. (eval "$ac_try") 2>&5
  6122. ac_status=$?
  6123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6124. test $ac_status = 0; }; }; then
  6125. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  6126. rm -f conftest2.*
  6127. if { { case "(($ac_try" in
  6128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6129. *) ac_try_echo=$ac_try;;
  6130. esac
  6131. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6132. $as_echo "$ac_try_echo"; } >&5
  6133. (eval "$ac_try") 2>&5
  6134. ac_status=$?
  6135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6136. test $ac_status = 0; } &&
  6137. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  6138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6139. *) ac_try_echo=$ac_try;;
  6140. esac
  6141. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6142. $as_echo "$ac_try_echo"; } >&5
  6143. (eval "$ac_try") 2>&5
  6144. ac_status=$?
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6146. test $ac_status = 0; };
  6147. then
  6148. # cc works too.
  6149. :
  6150. else
  6151. # cc exists but doesn't like -o.
  6152. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  6153. fi
  6154. fi
  6155. fi
  6156. else
  6157. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  6158. fi
  6159. rm -f core conftest*
  6160. fi
  6161. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6163. $as_echo "yes" >&6; }
  6164. else
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  6168. fi
  6169. # FIXME: we rely on the cache variable name because
  6170. # there is no other way.
  6171. set dummy $CC
  6172. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  6173. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  6174. if test "$am_t" != yes; then
  6175. # Losing compiler, so override with the script.
  6176. # FIXME: It is wrong to rewrite CC.
  6177. # But if we don't then we get into trouble of one sort or another.
  6178. # A longer-term fix would be to have automake use am__CC in this case,
  6179. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  6180. CC="$am_aux_dir/compile $CC"
  6181. fi
  6182. # Necessary if objects are placed in subdirectories.
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  6184. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  6185. set x ${MAKE-make}
  6186. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  6187. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. cat >conftest.make <<\_ACEOF
  6191. SHELL = /bin/sh
  6192. all:
  6193. @echo '@@@%%%=$(MAKE)=@@@%%%'
  6194. _ACEOF
  6195. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  6196. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  6197. *@@@%%%=?*=@@@%%%*)
  6198. eval ac_cv_prog_make_${ac_make}_set=yes;;
  6199. *)
  6200. eval ac_cv_prog_make_${ac_make}_set=no;;
  6201. esac
  6202. rm -f conftest.make
  6203. fi
  6204. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6206. $as_echo "yes" >&6; }
  6207. SET_MAKE=
  6208. else
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6210. $as_echo "no" >&6; }
  6211. SET_MAKE="MAKE=${MAKE-make}"
  6212. fi
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6214. $as_echo_n "checking whether ln -s works... " >&6; }
  6215. LN_S=$as_ln_s
  6216. if test "$LN_S" = "ln -s"; then
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6218. $as_echo "yes" >&6; }
  6219. else
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6221. $as_echo "no, using $LN_S" >&6; }
  6222. fi
  6223. #
  6224. # Tests for Windows
  6225. #
  6226. LIB_GDI32=''
  6227. native_win32_build='no'
  6228. cygwin_build='no'
  6229. case "${host_os}" in
  6230. cygwin* )
  6231. cygwin_build='yes'
  6232. LIB_GDI32='-lgdi32'
  6233. ;;
  6234. mingw* )
  6235. native_win32_build='yes'
  6236. LIB_GDI32='-lgdi32'
  6237. ;;
  6238. esac
  6239. if test "${LIB_GDI32}x" != 'x'
  6240. then
  6241. $as_echo "#define HasWINGDI32 1" >>confdefs.h
  6242. fi
  6243. if test "${LIB_GDI32}x" != 'x' ; then
  6244. HasWINGDI32_TRUE=
  6245. HasWINGDI32_FALSE='#'
  6246. else
  6247. HasWINGDI32_TRUE='#'
  6248. HasWINGDI32_FALSE=
  6249. fi
  6250. if test "${native_win32_build}" = 'yes' ; then
  6251. WIN32_NATIVE_BUILD_TRUE=
  6252. WIN32_NATIVE_BUILD_FALSE='#'
  6253. else
  6254. WIN32_NATIVE_BUILD_TRUE='#'
  6255. WIN32_NATIVE_BUILD_FALSE=
  6256. fi
  6257. if test "${cygwin_build}" = 'yes' ; then
  6258. CYGWIN_BUILD_TRUE=
  6259. CYGWIN_BUILD_FALSE='#'
  6260. else
  6261. CYGWIN_BUILD_TRUE='#'
  6262. CYGWIN_BUILD_FALSE=
  6263. fi
  6264. WinPathScript="${srcdirfull}/winpath.sh"
  6265. #
  6266. # Compiler flags tweaks
  6267. #
  6268. if test "${GCC}" != "yes"
  6269. then
  6270. case "${host}" in
  6271. *-*-hpux* )
  6272. # aCC: HP ANSI C++ B3910B A.03.34
  6273. CFLAGS="${CFLAGS} -Wp,-H30000"
  6274. if test -n "${CXXFLAGS}"
  6275. then
  6276. CXXFLAGS='-AA'
  6277. else
  6278. CXXFLAGS="${CXXFLAGS} -AA"
  6279. fi
  6280. ;;
  6281. *-dec-osf5.* )
  6282. # Compaq alphaev68-dec-osf5.1 compiler
  6283. if test -n "${CXXFLAGS}"
  6284. then
  6285. CXXFLAGS='-std strict_ansi -noimplicit_include'
  6286. else
  6287. CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
  6288. fi
  6289. ;;
  6290. esac
  6291. else
  6292. CFLAGS="${CFLAGS} -Wall"
  6293. fi
  6294. # Reduce utility startup overhead by lazy-loading dependency libraries
  6295. # if possible.
  6296. #
  6297. # http://developers.sun.com/solaris/articles/reducing_app.html
  6298. # http://wikis.sun.com/display/AppPerfTuning/ImageMagick
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
  6300. $as_echo_n "checking for linker lazyload option... " >&6; }
  6301. if ${gm_cv_ld_lazyload+:} false; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. gm_cv_ld_lazyload='none'
  6305. case "${host}" in
  6306. *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
  6307. if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
  6308. gm_cv_ld_lazyload='-Wl,-zlazyload'
  6309. fi
  6310. ;;
  6311. esac
  6312. fi
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gm_cv_ld_lazyload" >&5
  6314. $as_echo "$gm_cv_ld_lazyload" >&6; }
  6315. if test "${gm_cv_ld_lazyload}" != 'none' ; then
  6316. if test -z "${LDFLAGS}" ; then
  6317. LDFLAGS="${gm_cv_ld_lazyload}"
  6318. else
  6319. LDFLAGS="${gm_cv_ld_lazyload} ${LDFLAGS}"
  6320. fi
  6321. fi
  6322. #
  6323. # Determine Posix threads settings
  6324. #
  6325. # Enable support for threads
  6326. # Check whether --with-threads was given.
  6327. if test "${with_threads+set}" = set; then :
  6328. withval=$with_threads; with_threads=$withval
  6329. else
  6330. with_threads='yes'
  6331. fi
  6332. have_threads=no
  6333. if test "$with_threads" != 'no'
  6334. then
  6335. ac_ext=c
  6336. ac_cpp='$CPP $CPPFLAGS'
  6337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6340. acx_pthread_ok=no
  6341. # We used to check for pthread.h first, but this fails if pthread.h
  6342. # requires special compiler flags (e.g. on True64 or Sequent).
  6343. # It gets checked for in the link test anyway.
  6344. # First of all, check if the user has set any of the PTHREAD_LIBS,
  6345. # etcetera environment variables, and if threads linking works using
  6346. # them:
  6347. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  6348. save_CFLAGS="$CFLAGS"
  6349. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6350. save_LIBS="$LIBS"
  6351. LIBS="$PTHREAD_LIBS $LIBS"
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  6353. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  6354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6355. /* end confdefs.h. */
  6356. /* Override any GCC internal prototype to avoid an error.
  6357. Use char because int might match the return type of a GCC
  6358. builtin and then its argument prototype would still apply. */
  6359. #ifdef __cplusplus
  6360. extern "C"
  6361. #endif
  6362. char pthread_join ();
  6363. int
  6364. main ()
  6365. {
  6366. return pthread_join ();
  6367. ;
  6368. return 0;
  6369. }
  6370. _ACEOF
  6371. if ac_fn_c_try_link "$LINENO"; then :
  6372. acx_pthread_ok=yes
  6373. fi
  6374. rm -f core conftest.err conftest.$ac_objext \
  6375. conftest$ac_exeext conftest.$ac_ext
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  6377. $as_echo "$acx_pthread_ok" >&6; }
  6378. if test x"$acx_pthread_ok" = xno; then
  6379. PTHREAD_LIBS=""
  6380. PTHREAD_CFLAGS=""
  6381. fi
  6382. LIBS="$save_LIBS"
  6383. CFLAGS="$save_CFLAGS"
  6384. fi
  6385. # We must check for the threads library under a number of different
  6386. # names; the ordering is very important because some systems
  6387. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  6388. # libraries is broken (non-POSIX).
  6389. # Create a list of thread flags to try. Items starting with a "-" are
  6390. # C compiler flags, and other items are library names, except for "none"
  6391. # which indicates that we try without any flags at all, and "pthread-config"
  6392. # which is a program returning the flags for the Pth emulation library.
  6393. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
  6394. # The ordering *is* (sometimes) important. Some notes on the
  6395. # individual items follow:
  6396. # pthreads: AIX (must check this before -lpthread)
  6397. # none: in case threads are in libc; should be tried before -Kthread and
  6398. # other compiler flags to prevent continual compiler warnings
  6399. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  6400. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  6401. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  6402. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  6403. # -pthreads: Solaris/gcc
  6404. # -mthreads: Mingw32/gcc, Lynx/gcc
  6405. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  6406. # doesn't hurt to check since this sometimes defines pthreads too;
  6407. # also defines -D_REENTRANT)
  6408. # ... -mt is also the pthreads flag for HP/aCC
  6409. # pthread: Linux, etcetera
  6410. # --thread-safe: KAI C++
  6411. # pthread-config: use pthread-config program (for GNU Pth library)
  6412. case "${host_cpu}-${host_os}" in
  6413. *solaris*)
  6414. # On Solaris (at least, for some versions), libc contains stubbed
  6415. # (non-functional) versions of the pthreads routines, so link-based
  6416. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  6417. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  6418. # a function called by this macro, so we could check for that, but
  6419. # who knows whether they'll stub that too in a future libc.) So,
  6420. # we'll just look for -pthreads and -lpthread first:
  6421. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  6422. ;;
  6423. # The HP-UX compiler just warns about options it does not understand
  6424. # but it needs -mt.
  6425. *-hpux*)
  6426. acx_pthread_flags="-mt $acx_pthread_flags"
  6427. ;;
  6428. esac
  6429. if test x"$acx_pthread_ok" = xno; then
  6430. for flag in $acx_pthread_flags; do
  6431. case $flag in
  6432. none)
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  6434. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  6435. ;;
  6436. -*)
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  6438. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  6439. PTHREAD_CFLAGS="$flag"
  6440. ;;
  6441. pthread-config)
  6442. # Extract the first word of "pthread-config", so it can be a program name with args.
  6443. set dummy pthread-config; 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_acx_pthread_config+:} false; then :
  6447. $as_echo_n "(cached) " >&6
  6448. else
  6449. if test -n "$acx_pthread_config"; then
  6450. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # 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_acx_pthread_config="yes"
  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. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  6467. fi
  6468. fi
  6469. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  6470. if test -n "$acx_pthread_config"; then
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  6472. $as_echo "$acx_pthread_config" >&6; }
  6473. else
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6475. $as_echo "no" >&6; }
  6476. fi
  6477. if test x"$acx_pthread_config" = xno; then continue; fi
  6478. PTHREAD_CFLAGS="`pthread-config --cflags`"
  6479. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  6480. ;;
  6481. *)
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  6483. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  6484. PTHREAD_LIBS="-l$flag"
  6485. ;;
  6486. esac
  6487. save_LIBS="$LIBS"
  6488. save_CFLAGS="$CFLAGS"
  6489. LIBS="$PTHREAD_LIBS $LIBS"
  6490. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6491. # Check for various functions. We must include pthread.h,
  6492. # since some functions may be macros. (On the Sequent, we
  6493. # need a special flag -Kthread to make this header compile.)
  6494. # We check for pthread_join because it is in -lpthread on IRIX
  6495. # while pthread_create is in libc. We check for pthread_attr_init
  6496. # due to DEC craziness with -lpthreads. We check for
  6497. # pthread_cleanup_push because it is one of the few pthread
  6498. # functions on Solaris that doesn't have a non-functional libc stub.
  6499. # We try pthread_create on general principles.
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. #include <pthread.h>
  6503. int
  6504. main ()
  6505. {
  6506. pthread_t th; pthread_join(th, 0);
  6507. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  6508. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  6509. ;
  6510. return 0;
  6511. }
  6512. _ACEOF
  6513. if ac_fn_c_try_link "$LINENO"; then :
  6514. acx_pthread_ok=yes
  6515. fi
  6516. rm -f core conftest.err conftest.$ac_objext \
  6517. conftest$ac_exeext conftest.$ac_ext
  6518. LIBS="$save_LIBS"
  6519. CFLAGS="$save_CFLAGS"
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  6521. $as_echo "$acx_pthread_ok" >&6; }
  6522. if test "x$acx_pthread_ok" = xyes; then
  6523. break;
  6524. fi
  6525. PTHREAD_LIBS=""
  6526. PTHREAD_CFLAGS=""
  6527. done
  6528. fi
  6529. # Various other checks:
  6530. if test "x$acx_pthread_ok" = xyes; then
  6531. save_LIBS="$LIBS"
  6532. LIBS="$PTHREAD_LIBS $LIBS"
  6533. save_CFLAGS="$CFLAGS"
  6534. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  6535. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  6537. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  6538. attr_name=unknown
  6539. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  6540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6541. /* end confdefs.h. */
  6542. #include <pthread.h>
  6543. int
  6544. main ()
  6545. {
  6546. int attr=$attr; return attr;
  6547. ;
  6548. return 0;
  6549. }
  6550. _ACEOF
  6551. if ac_fn_c_try_link "$LINENO"; then :
  6552. attr_name=$attr; break
  6553. fi
  6554. rm -f core conftest.err conftest.$ac_objext \
  6555. conftest$ac_exeext conftest.$ac_ext
  6556. done
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  6558. $as_echo "$attr_name" >&6; }
  6559. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  6560. cat >>confdefs.h <<_ACEOF
  6561. #define PTHREAD_CREATE_JOINABLE $attr_name
  6562. _ACEOF
  6563. fi
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  6565. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  6566. flag=no
  6567. case "${host_cpu}-${host_os}" in
  6568. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  6569. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  6570. esac
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  6572. $as_echo "${flag}" >&6; }
  6573. if test "x$flag" != xno; then
  6574. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  6575. fi
  6576. LIBS="$save_LIBS"
  6577. CFLAGS="$save_CFLAGS"
  6578. # More AIX lossage: must compile with xlc_r or cc_r
  6579. case "${host_os}" in
  6580. aix* )
  6581. if test x"$GCC" != xyes; then
  6582. case "$CC" in
  6583. *xlc )
  6584. # Extract the first word of "xlc_r", so it can be a program name with args.
  6585. set dummy xlc_r; ac_word=$2
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6587. $as_echo_n "checking for $ac_word... " >&6; }
  6588. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  6589. $as_echo_n "(cached) " >&6
  6590. else
  6591. if test -n "$PTHREAD_CC"; then
  6592. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  6593. else
  6594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6595. for as_dir in $PATH
  6596. do
  6597. IFS=$as_save_IFS
  6598. test -z "$as_dir" && as_dir=.
  6599. for ac_exec_ext in '' $ac_executable_extensions; do
  6600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6601. ac_cv_prog_PTHREAD_CC="xlc_r"
  6602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6603. break 2
  6604. fi
  6605. done
  6606. done
  6607. IFS=$as_save_IFS
  6608. test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
  6609. fi
  6610. fi
  6611. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  6612. if test -n "$PTHREAD_CC"; then
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  6614. $as_echo "$PTHREAD_CC" >&6; }
  6615. else
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6617. $as_echo "no" >&6; }
  6618. fi
  6619. ;;
  6620. *cc )
  6621. # Extract the first word of "cc_r", so it can be a program name with args.
  6622. set dummy cc_r; ac_word=$2
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6624. $as_echo_n "checking for $ac_word... " >&6; }
  6625. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. if test -n "$PTHREAD_CC"; then
  6629. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  6630. else
  6631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6632. for as_dir in $PATH
  6633. do
  6634. IFS=$as_save_IFS
  6635. test -z "$as_dir" && as_dir=.
  6636. for ac_exec_ext in '' $ac_executable_extensions; do
  6637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6638. ac_cv_prog_PTHREAD_CC="cc_r"
  6639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6640. break 2
  6641. fi
  6642. done
  6643. done
  6644. IFS=$as_save_IFS
  6645. test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
  6646. fi
  6647. fi
  6648. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  6649. if test -n "$PTHREAD_CC"; then
  6650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  6651. $as_echo "$PTHREAD_CC" >&6; }
  6652. else
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6654. $as_echo "no" >&6; }
  6655. fi
  6656. ;;
  6657. esac
  6658. fi
  6659. case "$CXX" in
  6660. *xlC )
  6661. # Extract the first word of "xlC_r", so it can be a program name with args.
  6662. set dummy xlC_r; ac_word=$2
  6663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6664. $as_echo_n "checking for $ac_word... " >&6; }
  6665. if ${ac_cv_prog_PTHREAD_CXX+:} false; then :
  6666. $as_echo_n "(cached) " >&6
  6667. else
  6668. if test -n "$PTHREAD_CXX"; then
  6669. ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
  6670. else
  6671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6672. for as_dir in $PATH
  6673. do
  6674. IFS=$as_save_IFS
  6675. test -z "$as_dir" && as_dir=.
  6676. for ac_exec_ext in '' $ac_executable_extensions; do
  6677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6678. ac_cv_prog_PTHREAD_CXX="xlC_r"
  6679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6680. break 2
  6681. fi
  6682. done
  6683. done
  6684. IFS=$as_save_IFS
  6685. test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}"
  6686. fi
  6687. fi
  6688. PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
  6689. if test -n "$PTHREAD_CXX"; then
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
  6691. $as_echo "$PTHREAD_CXX" >&6; }
  6692. else
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6694. $as_echo "no" >&6; }
  6695. fi
  6696. ;;
  6697. esac
  6698. ;;
  6699. esac
  6700. fi
  6701. if test "${PTHREAD_CC}x" = "x"
  6702. then
  6703. PTHREAD_CC="$CC"
  6704. fi
  6705. if test "${PTHREAD_CXX}x" = "x"
  6706. then
  6707. PTHREAD_CXX="$CXX"
  6708. fi
  6709. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  6710. if test x"$acx_pthread_ok" = xyes; then
  6711. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  6712. :
  6713. else
  6714. acx_pthread_ok=no
  6715. fi
  6716. ac_ext=c
  6717. ac_cpp='$CPP $CPPFLAGS'
  6718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6721. if test "$acx_pthread_ok" = yes
  6722. then
  6723. have_threads=yes
  6724. DEF_THREAD="$PTHREAD_CFLAGS"
  6725. CFLAGS="$CFLAGS $DEF_THREAD"
  6726. CXXFLAGS="$CXXFLAGS $DEF_THREAD"
  6727. if test "$CC" != "$PTHREAD_CC"
  6728. then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
  6730. $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
  6731. CC="$PTHREAD_CC"
  6732. fi
  6733. if test "$CXX" != "$PTHREAD_CXX"
  6734. then
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
  6736. $as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
  6737. CXX="$PTHREAD_CXX"
  6738. fi
  6739. fi
  6740. fi
  6741. #
  6742. # Determine options necessary to enable OpenMP support
  6743. #
  6744. # Sets Set the OPENMP_CFLAGS / OPENMP_CXXFLAGS / OPENMP_FFLAGS
  6745. # variable to these options.
  6746. if test "$have_threads" != 'yes'
  6747. then
  6748. ac_cv_prog_c_openmp=unsupported
  6749. fi
  6750. OPENMP_CFLAGS=
  6751. # Check whether --enable-openmp was given.
  6752. if test "${enable_openmp+set}" = set; then :
  6753. enableval=$enable_openmp;
  6754. fi
  6755. if test "$enable_openmp" != no; then
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
  6757. $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
  6758. if ${ac_cv_prog_c_openmp+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6762. /* end confdefs.h. */
  6763. #ifndef _OPENMP
  6764. choke me
  6765. #endif
  6766. #include <omp.h>
  6767. int main () { return omp_get_num_threads (); }
  6768. _ACEOF
  6769. if ac_fn_c_try_link "$LINENO"; then :
  6770. ac_cv_prog_c_openmp='none needed'
  6771. else
  6772. ac_cv_prog_c_openmp='unsupported'
  6773. for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
  6774. -Popenmp --openmp; do
  6775. ac_save_CFLAGS=$CFLAGS
  6776. CFLAGS="$CFLAGS $ac_option"
  6777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6778. /* end confdefs.h. */
  6779. #ifndef _OPENMP
  6780. choke me
  6781. #endif
  6782. #include <omp.h>
  6783. int main () { return omp_get_num_threads (); }
  6784. _ACEOF
  6785. if ac_fn_c_try_link "$LINENO"; then :
  6786. ac_cv_prog_c_openmp=$ac_option
  6787. fi
  6788. rm -f core conftest.err conftest.$ac_objext \
  6789. conftest$ac_exeext conftest.$ac_ext
  6790. CFLAGS=$ac_save_CFLAGS
  6791. if test "$ac_cv_prog_c_openmp" != unsupported; then
  6792. break
  6793. fi
  6794. done
  6795. fi
  6796. rm -f core conftest.err conftest.$ac_objext \
  6797. conftest$ac_exeext conftest.$ac_ext
  6798. fi
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
  6800. $as_echo "$ac_cv_prog_c_openmp" >&6; }
  6801. case $ac_cv_prog_c_openmp in #(
  6802. "none needed" | unsupported)
  6803. ;; #(
  6804. *)
  6805. OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
  6806. esac
  6807. fi
  6808. CFLAGS="$OPENMP_CFLAGS $CFLAGS"
  6809. #CXXFLAGS="$OPENMP_CXXFLAGS $CXXFLAGS"
  6810. #LDFLAGS="$LDFLAGS $OPENMP_CFLAGS"
  6811. # Allow the user to disable use of OpenMP where algorithms sometimes run slower.
  6812. # Check whether --enable-openmp-slow was given.
  6813. if test "${enable_openmp_slow+set}" = set; then :
  6814. enableval=$enable_openmp_slow; with_openmp_slow=$enableval
  6815. else
  6816. with_openmp_slow='no'
  6817. fi
  6818. if test "$with_openmp_slow" = 'no'
  6819. then
  6820. $as_echo "#define DisableSlowOpenMP 1" >>confdefs.h
  6821. fi
  6822. ########
  6823. #
  6824. # Check for large file support
  6825. #
  6826. # According to the X/Open LFS standard, setting _FILE_OFFSET_BITS to 64
  6827. # remaps standard functions to their 64-bit equivalents.
  6828. #
  6829. # The LFS_CPPFLAGS substition is used to support building PerlMagick.
  6830. #
  6831. #
  6832. ########
  6833. # Check whether --enable-largefile was given.
  6834. if test "${enable_largefile+set}" = set; then :
  6835. enableval=$enable_largefile;
  6836. fi
  6837. if test "$enable_largefile" != no; then
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6839. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  6840. if ${ac_cv_sys_largefile_CC+:} false; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. ac_cv_sys_largefile_CC=no
  6844. if test "$GCC" != yes; then
  6845. ac_save_CC=$CC
  6846. while :; do
  6847. # IRIX 6.2 and later do not support large files by default,
  6848. # so use the C compiler's -n32 option if that helps.
  6849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6850. /* end confdefs.h. */
  6851. #include <sys/types.h>
  6852. /* Check that off_t can represent 2**63 - 1 correctly.
  6853. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6854. since some C++ compilers masquerading as C compilers
  6855. incorrectly reject 9223372036854775807. */
  6856. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6857. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6858. && LARGE_OFF_T % 2147483647 == 1)
  6859. ? 1 : -1];
  6860. int
  6861. main ()
  6862. {
  6863. ;
  6864. return 0;
  6865. }
  6866. _ACEOF
  6867. if ac_fn_c_try_compile "$LINENO"; then :
  6868. break
  6869. fi
  6870. rm -f core conftest.err conftest.$ac_objext
  6871. CC="$CC -n32"
  6872. if ac_fn_c_try_compile "$LINENO"; then :
  6873. ac_cv_sys_largefile_CC=' -n32'; break
  6874. fi
  6875. rm -f core conftest.err conftest.$ac_objext
  6876. break
  6877. done
  6878. CC=$ac_save_CC
  6879. rm -f conftest.$ac_ext
  6880. fi
  6881. fi
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6883. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  6884. if test "$ac_cv_sys_largefile_CC" != no; then
  6885. CC=$CC$ac_cv_sys_largefile_CC
  6886. fi
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6888. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6889. if ${ac_cv_sys_file_offset_bits+:} false; then :
  6890. $as_echo_n "(cached) " >&6
  6891. else
  6892. while :; do
  6893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6894. /* end confdefs.h. */
  6895. #include <sys/types.h>
  6896. /* Check that off_t can represent 2**63 - 1 correctly.
  6897. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6898. since some C++ compilers masquerading as C compilers
  6899. incorrectly reject 9223372036854775807. */
  6900. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6901. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6902. && LARGE_OFF_T % 2147483647 == 1)
  6903. ? 1 : -1];
  6904. int
  6905. main ()
  6906. {
  6907. ;
  6908. return 0;
  6909. }
  6910. _ACEOF
  6911. if ac_fn_c_try_compile "$LINENO"; then :
  6912. ac_cv_sys_file_offset_bits=no; break
  6913. fi
  6914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6916. /* end confdefs.h. */
  6917. #define _FILE_OFFSET_BITS 64
  6918. #include <sys/types.h>
  6919. /* Check that off_t can represent 2**63 - 1 correctly.
  6920. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6921. since some C++ compilers masquerading as C compilers
  6922. incorrectly reject 9223372036854775807. */
  6923. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6924. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6925. && LARGE_OFF_T % 2147483647 == 1)
  6926. ? 1 : -1];
  6927. int
  6928. main ()
  6929. {
  6930. ;
  6931. return 0;
  6932. }
  6933. _ACEOF
  6934. if ac_fn_c_try_compile "$LINENO"; then :
  6935. ac_cv_sys_file_offset_bits=64; break
  6936. fi
  6937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6938. ac_cv_sys_file_offset_bits=unknown
  6939. break
  6940. done
  6941. fi
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6943. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  6944. case $ac_cv_sys_file_offset_bits in #(
  6945. no | unknown) ;;
  6946. *)
  6947. cat >>confdefs.h <<_ACEOF
  6948. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  6949. _ACEOF
  6950. ;;
  6951. esac
  6952. rm -rf conftest*
  6953. if test $ac_cv_sys_file_offset_bits = unknown; then
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6955. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  6956. if ${ac_cv_sys_large_files+:} false; then :
  6957. $as_echo_n "(cached) " >&6
  6958. else
  6959. while :; do
  6960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6961. /* end confdefs.h. */
  6962. #include <sys/types.h>
  6963. /* Check that off_t can represent 2**63 - 1 correctly.
  6964. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6965. since some C++ compilers masquerading as C compilers
  6966. incorrectly reject 9223372036854775807. */
  6967. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6968. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6969. && LARGE_OFF_T % 2147483647 == 1)
  6970. ? 1 : -1];
  6971. int
  6972. main ()
  6973. {
  6974. ;
  6975. return 0;
  6976. }
  6977. _ACEOF
  6978. if ac_fn_c_try_compile "$LINENO"; then :
  6979. ac_cv_sys_large_files=no; break
  6980. fi
  6981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6983. /* end confdefs.h. */
  6984. #define _LARGE_FILES 1
  6985. #include <sys/types.h>
  6986. /* Check that off_t can represent 2**63 - 1 correctly.
  6987. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6988. since some C++ compilers masquerading as C compilers
  6989. incorrectly reject 9223372036854775807. */
  6990. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6991. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6992. && LARGE_OFF_T % 2147483647 == 1)
  6993. ? 1 : -1];
  6994. int
  6995. main ()
  6996. {
  6997. ;
  6998. return 0;
  6999. }
  7000. _ACEOF
  7001. if ac_fn_c_try_compile "$LINENO"; then :
  7002. ac_cv_sys_large_files=1; break
  7003. fi
  7004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7005. ac_cv_sys_large_files=unknown
  7006. break
  7007. done
  7008. fi
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7010. $as_echo "$ac_cv_sys_large_files" >&6; }
  7011. case $ac_cv_sys_large_files in #(
  7012. no | unknown) ;;
  7013. *)
  7014. cat >>confdefs.h <<_ACEOF
  7015. #define _LARGE_FILES $ac_cv_sys_large_files
  7016. _ACEOF
  7017. ;;
  7018. esac
  7019. rm -rf conftest*
  7020. fi
  7021. fi
  7022. # If the `fseeko' function is available, define `HAVE_FSEEKO'. Define
  7023. # `_LARGEFILE_SOURCE' if necessary.
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  7025. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  7026. if ${ac_cv_sys_largefile_source+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. while :; do
  7030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7031. /* end confdefs.h. */
  7032. #include <sys/types.h> /* for off_t */
  7033. #include <stdio.h>
  7034. int
  7035. main ()
  7036. {
  7037. int (*fp) (FILE *, off_t, int) = fseeko;
  7038. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  7039. ;
  7040. return 0;
  7041. }
  7042. _ACEOF
  7043. if ac_fn_c_try_link "$LINENO"; then :
  7044. ac_cv_sys_largefile_source=no; break
  7045. fi
  7046. rm -f core conftest.err conftest.$ac_objext \
  7047. conftest$ac_exeext conftest.$ac_ext
  7048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7049. /* end confdefs.h. */
  7050. #define _LARGEFILE_SOURCE 1
  7051. #include <sys/types.h> /* for off_t */
  7052. #include <stdio.h>
  7053. int
  7054. main ()
  7055. {
  7056. int (*fp) (FILE *, off_t, int) = fseeko;
  7057. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  7058. ;
  7059. return 0;
  7060. }
  7061. _ACEOF
  7062. if ac_fn_c_try_link "$LINENO"; then :
  7063. ac_cv_sys_largefile_source=1; break
  7064. fi
  7065. rm -f core conftest.err conftest.$ac_objext \
  7066. conftest$ac_exeext conftest.$ac_ext
  7067. ac_cv_sys_largefile_source=unknown
  7068. break
  7069. done
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  7072. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  7073. case $ac_cv_sys_largefile_source in #(
  7074. no | unknown) ;;
  7075. *)
  7076. cat >>confdefs.h <<_ACEOF
  7077. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  7078. _ACEOF
  7079. ;;
  7080. esac
  7081. rm -rf conftest*
  7082. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  7083. # in glibc 2.1.3, but that breaks too many other things.
  7084. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  7085. if test $ac_cv_sys_largefile_source != unknown; then
  7086. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  7087. fi
  7088. LFS_CPPFLAGS=''
  7089. if test "$enable_largefile" != no
  7090. then
  7091. if test "$ac_cv_sys_file_offset_bits" != 'no'
  7092. then
  7093. LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  7094. fi
  7095. if test "$ac_cv_sys_large_files" != 'no'
  7096. then
  7097. LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
  7098. fi
  7099. if test "$ac_cv_sys_largefile_source" != 'no'
  7100. then
  7101. LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
  7102. fi
  7103. fi
  7104. #
  7105. # Configure libtool & libltdl
  7106. #
  7107. # Configure libtool
  7108. enable_dlopen=yes
  7109. case `pwd` in
  7110. *\ * | *\ *)
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  7112. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  7113. esac
  7114. macro_version='2.4.2'
  7115. macro_revision='1.3337'
  7116. ltmain="$ac_aux_dir/ltmain.sh"
  7117. # Backslashify metacharacters that are still active within
  7118. # double-quoted strings.
  7119. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7120. # Same as above, but do not quote variable references.
  7121. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7122. # Sed substitution to delay expansion of an escaped shell variable in a
  7123. # double_quote_subst'ed string.
  7124. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7125. # Sed substitution to delay expansion of an escaped single quote.
  7126. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7127. # Sed substitution to avoid accidental globbing in evaled expressions
  7128. no_glob_subst='s/\*/\\\*/g'
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7130. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7131. if ${lt_cv_path_NM+:} false; then :
  7132. $as_echo_n "(cached) " >&6
  7133. else
  7134. if test -n "$NM"; then
  7135. # Let the user override the test.
  7136. lt_cv_path_NM="$NM"
  7137. else
  7138. lt_nm_to_check="${ac_tool_prefix}nm"
  7139. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7140. lt_nm_to_check="$lt_nm_to_check nm"
  7141. fi
  7142. for lt_tmp_nm in $lt_nm_to_check; do
  7143. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7144. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7145. IFS="$lt_save_ifs"
  7146. test -z "$ac_dir" && ac_dir=.
  7147. tmp_nm="$ac_dir/$lt_tmp_nm"
  7148. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7149. # Check to see if the nm accepts a BSD-compat flag.
  7150. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7151. # nm: unknown option "B" ignored
  7152. # Tru64's nm complains that /dev/null is an invalid object file
  7153. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7154. */dev/null* | *'Invalid file or object type'*)
  7155. lt_cv_path_NM="$tmp_nm -B"
  7156. break
  7157. ;;
  7158. *)
  7159. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7160. */dev/null*)
  7161. lt_cv_path_NM="$tmp_nm -p"
  7162. break
  7163. ;;
  7164. *)
  7165. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7166. continue # so that we can try to find one that supports BSD flags
  7167. ;;
  7168. esac
  7169. ;;
  7170. esac
  7171. fi
  7172. done
  7173. IFS="$lt_save_ifs"
  7174. done
  7175. : ${lt_cv_path_NM=no}
  7176. fi
  7177. fi
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7179. $as_echo "$lt_cv_path_NM" >&6; }
  7180. if test "$lt_cv_path_NM" != "no"; then
  7181. NM="$lt_cv_path_NM"
  7182. else
  7183. # Didn't find any BSD compatible name lister, look for dumpbin.
  7184. if test -n "$DUMPBIN"; then :
  7185. # Let the user override the test.
  7186. else
  7187. if test -n "$ac_tool_prefix"; then
  7188. for ac_prog in dumpbin "link -dump"
  7189. do
  7190. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7191. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7193. $as_echo_n "checking for $ac_word... " >&6; }
  7194. if ${ac_cv_prog_DUMPBIN+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. if test -n "$DUMPBIN"; then
  7198. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7199. else
  7200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7201. for as_dir in $PATH
  7202. do
  7203. IFS=$as_save_IFS
  7204. test -z "$as_dir" && as_dir=.
  7205. for ac_exec_ext in '' $ac_executable_extensions; do
  7206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7207. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7209. break 2
  7210. fi
  7211. done
  7212. done
  7213. IFS=$as_save_IFS
  7214. fi
  7215. fi
  7216. DUMPBIN=$ac_cv_prog_DUMPBIN
  7217. if test -n "$DUMPBIN"; then
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7219. $as_echo "$DUMPBIN" >&6; }
  7220. else
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7222. $as_echo "no" >&6; }
  7223. fi
  7224. test -n "$DUMPBIN" && break
  7225. done
  7226. fi
  7227. if test -z "$DUMPBIN"; then
  7228. ac_ct_DUMPBIN=$DUMPBIN
  7229. for ac_prog in dumpbin "link -dump"
  7230. do
  7231. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7232. set dummy $ac_prog; ac_word=$2
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7234. $as_echo_n "checking for $ac_word... " >&6; }
  7235. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. if test -n "$ac_ct_DUMPBIN"; then
  7239. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7240. else
  7241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7242. for as_dir in $PATH
  7243. do
  7244. IFS=$as_save_IFS
  7245. test -z "$as_dir" && as_dir=.
  7246. for ac_exec_ext in '' $ac_executable_extensions; do
  7247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7248. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7250. break 2
  7251. fi
  7252. done
  7253. done
  7254. IFS=$as_save_IFS
  7255. fi
  7256. fi
  7257. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7258. if test -n "$ac_ct_DUMPBIN"; then
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7260. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7261. else
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7263. $as_echo "no" >&6; }
  7264. fi
  7265. test -n "$ac_ct_DUMPBIN" && break
  7266. done
  7267. if test "x$ac_ct_DUMPBIN" = x; then
  7268. DUMPBIN=":"
  7269. else
  7270. case $cross_compiling:$ac_tool_warned in
  7271. yes:)
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7273. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7274. ac_tool_warned=yes ;;
  7275. esac
  7276. DUMPBIN=$ac_ct_DUMPBIN
  7277. fi
  7278. fi
  7279. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  7280. *COFF*)
  7281. DUMPBIN="$DUMPBIN -symbols"
  7282. ;;
  7283. *)
  7284. DUMPBIN=:
  7285. ;;
  7286. esac
  7287. fi
  7288. if test "$DUMPBIN" != ":"; then
  7289. NM="$DUMPBIN"
  7290. fi
  7291. fi
  7292. test -z "$NM" && NM=nm
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7294. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7295. if ${lt_cv_nm_interface+:} false; then :
  7296. $as_echo_n "(cached) " >&6
  7297. else
  7298. lt_cv_nm_interface="BSD nm"
  7299. echo "int some_variable = 0;" > conftest.$ac_ext
  7300. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7301. (eval "$ac_compile" 2>conftest.err)
  7302. cat conftest.err >&5
  7303. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7304. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7305. cat conftest.err >&5
  7306. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7307. cat conftest.out >&5
  7308. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7309. lt_cv_nm_interface="MS dumpbin"
  7310. fi
  7311. rm -f conftest*
  7312. fi
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7314. $as_echo "$lt_cv_nm_interface" >&6; }
  7315. # find the maximum length of command line arguments
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7317. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7318. if ${lt_cv_sys_max_cmd_len+:} false; then :
  7319. $as_echo_n "(cached) " >&6
  7320. else
  7321. i=0
  7322. teststring="ABCD"
  7323. case $build_os in
  7324. msdosdjgpp*)
  7325. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7326. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7327. # during glob expansion). Even if it were fixed, the result of this
  7328. # check would be larger than it should be.
  7329. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7330. ;;
  7331. gnu*)
  7332. # Under GNU Hurd, this test is not required because there is
  7333. # no limit to the length of command line arguments.
  7334. # Libtool will interpret -1 as no limit whatsoever
  7335. lt_cv_sys_max_cmd_len=-1;
  7336. ;;
  7337. cygwin* | mingw* | cegcc*)
  7338. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7339. # about 5 minutes as the teststring grows exponentially.
  7340. # Worse, since 9x/ME are not pre-emptively multitasking,
  7341. # you end up with a "frozen" computer, even though with patience
  7342. # the test eventually succeeds (with a max line length of 256k).
  7343. # Instead, let's just punt: use the minimum linelength reported by
  7344. # all of the supported platforms: 8192 (on NT/2K/XP).
  7345. lt_cv_sys_max_cmd_len=8192;
  7346. ;;
  7347. mint*)
  7348. # On MiNT this can take a long time and run out of memory.
  7349. lt_cv_sys_max_cmd_len=8192;
  7350. ;;
  7351. amigaos*)
  7352. # On AmigaOS with pdksh, this test takes hours, literally.
  7353. # So we just punt and use a minimum line length of 8192.
  7354. lt_cv_sys_max_cmd_len=8192;
  7355. ;;
  7356. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7357. # This has been around since 386BSD, at least. Likely further.
  7358. if test -x /sbin/sysctl; then
  7359. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7360. elif test -x /usr/sbin/sysctl; then
  7361. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7362. else
  7363. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7364. fi
  7365. # And add a safety zone
  7366. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7367. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7368. ;;
  7369. interix*)
  7370. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7371. lt_cv_sys_max_cmd_len=196608
  7372. ;;
  7373. os2*)
  7374. # The test takes a long time on OS/2.
  7375. lt_cv_sys_max_cmd_len=8192
  7376. ;;
  7377. osf*)
  7378. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7379. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7380. # nice to cause kernel panics so lets avoid the loop below.
  7381. # First set a reasonable default.
  7382. lt_cv_sys_max_cmd_len=16384
  7383. #
  7384. if test -x /sbin/sysconfig; then
  7385. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7386. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7387. esac
  7388. fi
  7389. ;;
  7390. sco3.2v5*)
  7391. lt_cv_sys_max_cmd_len=102400
  7392. ;;
  7393. sysv5* | sco5v6* | sysv4.2uw2*)
  7394. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7395. if test -n "$kargmax"; then
  7396. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7397. else
  7398. lt_cv_sys_max_cmd_len=32768
  7399. fi
  7400. ;;
  7401. *)
  7402. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7403. if test -n "$lt_cv_sys_max_cmd_len"; then
  7404. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7405. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7406. else
  7407. # Make teststring a little bigger before we do anything with it.
  7408. # a 1K string should be a reasonable start.
  7409. for i in 1 2 3 4 5 6 7 8 ; do
  7410. teststring=$teststring$teststring
  7411. done
  7412. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7413. # If test is not a shell built-in, we'll probably end up computing a
  7414. # maximum length that is only half of the actual maximum length, but
  7415. # we can't tell.
  7416. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  7417. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7418. test $i != 17 # 1/2 MB should be enough
  7419. do
  7420. i=`expr $i + 1`
  7421. teststring=$teststring$teststring
  7422. done
  7423. # Only check the string length outside the loop.
  7424. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7425. teststring=
  7426. # Add a significant safety factor because C++ compilers can tack on
  7427. # massive amounts of additional arguments before passing them to the
  7428. # linker. It appears as though 1/2 is a usable value.
  7429. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7430. fi
  7431. ;;
  7432. esac
  7433. fi
  7434. if test -n $lt_cv_sys_max_cmd_len ; then
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7436. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7437. else
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7439. $as_echo "none" >&6; }
  7440. fi
  7441. max_cmd_len=$lt_cv_sys_max_cmd_len
  7442. : ${CP="cp -f"}
  7443. : ${MV="mv -f"}
  7444. : ${RM="rm -f"}
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  7446. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  7447. # Try some XSI features
  7448. xsi_shell=no
  7449. ( _lt_dummy="a/b/c"
  7450. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7451. = c,a/b,b/c, \
  7452. && eval 'test $(( 1 + 1 )) -eq 2 \
  7453. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7454. && xsi_shell=yes
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  7456. $as_echo "$xsi_shell" >&6; }
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  7458. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  7459. lt_shell_append=no
  7460. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  7461. >/dev/null 2>&1 \
  7462. && lt_shell_append=yes
  7463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  7464. $as_echo "$lt_shell_append" >&6; }
  7465. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7466. lt_unset=unset
  7467. else
  7468. lt_unset=false
  7469. fi
  7470. # test EBCDIC or ASCII
  7471. case `echo X|tr X '\101'` in
  7472. A) # ASCII based system
  7473. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7474. lt_SP2NL='tr \040 \012'
  7475. lt_NL2SP='tr \015\012 \040\040'
  7476. ;;
  7477. *) # EBCDIC based system
  7478. lt_SP2NL='tr \100 \n'
  7479. lt_NL2SP='tr \r\n \100\100'
  7480. ;;
  7481. esac
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7483. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7484. if ${lt_cv_to_host_file_cmd+:} false; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. case $host in
  7488. *-*-mingw* )
  7489. case $build in
  7490. *-*-mingw* ) # actually msys
  7491. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7492. ;;
  7493. *-*-cygwin* )
  7494. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7495. ;;
  7496. * ) # otherwise, assume *nix
  7497. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7498. ;;
  7499. esac
  7500. ;;
  7501. *-*-cygwin* )
  7502. case $build in
  7503. *-*-mingw* ) # actually msys
  7504. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7505. ;;
  7506. *-*-cygwin* )
  7507. lt_cv_to_host_file_cmd=func_convert_file_noop
  7508. ;;
  7509. * ) # otherwise, assume *nix
  7510. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7511. ;;
  7512. esac
  7513. ;;
  7514. * ) # unhandled hosts (and "normal" native builds)
  7515. lt_cv_to_host_file_cmd=func_convert_file_noop
  7516. ;;
  7517. esac
  7518. fi
  7519. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7521. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7523. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7524. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7525. $as_echo_n "(cached) " >&6
  7526. else
  7527. #assume ordinary cross tools, or native build.
  7528. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7529. case $host in
  7530. *-*-mingw* )
  7531. case $build in
  7532. *-*-mingw* ) # actually msys
  7533. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7534. ;;
  7535. esac
  7536. ;;
  7537. esac
  7538. fi
  7539. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7541. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7543. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7544. if ${lt_cv_ld_reload_flag+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. lt_cv_ld_reload_flag='-r'
  7548. fi
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7550. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7551. reload_flag=$lt_cv_ld_reload_flag
  7552. case $reload_flag in
  7553. "" | " "*) ;;
  7554. *) reload_flag=" $reload_flag" ;;
  7555. esac
  7556. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7557. case $host_os in
  7558. cygwin* | mingw* | pw32* | cegcc*)
  7559. if test "$GCC" != yes; then
  7560. reload_cmds=false
  7561. fi
  7562. ;;
  7563. darwin*)
  7564. if test "$GCC" = yes; then
  7565. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7566. else
  7567. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7568. fi
  7569. ;;
  7570. esac
  7571. if test -n "$ac_tool_prefix"; then
  7572. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7573. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7575. $as_echo_n "checking for $ac_word... " >&6; }
  7576. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7577. $as_echo_n "(cached) " >&6
  7578. else
  7579. if test -n "$OBJDUMP"; then
  7580. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7581. else
  7582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7583. for as_dir in $PATH
  7584. do
  7585. IFS=$as_save_IFS
  7586. test -z "$as_dir" && as_dir=.
  7587. for ac_exec_ext in '' $ac_executable_extensions; do
  7588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7589. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7591. break 2
  7592. fi
  7593. done
  7594. done
  7595. IFS=$as_save_IFS
  7596. fi
  7597. fi
  7598. OBJDUMP=$ac_cv_prog_OBJDUMP
  7599. if test -n "$OBJDUMP"; then
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7601. $as_echo "$OBJDUMP" >&6; }
  7602. else
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7604. $as_echo "no" >&6; }
  7605. fi
  7606. fi
  7607. if test -z "$ac_cv_prog_OBJDUMP"; then
  7608. ac_ct_OBJDUMP=$OBJDUMP
  7609. # Extract the first word of "objdump", so it can be a program name with args.
  7610. set dummy objdump; ac_word=$2
  7611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7612. $as_echo_n "checking for $ac_word... " >&6; }
  7613. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7614. $as_echo_n "(cached) " >&6
  7615. else
  7616. if test -n "$ac_ct_OBJDUMP"; then
  7617. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7618. else
  7619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7620. for as_dir in $PATH
  7621. do
  7622. IFS=$as_save_IFS
  7623. test -z "$as_dir" && as_dir=.
  7624. for ac_exec_ext in '' $ac_executable_extensions; do
  7625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7626. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7628. break 2
  7629. fi
  7630. done
  7631. done
  7632. IFS=$as_save_IFS
  7633. fi
  7634. fi
  7635. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7636. if test -n "$ac_ct_OBJDUMP"; then
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7638. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7639. else
  7640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7641. $as_echo "no" >&6; }
  7642. fi
  7643. if test "x$ac_ct_OBJDUMP" = x; then
  7644. OBJDUMP="false"
  7645. else
  7646. case $cross_compiling:$ac_tool_warned in
  7647. yes:)
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7650. ac_tool_warned=yes ;;
  7651. esac
  7652. OBJDUMP=$ac_ct_OBJDUMP
  7653. fi
  7654. else
  7655. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7656. fi
  7657. test -z "$OBJDUMP" && OBJDUMP=objdump
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7659. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7660. if ${lt_cv_deplibs_check_method+:} false; then :
  7661. $as_echo_n "(cached) " >&6
  7662. else
  7663. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7664. lt_cv_file_magic_test_file=
  7665. lt_cv_deplibs_check_method='unknown'
  7666. # Need to set the preceding variable on all platforms that support
  7667. # interlibrary dependencies.
  7668. # 'none' -- dependencies not supported.
  7669. # `unknown' -- same as none, but documents that we really don't know.
  7670. # 'pass_all' -- all dependencies passed with no checks.
  7671. # 'test_compile' -- check by making test program.
  7672. # 'file_magic [[regex]]' -- check by looking for files in library path
  7673. # which responds to the $file_magic_cmd with a given extended regex.
  7674. # If you have `file' or equivalent on your system and you're not sure
  7675. # whether `pass_all' will *always* work, you probably want this one.
  7676. case $host_os in
  7677. aix[4-9]*)
  7678. lt_cv_deplibs_check_method=pass_all
  7679. ;;
  7680. beos*)
  7681. lt_cv_deplibs_check_method=pass_all
  7682. ;;
  7683. bsdi[45]*)
  7684. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7685. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7686. lt_cv_file_magic_test_file=/shlib/libc.so
  7687. ;;
  7688. cygwin*)
  7689. # func_win32_libid is a shell function defined in ltmain.sh
  7690. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7691. lt_cv_file_magic_cmd='func_win32_libid'
  7692. ;;
  7693. mingw* | pw32*)
  7694. # Base MSYS/MinGW do not provide the 'file' command needed by
  7695. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7696. # unless we find 'file', for example because we are cross-compiling.
  7697. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  7698. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  7699. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7700. lt_cv_file_magic_cmd='func_win32_libid'
  7701. else
  7702. # Keep this pattern in sync with the one in func_win32_libid.
  7703. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7704. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7705. fi
  7706. ;;
  7707. cegcc*)
  7708. # use the weaker test based on 'objdump'. See mingw*.
  7709. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7710. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7711. ;;
  7712. darwin* | rhapsody*)
  7713. lt_cv_deplibs_check_method=pass_all
  7714. ;;
  7715. freebsd* | dragonfly*)
  7716. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7717. case $host_cpu in
  7718. i*86 )
  7719. # Not sure whether the presence of OpenBSD here was a mistake.
  7720. # Let's accept both of them until this is cleared up.
  7721. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7722. lt_cv_file_magic_cmd=/usr/bin/file
  7723. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7724. ;;
  7725. esac
  7726. else
  7727. lt_cv_deplibs_check_method=pass_all
  7728. fi
  7729. ;;
  7730. gnu*)
  7731. lt_cv_deplibs_check_method=pass_all
  7732. ;;
  7733. haiku*)
  7734. lt_cv_deplibs_check_method=pass_all
  7735. ;;
  7736. hpux10.20* | hpux11*)
  7737. lt_cv_file_magic_cmd=/usr/bin/file
  7738. case $host_cpu in
  7739. ia64*)
  7740. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7741. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7742. ;;
  7743. hppa*64*)
  7744. 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]'
  7745. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7746. ;;
  7747. *)
  7748. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7749. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7750. ;;
  7751. esac
  7752. ;;
  7753. interix[3-9]*)
  7754. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7755. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7756. ;;
  7757. irix5* | irix6* | nonstopux*)
  7758. case $LD in
  7759. *-32|*"-32 ") libmagic=32-bit;;
  7760. *-n32|*"-n32 ") libmagic=N32;;
  7761. *-64|*"-64 ") libmagic=64-bit;;
  7762. *) libmagic=never-match;;
  7763. esac
  7764. lt_cv_deplibs_check_method=pass_all
  7765. ;;
  7766. # This must be glibc/ELF.
  7767. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7768. lt_cv_deplibs_check_method=pass_all
  7769. ;;
  7770. netbsd*)
  7771. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7772. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7773. else
  7774. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7775. fi
  7776. ;;
  7777. newos6*)
  7778. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7779. lt_cv_file_magic_cmd=/usr/bin/file
  7780. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7781. ;;
  7782. *nto* | *qnx*)
  7783. lt_cv_deplibs_check_method=pass_all
  7784. ;;
  7785. openbsd*)
  7786. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7787. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7788. else
  7789. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7790. fi
  7791. ;;
  7792. osf3* | osf4* | osf5*)
  7793. lt_cv_deplibs_check_method=pass_all
  7794. ;;
  7795. rdos*)
  7796. lt_cv_deplibs_check_method=pass_all
  7797. ;;
  7798. solaris*)
  7799. lt_cv_deplibs_check_method=pass_all
  7800. ;;
  7801. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7802. lt_cv_deplibs_check_method=pass_all
  7803. ;;
  7804. sysv4 | sysv4.3*)
  7805. case $host_vendor in
  7806. motorola)
  7807. 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]'
  7808. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7809. ;;
  7810. ncr)
  7811. lt_cv_deplibs_check_method=pass_all
  7812. ;;
  7813. sequent)
  7814. lt_cv_file_magic_cmd='/bin/file'
  7815. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7816. ;;
  7817. sni)
  7818. lt_cv_file_magic_cmd='/bin/file'
  7819. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7820. lt_cv_file_magic_test_file=/lib/libc.so
  7821. ;;
  7822. siemens)
  7823. lt_cv_deplibs_check_method=pass_all
  7824. ;;
  7825. pc)
  7826. lt_cv_deplibs_check_method=pass_all
  7827. ;;
  7828. esac
  7829. ;;
  7830. tpf*)
  7831. lt_cv_deplibs_check_method=pass_all
  7832. ;;
  7833. esac
  7834. fi
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7836. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7837. file_magic_glob=
  7838. want_nocaseglob=no
  7839. if test "$build" = "$host"; then
  7840. case $host_os in
  7841. mingw* | pw32*)
  7842. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7843. want_nocaseglob=yes
  7844. else
  7845. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7846. fi
  7847. ;;
  7848. esac
  7849. fi
  7850. file_magic_cmd=$lt_cv_file_magic_cmd
  7851. deplibs_check_method=$lt_cv_deplibs_check_method
  7852. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7853. if test -n "$ac_tool_prefix"; then
  7854. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7855. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7857. $as_echo_n "checking for $ac_word... " >&6; }
  7858. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7859. $as_echo_n "(cached) " >&6
  7860. else
  7861. if test -n "$DLLTOOL"; then
  7862. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7863. else
  7864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7865. for as_dir in $PATH
  7866. do
  7867. IFS=$as_save_IFS
  7868. test -z "$as_dir" && as_dir=.
  7869. for ac_exec_ext in '' $ac_executable_extensions; do
  7870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7871. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7873. break 2
  7874. fi
  7875. done
  7876. done
  7877. IFS=$as_save_IFS
  7878. fi
  7879. fi
  7880. DLLTOOL=$ac_cv_prog_DLLTOOL
  7881. if test -n "$DLLTOOL"; then
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7883. $as_echo "$DLLTOOL" >&6; }
  7884. else
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7886. $as_echo "no" >&6; }
  7887. fi
  7888. fi
  7889. if test -z "$ac_cv_prog_DLLTOOL"; then
  7890. ac_ct_DLLTOOL=$DLLTOOL
  7891. # Extract the first word of "dlltool", so it can be a program name with args.
  7892. set dummy dlltool; ac_word=$2
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7894. $as_echo_n "checking for $ac_word... " >&6; }
  7895. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7896. $as_echo_n "(cached) " >&6
  7897. else
  7898. if test -n "$ac_ct_DLLTOOL"; then
  7899. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7900. else
  7901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7902. for as_dir in $PATH
  7903. do
  7904. IFS=$as_save_IFS
  7905. test -z "$as_dir" && as_dir=.
  7906. for ac_exec_ext in '' $ac_executable_extensions; do
  7907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7908. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7910. break 2
  7911. fi
  7912. done
  7913. done
  7914. IFS=$as_save_IFS
  7915. fi
  7916. fi
  7917. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7918. if test -n "$ac_ct_DLLTOOL"; then
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7920. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7921. else
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7923. $as_echo "no" >&6; }
  7924. fi
  7925. if test "x$ac_ct_DLLTOOL" = x; then
  7926. DLLTOOL="false"
  7927. else
  7928. case $cross_compiling:$ac_tool_warned in
  7929. yes:)
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7931. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7932. ac_tool_warned=yes ;;
  7933. esac
  7934. DLLTOOL=$ac_ct_DLLTOOL
  7935. fi
  7936. else
  7937. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7938. fi
  7939. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7941. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7942. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7943. $as_echo_n "(cached) " >&6
  7944. else
  7945. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7946. case $host_os in
  7947. cygwin* | mingw* | pw32* | cegcc*)
  7948. # two different shell functions defined in ltmain.sh
  7949. # decide which to use based on capabilities of $DLLTOOL
  7950. case `$DLLTOOL --help 2>&1` in
  7951. *--identify-strict*)
  7952. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7953. ;;
  7954. *)
  7955. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7956. ;;
  7957. esac
  7958. ;;
  7959. *)
  7960. # fallback: assume linklib IS sharedlib
  7961. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  7962. ;;
  7963. esac
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7966. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7967. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7968. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7969. if test -n "$ac_tool_prefix"; then
  7970. for ac_prog in ar
  7971. do
  7972. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7973. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7975. $as_echo_n "checking for $ac_word... " >&6; }
  7976. if ${ac_cv_prog_AR+:} false; then :
  7977. $as_echo_n "(cached) " >&6
  7978. else
  7979. if test -n "$AR"; then
  7980. ac_cv_prog_AR="$AR" # Let the user override the test.
  7981. else
  7982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7983. for as_dir in $PATH
  7984. do
  7985. IFS=$as_save_IFS
  7986. test -z "$as_dir" && as_dir=.
  7987. for ac_exec_ext in '' $ac_executable_extensions; do
  7988. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7989. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7990. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7991. break 2
  7992. fi
  7993. done
  7994. done
  7995. IFS=$as_save_IFS
  7996. fi
  7997. fi
  7998. AR=$ac_cv_prog_AR
  7999. if test -n "$AR"; then
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8001. $as_echo "$AR" >&6; }
  8002. else
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8004. $as_echo "no" >&6; }
  8005. fi
  8006. test -n "$AR" && break
  8007. done
  8008. fi
  8009. if test -z "$AR"; then
  8010. ac_ct_AR=$AR
  8011. for ac_prog in ar
  8012. do
  8013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8014. set dummy $ac_prog; ac_word=$2
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8016. $as_echo_n "checking for $ac_word... " >&6; }
  8017. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  8018. $as_echo_n "(cached) " >&6
  8019. else
  8020. if test -n "$ac_ct_AR"; then
  8021. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8022. else
  8023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8024. for as_dir in $PATH
  8025. do
  8026. IFS=$as_save_IFS
  8027. test -z "$as_dir" && as_dir=.
  8028. for ac_exec_ext in '' $ac_executable_extensions; do
  8029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8030. ac_cv_prog_ac_ct_AR="$ac_prog"
  8031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8032. break 2
  8033. fi
  8034. done
  8035. done
  8036. IFS=$as_save_IFS
  8037. fi
  8038. fi
  8039. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8040. if test -n "$ac_ct_AR"; then
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8042. $as_echo "$ac_ct_AR" >&6; }
  8043. else
  8044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8045. $as_echo "no" >&6; }
  8046. fi
  8047. test -n "$ac_ct_AR" && break
  8048. done
  8049. if test "x$ac_ct_AR" = x; then
  8050. AR="false"
  8051. else
  8052. case $cross_compiling:$ac_tool_warned in
  8053. yes:)
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8055. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8056. ac_tool_warned=yes ;;
  8057. esac
  8058. AR=$ac_ct_AR
  8059. fi
  8060. fi
  8061. : ${AR=ar}
  8062. : ${AR_FLAGS=cru}
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8064. $as_echo_n "checking for archiver @FILE support... " >&6; }
  8065. if ${lt_cv_ar_at_file+:} false; then :
  8066. $as_echo_n "(cached) " >&6
  8067. else
  8068. lt_cv_ar_at_file=no
  8069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8070. /* end confdefs.h. */
  8071. int
  8072. main ()
  8073. {
  8074. ;
  8075. return 0;
  8076. }
  8077. _ACEOF
  8078. if ac_fn_c_try_compile "$LINENO"; then :
  8079. echo conftest.$ac_objext > conftest.lst
  8080. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8081. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8082. (eval $lt_ar_try) 2>&5
  8083. ac_status=$?
  8084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8085. test $ac_status = 0; }
  8086. if test "$ac_status" -eq 0; then
  8087. # Ensure the archiver fails upon bogus file names.
  8088. rm -f conftest.$ac_objext libconftest.a
  8089. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8090. (eval $lt_ar_try) 2>&5
  8091. ac_status=$?
  8092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8093. test $ac_status = 0; }
  8094. if test "$ac_status" -ne 0; then
  8095. lt_cv_ar_at_file=@
  8096. fi
  8097. fi
  8098. rm -f conftest.* libconftest.a
  8099. fi
  8100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8101. fi
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8103. $as_echo "$lt_cv_ar_at_file" >&6; }
  8104. if test "x$lt_cv_ar_at_file" = xno; then
  8105. archiver_list_spec=
  8106. else
  8107. archiver_list_spec=$lt_cv_ar_at_file
  8108. fi
  8109. if test -n "$ac_tool_prefix"; then
  8110. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8111. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8113. $as_echo_n "checking for $ac_word... " >&6; }
  8114. if ${ac_cv_prog_STRIP+:} false; then :
  8115. $as_echo_n "(cached) " >&6
  8116. else
  8117. if test -n "$STRIP"; then
  8118. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8119. else
  8120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8121. for as_dir in $PATH
  8122. do
  8123. IFS=$as_save_IFS
  8124. test -z "$as_dir" && as_dir=.
  8125. for ac_exec_ext in '' $ac_executable_extensions; do
  8126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8127. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8129. break 2
  8130. fi
  8131. done
  8132. done
  8133. IFS=$as_save_IFS
  8134. fi
  8135. fi
  8136. STRIP=$ac_cv_prog_STRIP
  8137. if test -n "$STRIP"; then
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8139. $as_echo "$STRIP" >&6; }
  8140. else
  8141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8142. $as_echo "no" >&6; }
  8143. fi
  8144. fi
  8145. if test -z "$ac_cv_prog_STRIP"; then
  8146. ac_ct_STRIP=$STRIP
  8147. # Extract the first word of "strip", so it can be a program name with args.
  8148. set dummy strip; ac_word=$2
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8150. $as_echo_n "checking for $ac_word... " >&6; }
  8151. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8152. $as_echo_n "(cached) " >&6
  8153. else
  8154. if test -n "$ac_ct_STRIP"; then
  8155. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8156. else
  8157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8158. for as_dir in $PATH
  8159. do
  8160. IFS=$as_save_IFS
  8161. test -z "$as_dir" && as_dir=.
  8162. for ac_exec_ext in '' $ac_executable_extensions; do
  8163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8164. ac_cv_prog_ac_ct_STRIP="strip"
  8165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8166. break 2
  8167. fi
  8168. done
  8169. done
  8170. IFS=$as_save_IFS
  8171. fi
  8172. fi
  8173. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8174. if test -n "$ac_ct_STRIP"; then
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8176. $as_echo "$ac_ct_STRIP" >&6; }
  8177. else
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8179. $as_echo "no" >&6; }
  8180. fi
  8181. if test "x$ac_ct_STRIP" = x; then
  8182. STRIP=":"
  8183. else
  8184. case $cross_compiling:$ac_tool_warned in
  8185. yes:)
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8187. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8188. ac_tool_warned=yes ;;
  8189. esac
  8190. STRIP=$ac_ct_STRIP
  8191. fi
  8192. else
  8193. STRIP="$ac_cv_prog_STRIP"
  8194. fi
  8195. test -z "$STRIP" && STRIP=:
  8196. if test -n "$ac_tool_prefix"; then
  8197. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8198. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8200. $as_echo_n "checking for $ac_word... " >&6; }
  8201. if ${ac_cv_prog_RANLIB+:} false; then :
  8202. $as_echo_n "(cached) " >&6
  8203. else
  8204. if test -n "$RANLIB"; then
  8205. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8206. else
  8207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8208. for as_dir in $PATH
  8209. do
  8210. IFS=$as_save_IFS
  8211. test -z "$as_dir" && as_dir=.
  8212. for ac_exec_ext in '' $ac_executable_extensions; do
  8213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8214. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8216. break 2
  8217. fi
  8218. done
  8219. done
  8220. IFS=$as_save_IFS
  8221. fi
  8222. fi
  8223. RANLIB=$ac_cv_prog_RANLIB
  8224. if test -n "$RANLIB"; then
  8225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8226. $as_echo "$RANLIB" >&6; }
  8227. else
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8229. $as_echo "no" >&6; }
  8230. fi
  8231. fi
  8232. if test -z "$ac_cv_prog_RANLIB"; then
  8233. ac_ct_RANLIB=$RANLIB
  8234. # Extract the first word of "ranlib", so it can be a program name with args.
  8235. set dummy ranlib; ac_word=$2
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8237. $as_echo_n "checking for $ac_word... " >&6; }
  8238. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8239. $as_echo_n "(cached) " >&6
  8240. else
  8241. if test -n "$ac_ct_RANLIB"; then
  8242. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8243. else
  8244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8245. for as_dir in $PATH
  8246. do
  8247. IFS=$as_save_IFS
  8248. test -z "$as_dir" && as_dir=.
  8249. for ac_exec_ext in '' $ac_executable_extensions; do
  8250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8251. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8253. break 2
  8254. fi
  8255. done
  8256. done
  8257. IFS=$as_save_IFS
  8258. fi
  8259. fi
  8260. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8261. if test -n "$ac_ct_RANLIB"; then
  8262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8263. $as_echo "$ac_ct_RANLIB" >&6; }
  8264. else
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8266. $as_echo "no" >&6; }
  8267. fi
  8268. if test "x$ac_ct_RANLIB" = x; then
  8269. RANLIB=":"
  8270. else
  8271. case $cross_compiling:$ac_tool_warned in
  8272. yes:)
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8275. ac_tool_warned=yes ;;
  8276. esac
  8277. RANLIB=$ac_ct_RANLIB
  8278. fi
  8279. else
  8280. RANLIB="$ac_cv_prog_RANLIB"
  8281. fi
  8282. test -z "$RANLIB" && RANLIB=:
  8283. # Determine commands to create old-style static archives.
  8284. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8285. old_postinstall_cmds='chmod 644 $oldlib'
  8286. old_postuninstall_cmds=
  8287. if test -n "$RANLIB"; then
  8288. case $host_os in
  8289. openbsd*)
  8290. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8291. ;;
  8292. *)
  8293. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8294. ;;
  8295. esac
  8296. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8297. fi
  8298. case $host_os in
  8299. darwin*)
  8300. lock_old_archive_extraction=yes ;;
  8301. *)
  8302. lock_old_archive_extraction=no ;;
  8303. esac
  8304. # If no C compiler was specified, use CC.
  8305. LTCC=${LTCC-"$CC"}
  8306. # If no C compiler flags were specified, use CFLAGS.
  8307. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8308. # Allow CC to be a program name with arguments.
  8309. compiler=$CC
  8310. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8312. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8313. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8314. $as_echo_n "(cached) " >&6
  8315. else
  8316. # These are sane defaults that work on at least a few old systems.
  8317. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8318. # Character class describing NM global symbol codes.
  8319. symcode='[BCDEGRST]'
  8320. # Regexp to match symbols that can be accessed directly from C.
  8321. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8322. # Define system-specific variables.
  8323. case $host_os in
  8324. aix*)
  8325. symcode='[BCDT]'
  8326. ;;
  8327. cygwin* | mingw* | pw32* | cegcc*)
  8328. symcode='[ABCDGISTW]'
  8329. ;;
  8330. hpux*)
  8331. if test "$host_cpu" = ia64; then
  8332. symcode='[ABCDEGRST]'
  8333. fi
  8334. ;;
  8335. irix* | nonstopux*)
  8336. symcode='[BCDEGRST]'
  8337. ;;
  8338. osf*)
  8339. symcode='[BCDEGQRST]'
  8340. ;;
  8341. solaris*)
  8342. symcode='[BDRT]'
  8343. ;;
  8344. sco3.2v5*)
  8345. symcode='[DT]'
  8346. ;;
  8347. sysv4.2uw2*)
  8348. symcode='[DT]'
  8349. ;;
  8350. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8351. symcode='[ABDT]'
  8352. ;;
  8353. sysv4)
  8354. symcode='[DFNSTU]'
  8355. ;;
  8356. esac
  8357. # If we're using GNU nm, then use its standard symbol codes.
  8358. case `$NM -V 2>&1` in
  8359. *GNU* | *'with BFD'*)
  8360. symcode='[ABCDGIRSTW]' ;;
  8361. esac
  8362. # Transform an extracted symbol line into a proper C declaration.
  8363. # Some systems (esp. on ia64) link data and code symbols differently,
  8364. # so use this general approach.
  8365. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8366. # Transform an extracted symbol line into symbol name and symbol address
  8367. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  8368. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  8369. # Handle CRLF in mingw tool chain
  8370. opt_cr=
  8371. case $build_os in
  8372. mingw*)
  8373. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8374. ;;
  8375. esac
  8376. # Try without a prefix underscore, then with it.
  8377. for ac_symprfx in "" "_"; do
  8378. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8379. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8380. # Write the raw and C identifiers.
  8381. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8382. # Fake it for dumpbin and say T for any non-static function
  8383. # and D for any global variable.
  8384. # Also find C++ and __fastcall symbols from MSVC++,
  8385. # which start with @ or ?.
  8386. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8387. " {last_section=section; section=\$ 3};"\
  8388. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8389. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8390. " \$ 0!~/External *\|/{next};"\
  8391. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8392. " {if(hide[section]) next};"\
  8393. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  8394. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  8395. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  8396. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  8397. " ' prfx=^$ac_symprfx"
  8398. else
  8399. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8400. fi
  8401. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8402. # Check to see that the pipe works correctly.
  8403. pipe_works=no
  8404. rm -f conftest*
  8405. cat > conftest.$ac_ext <<_LT_EOF
  8406. #ifdef __cplusplus
  8407. extern "C" {
  8408. #endif
  8409. char nm_test_var;
  8410. void nm_test_func(void);
  8411. void nm_test_func(void){}
  8412. #ifdef __cplusplus
  8413. }
  8414. #endif
  8415. int main(){nm_test_var='a';nm_test_func();return(0);}
  8416. _LT_EOF
  8417. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8418. (eval $ac_compile) 2>&5
  8419. ac_status=$?
  8420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8421. test $ac_status = 0; }; then
  8422. # Now try to grab the symbols.
  8423. nlist=conftest.nm
  8424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8425. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8426. ac_status=$?
  8427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8428. test $ac_status = 0; } && test -s "$nlist"; then
  8429. # Try sorting and uniquifying the output.
  8430. if sort "$nlist" | uniq > "$nlist"T; then
  8431. mv -f "$nlist"T "$nlist"
  8432. else
  8433. rm -f "$nlist"T
  8434. fi
  8435. # Make sure that we snagged all the symbols we need.
  8436. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8437. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8438. cat <<_LT_EOF > conftest.$ac_ext
  8439. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8440. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  8441. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  8442. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8443. # define LT_DLSYM_CONST
  8444. #elif defined(__osf__)
  8445. /* This system does not cope well with relocations in const data. */
  8446. # define LT_DLSYM_CONST
  8447. #else
  8448. # define LT_DLSYM_CONST const
  8449. #endif
  8450. #ifdef __cplusplus
  8451. extern "C" {
  8452. #endif
  8453. _LT_EOF
  8454. # Now generate the symbol file.
  8455. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8456. cat <<_LT_EOF >> conftest.$ac_ext
  8457. /* The mapping between symbol names and symbols. */
  8458. LT_DLSYM_CONST struct {
  8459. const char *name;
  8460. void *address;
  8461. }
  8462. lt__PROGRAM__LTX_preloaded_symbols[] =
  8463. {
  8464. { "@PROGRAM@", (void *) 0 },
  8465. _LT_EOF
  8466. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8467. cat <<\_LT_EOF >> conftest.$ac_ext
  8468. {0, (void *) 0}
  8469. };
  8470. /* This works around a problem in FreeBSD linker */
  8471. #ifdef FREEBSD_WORKAROUND
  8472. static const void *lt_preloaded_setup() {
  8473. return lt__PROGRAM__LTX_preloaded_symbols;
  8474. }
  8475. #endif
  8476. #ifdef __cplusplus
  8477. }
  8478. #endif
  8479. _LT_EOF
  8480. # Now try linking the two files.
  8481. mv conftest.$ac_objext conftstm.$ac_objext
  8482. lt_globsym_save_LIBS=$LIBS
  8483. lt_globsym_save_CFLAGS=$CFLAGS
  8484. LIBS="conftstm.$ac_objext"
  8485. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8487. (eval $ac_link) 2>&5
  8488. ac_status=$?
  8489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8490. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8491. pipe_works=yes
  8492. fi
  8493. LIBS=$lt_globsym_save_LIBS
  8494. CFLAGS=$lt_globsym_save_CFLAGS
  8495. else
  8496. echo "cannot find nm_test_func in $nlist" >&5
  8497. fi
  8498. else
  8499. echo "cannot find nm_test_var in $nlist" >&5
  8500. fi
  8501. else
  8502. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8503. fi
  8504. else
  8505. echo "$progname: failed program was:" >&5
  8506. cat conftest.$ac_ext >&5
  8507. fi
  8508. rm -rf conftest* conftst*
  8509. # Do not use the global_symbol_pipe unless it works.
  8510. if test "$pipe_works" = yes; then
  8511. break
  8512. else
  8513. lt_cv_sys_global_symbol_pipe=
  8514. fi
  8515. done
  8516. fi
  8517. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8518. lt_cv_sys_global_symbol_to_cdecl=
  8519. fi
  8520. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8522. $as_echo "failed" >&6; }
  8523. else
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8525. $as_echo "ok" >&6; }
  8526. fi
  8527. # Response file support.
  8528. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8529. nm_file_list_spec='@'
  8530. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8531. nm_file_list_spec='@'
  8532. fi
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8534. $as_echo_n "checking for sysroot... " >&6; }
  8535. # Check whether --with-sysroot was given.
  8536. if test "${with_sysroot+set}" = set; then :
  8537. withval=$with_sysroot;
  8538. else
  8539. with_sysroot=no
  8540. fi
  8541. lt_sysroot=
  8542. case ${with_sysroot} in #(
  8543. yes)
  8544. if test "$GCC" = yes; then
  8545. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8546. fi
  8547. ;; #(
  8548. /*)
  8549. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8550. ;; #(
  8551. no|'')
  8552. ;; #(
  8553. *)
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  8555. $as_echo "${with_sysroot}" >&6; }
  8556. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8557. ;;
  8558. esac
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8560. $as_echo "${lt_sysroot:-no}" >&6; }
  8561. # Check whether --enable-libtool-lock was given.
  8562. if test "${enable_libtool_lock+set}" = set; then :
  8563. enableval=$enable_libtool_lock;
  8564. fi
  8565. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8566. # Some flags need to be propagated to the compiler or linker for good
  8567. # libtool support.
  8568. case $host in
  8569. ia64-*-hpux*)
  8570. # Find out which ABI we are using.
  8571. echo 'int i;' > conftest.$ac_ext
  8572. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8573. (eval $ac_compile) 2>&5
  8574. ac_status=$?
  8575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8576. test $ac_status = 0; }; then
  8577. case `/usr/bin/file conftest.$ac_objext` in
  8578. *ELF-32*)
  8579. HPUX_IA64_MODE="32"
  8580. ;;
  8581. *ELF-64*)
  8582. HPUX_IA64_MODE="64"
  8583. ;;
  8584. esac
  8585. fi
  8586. rm -rf conftest*
  8587. ;;
  8588. *-*-irix6*)
  8589. # Find out which ABI we are using.
  8590. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8591. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8592. (eval $ac_compile) 2>&5
  8593. ac_status=$?
  8594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8595. test $ac_status = 0; }; then
  8596. if test "$lt_cv_prog_gnu_ld" = yes; then
  8597. case `/usr/bin/file conftest.$ac_objext` in
  8598. *32-bit*)
  8599. LD="${LD-ld} -melf32bsmip"
  8600. ;;
  8601. *N32*)
  8602. LD="${LD-ld} -melf32bmipn32"
  8603. ;;
  8604. *64-bit*)
  8605. LD="${LD-ld} -melf64bmip"
  8606. ;;
  8607. esac
  8608. else
  8609. case `/usr/bin/file conftest.$ac_objext` in
  8610. *32-bit*)
  8611. LD="${LD-ld} -32"
  8612. ;;
  8613. *N32*)
  8614. LD="${LD-ld} -n32"
  8615. ;;
  8616. *64-bit*)
  8617. LD="${LD-ld} -64"
  8618. ;;
  8619. esac
  8620. fi
  8621. fi
  8622. rm -rf conftest*
  8623. ;;
  8624. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  8625. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8626. # Find out which ABI we are using.
  8627. echo 'int i;' > conftest.$ac_ext
  8628. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8629. (eval $ac_compile) 2>&5
  8630. ac_status=$?
  8631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8632. test $ac_status = 0; }; then
  8633. case `/usr/bin/file conftest.o` in
  8634. *32-bit*)
  8635. case $host in
  8636. x86_64-*kfreebsd*-gnu)
  8637. LD="${LD-ld} -m elf_i386_fbsd"
  8638. ;;
  8639. x86_64-*linux*)
  8640. LD="${LD-ld} -m elf_i386"
  8641. ;;
  8642. ppc64-*linux*|powerpc64-*linux*)
  8643. LD="${LD-ld} -m elf32ppclinux"
  8644. ;;
  8645. s390x-*linux*)
  8646. LD="${LD-ld} -m elf_s390"
  8647. ;;
  8648. sparc64-*linux*)
  8649. LD="${LD-ld} -m elf32_sparc"
  8650. ;;
  8651. esac
  8652. ;;
  8653. *64-bit*)
  8654. case $host in
  8655. x86_64-*kfreebsd*-gnu)
  8656. LD="${LD-ld} -m elf_x86_64_fbsd"
  8657. ;;
  8658. x86_64-*linux*)
  8659. LD="${LD-ld} -m elf_x86_64"
  8660. ;;
  8661. ppc*-*linux*|powerpc*-*linux*)
  8662. LD="${LD-ld} -m elf64ppc"
  8663. ;;
  8664. s390*-*linux*|s390*-*tpf*)
  8665. LD="${LD-ld} -m elf64_s390"
  8666. ;;
  8667. sparc*-*linux*)
  8668. LD="${LD-ld} -m elf64_sparc"
  8669. ;;
  8670. esac
  8671. ;;
  8672. esac
  8673. fi
  8674. rm -rf conftest*
  8675. ;;
  8676. *-*-sco3.2v5*)
  8677. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8678. SAVE_CFLAGS="$CFLAGS"
  8679. CFLAGS="$CFLAGS -belf"
  8680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8681. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8682. if ${lt_cv_cc_needs_belf+:} false; then :
  8683. $as_echo_n "(cached) " >&6
  8684. else
  8685. ac_ext=c
  8686. ac_cpp='$CPP $CPPFLAGS'
  8687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8691. /* end confdefs.h. */
  8692. int
  8693. main ()
  8694. {
  8695. ;
  8696. return 0;
  8697. }
  8698. _ACEOF
  8699. if ac_fn_c_try_link "$LINENO"; then :
  8700. lt_cv_cc_needs_belf=yes
  8701. else
  8702. lt_cv_cc_needs_belf=no
  8703. fi
  8704. rm -f core conftest.err conftest.$ac_objext \
  8705. conftest$ac_exeext conftest.$ac_ext
  8706. ac_ext=c
  8707. ac_cpp='$CPP $CPPFLAGS'
  8708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8711. fi
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8713. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8714. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8715. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8716. CFLAGS="$SAVE_CFLAGS"
  8717. fi
  8718. ;;
  8719. *-*solaris*)
  8720. # Find out which ABI we are using.
  8721. echo 'int i;' > conftest.$ac_ext
  8722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8723. (eval $ac_compile) 2>&5
  8724. ac_status=$?
  8725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8726. test $ac_status = 0; }; then
  8727. case `/usr/bin/file conftest.o` in
  8728. *64-bit*)
  8729. case $lt_cv_prog_gnu_ld in
  8730. yes*)
  8731. case $host in
  8732. i?86-*-solaris*)
  8733. LD="${LD-ld} -m elf_x86_64"
  8734. ;;
  8735. sparc*-*-solaris*)
  8736. LD="${LD-ld} -m elf64_sparc"
  8737. ;;
  8738. esac
  8739. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8740. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8741. LD="${LD-ld}_sol2"
  8742. fi
  8743. ;;
  8744. *)
  8745. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8746. LD="${LD-ld} -64"
  8747. fi
  8748. ;;
  8749. esac
  8750. ;;
  8751. esac
  8752. fi
  8753. rm -rf conftest*
  8754. ;;
  8755. esac
  8756. need_locks="$enable_libtool_lock"
  8757. if test -n "$ac_tool_prefix"; then
  8758. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8759. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8761. $as_echo_n "checking for $ac_word... " >&6; }
  8762. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8763. $as_echo_n "(cached) " >&6
  8764. else
  8765. if test -n "$MANIFEST_TOOL"; then
  8766. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8767. else
  8768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8769. for as_dir in $PATH
  8770. do
  8771. IFS=$as_save_IFS
  8772. test -z "$as_dir" && as_dir=.
  8773. for ac_exec_ext in '' $ac_executable_extensions; do
  8774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8775. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8777. break 2
  8778. fi
  8779. done
  8780. done
  8781. IFS=$as_save_IFS
  8782. fi
  8783. fi
  8784. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8785. if test -n "$MANIFEST_TOOL"; then
  8786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8787. $as_echo "$MANIFEST_TOOL" >&6; }
  8788. else
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8790. $as_echo "no" >&6; }
  8791. fi
  8792. fi
  8793. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8794. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8795. # Extract the first word of "mt", so it can be a program name with args.
  8796. set dummy mt; ac_word=$2
  8797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8798. $as_echo_n "checking for $ac_word... " >&6; }
  8799. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8800. $as_echo_n "(cached) " >&6
  8801. else
  8802. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8803. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8804. else
  8805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8806. for as_dir in $PATH
  8807. do
  8808. IFS=$as_save_IFS
  8809. test -z "$as_dir" && as_dir=.
  8810. for ac_exec_ext in '' $ac_executable_extensions; do
  8811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8812. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8814. break 2
  8815. fi
  8816. done
  8817. done
  8818. IFS=$as_save_IFS
  8819. fi
  8820. fi
  8821. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8822. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8824. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8825. else
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8827. $as_echo "no" >&6; }
  8828. fi
  8829. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8830. MANIFEST_TOOL=":"
  8831. else
  8832. case $cross_compiling:$ac_tool_warned in
  8833. yes:)
  8834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8835. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8836. ac_tool_warned=yes ;;
  8837. esac
  8838. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8839. fi
  8840. else
  8841. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8842. fi
  8843. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8845. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8846. if ${lt_cv_path_mainfest_tool+:} false; then :
  8847. $as_echo_n "(cached) " >&6
  8848. else
  8849. lt_cv_path_mainfest_tool=no
  8850. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8851. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8852. cat conftest.err >&5
  8853. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8854. lt_cv_path_mainfest_tool=yes
  8855. fi
  8856. rm -f conftest*
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8859. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8860. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  8861. MANIFEST_TOOL=:
  8862. fi
  8863. case $host_os in
  8864. rhapsody* | darwin*)
  8865. if test -n "$ac_tool_prefix"; then
  8866. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8867. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8869. $as_echo_n "checking for $ac_word... " >&6; }
  8870. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8871. $as_echo_n "(cached) " >&6
  8872. else
  8873. if test -n "$DSYMUTIL"; then
  8874. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8875. else
  8876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8877. for as_dir in $PATH
  8878. do
  8879. IFS=$as_save_IFS
  8880. test -z "$as_dir" && as_dir=.
  8881. for ac_exec_ext in '' $ac_executable_extensions; do
  8882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8883. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8885. break 2
  8886. fi
  8887. done
  8888. done
  8889. IFS=$as_save_IFS
  8890. fi
  8891. fi
  8892. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8893. if test -n "$DSYMUTIL"; then
  8894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8895. $as_echo "$DSYMUTIL" >&6; }
  8896. else
  8897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8898. $as_echo "no" >&6; }
  8899. fi
  8900. fi
  8901. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8902. ac_ct_DSYMUTIL=$DSYMUTIL
  8903. # Extract the first word of "dsymutil", so it can be a program name with args.
  8904. set dummy dsymutil; ac_word=$2
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8906. $as_echo_n "checking for $ac_word... " >&6; }
  8907. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. if test -n "$ac_ct_DSYMUTIL"; then
  8911. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8912. else
  8913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8914. for as_dir in $PATH
  8915. do
  8916. IFS=$as_save_IFS
  8917. test -z "$as_dir" && as_dir=.
  8918. for ac_exec_ext in '' $ac_executable_extensions; do
  8919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8920. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8922. break 2
  8923. fi
  8924. done
  8925. done
  8926. IFS=$as_save_IFS
  8927. fi
  8928. fi
  8929. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8930. if test -n "$ac_ct_DSYMUTIL"; then
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8932. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8933. else
  8934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8935. $as_echo "no" >&6; }
  8936. fi
  8937. if test "x$ac_ct_DSYMUTIL" = x; then
  8938. DSYMUTIL=":"
  8939. else
  8940. case $cross_compiling:$ac_tool_warned in
  8941. yes:)
  8942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8944. ac_tool_warned=yes ;;
  8945. esac
  8946. DSYMUTIL=$ac_ct_DSYMUTIL
  8947. fi
  8948. else
  8949. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8950. fi
  8951. if test -n "$ac_tool_prefix"; then
  8952. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8953. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8955. $as_echo_n "checking for $ac_word... " >&6; }
  8956. if ${ac_cv_prog_NMEDIT+:} false; then :
  8957. $as_echo_n "(cached) " >&6
  8958. else
  8959. if test -n "$NMEDIT"; then
  8960. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8961. else
  8962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8963. for as_dir in $PATH
  8964. do
  8965. IFS=$as_save_IFS
  8966. test -z "$as_dir" && as_dir=.
  8967. for ac_exec_ext in '' $ac_executable_extensions; do
  8968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8969. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8971. break 2
  8972. fi
  8973. done
  8974. done
  8975. IFS=$as_save_IFS
  8976. fi
  8977. fi
  8978. NMEDIT=$ac_cv_prog_NMEDIT
  8979. if test -n "$NMEDIT"; then
  8980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8981. $as_echo "$NMEDIT" >&6; }
  8982. else
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8984. $as_echo "no" >&6; }
  8985. fi
  8986. fi
  8987. if test -z "$ac_cv_prog_NMEDIT"; then
  8988. ac_ct_NMEDIT=$NMEDIT
  8989. # Extract the first word of "nmedit", so it can be a program name with args.
  8990. set dummy nmedit; ac_word=$2
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8992. $as_echo_n "checking for $ac_word... " >&6; }
  8993. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8994. $as_echo_n "(cached) " >&6
  8995. else
  8996. if test -n "$ac_ct_NMEDIT"; then
  8997. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8998. else
  8999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9000. for as_dir in $PATH
  9001. do
  9002. IFS=$as_save_IFS
  9003. test -z "$as_dir" && as_dir=.
  9004. for ac_exec_ext in '' $ac_executable_extensions; do
  9005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9006. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9008. break 2
  9009. fi
  9010. done
  9011. done
  9012. IFS=$as_save_IFS
  9013. fi
  9014. fi
  9015. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9016. if test -n "$ac_ct_NMEDIT"; then
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9018. $as_echo "$ac_ct_NMEDIT" >&6; }
  9019. else
  9020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9021. $as_echo "no" >&6; }
  9022. fi
  9023. if test "x$ac_ct_NMEDIT" = x; then
  9024. NMEDIT=":"
  9025. else
  9026. case $cross_compiling:$ac_tool_warned in
  9027. yes:)
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9030. ac_tool_warned=yes ;;
  9031. esac
  9032. NMEDIT=$ac_ct_NMEDIT
  9033. fi
  9034. else
  9035. NMEDIT="$ac_cv_prog_NMEDIT"
  9036. fi
  9037. if test -n "$ac_tool_prefix"; then
  9038. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9039. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9041. $as_echo_n "checking for $ac_word... " >&6; }
  9042. if ${ac_cv_prog_LIPO+:} false; then :
  9043. $as_echo_n "(cached) " >&6
  9044. else
  9045. if test -n "$LIPO"; then
  9046. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9047. else
  9048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9049. for as_dir in $PATH
  9050. do
  9051. IFS=$as_save_IFS
  9052. test -z "$as_dir" && as_dir=.
  9053. for ac_exec_ext in '' $ac_executable_extensions; do
  9054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9055. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9057. break 2
  9058. fi
  9059. done
  9060. done
  9061. IFS=$as_save_IFS
  9062. fi
  9063. fi
  9064. LIPO=$ac_cv_prog_LIPO
  9065. if test -n "$LIPO"; then
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9067. $as_echo "$LIPO" >&6; }
  9068. else
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9070. $as_echo "no" >&6; }
  9071. fi
  9072. fi
  9073. if test -z "$ac_cv_prog_LIPO"; then
  9074. ac_ct_LIPO=$LIPO
  9075. # Extract the first word of "lipo", so it can be a program name with args.
  9076. set dummy lipo; ac_word=$2
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9078. $as_echo_n "checking for $ac_word... " >&6; }
  9079. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  9080. $as_echo_n "(cached) " >&6
  9081. else
  9082. if test -n "$ac_ct_LIPO"; then
  9083. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9084. else
  9085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9086. for as_dir in $PATH
  9087. do
  9088. IFS=$as_save_IFS
  9089. test -z "$as_dir" && as_dir=.
  9090. for ac_exec_ext in '' $ac_executable_extensions; do
  9091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9092. ac_cv_prog_ac_ct_LIPO="lipo"
  9093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9094. break 2
  9095. fi
  9096. done
  9097. done
  9098. IFS=$as_save_IFS
  9099. fi
  9100. fi
  9101. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9102. if test -n "$ac_ct_LIPO"; then
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9104. $as_echo "$ac_ct_LIPO" >&6; }
  9105. else
  9106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9107. $as_echo "no" >&6; }
  9108. fi
  9109. if test "x$ac_ct_LIPO" = x; then
  9110. LIPO=":"
  9111. else
  9112. case $cross_compiling:$ac_tool_warned in
  9113. yes:)
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9116. ac_tool_warned=yes ;;
  9117. esac
  9118. LIPO=$ac_ct_LIPO
  9119. fi
  9120. else
  9121. LIPO="$ac_cv_prog_LIPO"
  9122. fi
  9123. if test -n "$ac_tool_prefix"; then
  9124. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9125. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9127. $as_echo_n "checking for $ac_word... " >&6; }
  9128. if ${ac_cv_prog_OTOOL+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. if test -n "$OTOOL"; then
  9132. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9133. else
  9134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9135. for as_dir in $PATH
  9136. do
  9137. IFS=$as_save_IFS
  9138. test -z "$as_dir" && as_dir=.
  9139. for ac_exec_ext in '' $ac_executable_extensions; do
  9140. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9141. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9143. break 2
  9144. fi
  9145. done
  9146. done
  9147. IFS=$as_save_IFS
  9148. fi
  9149. fi
  9150. OTOOL=$ac_cv_prog_OTOOL
  9151. if test -n "$OTOOL"; then
  9152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9153. $as_echo "$OTOOL" >&6; }
  9154. else
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9156. $as_echo "no" >&6; }
  9157. fi
  9158. fi
  9159. if test -z "$ac_cv_prog_OTOOL"; then
  9160. ac_ct_OTOOL=$OTOOL
  9161. # Extract the first word of "otool", so it can be a program name with args.
  9162. set dummy otool; ac_word=$2
  9163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9164. $as_echo_n "checking for $ac_word... " >&6; }
  9165. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  9166. $as_echo_n "(cached) " >&6
  9167. else
  9168. if test -n "$ac_ct_OTOOL"; then
  9169. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9170. else
  9171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9172. for as_dir in $PATH
  9173. do
  9174. IFS=$as_save_IFS
  9175. test -z "$as_dir" && as_dir=.
  9176. for ac_exec_ext in '' $ac_executable_extensions; do
  9177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9178. ac_cv_prog_ac_ct_OTOOL="otool"
  9179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9180. break 2
  9181. fi
  9182. done
  9183. done
  9184. IFS=$as_save_IFS
  9185. fi
  9186. fi
  9187. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9188. if test -n "$ac_ct_OTOOL"; then
  9189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9190. $as_echo "$ac_ct_OTOOL" >&6; }
  9191. else
  9192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9193. $as_echo "no" >&6; }
  9194. fi
  9195. if test "x$ac_ct_OTOOL" = x; then
  9196. OTOOL=":"
  9197. else
  9198. case $cross_compiling:$ac_tool_warned in
  9199. yes:)
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9202. ac_tool_warned=yes ;;
  9203. esac
  9204. OTOOL=$ac_ct_OTOOL
  9205. fi
  9206. else
  9207. OTOOL="$ac_cv_prog_OTOOL"
  9208. fi
  9209. if test -n "$ac_tool_prefix"; then
  9210. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9211. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9213. $as_echo_n "checking for $ac_word... " >&6; }
  9214. if ${ac_cv_prog_OTOOL64+:} false; then :
  9215. $as_echo_n "(cached) " >&6
  9216. else
  9217. if test -n "$OTOOL64"; then
  9218. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9219. else
  9220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9221. for as_dir in $PATH
  9222. do
  9223. IFS=$as_save_IFS
  9224. test -z "$as_dir" && as_dir=.
  9225. for ac_exec_ext in '' $ac_executable_extensions; do
  9226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9227. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9229. break 2
  9230. fi
  9231. done
  9232. done
  9233. IFS=$as_save_IFS
  9234. fi
  9235. fi
  9236. OTOOL64=$ac_cv_prog_OTOOL64
  9237. if test -n "$OTOOL64"; then
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9239. $as_echo "$OTOOL64" >&6; }
  9240. else
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9242. $as_echo "no" >&6; }
  9243. fi
  9244. fi
  9245. if test -z "$ac_cv_prog_OTOOL64"; then
  9246. ac_ct_OTOOL64=$OTOOL64
  9247. # Extract the first word of "otool64", so it can be a program name with args.
  9248. set dummy otool64; ac_word=$2
  9249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9250. $as_echo_n "checking for $ac_word... " >&6; }
  9251. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9252. $as_echo_n "(cached) " >&6
  9253. else
  9254. if test -n "$ac_ct_OTOOL64"; then
  9255. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9256. else
  9257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9258. for as_dir in $PATH
  9259. do
  9260. IFS=$as_save_IFS
  9261. test -z "$as_dir" && as_dir=.
  9262. for ac_exec_ext in '' $ac_executable_extensions; do
  9263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9264. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9266. break 2
  9267. fi
  9268. done
  9269. done
  9270. IFS=$as_save_IFS
  9271. fi
  9272. fi
  9273. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9274. if test -n "$ac_ct_OTOOL64"; then
  9275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9276. $as_echo "$ac_ct_OTOOL64" >&6; }
  9277. else
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9279. $as_echo "no" >&6; }
  9280. fi
  9281. if test "x$ac_ct_OTOOL64" = x; then
  9282. OTOOL64=":"
  9283. else
  9284. case $cross_compiling:$ac_tool_warned in
  9285. yes:)
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9288. ac_tool_warned=yes ;;
  9289. esac
  9290. OTOOL64=$ac_ct_OTOOL64
  9291. fi
  9292. else
  9293. OTOOL64="$ac_cv_prog_OTOOL64"
  9294. fi
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9296. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9297. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9298. $as_echo_n "(cached) " >&6
  9299. else
  9300. lt_cv_apple_cc_single_mod=no
  9301. if test -z "${LT_MULTI_MODULE}"; then
  9302. # By default we will add the -single_module flag. You can override
  9303. # by either setting the environment variable LT_MULTI_MODULE
  9304. # non-empty at configure time, or by adding -multi_module to the
  9305. # link flags.
  9306. rm -rf libconftest.dylib*
  9307. echo "int foo(void){return 1;}" > conftest.c
  9308. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9309. -dynamiclib -Wl,-single_module conftest.c" >&5
  9310. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9311. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9312. _lt_result=$?
  9313. # If there is a non-empty error log, and "single_module"
  9314. # appears in it, assume the flag caused a linker warning
  9315. if test -s conftest.err && $GREP single_module conftest.err; then
  9316. cat conftest.err >&5
  9317. # Otherwise, if the output was created with a 0 exit code from
  9318. # the compiler, it worked.
  9319. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  9320. lt_cv_apple_cc_single_mod=yes
  9321. else
  9322. cat conftest.err >&5
  9323. fi
  9324. rm -rf libconftest.dylib*
  9325. rm -f conftest.*
  9326. fi
  9327. fi
  9328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9329. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9331. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9332. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9333. $as_echo_n "(cached) " >&6
  9334. else
  9335. lt_cv_ld_exported_symbols_list=no
  9336. save_LDFLAGS=$LDFLAGS
  9337. echo "_main" > conftest.sym
  9338. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9340. /* end confdefs.h. */
  9341. int
  9342. main ()
  9343. {
  9344. ;
  9345. return 0;
  9346. }
  9347. _ACEOF
  9348. if ac_fn_c_try_link "$LINENO"; then :
  9349. lt_cv_ld_exported_symbols_list=yes
  9350. else
  9351. lt_cv_ld_exported_symbols_list=no
  9352. fi
  9353. rm -f core conftest.err conftest.$ac_objext \
  9354. conftest$ac_exeext conftest.$ac_ext
  9355. LDFLAGS="$save_LDFLAGS"
  9356. fi
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9358. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9360. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9361. if ${lt_cv_ld_force_load+:} false; then :
  9362. $as_echo_n "(cached) " >&6
  9363. else
  9364. lt_cv_ld_force_load=no
  9365. cat > conftest.c << _LT_EOF
  9366. int forced_loaded() { return 2;}
  9367. _LT_EOF
  9368. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9369. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9370. echo "$AR cru libconftest.a conftest.o" >&5
  9371. $AR cru libconftest.a conftest.o 2>&5
  9372. echo "$RANLIB libconftest.a" >&5
  9373. $RANLIB libconftest.a 2>&5
  9374. cat > conftest.c << _LT_EOF
  9375. int main() { return 0;}
  9376. _LT_EOF
  9377. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9378. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9379. _lt_result=$?
  9380. if test -s conftest.err && $GREP force_load conftest.err; then
  9381. cat conftest.err >&5
  9382. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  9383. lt_cv_ld_force_load=yes
  9384. else
  9385. cat conftest.err >&5
  9386. fi
  9387. rm -f conftest.err libconftest.a conftest conftest.c
  9388. rm -rf conftest.dSYM
  9389. fi
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9391. $as_echo "$lt_cv_ld_force_load" >&6; }
  9392. case $host_os in
  9393. rhapsody* | darwin1.[012])
  9394. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  9395. darwin1.*)
  9396. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9397. darwin*) # darwin 5.x on
  9398. # if running on 10.5 or later, the deployment target defaults
  9399. # to the OS version, if on x86, and 10.4, the deployment
  9400. # target defaults to 10.4. Don't you love it?
  9401. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9402. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9403. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9404. 10.[012]*)
  9405. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9406. 10.*)
  9407. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9408. esac
  9409. ;;
  9410. esac
  9411. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  9412. _lt_dar_single_mod='$single_module'
  9413. fi
  9414. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  9415. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  9416. else
  9417. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9418. fi
  9419. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  9420. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9421. else
  9422. _lt_dsymutil=
  9423. fi
  9424. ;;
  9425. esac
  9426. for ac_header in dlfcn.h
  9427. do :
  9428. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9429. "
  9430. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9431. cat >>confdefs.h <<_ACEOF
  9432. #define HAVE_DLFCN_H 1
  9433. _ACEOF
  9434. fi
  9435. done
  9436. # Set options
  9437. # Check whether --enable-shared was given.
  9438. if test "${enable_shared+set}" = set; then :
  9439. enableval=$enable_shared; p=${PACKAGE-default}
  9440. case $enableval in
  9441. yes) enable_shared=yes ;;
  9442. no) enable_shared=no ;;
  9443. *)
  9444. enable_shared=no
  9445. # Look at the argument we got. We use all the common list separators.
  9446. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9447. for pkg in $enableval; do
  9448. IFS="$lt_save_ifs"
  9449. if test "X$pkg" = "X$p"; then
  9450. enable_shared=yes
  9451. fi
  9452. done
  9453. IFS="$lt_save_ifs"
  9454. ;;
  9455. esac
  9456. else
  9457. enable_shared=no
  9458. fi
  9459. enable_win32_dll=yes
  9460. case $host in
  9461. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  9462. if test -n "$ac_tool_prefix"; then
  9463. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  9464. set dummy ${ac_tool_prefix}as; ac_word=$2
  9465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9466. $as_echo_n "checking for $ac_word... " >&6; }
  9467. if ${ac_cv_prog_AS+:} false; then :
  9468. $as_echo_n "(cached) " >&6
  9469. else
  9470. if test -n "$AS"; then
  9471. ac_cv_prog_AS="$AS" # Let the user override the test.
  9472. else
  9473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9474. for as_dir in $PATH
  9475. do
  9476. IFS=$as_save_IFS
  9477. test -z "$as_dir" && as_dir=.
  9478. for ac_exec_ext in '' $ac_executable_extensions; do
  9479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9480. ac_cv_prog_AS="${ac_tool_prefix}as"
  9481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9482. break 2
  9483. fi
  9484. done
  9485. done
  9486. IFS=$as_save_IFS
  9487. fi
  9488. fi
  9489. AS=$ac_cv_prog_AS
  9490. if test -n "$AS"; then
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9492. $as_echo "$AS" >&6; }
  9493. else
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9495. $as_echo "no" >&6; }
  9496. fi
  9497. fi
  9498. if test -z "$ac_cv_prog_AS"; then
  9499. ac_ct_AS=$AS
  9500. # Extract the first word of "as", so it can be a program name with args.
  9501. set dummy as; ac_word=$2
  9502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9503. $as_echo_n "checking for $ac_word... " >&6; }
  9504. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  9505. $as_echo_n "(cached) " >&6
  9506. else
  9507. if test -n "$ac_ct_AS"; then
  9508. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  9509. else
  9510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9511. for as_dir in $PATH
  9512. do
  9513. IFS=$as_save_IFS
  9514. test -z "$as_dir" && as_dir=.
  9515. for ac_exec_ext in '' $ac_executable_extensions; do
  9516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9517. ac_cv_prog_ac_ct_AS="as"
  9518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9519. break 2
  9520. fi
  9521. done
  9522. done
  9523. IFS=$as_save_IFS
  9524. fi
  9525. fi
  9526. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  9527. if test -n "$ac_ct_AS"; then
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  9529. $as_echo "$ac_ct_AS" >&6; }
  9530. else
  9531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9532. $as_echo "no" >&6; }
  9533. fi
  9534. if test "x$ac_ct_AS" = x; then
  9535. AS="false"
  9536. else
  9537. case $cross_compiling:$ac_tool_warned in
  9538. yes:)
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9541. ac_tool_warned=yes ;;
  9542. esac
  9543. AS=$ac_ct_AS
  9544. fi
  9545. else
  9546. AS="$ac_cv_prog_AS"
  9547. fi
  9548. if test -n "$ac_tool_prefix"; then
  9549. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9550. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9552. $as_echo_n "checking for $ac_word... " >&6; }
  9553. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9554. $as_echo_n "(cached) " >&6
  9555. else
  9556. if test -n "$DLLTOOL"; then
  9557. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9558. else
  9559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9560. for as_dir in $PATH
  9561. do
  9562. IFS=$as_save_IFS
  9563. test -z "$as_dir" && as_dir=.
  9564. for ac_exec_ext in '' $ac_executable_extensions; do
  9565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9566. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9568. break 2
  9569. fi
  9570. done
  9571. done
  9572. IFS=$as_save_IFS
  9573. fi
  9574. fi
  9575. DLLTOOL=$ac_cv_prog_DLLTOOL
  9576. if test -n "$DLLTOOL"; then
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9578. $as_echo "$DLLTOOL" >&6; }
  9579. else
  9580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9581. $as_echo "no" >&6; }
  9582. fi
  9583. fi
  9584. if test -z "$ac_cv_prog_DLLTOOL"; then
  9585. ac_ct_DLLTOOL=$DLLTOOL
  9586. # Extract the first word of "dlltool", so it can be a program name with args.
  9587. set dummy dlltool; ac_word=$2
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9589. $as_echo_n "checking for $ac_word... " >&6; }
  9590. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  9591. $as_echo_n "(cached) " >&6
  9592. else
  9593. if test -n "$ac_ct_DLLTOOL"; then
  9594. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9595. else
  9596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9597. for as_dir in $PATH
  9598. do
  9599. IFS=$as_save_IFS
  9600. test -z "$as_dir" && as_dir=.
  9601. for ac_exec_ext in '' $ac_executable_extensions; do
  9602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9603. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9605. break 2
  9606. fi
  9607. done
  9608. done
  9609. IFS=$as_save_IFS
  9610. fi
  9611. fi
  9612. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9613. if test -n "$ac_ct_DLLTOOL"; then
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9615. $as_echo "$ac_ct_DLLTOOL" >&6; }
  9616. else
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9618. $as_echo "no" >&6; }
  9619. fi
  9620. if test "x$ac_ct_DLLTOOL" = x; then
  9621. DLLTOOL="false"
  9622. else
  9623. case $cross_compiling:$ac_tool_warned in
  9624. yes:)
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9627. ac_tool_warned=yes ;;
  9628. esac
  9629. DLLTOOL=$ac_ct_DLLTOOL
  9630. fi
  9631. else
  9632. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9633. fi
  9634. if test -n "$ac_tool_prefix"; then
  9635. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9636. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9638. $as_echo_n "checking for $ac_word... " >&6; }
  9639. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9640. $as_echo_n "(cached) " >&6
  9641. else
  9642. if test -n "$OBJDUMP"; then
  9643. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9644. else
  9645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9646. for as_dir in $PATH
  9647. do
  9648. IFS=$as_save_IFS
  9649. test -z "$as_dir" && as_dir=.
  9650. for ac_exec_ext in '' $ac_executable_extensions; do
  9651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9652. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9654. break 2
  9655. fi
  9656. done
  9657. done
  9658. IFS=$as_save_IFS
  9659. fi
  9660. fi
  9661. OBJDUMP=$ac_cv_prog_OBJDUMP
  9662. if test -n "$OBJDUMP"; then
  9663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9664. $as_echo "$OBJDUMP" >&6; }
  9665. else
  9666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9667. $as_echo "no" >&6; }
  9668. fi
  9669. fi
  9670. if test -z "$ac_cv_prog_OBJDUMP"; then
  9671. ac_ct_OBJDUMP=$OBJDUMP
  9672. # Extract the first word of "objdump", so it can be a program name with args.
  9673. set dummy objdump; ac_word=$2
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9675. $as_echo_n "checking for $ac_word... " >&6; }
  9676. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9677. $as_echo_n "(cached) " >&6
  9678. else
  9679. if test -n "$ac_ct_OBJDUMP"; then
  9680. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9681. else
  9682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9683. for as_dir in $PATH
  9684. do
  9685. IFS=$as_save_IFS
  9686. test -z "$as_dir" && as_dir=.
  9687. for ac_exec_ext in '' $ac_executable_extensions; do
  9688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9689. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9691. break 2
  9692. fi
  9693. done
  9694. done
  9695. IFS=$as_save_IFS
  9696. fi
  9697. fi
  9698. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9699. if test -n "$ac_ct_OBJDUMP"; then
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9701. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9702. else
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9704. $as_echo "no" >&6; }
  9705. fi
  9706. if test "x$ac_ct_OBJDUMP" = x; then
  9707. OBJDUMP="false"
  9708. else
  9709. case $cross_compiling:$ac_tool_warned in
  9710. yes:)
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9712. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9713. ac_tool_warned=yes ;;
  9714. esac
  9715. OBJDUMP=$ac_ct_OBJDUMP
  9716. fi
  9717. else
  9718. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9719. fi
  9720. ;;
  9721. esac
  9722. test -z "$AS" && AS=as
  9723. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9724. test -z "$OBJDUMP" && OBJDUMP=objdump
  9725. # Check whether --enable-static was given.
  9726. if test "${enable_static+set}" = set; then :
  9727. enableval=$enable_static; p=${PACKAGE-default}
  9728. case $enableval in
  9729. yes) enable_static=yes ;;
  9730. no) enable_static=no ;;
  9731. *)
  9732. enable_static=no
  9733. # Look at the argument we got. We use all the common list separators.
  9734. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9735. for pkg in $enableval; do
  9736. IFS="$lt_save_ifs"
  9737. if test "X$pkg" = "X$p"; then
  9738. enable_static=yes
  9739. fi
  9740. done
  9741. IFS="$lt_save_ifs"
  9742. ;;
  9743. esac
  9744. else
  9745. enable_static=yes
  9746. fi
  9747. # Check whether --with-pic was given.
  9748. if test "${with_pic+set}" = set; then :
  9749. withval=$with_pic; lt_p=${PACKAGE-default}
  9750. case $withval in
  9751. yes|no) pic_mode=$withval ;;
  9752. *)
  9753. pic_mode=default
  9754. # Look at the argument we got. We use all the common list separators.
  9755. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9756. for lt_pkg in $withval; do
  9757. IFS="$lt_save_ifs"
  9758. if test "X$lt_pkg" = "X$lt_p"; then
  9759. pic_mode=yes
  9760. fi
  9761. done
  9762. IFS="$lt_save_ifs"
  9763. ;;
  9764. esac
  9765. else
  9766. pic_mode=default
  9767. fi
  9768. test -z "$pic_mode" && pic_mode=default
  9769. # Check whether --enable-fast-install was given.
  9770. if test "${enable_fast_install+set}" = set; then :
  9771. enableval=$enable_fast_install; p=${PACKAGE-default}
  9772. case $enableval in
  9773. yes) enable_fast_install=yes ;;
  9774. no) enable_fast_install=no ;;
  9775. *)
  9776. enable_fast_install=no
  9777. # Look at the argument we got. We use all the common list separators.
  9778. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9779. for pkg in $enableval; do
  9780. IFS="$lt_save_ifs"
  9781. if test "X$pkg" = "X$p"; then
  9782. enable_fast_install=yes
  9783. fi
  9784. done
  9785. IFS="$lt_save_ifs"
  9786. ;;
  9787. esac
  9788. else
  9789. enable_fast_install=yes
  9790. fi
  9791. # This can be used to rebuild libtool when needed
  9792. LIBTOOL_DEPS="$ltmain"
  9793. # Always use our own libtool.
  9794. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9795. test -z "$LN_S" && LN_S="ln -s"
  9796. if test -n "${ZSH_VERSION+set}" ; then
  9797. setopt NO_GLOB_SUBST
  9798. fi
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9800. $as_echo_n "checking for objdir... " >&6; }
  9801. if ${lt_cv_objdir+:} false; then :
  9802. $as_echo_n "(cached) " >&6
  9803. else
  9804. rm -f .libs 2>/dev/null
  9805. mkdir .libs 2>/dev/null
  9806. if test -d .libs; then
  9807. lt_cv_objdir=.libs
  9808. else
  9809. # MS-DOS does not allow filenames that begin with a dot.
  9810. lt_cv_objdir=_libs
  9811. fi
  9812. rmdir .libs 2>/dev/null
  9813. fi
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9815. $as_echo "$lt_cv_objdir" >&6; }
  9816. objdir=$lt_cv_objdir
  9817. cat >>confdefs.h <<_ACEOF
  9818. #define LT_OBJDIR "$lt_cv_objdir/"
  9819. _ACEOF
  9820. case $host_os in
  9821. aix3*)
  9822. # AIX sometimes has problems with the GCC collect2 program. For some
  9823. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9824. # vanish in a puff of smoke.
  9825. if test "X${COLLECT_NAMES+set}" != Xset; then
  9826. COLLECT_NAMES=
  9827. export COLLECT_NAMES
  9828. fi
  9829. ;;
  9830. esac
  9831. # Global variables:
  9832. ofile=libtool
  9833. can_build_shared=yes
  9834. # All known linkers require a `.a' archive for static linking (except MSVC,
  9835. # which needs '.lib').
  9836. libext=a
  9837. with_gnu_ld="$lt_cv_prog_gnu_ld"
  9838. old_CC="$CC"
  9839. old_CFLAGS="$CFLAGS"
  9840. # Set sane defaults for various variables
  9841. test -z "$CC" && CC=cc
  9842. test -z "$LTCC" && LTCC=$CC
  9843. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9844. test -z "$LD" && LD=ld
  9845. test -z "$ac_objext" && ac_objext=o
  9846. for cc_temp in $compiler""; do
  9847. case $cc_temp in
  9848. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9849. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9850. \-*) ;;
  9851. *) break;;
  9852. esac
  9853. done
  9854. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9855. # Only perform the check for file, if the check method requires it
  9856. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9857. case $deplibs_check_method in
  9858. file_magic*)
  9859. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9861. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9862. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9863. $as_echo_n "(cached) " >&6
  9864. else
  9865. case $MAGIC_CMD in
  9866. [\\/*] | ?:[\\/]*)
  9867. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9868. ;;
  9869. *)
  9870. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9871. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9872. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9873. for ac_dir in $ac_dummy; do
  9874. IFS="$lt_save_ifs"
  9875. test -z "$ac_dir" && ac_dir=.
  9876. if test -f $ac_dir/${ac_tool_prefix}file; then
  9877. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9878. if test -n "$file_magic_test_file"; then
  9879. case $deplibs_check_method in
  9880. "file_magic "*)
  9881. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9882. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9883. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9884. $EGREP "$file_magic_regex" > /dev/null; then
  9885. :
  9886. else
  9887. cat <<_LT_EOF 1>&2
  9888. *** Warning: the command libtool uses to detect shared libraries,
  9889. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9890. *** The result is that libtool may fail to recognize shared libraries
  9891. *** as such. This will affect the creation of libtool libraries that
  9892. *** depend on shared libraries, but programs linked with such libtool
  9893. *** libraries will work regardless of this problem. Nevertheless, you
  9894. *** may want to report the problem to your system manager and/or to
  9895. *** bug-libtool@gnu.org
  9896. _LT_EOF
  9897. fi ;;
  9898. esac
  9899. fi
  9900. break
  9901. fi
  9902. done
  9903. IFS="$lt_save_ifs"
  9904. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9905. ;;
  9906. esac
  9907. fi
  9908. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9909. if test -n "$MAGIC_CMD"; then
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9911. $as_echo "$MAGIC_CMD" >&6; }
  9912. else
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9914. $as_echo "no" >&6; }
  9915. fi
  9916. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9917. if test -n "$ac_tool_prefix"; then
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9919. $as_echo_n "checking for file... " >&6; }
  9920. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9921. $as_echo_n "(cached) " >&6
  9922. else
  9923. case $MAGIC_CMD in
  9924. [\\/*] | ?:[\\/]*)
  9925. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9926. ;;
  9927. *)
  9928. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9929. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9930. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9931. for ac_dir in $ac_dummy; do
  9932. IFS="$lt_save_ifs"
  9933. test -z "$ac_dir" && ac_dir=.
  9934. if test -f $ac_dir/file; then
  9935. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  9936. if test -n "$file_magic_test_file"; then
  9937. case $deplibs_check_method in
  9938. "file_magic "*)
  9939. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9940. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9941. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9942. $EGREP "$file_magic_regex" > /dev/null; then
  9943. :
  9944. else
  9945. cat <<_LT_EOF 1>&2
  9946. *** Warning: the command libtool uses to detect shared libraries,
  9947. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9948. *** The result is that libtool may fail to recognize shared libraries
  9949. *** as such. This will affect the creation of libtool libraries that
  9950. *** depend on shared libraries, but programs linked with such libtool
  9951. *** libraries will work regardless of this problem. Nevertheless, you
  9952. *** may want to report the problem to your system manager and/or to
  9953. *** bug-libtool@gnu.org
  9954. _LT_EOF
  9955. fi ;;
  9956. esac
  9957. fi
  9958. break
  9959. fi
  9960. done
  9961. IFS="$lt_save_ifs"
  9962. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9963. ;;
  9964. esac
  9965. fi
  9966. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9967. if test -n "$MAGIC_CMD"; then
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9969. $as_echo "$MAGIC_CMD" >&6; }
  9970. else
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9972. $as_echo "no" >&6; }
  9973. fi
  9974. else
  9975. MAGIC_CMD=:
  9976. fi
  9977. fi
  9978. fi
  9979. ;;
  9980. esac
  9981. # Use C for the default configuration in the libtool script
  9982. lt_save_CC="$CC"
  9983. ac_ext=c
  9984. ac_cpp='$CPP $CPPFLAGS'
  9985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9988. # Source file extension for C test sources.
  9989. ac_ext=c
  9990. # Object file extension for compiled C test sources.
  9991. objext=o
  9992. objext=$objext
  9993. # Code to be used in simple compile tests
  9994. lt_simple_compile_test_code="int some_variable = 0;"
  9995. # Code to be used in simple link tests
  9996. lt_simple_link_test_code='int main(){return(0);}'
  9997. # If no C compiler was specified, use CC.
  9998. LTCC=${LTCC-"$CC"}
  9999. # If no C compiler flags were specified, use CFLAGS.
  10000. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10001. # Allow CC to be a program name with arguments.
  10002. compiler=$CC
  10003. # Save the default compiler, since it gets overwritten when the other
  10004. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10005. compiler_DEFAULT=$CC
  10006. # save warnings/boilerplate of simple test code
  10007. ac_outfile=conftest.$ac_objext
  10008. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10009. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10010. _lt_compiler_boilerplate=`cat conftest.err`
  10011. $RM conftest*
  10012. ac_outfile=conftest.$ac_objext
  10013. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10014. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10015. _lt_linker_boilerplate=`cat conftest.err`
  10016. $RM -r conftest*
  10017. ## CAVEAT EMPTOR:
  10018. ## There is no encapsulation within the following macros, do not change
  10019. ## the running order or otherwise move them around unless you know exactly
  10020. ## what you are doing...
  10021. if test -n "$compiler"; then
  10022. lt_prog_compiler_no_builtin_flag=
  10023. if test "$GCC" = yes; then
  10024. case $cc_basename in
  10025. nvcc*)
  10026. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10027. *)
  10028. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10029. esac
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10031. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10032. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10033. $as_echo_n "(cached) " >&6
  10034. else
  10035. lt_cv_prog_compiler_rtti_exceptions=no
  10036. ac_outfile=conftest.$ac_objext
  10037. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10038. lt_compiler_flag="-fno-rtti -fno-exceptions"
  10039. # Insert the option either (1) after the last *FLAGS variable, or
  10040. # (2) before a word containing "conftest.", or (3) at the end.
  10041. # Note that $ac_compile itself does not contain backslashes and begins
  10042. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10043. # The option is referenced via a variable to avoid confusing sed.
  10044. lt_compile=`echo "$ac_compile" | $SED \
  10045. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10046. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10047. -e 's:$: $lt_compiler_flag:'`
  10048. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10049. (eval "$lt_compile" 2>conftest.err)
  10050. ac_status=$?
  10051. cat conftest.err >&5
  10052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10053. if (exit $ac_status) && test -s "$ac_outfile"; then
  10054. # The compiler can only warn and ignore the option if not recognized
  10055. # So say no if there are warnings other than the usual output.
  10056. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10057. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10058. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10059. lt_cv_prog_compiler_rtti_exceptions=yes
  10060. fi
  10061. fi
  10062. $RM conftest*
  10063. fi
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10065. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10066. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  10067. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10068. else
  10069. :
  10070. fi
  10071. fi
  10072. lt_prog_compiler_wl=
  10073. lt_prog_compiler_pic=
  10074. lt_prog_compiler_static=
  10075. if test "$GCC" = yes; then
  10076. lt_prog_compiler_wl='-Wl,'
  10077. lt_prog_compiler_static='-static'
  10078. case $host_os in
  10079. aix*)
  10080. # All AIX code is PIC.
  10081. if test "$host_cpu" = ia64; then
  10082. # AIX 5 now supports IA64 processor
  10083. lt_prog_compiler_static='-Bstatic'
  10084. fi
  10085. ;;
  10086. amigaos*)
  10087. case $host_cpu in
  10088. powerpc)
  10089. # see comment about AmigaOS4 .so support
  10090. lt_prog_compiler_pic='-fPIC'
  10091. ;;
  10092. m68k)
  10093. # FIXME: we need at least 68020 code to build shared libraries, but
  10094. # adding the `-m68020' flag to GCC prevents building anything better,
  10095. # like `-m68040'.
  10096. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10097. ;;
  10098. esac
  10099. ;;
  10100. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10101. # PIC is the default for these OSes.
  10102. ;;
  10103. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10104. # This hack is so that the source file can tell whether it is being
  10105. # built for inclusion in a dll (and should export symbols for example).
  10106. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10107. # (--disable-auto-import) libraries
  10108. lt_prog_compiler_pic='-DDLL_EXPORT'
  10109. ;;
  10110. darwin* | rhapsody*)
  10111. # PIC is the default on this platform
  10112. # Common symbols not allowed in MH_DYLIB files
  10113. lt_prog_compiler_pic='-fno-common'
  10114. ;;
  10115. haiku*)
  10116. # PIC is the default for Haiku.
  10117. # The "-static" flag exists, but is broken.
  10118. lt_prog_compiler_static=
  10119. ;;
  10120. hpux*)
  10121. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10122. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10123. # sets the default TLS model and affects inlining.
  10124. case $host_cpu in
  10125. hppa*64*)
  10126. # +Z the default
  10127. ;;
  10128. *)
  10129. lt_prog_compiler_pic='-fPIC'
  10130. ;;
  10131. esac
  10132. ;;
  10133. interix[3-9]*)
  10134. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10135. # Instead, we relocate shared libraries at runtime.
  10136. ;;
  10137. msdosdjgpp*)
  10138. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10139. # on systems that don't support them.
  10140. lt_prog_compiler_can_build_shared=no
  10141. enable_shared=no
  10142. ;;
  10143. *nto* | *qnx*)
  10144. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10145. # it will coredump.
  10146. lt_prog_compiler_pic='-fPIC -shared'
  10147. ;;
  10148. sysv4*MP*)
  10149. if test -d /usr/nec; then
  10150. lt_prog_compiler_pic=-Kconform_pic
  10151. fi
  10152. ;;
  10153. *)
  10154. lt_prog_compiler_pic='-fPIC'
  10155. ;;
  10156. esac
  10157. case $cc_basename in
  10158. nvcc*) # Cuda Compiler Driver 2.2
  10159. lt_prog_compiler_wl='-Xlinker '
  10160. if test -n "$lt_prog_compiler_pic"; then
  10161. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10162. fi
  10163. ;;
  10164. esac
  10165. else
  10166. # PORTME Check for flag to pass linker flags through the system compiler.
  10167. case $host_os in
  10168. aix*)
  10169. lt_prog_compiler_wl='-Wl,'
  10170. if test "$host_cpu" = ia64; then
  10171. # AIX 5 now supports IA64 processor
  10172. lt_prog_compiler_static='-Bstatic'
  10173. else
  10174. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10175. fi
  10176. ;;
  10177. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10178. # This hack is so that the source file can tell whether it is being
  10179. # built for inclusion in a dll (and should export symbols for example).
  10180. lt_prog_compiler_pic='-DDLL_EXPORT'
  10181. ;;
  10182. hpux9* | hpux10* | hpux11*)
  10183. lt_prog_compiler_wl='-Wl,'
  10184. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10185. # not for PA HP-UX.
  10186. case $host_cpu in
  10187. hppa*64*|ia64*)
  10188. # +Z the default
  10189. ;;
  10190. *)
  10191. lt_prog_compiler_pic='+Z'
  10192. ;;
  10193. esac
  10194. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10195. lt_prog_compiler_static='${wl}-a ${wl}archive'
  10196. ;;
  10197. irix5* | irix6* | nonstopux*)
  10198. lt_prog_compiler_wl='-Wl,'
  10199. # PIC (with -KPIC) is the default.
  10200. lt_prog_compiler_static='-non_shared'
  10201. ;;
  10202. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10203. case $cc_basename in
  10204. # old Intel for x86_64 which still supported -KPIC.
  10205. ecc*)
  10206. lt_prog_compiler_wl='-Wl,'
  10207. lt_prog_compiler_pic='-KPIC'
  10208. lt_prog_compiler_static='-static'
  10209. ;;
  10210. # icc used to be incompatible with GCC.
  10211. # ICC 10 doesn't accept -KPIC any more.
  10212. icc* | ifort*)
  10213. lt_prog_compiler_wl='-Wl,'
  10214. lt_prog_compiler_pic='-fPIC'
  10215. lt_prog_compiler_static='-static'
  10216. ;;
  10217. # Lahey Fortran 8.1.
  10218. lf95*)
  10219. lt_prog_compiler_wl='-Wl,'
  10220. lt_prog_compiler_pic='--shared'
  10221. lt_prog_compiler_static='--static'
  10222. ;;
  10223. nagfor*)
  10224. # NAG Fortran compiler
  10225. lt_prog_compiler_wl='-Wl,-Wl,,'
  10226. lt_prog_compiler_pic='-PIC'
  10227. lt_prog_compiler_static='-Bstatic'
  10228. ;;
  10229. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10230. # Portland Group compilers (*not* the Pentium gcc compiler,
  10231. # which looks to be a dead project)
  10232. lt_prog_compiler_wl='-Wl,'
  10233. lt_prog_compiler_pic='-fpic'
  10234. lt_prog_compiler_static='-Bstatic'
  10235. ;;
  10236. ccc*)
  10237. lt_prog_compiler_wl='-Wl,'
  10238. # All Alpha code is PIC.
  10239. lt_prog_compiler_static='-non_shared'
  10240. ;;
  10241. xl* | bgxl* | bgf* | mpixl*)
  10242. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10243. lt_prog_compiler_wl='-Wl,'
  10244. lt_prog_compiler_pic='-qpic'
  10245. lt_prog_compiler_static='-qstaticlink'
  10246. ;;
  10247. *)
  10248. case `$CC -V 2>&1 | sed 5q` in
  10249. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10250. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10251. lt_prog_compiler_pic='-KPIC'
  10252. lt_prog_compiler_static='-Bstatic'
  10253. lt_prog_compiler_wl=''
  10254. ;;
  10255. *Sun\ F* | *Sun*Fortran*)
  10256. lt_prog_compiler_pic='-KPIC'
  10257. lt_prog_compiler_static='-Bstatic'
  10258. lt_prog_compiler_wl='-Qoption ld '
  10259. ;;
  10260. *Sun\ C*)
  10261. # Sun C 5.9
  10262. lt_prog_compiler_pic='-KPIC'
  10263. lt_prog_compiler_static='-Bstatic'
  10264. lt_prog_compiler_wl='-Wl,'
  10265. ;;
  10266. *Intel*\ [CF]*Compiler*)
  10267. lt_prog_compiler_wl='-Wl,'
  10268. lt_prog_compiler_pic='-fPIC'
  10269. lt_prog_compiler_static='-static'
  10270. ;;
  10271. *Portland\ Group*)
  10272. lt_prog_compiler_wl='-Wl,'
  10273. lt_prog_compiler_pic='-fpic'
  10274. lt_prog_compiler_static='-Bstatic'
  10275. ;;
  10276. esac
  10277. ;;
  10278. esac
  10279. ;;
  10280. newsos6)
  10281. lt_prog_compiler_pic='-KPIC'
  10282. lt_prog_compiler_static='-Bstatic'
  10283. ;;
  10284. *nto* | *qnx*)
  10285. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10286. # it will coredump.
  10287. lt_prog_compiler_pic='-fPIC -shared'
  10288. ;;
  10289. osf3* | osf4* | osf5*)
  10290. lt_prog_compiler_wl='-Wl,'
  10291. # All OSF/1 code is PIC.
  10292. lt_prog_compiler_static='-non_shared'
  10293. ;;
  10294. rdos*)
  10295. lt_prog_compiler_static='-non_shared'
  10296. ;;
  10297. solaris*)
  10298. lt_prog_compiler_pic='-KPIC'
  10299. lt_prog_compiler_static='-Bstatic'
  10300. case $cc_basename in
  10301. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10302. lt_prog_compiler_wl='-Qoption ld ';;
  10303. *)
  10304. lt_prog_compiler_wl='-Wl,';;
  10305. esac
  10306. ;;
  10307. sunos4*)
  10308. lt_prog_compiler_wl='-Qoption ld '
  10309. lt_prog_compiler_pic='-PIC'
  10310. lt_prog_compiler_static='-Bstatic'
  10311. ;;
  10312. sysv4 | sysv4.2uw2* | sysv4.3*)
  10313. lt_prog_compiler_wl='-Wl,'
  10314. lt_prog_compiler_pic='-KPIC'
  10315. lt_prog_compiler_static='-Bstatic'
  10316. ;;
  10317. sysv4*MP*)
  10318. if test -d /usr/nec ;then
  10319. lt_prog_compiler_pic='-Kconform_pic'
  10320. lt_prog_compiler_static='-Bstatic'
  10321. fi
  10322. ;;
  10323. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10324. lt_prog_compiler_wl='-Wl,'
  10325. lt_prog_compiler_pic='-KPIC'
  10326. lt_prog_compiler_static='-Bstatic'
  10327. ;;
  10328. unicos*)
  10329. lt_prog_compiler_wl='-Wl,'
  10330. lt_prog_compiler_can_build_shared=no
  10331. ;;
  10332. uts4*)
  10333. lt_prog_compiler_pic='-pic'
  10334. lt_prog_compiler_static='-Bstatic'
  10335. ;;
  10336. *)
  10337. lt_prog_compiler_can_build_shared=no
  10338. ;;
  10339. esac
  10340. fi
  10341. case $host_os in
  10342. # For platforms which do not support PIC, -DPIC is meaningless:
  10343. *djgpp*)
  10344. lt_prog_compiler_pic=
  10345. ;;
  10346. *)
  10347. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  10348. ;;
  10349. esac
  10350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10351. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10352. if ${lt_cv_prog_compiler_pic+:} false; then :
  10353. $as_echo_n "(cached) " >&6
  10354. else
  10355. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  10356. fi
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  10358. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  10359. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  10360. #
  10361. # Check to make sure the PIC flag actually works.
  10362. #
  10363. if test -n "$lt_prog_compiler_pic"; then
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  10365. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  10366. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  10367. $as_echo_n "(cached) " >&6
  10368. else
  10369. lt_cv_prog_compiler_pic_works=no
  10370. ac_outfile=conftest.$ac_objext
  10371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10372. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  10373. # Insert the option either (1) after the last *FLAGS variable, or
  10374. # (2) before a word containing "conftest.", or (3) at the end.
  10375. # Note that $ac_compile itself does not contain backslashes and begins
  10376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10377. # The option is referenced via a variable to avoid confusing sed.
  10378. lt_compile=`echo "$ac_compile" | $SED \
  10379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10381. -e 's:$: $lt_compiler_flag:'`
  10382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10383. (eval "$lt_compile" 2>conftest.err)
  10384. ac_status=$?
  10385. cat conftest.err >&5
  10386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10387. if (exit $ac_status) && test -s "$ac_outfile"; then
  10388. # The compiler can only warn and ignore the option if not recognized
  10389. # So say no if there are warnings other than the usual output.
  10390. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10393. lt_cv_prog_compiler_pic_works=yes
  10394. fi
  10395. fi
  10396. $RM conftest*
  10397. fi
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10399. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  10400. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  10401. case $lt_prog_compiler_pic in
  10402. "" | " "*) ;;
  10403. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10404. esac
  10405. else
  10406. lt_prog_compiler_pic=
  10407. lt_prog_compiler_can_build_shared=no
  10408. fi
  10409. fi
  10410. #
  10411. # Check to make sure the static flag actually works.
  10412. #
  10413. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10415. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10416. if ${lt_cv_prog_compiler_static_works+:} false; then :
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. lt_cv_prog_compiler_static_works=no
  10420. save_LDFLAGS="$LDFLAGS"
  10421. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10422. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10423. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10424. # The linker can only warn and ignore the option if not recognized
  10425. # So say no if there are warnings
  10426. if test -s conftest.err; then
  10427. # Append any errors to the config.log.
  10428. cat conftest.err 1>&5
  10429. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10430. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10431. if diff conftest.exp conftest.er2 >/dev/null; then
  10432. lt_cv_prog_compiler_static_works=yes
  10433. fi
  10434. else
  10435. lt_cv_prog_compiler_static_works=yes
  10436. fi
  10437. fi
  10438. $RM -r conftest*
  10439. LDFLAGS="$save_LDFLAGS"
  10440. fi
  10441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10442. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10443. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  10444. :
  10445. else
  10446. lt_prog_compiler_static=
  10447. fi
  10448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10449. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10450. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10451. $as_echo_n "(cached) " >&6
  10452. else
  10453. lt_cv_prog_compiler_c_o=no
  10454. $RM -r conftest 2>/dev/null
  10455. mkdir conftest
  10456. cd conftest
  10457. mkdir out
  10458. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10459. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10460. # Insert the option either (1) after the last *FLAGS variable, or
  10461. # (2) before a word containing "conftest.", or (3) at the end.
  10462. # Note that $ac_compile itself does not contain backslashes and begins
  10463. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10464. lt_compile=`echo "$ac_compile" | $SED \
  10465. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10466. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10467. -e 's:$: $lt_compiler_flag:'`
  10468. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10469. (eval "$lt_compile" 2>out/conftest.err)
  10470. ac_status=$?
  10471. cat out/conftest.err >&5
  10472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10473. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10474. then
  10475. # The compiler can only warn and ignore the option if not recognized
  10476. # So say no if there are warnings
  10477. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10478. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10479. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10480. lt_cv_prog_compiler_c_o=yes
  10481. fi
  10482. fi
  10483. chmod u+w . 2>&5
  10484. $RM conftest*
  10485. # SGI C++ compiler will create directory out/ii_files/ for
  10486. # template instantiation
  10487. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10488. $RM out/* && rmdir out
  10489. cd ..
  10490. $RM -r conftest
  10491. $RM conftest*
  10492. fi
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10494. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10496. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10497. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. lt_cv_prog_compiler_c_o=no
  10501. $RM -r conftest 2>/dev/null
  10502. mkdir conftest
  10503. cd conftest
  10504. mkdir out
  10505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10506. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10507. # Insert the option either (1) after the last *FLAGS variable, or
  10508. # (2) before a word containing "conftest.", or (3) at the end.
  10509. # Note that $ac_compile itself does not contain backslashes and begins
  10510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10511. lt_compile=`echo "$ac_compile" | $SED \
  10512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10514. -e 's:$: $lt_compiler_flag:'`
  10515. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10516. (eval "$lt_compile" 2>out/conftest.err)
  10517. ac_status=$?
  10518. cat out/conftest.err >&5
  10519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10521. then
  10522. # The compiler can only warn and ignore the option if not recognized
  10523. # So say no if there are warnings
  10524. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10525. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10526. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10527. lt_cv_prog_compiler_c_o=yes
  10528. fi
  10529. fi
  10530. chmod u+w . 2>&5
  10531. $RM conftest*
  10532. # SGI C++ compiler will create directory out/ii_files/ for
  10533. # template instantiation
  10534. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10535. $RM out/* && rmdir out
  10536. cd ..
  10537. $RM -r conftest
  10538. $RM conftest*
  10539. fi
  10540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10541. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10542. hard_links="nottested"
  10543. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  10544. # do not overwrite the value of need_locks provided by the user
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10546. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10547. hard_links=yes
  10548. $RM conftest*
  10549. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10550. touch conftest.a
  10551. ln conftest.a conftest.b 2>&5 || hard_links=no
  10552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10554. $as_echo "$hard_links" >&6; }
  10555. if test "$hard_links" = no; then
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10557. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10558. need_locks=warn
  10559. fi
  10560. else
  10561. need_locks=no
  10562. fi
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10564. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10565. runpath_var=
  10566. allow_undefined_flag=
  10567. always_export_symbols=no
  10568. archive_cmds=
  10569. archive_expsym_cmds=
  10570. compiler_needs_object=no
  10571. enable_shared_with_static_runtimes=no
  10572. export_dynamic_flag_spec=
  10573. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10574. hardcode_automatic=no
  10575. hardcode_direct=no
  10576. hardcode_direct_absolute=no
  10577. hardcode_libdir_flag_spec=
  10578. hardcode_libdir_separator=
  10579. hardcode_minus_L=no
  10580. hardcode_shlibpath_var=unsupported
  10581. inherit_rpath=no
  10582. link_all_deplibs=unknown
  10583. module_cmds=
  10584. module_expsym_cmds=
  10585. old_archive_from_new_cmds=
  10586. old_archive_from_expsyms_cmds=
  10587. thread_safe_flag_spec=
  10588. whole_archive_flag_spec=
  10589. # include_expsyms should be a list of space-separated symbols to be *always*
  10590. # included in the symbol list
  10591. include_expsyms=
  10592. # exclude_expsyms can be an extended regexp of symbols to exclude
  10593. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10594. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10595. # as well as any symbol that contains `d'.
  10596. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10597. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10598. # platforms (ab)use it in PIC code, but their linkers get confused if
  10599. # the symbol is explicitly referenced. Since portable code cannot
  10600. # rely on this symbol name, it's probably fine to never include it in
  10601. # preloaded symbol tables.
  10602. # Exclude shared library initialization/finalization symbols.
  10603. extract_expsyms_cmds=
  10604. case $host_os in
  10605. cygwin* | mingw* | pw32* | cegcc*)
  10606. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10607. # When not using gcc, we currently assume that we are using
  10608. # Microsoft Visual C++.
  10609. if test "$GCC" != yes; then
  10610. with_gnu_ld=no
  10611. fi
  10612. ;;
  10613. interix*)
  10614. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10615. with_gnu_ld=yes
  10616. ;;
  10617. openbsd*)
  10618. with_gnu_ld=no
  10619. ;;
  10620. esac
  10621. ld_shlibs=yes
  10622. # On some targets, GNU ld is compatible enough with the native linker
  10623. # that we're better off using the native interface for both.
  10624. lt_use_gnu_ld_interface=no
  10625. if test "$with_gnu_ld" = yes; then
  10626. case $host_os in
  10627. aix*)
  10628. # The AIX port of GNU ld has always aspired to compatibility
  10629. # with the native linker. However, as the warning in the GNU ld
  10630. # block says, versions before 2.19.5* couldn't really create working
  10631. # shared libraries, regardless of the interface used.
  10632. case `$LD -v 2>&1` in
  10633. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10634. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10635. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10636. *)
  10637. lt_use_gnu_ld_interface=yes
  10638. ;;
  10639. esac
  10640. ;;
  10641. *)
  10642. lt_use_gnu_ld_interface=yes
  10643. ;;
  10644. esac
  10645. fi
  10646. if test "$lt_use_gnu_ld_interface" = yes; then
  10647. # If archive_cmds runs LD, not CC, wlarc should be empty
  10648. wlarc='${wl}'
  10649. # Set some defaults for GNU ld with shared library support. These
  10650. # are reset later if shared libraries are not supported. Putting them
  10651. # here allows them to be overridden if necessary.
  10652. runpath_var=LD_RUN_PATH
  10653. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10654. export_dynamic_flag_spec='${wl}--export-dynamic'
  10655. # ancient GNU ld didn't support --whole-archive et. al.
  10656. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10657. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10658. else
  10659. whole_archive_flag_spec=
  10660. fi
  10661. supports_anon_versioning=no
  10662. case `$LD -v 2>&1` in
  10663. *GNU\ gold*) supports_anon_versioning=yes ;;
  10664. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10665. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10666. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10667. *\ 2.11.*) ;; # other 2.11 versions
  10668. *) supports_anon_versioning=yes ;;
  10669. esac
  10670. # See if GNU ld supports shared libraries.
  10671. case $host_os in
  10672. aix[3-9]*)
  10673. # On AIX/PPC, the GNU linker is very broken
  10674. if test "$host_cpu" != ia64; then
  10675. ld_shlibs=no
  10676. cat <<_LT_EOF 1>&2
  10677. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10678. *** to be unable to reliably create shared libraries on AIX.
  10679. *** Therefore, libtool is disabling shared libraries support. If you
  10680. *** really care for shared libraries, you may want to install binutils
  10681. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10682. *** You will then need to restart the configuration process.
  10683. _LT_EOF
  10684. fi
  10685. ;;
  10686. amigaos*)
  10687. case $host_cpu in
  10688. powerpc)
  10689. # see comment about AmigaOS4 .so support
  10690. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10691. archive_expsym_cmds=''
  10692. ;;
  10693. m68k)
  10694. 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)'
  10695. hardcode_libdir_flag_spec='-L$libdir'
  10696. hardcode_minus_L=yes
  10697. ;;
  10698. esac
  10699. ;;
  10700. beos*)
  10701. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10702. allow_undefined_flag=unsupported
  10703. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10704. # support --undefined. This deserves some investigation. FIXME
  10705. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10706. else
  10707. ld_shlibs=no
  10708. fi
  10709. ;;
  10710. cygwin* | mingw* | pw32* | cegcc*)
  10711. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10712. # as there is no search path for DLLs.
  10713. hardcode_libdir_flag_spec='-L$libdir'
  10714. export_dynamic_flag_spec='${wl}--export-all-symbols'
  10715. allow_undefined_flag=unsupported
  10716. always_export_symbols=no
  10717. enable_shared_with_static_runtimes=yes
  10718. 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'
  10719. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10720. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10721. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10722. # If the export-symbols file already is a .def file (1st line
  10723. # is EXPORTS), use it as is; otherwise, prepend...
  10724. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10725. cp $export_symbols $output_objdir/$soname.def;
  10726. else
  10727. echo EXPORTS > $output_objdir/$soname.def;
  10728. cat $export_symbols >> $output_objdir/$soname.def;
  10729. fi~
  10730. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10731. else
  10732. ld_shlibs=no
  10733. fi
  10734. ;;
  10735. haiku*)
  10736. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10737. link_all_deplibs=yes
  10738. ;;
  10739. interix[3-9]*)
  10740. hardcode_direct=no
  10741. hardcode_shlibpath_var=no
  10742. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10743. export_dynamic_flag_spec='${wl}-E'
  10744. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10745. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10746. # default) and relocated if they conflict, which is a slow very memory
  10747. # consuming and fragmenting process. To avoid this, we pick a random,
  10748. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10749. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10750. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10751. 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'
  10752. ;;
  10753. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10754. tmp_diet=no
  10755. if test "$host_os" = linux-dietlibc; then
  10756. case $cc_basename in
  10757. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10758. esac
  10759. fi
  10760. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10761. && test "$tmp_diet" = no
  10762. then
  10763. tmp_addflag=' $pic_flag'
  10764. tmp_sharedflag='-shared'
  10765. case $cc_basename,$host_cpu in
  10766. pgcc*) # Portland Group C compiler
  10767. 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'
  10768. tmp_addflag=' $pic_flag'
  10769. ;;
  10770. pgf77* | pgf90* | pgf95* | pgfortran*)
  10771. # Portland Group f77 and f90 compilers
  10772. 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'
  10773. tmp_addflag=' $pic_flag -Mnomain' ;;
  10774. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10775. tmp_addflag=' -i_dynamic' ;;
  10776. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10777. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10778. ifc* | ifort*) # Intel Fortran compiler
  10779. tmp_addflag=' -nofor_main' ;;
  10780. lf95*) # Lahey Fortran 8.1
  10781. whole_archive_flag_spec=
  10782. tmp_sharedflag='--shared' ;;
  10783. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10784. tmp_sharedflag='-qmkshrobj'
  10785. tmp_addflag= ;;
  10786. nvcc*) # Cuda Compiler Driver 2.2
  10787. 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'
  10788. compiler_needs_object=yes
  10789. ;;
  10790. esac
  10791. case `$CC -V 2>&1 | sed 5q` in
  10792. *Sun\ C*) # Sun C 5.9
  10793. 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'
  10794. compiler_needs_object=yes
  10795. tmp_sharedflag='-G' ;;
  10796. *Sun\ F*) # Sun Fortran 8.3
  10797. tmp_sharedflag='-G' ;;
  10798. esac
  10799. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10800. if test "x$supports_anon_versioning" = xyes; then
  10801. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10802. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10803. echo "local: *; };" >> $output_objdir/$libname.ver~
  10804. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10805. fi
  10806. case $cc_basename in
  10807. xlf* | bgf* | bgxlf* | mpixlf*)
  10808. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10809. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10810. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10811. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10812. if test "x$supports_anon_versioning" = xyes; then
  10813. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10814. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10815. echo "local: *; };" >> $output_objdir/$libname.ver~
  10816. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10817. fi
  10818. ;;
  10819. esac
  10820. else
  10821. ld_shlibs=no
  10822. fi
  10823. ;;
  10824. netbsd*)
  10825. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10826. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10827. wlarc=
  10828. else
  10829. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10830. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10831. fi
  10832. ;;
  10833. solaris*)
  10834. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10835. ld_shlibs=no
  10836. cat <<_LT_EOF 1>&2
  10837. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10838. *** create shared libraries on Solaris systems. Therefore, libtool
  10839. *** is disabling shared libraries support. We urge you to upgrade GNU
  10840. *** binutils to release 2.9.1 or newer. Another option is to modify
  10841. *** your PATH or compiler configuration so that the native linker is
  10842. *** used, and then restart.
  10843. _LT_EOF
  10844. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10845. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10846. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10847. else
  10848. ld_shlibs=no
  10849. fi
  10850. ;;
  10851. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10852. case `$LD -v 2>&1` in
  10853. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10854. ld_shlibs=no
  10855. cat <<_LT_EOF 1>&2
  10856. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10857. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10858. *** is disabling shared libraries support. We urge you to upgrade GNU
  10859. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10860. *** your PATH or compiler configuration so that the native linker is
  10861. *** used, and then restart.
  10862. _LT_EOF
  10863. ;;
  10864. *)
  10865. # For security reasons, it is highly recommended that you always
  10866. # use absolute paths for naming shared libraries, and exclude the
  10867. # DT_RUNPATH tag from executables and libraries. But doing so
  10868. # requires that you compile everything twice, which is a pain.
  10869. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10870. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10871. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10872. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10873. else
  10874. ld_shlibs=no
  10875. fi
  10876. ;;
  10877. esac
  10878. ;;
  10879. sunos4*)
  10880. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10881. wlarc=
  10882. hardcode_direct=yes
  10883. hardcode_shlibpath_var=no
  10884. ;;
  10885. *)
  10886. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10887. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10888. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10889. else
  10890. ld_shlibs=no
  10891. fi
  10892. ;;
  10893. esac
  10894. if test "$ld_shlibs" = no; then
  10895. runpath_var=
  10896. hardcode_libdir_flag_spec=
  10897. export_dynamic_flag_spec=
  10898. whole_archive_flag_spec=
  10899. fi
  10900. else
  10901. # PORTME fill in a description of your system's linker (not GNU ld)
  10902. case $host_os in
  10903. aix3*)
  10904. allow_undefined_flag=unsupported
  10905. always_export_symbols=yes
  10906. 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'
  10907. # Note: this linker hardcodes the directories in LIBPATH if there
  10908. # are no directories specified by -L.
  10909. hardcode_minus_L=yes
  10910. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10911. # Neither direct hardcoding nor static linking is supported with a
  10912. # broken collect2.
  10913. hardcode_direct=unsupported
  10914. fi
  10915. ;;
  10916. aix[4-9]*)
  10917. if test "$host_cpu" = ia64; then
  10918. # On IA64, the linker does run time linking by default, so we don't
  10919. # have to do anything special.
  10920. aix_use_runtimelinking=no
  10921. exp_sym_flag='-Bexport'
  10922. no_entry_flag=""
  10923. else
  10924. # If we're using GNU nm, then we don't want the "-C" option.
  10925. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10926. # Also, AIX nm treats weak defined symbols like other global
  10927. # defined symbols, whereas GNU nm marks them as "W".
  10928. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10929. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10930. else
  10931. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10932. fi
  10933. aix_use_runtimelinking=no
  10934. # Test if we are trying to use run time linking or normal
  10935. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10936. # need to do runtime linking.
  10937. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10938. for ld_flag in $LDFLAGS; do
  10939. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10940. aix_use_runtimelinking=yes
  10941. break
  10942. fi
  10943. done
  10944. ;;
  10945. esac
  10946. exp_sym_flag='-bexport'
  10947. no_entry_flag='-bnoentry'
  10948. fi
  10949. # When large executables or shared objects are built, AIX ld can
  10950. # have problems creating the table of contents. If linking a library
  10951. # or program results in "error TOC overflow" add -mminimal-toc to
  10952. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10953. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10954. archive_cmds=''
  10955. hardcode_direct=yes
  10956. hardcode_direct_absolute=yes
  10957. hardcode_libdir_separator=':'
  10958. link_all_deplibs=yes
  10959. file_list_spec='${wl}-f,'
  10960. if test "$GCC" = yes; then
  10961. case $host_os in aix4.[012]|aix4.[012].*)
  10962. # We only want to do this on AIX 4.2 and lower, the check
  10963. # below for broken collect2 doesn't work under 4.3+
  10964. collect2name=`${CC} -print-prog-name=collect2`
  10965. if test -f "$collect2name" &&
  10966. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10967. then
  10968. # We have reworked collect2
  10969. :
  10970. else
  10971. # We have old collect2
  10972. hardcode_direct=unsupported
  10973. # It fails to find uninstalled libraries when the uninstalled
  10974. # path is not listed in the libpath. Setting hardcode_minus_L
  10975. # to unsupported forces relinking
  10976. hardcode_minus_L=yes
  10977. hardcode_libdir_flag_spec='-L$libdir'
  10978. hardcode_libdir_separator=
  10979. fi
  10980. ;;
  10981. esac
  10982. shared_flag='-shared'
  10983. if test "$aix_use_runtimelinking" = yes; then
  10984. shared_flag="$shared_flag "'${wl}-G'
  10985. fi
  10986. else
  10987. # not using gcc
  10988. if test "$host_cpu" = ia64; then
  10989. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10990. # chokes on -Wl,-G. The following line is correct:
  10991. shared_flag='-G'
  10992. else
  10993. if test "$aix_use_runtimelinking" = yes; then
  10994. shared_flag='${wl}-G'
  10995. else
  10996. shared_flag='${wl}-bM:SRE'
  10997. fi
  10998. fi
  10999. fi
  11000. export_dynamic_flag_spec='${wl}-bexpall'
  11001. # It seems that -bexpall does not export symbols beginning with
  11002. # underscore (_), so it is better to generate a list of symbols to export.
  11003. always_export_symbols=yes
  11004. if test "$aix_use_runtimelinking" = yes; then
  11005. # Warning - without using the other runtime loading flags (-brtl),
  11006. # -berok will link without error, but may produce a broken library.
  11007. allow_undefined_flag='-berok'
  11008. # Determine the default libpath from the value encoded in an
  11009. # empty executable.
  11010. if test "${lt_cv_aix_libpath+set}" = set; then
  11011. aix_libpath=$lt_cv_aix_libpath
  11012. else
  11013. if ${lt_cv_aix_libpath_+:} false; then :
  11014. $as_echo_n "(cached) " >&6
  11015. else
  11016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11017. /* end confdefs.h. */
  11018. int
  11019. main ()
  11020. {
  11021. ;
  11022. return 0;
  11023. }
  11024. _ACEOF
  11025. if ac_fn_c_try_link "$LINENO"; then :
  11026. lt_aix_libpath_sed='
  11027. /Import File Strings/,/^$/ {
  11028. /^0/ {
  11029. s/^0 *\([^ ]*\) *$/\1/
  11030. p
  11031. }
  11032. }'
  11033. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11034. # Check for a 64-bit object if we didn't find anything.
  11035. if test -z "$lt_cv_aix_libpath_"; then
  11036. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11037. fi
  11038. fi
  11039. rm -f core conftest.err conftest.$ac_objext \
  11040. conftest$ac_exeext conftest.$ac_ext
  11041. if test -z "$lt_cv_aix_libpath_"; then
  11042. lt_cv_aix_libpath_="/usr/lib:/lib"
  11043. fi
  11044. fi
  11045. aix_libpath=$lt_cv_aix_libpath_
  11046. fi
  11047. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11048. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11049. else
  11050. if test "$host_cpu" = ia64; then
  11051. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  11052. allow_undefined_flag="-z nodefs"
  11053. 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"
  11054. else
  11055. # Determine the default libpath from the value encoded in an
  11056. # empty executable.
  11057. if test "${lt_cv_aix_libpath+set}" = set; then
  11058. aix_libpath=$lt_cv_aix_libpath
  11059. else
  11060. if ${lt_cv_aix_libpath_+:} false; then :
  11061. $as_echo_n "(cached) " >&6
  11062. else
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. int
  11066. main ()
  11067. {
  11068. ;
  11069. return 0;
  11070. }
  11071. _ACEOF
  11072. if ac_fn_c_try_link "$LINENO"; then :
  11073. lt_aix_libpath_sed='
  11074. /Import File Strings/,/^$/ {
  11075. /^0/ {
  11076. s/^0 *\([^ ]*\) *$/\1/
  11077. p
  11078. }
  11079. }'
  11080. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11081. # Check for a 64-bit object if we didn't find anything.
  11082. if test -z "$lt_cv_aix_libpath_"; then
  11083. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11084. fi
  11085. fi
  11086. rm -f core conftest.err conftest.$ac_objext \
  11087. conftest$ac_exeext conftest.$ac_ext
  11088. if test -z "$lt_cv_aix_libpath_"; then
  11089. lt_cv_aix_libpath_="/usr/lib:/lib"
  11090. fi
  11091. fi
  11092. aix_libpath=$lt_cv_aix_libpath_
  11093. fi
  11094. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11095. # Warning - without using the other run time loading flags,
  11096. # -berok will link without error, but may produce a broken library.
  11097. no_undefined_flag=' ${wl}-bernotok'
  11098. allow_undefined_flag=' ${wl}-berok'
  11099. if test "$with_gnu_ld" = yes; then
  11100. # We only use this code for GNU lds that support --whole-archive.
  11101. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11102. else
  11103. # Exported symbols can be pulled into shared objects from archives
  11104. whole_archive_flag_spec='$convenience'
  11105. fi
  11106. archive_cmds_need_lc=yes
  11107. # This is similar to how AIX traditionally builds its shared libraries.
  11108. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11109. fi
  11110. fi
  11111. ;;
  11112. amigaos*)
  11113. case $host_cpu in
  11114. powerpc)
  11115. # see comment about AmigaOS4 .so support
  11116. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11117. archive_expsym_cmds=''
  11118. ;;
  11119. m68k)
  11120. 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)'
  11121. hardcode_libdir_flag_spec='-L$libdir'
  11122. hardcode_minus_L=yes
  11123. ;;
  11124. esac
  11125. ;;
  11126. bsdi[45]*)
  11127. export_dynamic_flag_spec=-rdynamic
  11128. ;;
  11129. cygwin* | mingw* | pw32* | cegcc*)
  11130. # When not using gcc, we currently assume that we are using
  11131. # Microsoft Visual C++.
  11132. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11133. # no search path for DLLs.
  11134. case $cc_basename in
  11135. cl*)
  11136. # Native MSVC
  11137. hardcode_libdir_flag_spec=' '
  11138. allow_undefined_flag=unsupported
  11139. always_export_symbols=yes
  11140. file_list_spec='@'
  11141. # Tell ltmain to make .lib files, not .a files.
  11142. libext=lib
  11143. # Tell ltmain to make .dll files, not .so files.
  11144. shrext_cmds=".dll"
  11145. # FIXME: Setting linknames here is a bad hack.
  11146. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11147. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11148. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11149. else
  11150. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11151. fi~
  11152. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11153. linknames='
  11154. # The linker will not automatically build a static lib if we build a DLL.
  11155. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11156. enable_shared_with_static_runtimes=yes
  11157. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11158. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11159. # Don't use ranlib
  11160. old_postinstall_cmds='chmod 644 $oldlib'
  11161. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11162. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11163. case $lt_outputfile in
  11164. *.exe|*.EXE) ;;
  11165. *)
  11166. lt_outputfile="$lt_outputfile.exe"
  11167. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11168. ;;
  11169. esac~
  11170. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11171. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11172. $RM "$lt_outputfile.manifest";
  11173. fi'
  11174. ;;
  11175. *)
  11176. # Assume MSVC wrapper
  11177. hardcode_libdir_flag_spec=' '
  11178. allow_undefined_flag=unsupported
  11179. # Tell ltmain to make .lib files, not .a files.
  11180. libext=lib
  11181. # Tell ltmain to make .dll files, not .so files.
  11182. shrext_cmds=".dll"
  11183. # FIXME: Setting linknames here is a bad hack.
  11184. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11185. # The linker will automatically build a .lib file if we build a DLL.
  11186. old_archive_from_new_cmds='true'
  11187. # FIXME: Should let the user specify the lib program.
  11188. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11189. enable_shared_with_static_runtimes=yes
  11190. ;;
  11191. esac
  11192. ;;
  11193. darwin* | rhapsody*)
  11194. archive_cmds_need_lc=no
  11195. hardcode_direct=no
  11196. hardcode_automatic=yes
  11197. hardcode_shlibpath_var=unsupported
  11198. if test "$lt_cv_ld_force_load" = "yes"; then
  11199. 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\"`'
  11200. else
  11201. whole_archive_flag_spec=''
  11202. fi
  11203. link_all_deplibs=yes
  11204. allow_undefined_flag="$_lt_dar_allow_undefined"
  11205. case $cc_basename in
  11206. ifort*) _lt_dar_can_shared=yes ;;
  11207. *) _lt_dar_can_shared=$GCC ;;
  11208. esac
  11209. if test "$_lt_dar_can_shared" = "yes"; then
  11210. output_verbose_link_cmd=func_echo_all
  11211. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11212. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11213. 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}"
  11214. 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}"
  11215. else
  11216. ld_shlibs=no
  11217. fi
  11218. ;;
  11219. dgux*)
  11220. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11221. hardcode_libdir_flag_spec='-L$libdir'
  11222. hardcode_shlibpath_var=no
  11223. ;;
  11224. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11225. # support. Future versions do this automatically, but an explicit c++rt0.o
  11226. # does not break anything, and helps significantly (at the cost of a little
  11227. # extra space).
  11228. freebsd2.2*)
  11229. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11230. hardcode_libdir_flag_spec='-R$libdir'
  11231. hardcode_direct=yes
  11232. hardcode_shlibpath_var=no
  11233. ;;
  11234. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11235. freebsd2.*)
  11236. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11237. hardcode_direct=yes
  11238. hardcode_minus_L=yes
  11239. hardcode_shlibpath_var=no
  11240. ;;
  11241. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11242. freebsd* | dragonfly*)
  11243. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11244. hardcode_libdir_flag_spec='-R$libdir'
  11245. hardcode_direct=yes
  11246. hardcode_shlibpath_var=no
  11247. ;;
  11248. hpux9*)
  11249. if test "$GCC" = yes; then
  11250. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11251. else
  11252. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11253. fi
  11254. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11255. hardcode_libdir_separator=:
  11256. hardcode_direct=yes
  11257. # hardcode_minus_L: Not really in the search PATH,
  11258. # but as the default location of the library.
  11259. hardcode_minus_L=yes
  11260. export_dynamic_flag_spec='${wl}-E'
  11261. ;;
  11262. hpux10*)
  11263. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11264. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11265. else
  11266. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11267. fi
  11268. if test "$with_gnu_ld" = no; then
  11269. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11270. hardcode_libdir_separator=:
  11271. hardcode_direct=yes
  11272. hardcode_direct_absolute=yes
  11273. export_dynamic_flag_spec='${wl}-E'
  11274. # hardcode_minus_L: Not really in the search PATH,
  11275. # but as the default location of the library.
  11276. hardcode_minus_L=yes
  11277. fi
  11278. ;;
  11279. hpux11*)
  11280. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11281. case $host_cpu in
  11282. hppa*64*)
  11283. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11284. ;;
  11285. ia64*)
  11286. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11287. ;;
  11288. *)
  11289. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11290. ;;
  11291. esac
  11292. else
  11293. case $host_cpu in
  11294. hppa*64*)
  11295. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11296. ;;
  11297. ia64*)
  11298. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11299. ;;
  11300. *)
  11301. # Older versions of the 11.00 compiler do not understand -b yet
  11302. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  11304. $as_echo_n "checking if $CC understands -b... " >&6; }
  11305. if ${lt_cv_prog_compiler__b+:} false; then :
  11306. $as_echo_n "(cached) " >&6
  11307. else
  11308. lt_cv_prog_compiler__b=no
  11309. save_LDFLAGS="$LDFLAGS"
  11310. LDFLAGS="$LDFLAGS -b"
  11311. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11312. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11313. # The linker can only warn and ignore the option if not recognized
  11314. # So say no if there are warnings
  11315. if test -s conftest.err; then
  11316. # Append any errors to the config.log.
  11317. cat conftest.err 1>&5
  11318. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11319. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11320. if diff conftest.exp conftest.er2 >/dev/null; then
  11321. lt_cv_prog_compiler__b=yes
  11322. fi
  11323. else
  11324. lt_cv_prog_compiler__b=yes
  11325. fi
  11326. fi
  11327. $RM -r conftest*
  11328. LDFLAGS="$save_LDFLAGS"
  11329. fi
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11331. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  11332. if test x"$lt_cv_prog_compiler__b" = xyes; then
  11333. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11334. else
  11335. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11336. fi
  11337. ;;
  11338. esac
  11339. fi
  11340. if test "$with_gnu_ld" = no; then
  11341. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11342. hardcode_libdir_separator=:
  11343. case $host_cpu in
  11344. hppa*64*|ia64*)
  11345. hardcode_direct=no
  11346. hardcode_shlibpath_var=no
  11347. ;;
  11348. *)
  11349. hardcode_direct=yes
  11350. hardcode_direct_absolute=yes
  11351. export_dynamic_flag_spec='${wl}-E'
  11352. # hardcode_minus_L: Not really in the search PATH,
  11353. # but as the default location of the library.
  11354. hardcode_minus_L=yes
  11355. ;;
  11356. esac
  11357. fi
  11358. ;;
  11359. irix5* | irix6* | nonstopux*)
  11360. if test "$GCC" = yes; then
  11361. 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'
  11362. # Try to use the -exported_symbol ld option, if it does not
  11363. # work, assume that -exports_file does not work either and
  11364. # implicitly export all symbols.
  11365. # This should be the same for all languages, so no per-tag cache variable.
  11366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11367. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11368. if ${lt_cv_irix_exported_symbol+:} false; then :
  11369. $as_echo_n "(cached) " >&6
  11370. else
  11371. save_LDFLAGS="$LDFLAGS"
  11372. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11374. /* end confdefs.h. */
  11375. int foo (void) { return 0; }
  11376. _ACEOF
  11377. if ac_fn_c_try_link "$LINENO"; then :
  11378. lt_cv_irix_exported_symbol=yes
  11379. else
  11380. lt_cv_irix_exported_symbol=no
  11381. fi
  11382. rm -f core conftest.err conftest.$ac_objext \
  11383. conftest$ac_exeext conftest.$ac_ext
  11384. LDFLAGS="$save_LDFLAGS"
  11385. fi
  11386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11387. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11388. if test "$lt_cv_irix_exported_symbol" = yes; then
  11389. 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'
  11390. fi
  11391. else
  11392. 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'
  11393. 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'
  11394. fi
  11395. archive_cmds_need_lc='no'
  11396. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11397. hardcode_libdir_separator=:
  11398. inherit_rpath=yes
  11399. link_all_deplibs=yes
  11400. ;;
  11401. netbsd*)
  11402. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11403. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11404. else
  11405. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11406. fi
  11407. hardcode_libdir_flag_spec='-R$libdir'
  11408. hardcode_direct=yes
  11409. hardcode_shlibpath_var=no
  11410. ;;
  11411. newsos6)
  11412. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11413. hardcode_direct=yes
  11414. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11415. hardcode_libdir_separator=:
  11416. hardcode_shlibpath_var=no
  11417. ;;
  11418. *nto* | *qnx*)
  11419. ;;
  11420. openbsd*)
  11421. if test -f /usr/libexec/ld.so; then
  11422. hardcode_direct=yes
  11423. hardcode_shlibpath_var=no
  11424. hardcode_direct_absolute=yes
  11425. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11426. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11427. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11428. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11429. export_dynamic_flag_spec='${wl}-E'
  11430. else
  11431. case $host_os in
  11432. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11433. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11434. hardcode_libdir_flag_spec='-R$libdir'
  11435. ;;
  11436. *)
  11437. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11438. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11439. ;;
  11440. esac
  11441. fi
  11442. else
  11443. ld_shlibs=no
  11444. fi
  11445. ;;
  11446. os2*)
  11447. hardcode_libdir_flag_spec='-L$libdir'
  11448. hardcode_minus_L=yes
  11449. allow_undefined_flag=unsupported
  11450. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  11451. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11452. ;;
  11453. osf3*)
  11454. if test "$GCC" = yes; then
  11455. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11456. 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'
  11457. else
  11458. allow_undefined_flag=' -expect_unresolved \*'
  11459. 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'
  11460. fi
  11461. archive_cmds_need_lc='no'
  11462. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11463. hardcode_libdir_separator=:
  11464. ;;
  11465. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11466. if test "$GCC" = yes; then
  11467. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11468. 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'
  11469. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11470. else
  11471. allow_undefined_flag=' -expect_unresolved \*'
  11472. 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'
  11473. 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~
  11474. $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'
  11475. # Both c and cxx compiler support -rpath directly
  11476. hardcode_libdir_flag_spec='-rpath $libdir'
  11477. fi
  11478. archive_cmds_need_lc='no'
  11479. hardcode_libdir_separator=:
  11480. ;;
  11481. solaris*)
  11482. no_undefined_flag=' -z defs'
  11483. if test "$GCC" = yes; then
  11484. wlarc='${wl}'
  11485. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11486. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11487. $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'
  11488. else
  11489. case `$CC -V 2>&1` in
  11490. *"Compilers 5.0"*)
  11491. wlarc=''
  11492. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11493. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11494. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11495. ;;
  11496. *)
  11497. wlarc='${wl}'
  11498. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11499. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11500. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11501. ;;
  11502. esac
  11503. fi
  11504. hardcode_libdir_flag_spec='-R$libdir'
  11505. hardcode_shlibpath_var=no
  11506. case $host_os in
  11507. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11508. *)
  11509. # The compiler driver will combine and reorder linker options,
  11510. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11511. # but is careful enough not to reorder.
  11512. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11513. if test "$GCC" = yes; then
  11514. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11515. else
  11516. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11517. fi
  11518. ;;
  11519. esac
  11520. link_all_deplibs=yes
  11521. ;;
  11522. sunos4*)
  11523. if test "x$host_vendor" = xsequent; then
  11524. # Use $CC to link under sequent, because it throws in some extra .o
  11525. # files that make .init and .fini sections work.
  11526. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11527. else
  11528. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11529. fi
  11530. hardcode_libdir_flag_spec='-L$libdir'
  11531. hardcode_direct=yes
  11532. hardcode_minus_L=yes
  11533. hardcode_shlibpath_var=no
  11534. ;;
  11535. sysv4)
  11536. case $host_vendor in
  11537. sni)
  11538. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11539. hardcode_direct=yes # is this really true???
  11540. ;;
  11541. siemens)
  11542. ## LD is ld it makes a PLAMLIB
  11543. ## CC just makes a GrossModule.
  11544. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11545. reload_cmds='$CC -r -o $output$reload_objs'
  11546. hardcode_direct=no
  11547. ;;
  11548. motorola)
  11549. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11550. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11551. ;;
  11552. esac
  11553. runpath_var='LD_RUN_PATH'
  11554. hardcode_shlibpath_var=no
  11555. ;;
  11556. sysv4.3*)
  11557. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11558. hardcode_shlibpath_var=no
  11559. export_dynamic_flag_spec='-Bexport'
  11560. ;;
  11561. sysv4*MP*)
  11562. if test -d /usr/nec; then
  11563. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11564. hardcode_shlibpath_var=no
  11565. runpath_var=LD_RUN_PATH
  11566. hardcode_runpath_var=yes
  11567. ld_shlibs=yes
  11568. fi
  11569. ;;
  11570. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11571. no_undefined_flag='${wl}-z,text'
  11572. archive_cmds_need_lc=no
  11573. hardcode_shlibpath_var=no
  11574. runpath_var='LD_RUN_PATH'
  11575. if test "$GCC" = yes; then
  11576. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11577. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11578. else
  11579. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11580. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11581. fi
  11582. ;;
  11583. sysv5* | sco3.2v5* | sco5v6*)
  11584. # Note: We can NOT use -z defs as we might desire, because we do not
  11585. # link with -lc, and that would cause any symbols used from libc to
  11586. # always be unresolved, which means just about no library would
  11587. # ever link correctly. If we're not using GNU ld we use -z text
  11588. # though, which does catch some bad symbols but isn't as heavy-handed
  11589. # as -z defs.
  11590. no_undefined_flag='${wl}-z,text'
  11591. allow_undefined_flag='${wl}-z,nodefs'
  11592. archive_cmds_need_lc=no
  11593. hardcode_shlibpath_var=no
  11594. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  11595. hardcode_libdir_separator=':'
  11596. link_all_deplibs=yes
  11597. export_dynamic_flag_spec='${wl}-Bexport'
  11598. runpath_var='LD_RUN_PATH'
  11599. if test "$GCC" = yes; then
  11600. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11601. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11602. else
  11603. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11604. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11605. fi
  11606. ;;
  11607. uts4*)
  11608. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11609. hardcode_libdir_flag_spec='-L$libdir'
  11610. hardcode_shlibpath_var=no
  11611. ;;
  11612. *)
  11613. ld_shlibs=no
  11614. ;;
  11615. esac
  11616. if test x$host_vendor = xsni; then
  11617. case $host in
  11618. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11619. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11620. ;;
  11621. esac
  11622. fi
  11623. fi
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11625. $as_echo "$ld_shlibs" >&6; }
  11626. test "$ld_shlibs" = no && can_build_shared=no
  11627. with_gnu_ld=$with_gnu_ld
  11628. #
  11629. # Do we need to explicitly link libc?
  11630. #
  11631. case "x$archive_cmds_need_lc" in
  11632. x|xyes)
  11633. # Assume -lc should be added
  11634. archive_cmds_need_lc=yes
  11635. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11636. case $archive_cmds in
  11637. *'~'*)
  11638. # FIXME: we may have to deal with multi-command sequences.
  11639. ;;
  11640. '$CC '*)
  11641. # Test whether the compiler implicitly links with -lc since on some
  11642. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11643. # to ld, don't add -lc before -lgcc.
  11644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11645. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11646. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11647. $as_echo_n "(cached) " >&6
  11648. else
  11649. $RM conftest*
  11650. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11651. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11652. (eval $ac_compile) 2>&5
  11653. ac_status=$?
  11654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11655. test $ac_status = 0; } 2>conftest.err; then
  11656. soname=conftest
  11657. lib=conftest
  11658. libobjs=conftest.$ac_objext
  11659. deplibs=
  11660. wl=$lt_prog_compiler_wl
  11661. pic_flag=$lt_prog_compiler_pic
  11662. compiler_flags=-v
  11663. linker_flags=-v
  11664. verstring=
  11665. output_objdir=.
  11666. libname=conftest
  11667. lt_save_allow_undefined_flag=$allow_undefined_flag
  11668. allow_undefined_flag=
  11669. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11670. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11671. ac_status=$?
  11672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11673. test $ac_status = 0; }
  11674. then
  11675. lt_cv_archive_cmds_need_lc=no
  11676. else
  11677. lt_cv_archive_cmds_need_lc=yes
  11678. fi
  11679. allow_undefined_flag=$lt_save_allow_undefined_flag
  11680. else
  11681. cat conftest.err 1>&5
  11682. fi
  11683. $RM conftest*
  11684. fi
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11686. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11687. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11688. ;;
  11689. esac
  11690. fi
  11691. ;;
  11692. esac
  11693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11694. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11695. if test "$GCC" = yes; then
  11696. case $host_os in
  11697. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  11698. *) lt_awk_arg="/^libraries:/" ;;
  11699. esac
  11700. case $host_os in
  11701. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  11702. *) lt_sed_strip_eq="s,=/,/,g" ;;
  11703. esac
  11704. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11705. case $lt_search_path_spec in
  11706. *\;*)
  11707. # if the path contains ";" then we assume it to be the separator
  11708. # otherwise default to the standard path separator (i.e. ":") - it is
  11709. # assumed that no part of a normal pathname contains ";" but that should
  11710. # okay in the real world where ";" in dirpaths is itself problematic.
  11711. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11712. ;;
  11713. *)
  11714. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11715. ;;
  11716. esac
  11717. # Ok, now we have the path, separated by spaces, we can step through it
  11718. # and add multilib dir if necessary.
  11719. lt_tmp_lt_search_path_spec=
  11720. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11721. for lt_sys_path in $lt_search_path_spec; do
  11722. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  11723. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  11724. else
  11725. test -d "$lt_sys_path" && \
  11726. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11727. fi
  11728. done
  11729. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11730. BEGIN {RS=" "; FS="/|\n";} {
  11731. lt_foo="";
  11732. lt_count=0;
  11733. for (lt_i = NF; lt_i > 0; lt_i--) {
  11734. if ($lt_i != "" && $lt_i != ".") {
  11735. if ($lt_i == "..") {
  11736. lt_count++;
  11737. } else {
  11738. if (lt_count == 0) {
  11739. lt_foo="/" $lt_i lt_foo;
  11740. } else {
  11741. lt_count--;
  11742. }
  11743. }
  11744. }
  11745. }
  11746. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11747. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11748. }'`
  11749. # AWK program above erroneously prepends '/' to C:/dos/paths
  11750. # for these hosts.
  11751. case $host_os in
  11752. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11753. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  11754. esac
  11755. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11756. else
  11757. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11758. fi
  11759. library_names_spec=
  11760. libname_spec='lib$name'
  11761. soname_spec=
  11762. shrext_cmds=".so"
  11763. postinstall_cmds=
  11764. postuninstall_cmds=
  11765. finish_cmds=
  11766. finish_eval=
  11767. shlibpath_var=
  11768. shlibpath_overrides_runpath=unknown
  11769. version_type=none
  11770. dynamic_linker="$host_os ld.so"
  11771. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11772. need_lib_prefix=unknown
  11773. hardcode_into_libs=no
  11774. # when you set need_version to no, make sure it does not cause -set_version
  11775. # flags to be left without arguments
  11776. need_version=unknown
  11777. case $host_os in
  11778. aix3*)
  11779. version_type=linux # correct to gnu/linux during the next big refactor
  11780. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11781. shlibpath_var=LIBPATH
  11782. # AIX 3 has no versioning support, so we append a major version to the name.
  11783. soname_spec='${libname}${release}${shared_ext}$major'
  11784. ;;
  11785. aix[4-9]*)
  11786. version_type=linux # correct to gnu/linux during the next big refactor
  11787. need_lib_prefix=no
  11788. need_version=no
  11789. hardcode_into_libs=yes
  11790. if test "$host_cpu" = ia64; then
  11791. # AIX 5 supports IA64
  11792. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11793. shlibpath_var=LD_LIBRARY_PATH
  11794. else
  11795. # With GCC up to 2.95.x, collect2 would create an import file
  11796. # for dependence libraries. The import file would start with
  11797. # the line `#! .'. This would cause the generated library to
  11798. # depend on `.', always an invalid library. This was fixed in
  11799. # development snapshots of GCC prior to 3.0.
  11800. case $host_os in
  11801. aix4 | aix4.[01] | aix4.[01].*)
  11802. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11803. echo ' yes '
  11804. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11805. :
  11806. else
  11807. can_build_shared=no
  11808. fi
  11809. ;;
  11810. esac
  11811. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11812. # soname into executable. Probably we can add versioning support to
  11813. # collect2, so additional links can be useful in future.
  11814. if test "$aix_use_runtimelinking" = yes; then
  11815. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11816. # instead of lib<name>.a to let people know that these are not
  11817. # typical AIX shared libraries.
  11818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11819. else
  11820. # We preserve .a as extension for shared libraries through AIX4.2
  11821. # and later when we are not doing run time linking.
  11822. library_names_spec='${libname}${release}.a $libname.a'
  11823. soname_spec='${libname}${release}${shared_ext}$major'
  11824. fi
  11825. shlibpath_var=LIBPATH
  11826. fi
  11827. ;;
  11828. amigaos*)
  11829. case $host_cpu in
  11830. powerpc)
  11831. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11832. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11834. ;;
  11835. m68k)
  11836. library_names_spec='$libname.ixlibrary $libname.a'
  11837. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11838. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11839. ;;
  11840. esac
  11841. ;;
  11842. beos*)
  11843. library_names_spec='${libname}${shared_ext}'
  11844. dynamic_linker="$host_os ld.so"
  11845. shlibpath_var=LIBRARY_PATH
  11846. ;;
  11847. bsdi[45]*)
  11848. version_type=linux # correct to gnu/linux during the next big refactor
  11849. need_version=no
  11850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11851. soname_spec='${libname}${release}${shared_ext}$major'
  11852. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11853. shlibpath_var=LD_LIBRARY_PATH
  11854. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11855. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11856. # the default ld.so.conf also contains /usr/contrib/lib and
  11857. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11858. # libtool to hard-code these into programs
  11859. ;;
  11860. cygwin* | mingw* | pw32* | cegcc*)
  11861. version_type=windows
  11862. shrext_cmds=".dll"
  11863. need_version=no
  11864. need_lib_prefix=no
  11865. case $GCC,$cc_basename in
  11866. yes,*)
  11867. # gcc
  11868. library_names_spec='$libname.dll.a'
  11869. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11870. postinstall_cmds='base_file=`basename \${file}`~
  11871. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11872. dldir=$destdir/`dirname \$dlpath`~
  11873. test -d \$dldir || mkdir -p \$dldir~
  11874. $install_prog $dir/$dlname \$dldir/$dlname~
  11875. chmod a+x \$dldir/$dlname~
  11876. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11877. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11878. fi'
  11879. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11880. dlpath=$dir/\$dldll~
  11881. $RM \$dlpath'
  11882. shlibpath_overrides_runpath=yes
  11883. case $host_os in
  11884. cygwin*)
  11885. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11886. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11887. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11888. ;;
  11889. mingw* | cegcc*)
  11890. # MinGW DLLs use traditional 'lib' prefix
  11891. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11892. ;;
  11893. pw32*)
  11894. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11895. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11896. ;;
  11897. esac
  11898. dynamic_linker='Win32 ld.exe'
  11899. ;;
  11900. *,cl*)
  11901. # Native MSVC
  11902. libname_spec='$name'
  11903. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11904. library_names_spec='${libname}.dll.lib'
  11905. case $build_os in
  11906. mingw*)
  11907. sys_lib_search_path_spec=
  11908. lt_save_ifs=$IFS
  11909. IFS=';'
  11910. for lt_path in $LIB
  11911. do
  11912. IFS=$lt_save_ifs
  11913. # Let DOS variable expansion print the short 8.3 style file name.
  11914. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11915. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11916. done
  11917. IFS=$lt_save_ifs
  11918. # Convert to MSYS style.
  11919. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11920. ;;
  11921. cygwin*)
  11922. # Convert to unix form, then to dos form, then back to unix form
  11923. # but this time dos style (no spaces!) so that the unix form looks
  11924. # like /cygdrive/c/PROGRA~1:/cygdr...
  11925. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11926. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11927. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11928. ;;
  11929. *)
  11930. sys_lib_search_path_spec="$LIB"
  11931. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11932. # It is most probably a Windows format PATH.
  11933. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11934. else
  11935. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11936. fi
  11937. # FIXME: find the short name or the path components, as spaces are
  11938. # common. (e.g. "Program Files" -> "PROGRA~1")
  11939. ;;
  11940. esac
  11941. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11942. postinstall_cmds='base_file=`basename \${file}`~
  11943. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11944. dldir=$destdir/`dirname \$dlpath`~
  11945. test -d \$dldir || mkdir -p \$dldir~
  11946. $install_prog $dir/$dlname \$dldir/$dlname'
  11947. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11948. dlpath=$dir/\$dldll~
  11949. $RM \$dlpath'
  11950. shlibpath_overrides_runpath=yes
  11951. dynamic_linker='Win32 link.exe'
  11952. ;;
  11953. *)
  11954. # Assume MSVC wrapper
  11955. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11956. dynamic_linker='Win32 ld.exe'
  11957. ;;
  11958. esac
  11959. # FIXME: first we should search . and the directory the executable is in
  11960. shlibpath_var=PATH
  11961. ;;
  11962. darwin* | rhapsody*)
  11963. dynamic_linker="$host_os dyld"
  11964. version_type=darwin
  11965. need_lib_prefix=no
  11966. need_version=no
  11967. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11968. soname_spec='${libname}${release}${major}$shared_ext'
  11969. shlibpath_overrides_runpath=yes
  11970. shlibpath_var=DYLD_LIBRARY_PATH
  11971. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11972. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11973. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11974. ;;
  11975. dgux*)
  11976. version_type=linux # correct to gnu/linux during the next big refactor
  11977. need_lib_prefix=no
  11978. need_version=no
  11979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11980. soname_spec='${libname}${release}${shared_ext}$major'
  11981. shlibpath_var=LD_LIBRARY_PATH
  11982. ;;
  11983. freebsd* | dragonfly*)
  11984. # DragonFly does not have aout. When/if they implement a new
  11985. # versioning mechanism, adjust this.
  11986. if test -x /usr/bin/objformat; then
  11987. objformat=`/usr/bin/objformat`
  11988. else
  11989. case $host_os in
  11990. freebsd[23].*) objformat=aout ;;
  11991. *) objformat=elf ;;
  11992. esac
  11993. fi
  11994. version_type=freebsd-$objformat
  11995. case $version_type in
  11996. freebsd-elf*)
  11997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11998. need_version=no
  11999. need_lib_prefix=no
  12000. ;;
  12001. freebsd-*)
  12002. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12003. need_version=yes
  12004. ;;
  12005. esac
  12006. shlibpath_var=LD_LIBRARY_PATH
  12007. case $host_os in
  12008. freebsd2.*)
  12009. shlibpath_overrides_runpath=yes
  12010. ;;
  12011. freebsd3.[01]* | freebsdelf3.[01]*)
  12012. shlibpath_overrides_runpath=yes
  12013. hardcode_into_libs=yes
  12014. ;;
  12015. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12016. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12017. shlibpath_overrides_runpath=no
  12018. hardcode_into_libs=yes
  12019. ;;
  12020. *) # from 4.6 on, and DragonFly
  12021. shlibpath_overrides_runpath=yes
  12022. hardcode_into_libs=yes
  12023. ;;
  12024. esac
  12025. ;;
  12026. gnu*)
  12027. version_type=linux # correct to gnu/linux during the next big refactor
  12028. need_lib_prefix=no
  12029. need_version=no
  12030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12031. soname_spec='${libname}${release}${shared_ext}$major'
  12032. shlibpath_var=LD_LIBRARY_PATH
  12033. shlibpath_overrides_runpath=no
  12034. hardcode_into_libs=yes
  12035. ;;
  12036. haiku*)
  12037. version_type=linux # correct to gnu/linux during the next big refactor
  12038. need_lib_prefix=no
  12039. need_version=no
  12040. dynamic_linker="$host_os runtime_loader"
  12041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12042. soname_spec='${libname}${release}${shared_ext}$major'
  12043. shlibpath_var=LIBRARY_PATH
  12044. shlibpath_overrides_runpath=yes
  12045. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12046. hardcode_into_libs=yes
  12047. ;;
  12048. hpux9* | hpux10* | hpux11*)
  12049. # Give a soname corresponding to the major version so that dld.sl refuses to
  12050. # link against other versions.
  12051. version_type=sunos
  12052. need_lib_prefix=no
  12053. need_version=no
  12054. case $host_cpu in
  12055. ia64*)
  12056. shrext_cmds='.so'
  12057. hardcode_into_libs=yes
  12058. dynamic_linker="$host_os dld.so"
  12059. shlibpath_var=LD_LIBRARY_PATH
  12060. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12062. soname_spec='${libname}${release}${shared_ext}$major'
  12063. if test "X$HPUX_IA64_MODE" = X32; then
  12064. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12065. else
  12066. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12067. fi
  12068. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12069. ;;
  12070. hppa*64*)
  12071. shrext_cmds='.sl'
  12072. hardcode_into_libs=yes
  12073. dynamic_linker="$host_os dld.sl"
  12074. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12075. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12077. soname_spec='${libname}${release}${shared_ext}$major'
  12078. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12079. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12080. ;;
  12081. *)
  12082. shrext_cmds='.sl'
  12083. dynamic_linker="$host_os dld.sl"
  12084. shlibpath_var=SHLIB_PATH
  12085. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12087. soname_spec='${libname}${release}${shared_ext}$major'
  12088. ;;
  12089. esac
  12090. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12091. postinstall_cmds='chmod 555 $lib'
  12092. # or fails outright, so override atomically:
  12093. install_override_mode=555
  12094. ;;
  12095. interix[3-9]*)
  12096. version_type=linux # correct to gnu/linux during the next big refactor
  12097. need_lib_prefix=no
  12098. need_version=no
  12099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12100. soname_spec='${libname}${release}${shared_ext}$major'
  12101. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12102. shlibpath_var=LD_LIBRARY_PATH
  12103. shlibpath_overrides_runpath=no
  12104. hardcode_into_libs=yes
  12105. ;;
  12106. irix5* | irix6* | nonstopux*)
  12107. case $host_os in
  12108. nonstopux*) version_type=nonstopux ;;
  12109. *)
  12110. if test "$lt_cv_prog_gnu_ld" = yes; then
  12111. version_type=linux # correct to gnu/linux during the next big refactor
  12112. else
  12113. version_type=irix
  12114. fi ;;
  12115. esac
  12116. need_lib_prefix=no
  12117. need_version=no
  12118. soname_spec='${libname}${release}${shared_ext}$major'
  12119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12120. case $host_os in
  12121. irix5* | nonstopux*)
  12122. libsuff= shlibsuff=
  12123. ;;
  12124. *)
  12125. case $LD in # libtool.m4 will add one of these switches to LD
  12126. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12127. libsuff= shlibsuff= libmagic=32-bit;;
  12128. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12129. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12130. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12131. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12132. *) libsuff= shlibsuff= libmagic=never-match;;
  12133. esac
  12134. ;;
  12135. esac
  12136. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12137. shlibpath_overrides_runpath=no
  12138. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12139. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12140. hardcode_into_libs=yes
  12141. ;;
  12142. # No shared lib support for Linux oldld, aout, or coff.
  12143. linux*oldld* | linux*aout* | linux*coff*)
  12144. dynamic_linker=no
  12145. ;;
  12146. # This must be glibc/ELF.
  12147. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12148. version_type=linux # correct to gnu/linux during the next big refactor
  12149. need_lib_prefix=no
  12150. need_version=no
  12151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12152. soname_spec='${libname}${release}${shared_ext}$major'
  12153. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12154. shlibpath_var=LD_LIBRARY_PATH
  12155. shlibpath_overrides_runpath=no
  12156. # Some binutils ld are patched to set DT_RUNPATH
  12157. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12158. $as_echo_n "(cached) " >&6
  12159. else
  12160. lt_cv_shlibpath_overrides_runpath=no
  12161. save_LDFLAGS=$LDFLAGS
  12162. save_libdir=$libdir
  12163. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12164. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12166. /* end confdefs.h. */
  12167. int
  12168. main ()
  12169. {
  12170. ;
  12171. return 0;
  12172. }
  12173. _ACEOF
  12174. if ac_fn_c_try_link "$LINENO"; then :
  12175. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12176. lt_cv_shlibpath_overrides_runpath=yes
  12177. fi
  12178. fi
  12179. rm -f core conftest.err conftest.$ac_objext \
  12180. conftest$ac_exeext conftest.$ac_ext
  12181. LDFLAGS=$save_LDFLAGS
  12182. libdir=$save_libdir
  12183. fi
  12184. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12185. # This implies no fast_install, which is unacceptable.
  12186. # Some rework will be needed to allow for fast_install
  12187. # before this can be enabled.
  12188. hardcode_into_libs=yes
  12189. # Append ld.so.conf contents to the search path
  12190. if test -f /etc/ld.so.conf; then
  12191. 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' ' '`
  12192. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12193. fi
  12194. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12195. # powerpc, because MkLinux only supported shared libraries with the
  12196. # GNU dynamic linker. Since this was broken with cross compilers,
  12197. # most powerpc-linux boxes support dynamic linking these days and
  12198. # people can always --disable-shared, the test was removed, and we
  12199. # assume the GNU/Linux dynamic linker is in use.
  12200. dynamic_linker='GNU/Linux ld.so'
  12201. ;;
  12202. netbsd*)
  12203. version_type=sunos
  12204. need_lib_prefix=no
  12205. need_version=no
  12206. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12208. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12209. dynamic_linker='NetBSD (a.out) ld.so'
  12210. else
  12211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12212. soname_spec='${libname}${release}${shared_ext}$major'
  12213. dynamic_linker='NetBSD ld.elf_so'
  12214. fi
  12215. shlibpath_var=LD_LIBRARY_PATH
  12216. shlibpath_overrides_runpath=yes
  12217. hardcode_into_libs=yes
  12218. ;;
  12219. newsos6)
  12220. version_type=linux # correct to gnu/linux during the next big refactor
  12221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12222. shlibpath_var=LD_LIBRARY_PATH
  12223. shlibpath_overrides_runpath=yes
  12224. ;;
  12225. *nto* | *qnx*)
  12226. version_type=qnx
  12227. need_lib_prefix=no
  12228. need_version=no
  12229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12230. soname_spec='${libname}${release}${shared_ext}$major'
  12231. shlibpath_var=LD_LIBRARY_PATH
  12232. shlibpath_overrides_runpath=no
  12233. hardcode_into_libs=yes
  12234. dynamic_linker='ldqnx.so'
  12235. ;;
  12236. openbsd*)
  12237. version_type=sunos
  12238. sys_lib_dlsearch_path_spec="/usr/lib"
  12239. need_lib_prefix=no
  12240. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12241. case $host_os in
  12242. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12243. *) need_version=no ;;
  12244. esac
  12245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12246. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12247. shlibpath_var=LD_LIBRARY_PATH
  12248. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12249. case $host_os in
  12250. openbsd2.[89] | openbsd2.[89].*)
  12251. shlibpath_overrides_runpath=no
  12252. ;;
  12253. *)
  12254. shlibpath_overrides_runpath=yes
  12255. ;;
  12256. esac
  12257. else
  12258. shlibpath_overrides_runpath=yes
  12259. fi
  12260. ;;
  12261. os2*)
  12262. libname_spec='$name'
  12263. shrext_cmds=".dll"
  12264. need_lib_prefix=no
  12265. library_names_spec='$libname${shared_ext} $libname.a'
  12266. dynamic_linker='OS/2 ld.exe'
  12267. shlibpath_var=LIBPATH
  12268. ;;
  12269. osf3* | osf4* | osf5*)
  12270. version_type=osf
  12271. need_lib_prefix=no
  12272. need_version=no
  12273. soname_spec='${libname}${release}${shared_ext}$major'
  12274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12275. shlibpath_var=LD_LIBRARY_PATH
  12276. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12277. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12278. ;;
  12279. rdos*)
  12280. dynamic_linker=no
  12281. ;;
  12282. solaris*)
  12283. version_type=linux # correct to gnu/linux during the next big refactor
  12284. need_lib_prefix=no
  12285. need_version=no
  12286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12287. soname_spec='${libname}${release}${shared_ext}$major'
  12288. shlibpath_var=LD_LIBRARY_PATH
  12289. shlibpath_overrides_runpath=yes
  12290. hardcode_into_libs=yes
  12291. # ldd complains unless libraries are executable
  12292. postinstall_cmds='chmod +x $lib'
  12293. ;;
  12294. sunos4*)
  12295. version_type=sunos
  12296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12297. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12298. shlibpath_var=LD_LIBRARY_PATH
  12299. shlibpath_overrides_runpath=yes
  12300. if test "$with_gnu_ld" = yes; then
  12301. need_lib_prefix=no
  12302. fi
  12303. need_version=yes
  12304. ;;
  12305. sysv4 | sysv4.3*)
  12306. version_type=linux # correct to gnu/linux during the next big refactor
  12307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12308. soname_spec='${libname}${release}${shared_ext}$major'
  12309. shlibpath_var=LD_LIBRARY_PATH
  12310. case $host_vendor in
  12311. sni)
  12312. shlibpath_overrides_runpath=no
  12313. need_lib_prefix=no
  12314. runpath_var=LD_RUN_PATH
  12315. ;;
  12316. siemens)
  12317. need_lib_prefix=no
  12318. ;;
  12319. motorola)
  12320. need_lib_prefix=no
  12321. need_version=no
  12322. shlibpath_overrides_runpath=no
  12323. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12324. ;;
  12325. esac
  12326. ;;
  12327. sysv4*MP*)
  12328. if test -d /usr/nec ;then
  12329. version_type=linux # correct to gnu/linux during the next big refactor
  12330. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12331. soname_spec='$libname${shared_ext}.$major'
  12332. shlibpath_var=LD_LIBRARY_PATH
  12333. fi
  12334. ;;
  12335. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12336. version_type=freebsd-elf
  12337. need_lib_prefix=no
  12338. need_version=no
  12339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12340. soname_spec='${libname}${release}${shared_ext}$major'
  12341. shlibpath_var=LD_LIBRARY_PATH
  12342. shlibpath_overrides_runpath=yes
  12343. hardcode_into_libs=yes
  12344. if test "$with_gnu_ld" = yes; then
  12345. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12346. else
  12347. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12348. case $host_os in
  12349. sco3.2v5*)
  12350. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12351. ;;
  12352. esac
  12353. fi
  12354. sys_lib_dlsearch_path_spec='/usr/lib'
  12355. ;;
  12356. tpf*)
  12357. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12358. version_type=linux # correct to gnu/linux during the next big refactor
  12359. need_lib_prefix=no
  12360. need_version=no
  12361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12362. shlibpath_var=LD_LIBRARY_PATH
  12363. shlibpath_overrides_runpath=no
  12364. hardcode_into_libs=yes
  12365. ;;
  12366. uts4*)
  12367. version_type=linux # correct to gnu/linux during the next big refactor
  12368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12369. soname_spec='${libname}${release}${shared_ext}$major'
  12370. shlibpath_var=LD_LIBRARY_PATH
  12371. ;;
  12372. *)
  12373. dynamic_linker=no
  12374. ;;
  12375. esac
  12376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12377. $as_echo "$dynamic_linker" >&6; }
  12378. test "$dynamic_linker" = no && can_build_shared=no
  12379. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12380. if test "$GCC" = yes; then
  12381. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12382. fi
  12383. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12384. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12385. fi
  12386. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12387. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12388. fi
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12390. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12391. hardcode_action=
  12392. if test -n "$hardcode_libdir_flag_spec" ||
  12393. test -n "$runpath_var" ||
  12394. test "X$hardcode_automatic" = "Xyes" ; then
  12395. # We can hardcode non-existent directories.
  12396. if test "$hardcode_direct" != no &&
  12397. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12398. # have to relink, otherwise we might link with an installed library
  12399. # when we should be linking with a yet-to-be-installed one
  12400. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  12401. test "$hardcode_minus_L" != no; then
  12402. # Linking always hardcodes the temporary library directory.
  12403. hardcode_action=relink
  12404. else
  12405. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12406. hardcode_action=immediate
  12407. fi
  12408. else
  12409. # We cannot hardcode anything, or else we can only hardcode existing
  12410. # directories.
  12411. hardcode_action=unsupported
  12412. fi
  12413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12414. $as_echo "$hardcode_action" >&6; }
  12415. if test "$hardcode_action" = relink ||
  12416. test "$inherit_rpath" = yes; then
  12417. # Fast installation is not supported
  12418. enable_fast_install=no
  12419. elif test "$shlibpath_overrides_runpath" = yes ||
  12420. test "$enable_shared" = no; then
  12421. # Fast installation is not necessary
  12422. enable_fast_install=needless
  12423. fi
  12424. if test "x$enable_dlopen" != xyes; then
  12425. enable_dlopen=unknown
  12426. enable_dlopen_self=unknown
  12427. enable_dlopen_self_static=unknown
  12428. else
  12429. lt_cv_dlopen=no
  12430. lt_cv_dlopen_libs=
  12431. case $host_os in
  12432. beos*)
  12433. lt_cv_dlopen="load_add_on"
  12434. lt_cv_dlopen_libs=
  12435. lt_cv_dlopen_self=yes
  12436. ;;
  12437. mingw* | pw32* | cegcc*)
  12438. lt_cv_dlopen="LoadLibrary"
  12439. lt_cv_dlopen_libs=
  12440. ;;
  12441. cygwin*)
  12442. lt_cv_dlopen="dlopen"
  12443. lt_cv_dlopen_libs=
  12444. ;;
  12445. darwin*)
  12446. # if libdl is installed we need to link against it
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12448. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12449. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12450. $as_echo_n "(cached) " >&6
  12451. else
  12452. ac_check_lib_save_LIBS=$LIBS
  12453. LIBS="-ldl $LIBS"
  12454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12455. /* end confdefs.h. */
  12456. /* Override any GCC internal prototype to avoid an error.
  12457. Use char because int might match the return type of a GCC
  12458. builtin and then its argument prototype would still apply. */
  12459. #ifdef __cplusplus
  12460. extern "C"
  12461. #endif
  12462. char dlopen ();
  12463. int
  12464. main ()
  12465. {
  12466. return dlopen ();
  12467. ;
  12468. return 0;
  12469. }
  12470. _ACEOF
  12471. if ac_fn_c_try_link "$LINENO"; then :
  12472. ac_cv_lib_dl_dlopen=yes
  12473. else
  12474. ac_cv_lib_dl_dlopen=no
  12475. fi
  12476. rm -f core conftest.err conftest.$ac_objext \
  12477. conftest$ac_exeext conftest.$ac_ext
  12478. LIBS=$ac_check_lib_save_LIBS
  12479. fi
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12481. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12482. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12483. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12484. else
  12485. lt_cv_dlopen="dyld"
  12486. lt_cv_dlopen_libs=
  12487. lt_cv_dlopen_self=yes
  12488. fi
  12489. ;;
  12490. *)
  12491. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12492. if test "x$ac_cv_func_shl_load" = xyes; then :
  12493. lt_cv_dlopen="shl_load"
  12494. else
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12496. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12497. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12498. $as_echo_n "(cached) " >&6
  12499. else
  12500. ac_check_lib_save_LIBS=$LIBS
  12501. LIBS="-ldld $LIBS"
  12502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12503. /* end confdefs.h. */
  12504. /* Override any GCC internal prototype to avoid an error.
  12505. Use char because int might match the return type of a GCC
  12506. builtin and then its argument prototype would still apply. */
  12507. #ifdef __cplusplus
  12508. extern "C"
  12509. #endif
  12510. char shl_load ();
  12511. int
  12512. main ()
  12513. {
  12514. return shl_load ();
  12515. ;
  12516. return 0;
  12517. }
  12518. _ACEOF
  12519. if ac_fn_c_try_link "$LINENO"; then :
  12520. ac_cv_lib_dld_shl_load=yes
  12521. else
  12522. ac_cv_lib_dld_shl_load=no
  12523. fi
  12524. rm -f core conftest.err conftest.$ac_objext \
  12525. conftest$ac_exeext conftest.$ac_ext
  12526. LIBS=$ac_check_lib_save_LIBS
  12527. fi
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12529. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12530. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12531. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  12532. else
  12533. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12534. if test "x$ac_cv_func_dlopen" = xyes; then :
  12535. lt_cv_dlopen="dlopen"
  12536. else
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12538. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12539. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12540. $as_echo_n "(cached) " >&6
  12541. else
  12542. ac_check_lib_save_LIBS=$LIBS
  12543. LIBS="-ldl $LIBS"
  12544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12545. /* end confdefs.h. */
  12546. /* Override any GCC internal prototype to avoid an error.
  12547. Use char because int might match the return type of a GCC
  12548. builtin and then its argument prototype would still apply. */
  12549. #ifdef __cplusplus
  12550. extern "C"
  12551. #endif
  12552. char dlopen ();
  12553. int
  12554. main ()
  12555. {
  12556. return dlopen ();
  12557. ;
  12558. return 0;
  12559. }
  12560. _ACEOF
  12561. if ac_fn_c_try_link "$LINENO"; then :
  12562. ac_cv_lib_dl_dlopen=yes
  12563. else
  12564. ac_cv_lib_dl_dlopen=no
  12565. fi
  12566. rm -f core conftest.err conftest.$ac_objext \
  12567. conftest$ac_exeext conftest.$ac_ext
  12568. LIBS=$ac_check_lib_save_LIBS
  12569. fi
  12570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12571. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12572. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12573. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12574. else
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12576. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12577. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12578. $as_echo_n "(cached) " >&6
  12579. else
  12580. ac_check_lib_save_LIBS=$LIBS
  12581. LIBS="-lsvld $LIBS"
  12582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12583. /* end confdefs.h. */
  12584. /* Override any GCC internal prototype to avoid an error.
  12585. Use char because int might match the return type of a GCC
  12586. builtin and then its argument prototype would still apply. */
  12587. #ifdef __cplusplus
  12588. extern "C"
  12589. #endif
  12590. char dlopen ();
  12591. int
  12592. main ()
  12593. {
  12594. return dlopen ();
  12595. ;
  12596. return 0;
  12597. }
  12598. _ACEOF
  12599. if ac_fn_c_try_link "$LINENO"; then :
  12600. ac_cv_lib_svld_dlopen=yes
  12601. else
  12602. ac_cv_lib_svld_dlopen=no
  12603. fi
  12604. rm -f core conftest.err conftest.$ac_objext \
  12605. conftest$ac_exeext conftest.$ac_ext
  12606. LIBS=$ac_check_lib_save_LIBS
  12607. fi
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12609. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12610. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12611. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12612. else
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12614. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12615. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. ac_check_lib_save_LIBS=$LIBS
  12619. LIBS="-ldld $LIBS"
  12620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12621. /* end confdefs.h. */
  12622. /* Override any GCC internal prototype to avoid an error.
  12623. Use char because int might match the return type of a GCC
  12624. builtin and then its argument prototype would still apply. */
  12625. #ifdef __cplusplus
  12626. extern "C"
  12627. #endif
  12628. char dld_link ();
  12629. int
  12630. main ()
  12631. {
  12632. return dld_link ();
  12633. ;
  12634. return 0;
  12635. }
  12636. _ACEOF
  12637. if ac_fn_c_try_link "$LINENO"; then :
  12638. ac_cv_lib_dld_dld_link=yes
  12639. else
  12640. ac_cv_lib_dld_dld_link=no
  12641. fi
  12642. rm -f core conftest.err conftest.$ac_objext \
  12643. conftest$ac_exeext conftest.$ac_ext
  12644. LIBS=$ac_check_lib_save_LIBS
  12645. fi
  12646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12647. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12648. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12649. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  12650. fi
  12651. fi
  12652. fi
  12653. fi
  12654. fi
  12655. fi
  12656. ;;
  12657. esac
  12658. if test "x$lt_cv_dlopen" != xno; then
  12659. enable_dlopen=yes
  12660. else
  12661. enable_dlopen=no
  12662. fi
  12663. case $lt_cv_dlopen in
  12664. dlopen)
  12665. save_CPPFLAGS="$CPPFLAGS"
  12666. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12667. save_LDFLAGS="$LDFLAGS"
  12668. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12669. save_LIBS="$LIBS"
  12670. LIBS="$lt_cv_dlopen_libs $LIBS"
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12672. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12673. if ${lt_cv_dlopen_self+:} false; then :
  12674. $as_echo_n "(cached) " >&6
  12675. else
  12676. if test "$cross_compiling" = yes; then :
  12677. lt_cv_dlopen_self=cross
  12678. else
  12679. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12680. lt_status=$lt_dlunknown
  12681. cat > conftest.$ac_ext <<_LT_EOF
  12682. #line $LINENO "configure"
  12683. #include "confdefs.h"
  12684. #if HAVE_DLFCN_H
  12685. #include <dlfcn.h>
  12686. #endif
  12687. #include <stdio.h>
  12688. #ifdef RTLD_GLOBAL
  12689. # define LT_DLGLOBAL RTLD_GLOBAL
  12690. #else
  12691. # ifdef DL_GLOBAL
  12692. # define LT_DLGLOBAL DL_GLOBAL
  12693. # else
  12694. # define LT_DLGLOBAL 0
  12695. # endif
  12696. #endif
  12697. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12698. find out it does not work in some platform. */
  12699. #ifndef LT_DLLAZY_OR_NOW
  12700. # ifdef RTLD_LAZY
  12701. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12702. # else
  12703. # ifdef DL_LAZY
  12704. # define LT_DLLAZY_OR_NOW DL_LAZY
  12705. # else
  12706. # ifdef RTLD_NOW
  12707. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12708. # else
  12709. # ifdef DL_NOW
  12710. # define LT_DLLAZY_OR_NOW DL_NOW
  12711. # else
  12712. # define LT_DLLAZY_OR_NOW 0
  12713. # endif
  12714. # endif
  12715. # endif
  12716. # endif
  12717. #endif
  12718. /* When -fvisbility=hidden is used, assume the code has been annotated
  12719. correspondingly for the symbols needed. */
  12720. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12721. int fnord () __attribute__((visibility("default")));
  12722. #endif
  12723. int fnord () { return 42; }
  12724. int main ()
  12725. {
  12726. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12727. int status = $lt_dlunknown;
  12728. if (self)
  12729. {
  12730. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12731. else
  12732. {
  12733. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12734. else puts (dlerror ());
  12735. }
  12736. /* dlclose (self); */
  12737. }
  12738. else
  12739. puts (dlerror ());
  12740. return status;
  12741. }
  12742. _LT_EOF
  12743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12744. (eval $ac_link) 2>&5
  12745. ac_status=$?
  12746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12747. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12748. (./conftest; exit; ) >&5 2>/dev/null
  12749. lt_status=$?
  12750. case x$lt_status in
  12751. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12752. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12753. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12754. esac
  12755. else :
  12756. # compilation failed
  12757. lt_cv_dlopen_self=no
  12758. fi
  12759. fi
  12760. rm -fr conftest*
  12761. fi
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12763. $as_echo "$lt_cv_dlopen_self" >&6; }
  12764. if test "x$lt_cv_dlopen_self" = xyes; then
  12765. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12767. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12768. if ${lt_cv_dlopen_self_static+:} false; then :
  12769. $as_echo_n "(cached) " >&6
  12770. else
  12771. if test "$cross_compiling" = yes; then :
  12772. lt_cv_dlopen_self_static=cross
  12773. else
  12774. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12775. lt_status=$lt_dlunknown
  12776. cat > conftest.$ac_ext <<_LT_EOF
  12777. #line $LINENO "configure"
  12778. #include "confdefs.h"
  12779. #if HAVE_DLFCN_H
  12780. #include <dlfcn.h>
  12781. #endif
  12782. #include <stdio.h>
  12783. #ifdef RTLD_GLOBAL
  12784. # define LT_DLGLOBAL RTLD_GLOBAL
  12785. #else
  12786. # ifdef DL_GLOBAL
  12787. # define LT_DLGLOBAL DL_GLOBAL
  12788. # else
  12789. # define LT_DLGLOBAL 0
  12790. # endif
  12791. #endif
  12792. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12793. find out it does not work in some platform. */
  12794. #ifndef LT_DLLAZY_OR_NOW
  12795. # ifdef RTLD_LAZY
  12796. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12797. # else
  12798. # ifdef DL_LAZY
  12799. # define LT_DLLAZY_OR_NOW DL_LAZY
  12800. # else
  12801. # ifdef RTLD_NOW
  12802. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12803. # else
  12804. # ifdef DL_NOW
  12805. # define LT_DLLAZY_OR_NOW DL_NOW
  12806. # else
  12807. # define LT_DLLAZY_OR_NOW 0
  12808. # endif
  12809. # endif
  12810. # endif
  12811. # endif
  12812. #endif
  12813. /* When -fvisbility=hidden is used, assume the code has been annotated
  12814. correspondingly for the symbols needed. */
  12815. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12816. int fnord () __attribute__((visibility("default")));
  12817. #endif
  12818. int fnord () { return 42; }
  12819. int main ()
  12820. {
  12821. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12822. int status = $lt_dlunknown;
  12823. if (self)
  12824. {
  12825. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12826. else
  12827. {
  12828. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12829. else puts (dlerror ());
  12830. }
  12831. /* dlclose (self); */
  12832. }
  12833. else
  12834. puts (dlerror ());
  12835. return status;
  12836. }
  12837. _LT_EOF
  12838. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12839. (eval $ac_link) 2>&5
  12840. ac_status=$?
  12841. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12842. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12843. (./conftest; exit; ) >&5 2>/dev/null
  12844. lt_status=$?
  12845. case x$lt_status in
  12846. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12847. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12848. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12849. esac
  12850. else :
  12851. # compilation failed
  12852. lt_cv_dlopen_self_static=no
  12853. fi
  12854. fi
  12855. rm -fr conftest*
  12856. fi
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12858. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12859. fi
  12860. CPPFLAGS="$save_CPPFLAGS"
  12861. LDFLAGS="$save_LDFLAGS"
  12862. LIBS="$save_LIBS"
  12863. ;;
  12864. esac
  12865. case $lt_cv_dlopen_self in
  12866. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12867. *) enable_dlopen_self=unknown ;;
  12868. esac
  12869. case $lt_cv_dlopen_self_static in
  12870. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12871. *) enable_dlopen_self_static=unknown ;;
  12872. esac
  12873. fi
  12874. striplib=
  12875. old_striplib=
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12877. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12878. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12879. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12880. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12882. $as_echo "yes" >&6; }
  12883. else
  12884. # FIXME - insert some real tests, host_os isn't really good enough
  12885. case $host_os in
  12886. darwin*)
  12887. if test -n "$STRIP" ; then
  12888. striplib="$STRIP -x"
  12889. old_striplib="$STRIP -S"
  12890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12891. $as_echo "yes" >&6; }
  12892. else
  12893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12894. $as_echo "no" >&6; }
  12895. fi
  12896. ;;
  12897. *)
  12898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12899. $as_echo "no" >&6; }
  12900. ;;
  12901. esac
  12902. fi
  12903. # Report which library types will actually be built
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12905. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12907. $as_echo "$can_build_shared" >&6; }
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12909. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12910. test "$can_build_shared" = "no" && enable_shared=no
  12911. # On AIX, shared libraries and static libraries use the same namespace, and
  12912. # are all built from PIC.
  12913. case $host_os in
  12914. aix3*)
  12915. test "$enable_shared" = yes && enable_static=no
  12916. if test -n "$RANLIB"; then
  12917. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12918. postinstall_cmds='$RANLIB $lib'
  12919. fi
  12920. ;;
  12921. aix[4-9]*)
  12922. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12923. test "$enable_shared" = yes && enable_static=no
  12924. fi
  12925. ;;
  12926. esac
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12928. $as_echo "$enable_shared" >&6; }
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12930. $as_echo_n "checking whether to build static libraries... " >&6; }
  12931. # Make sure either enable_shared or enable_static is yes.
  12932. test "$enable_shared" = yes || enable_static=yes
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12934. $as_echo "$enable_static" >&6; }
  12935. fi
  12936. ac_ext=c
  12937. ac_cpp='$CPP $CPPFLAGS'
  12938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12941. CC="$lt_save_CC"
  12942. ac_config_commands="$ac_config_commands libtool"
  12943. # Only expand once:
  12944. ac_ext=cpp
  12945. ac_cpp='$CXXCPP $CPPFLAGS'
  12946. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12947. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12948. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12949. if test -z "$CXX"; then
  12950. if test -n "$CCC"; then
  12951. CXX=$CCC
  12952. else
  12953. if test -n "$ac_tool_prefix"; then
  12954. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12955. do
  12956. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12957. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12959. $as_echo_n "checking for $ac_word... " >&6; }
  12960. if ${ac_cv_prog_CXX+:} false; then :
  12961. $as_echo_n "(cached) " >&6
  12962. else
  12963. if test -n "$CXX"; then
  12964. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12965. else
  12966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12967. for as_dir in $PATH
  12968. do
  12969. IFS=$as_save_IFS
  12970. test -z "$as_dir" && as_dir=.
  12971. for ac_exec_ext in '' $ac_executable_extensions; do
  12972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12973. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12975. break 2
  12976. fi
  12977. done
  12978. done
  12979. IFS=$as_save_IFS
  12980. fi
  12981. fi
  12982. CXX=$ac_cv_prog_CXX
  12983. if test -n "$CXX"; then
  12984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12985. $as_echo "$CXX" >&6; }
  12986. else
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12988. $as_echo "no" >&6; }
  12989. fi
  12990. test -n "$CXX" && break
  12991. done
  12992. fi
  12993. if test -z "$CXX"; then
  12994. ac_ct_CXX=$CXX
  12995. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  12996. do
  12997. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12998. set dummy $ac_prog; ac_word=$2
  12999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13000. $as_echo_n "checking for $ac_word... " >&6; }
  13001. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  13002. $as_echo_n "(cached) " >&6
  13003. else
  13004. if test -n "$ac_ct_CXX"; then
  13005. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  13006. else
  13007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13008. for as_dir in $PATH
  13009. do
  13010. IFS=$as_save_IFS
  13011. test -z "$as_dir" && as_dir=.
  13012. for ac_exec_ext in '' $ac_executable_extensions; do
  13013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13014. ac_cv_prog_ac_ct_CXX="$ac_prog"
  13015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13016. break 2
  13017. fi
  13018. done
  13019. done
  13020. IFS=$as_save_IFS
  13021. fi
  13022. fi
  13023. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  13024. if test -n "$ac_ct_CXX"; then
  13025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  13026. $as_echo "$ac_ct_CXX" >&6; }
  13027. else
  13028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13029. $as_echo "no" >&6; }
  13030. fi
  13031. test -n "$ac_ct_CXX" && break
  13032. done
  13033. if test "x$ac_ct_CXX" = x; then
  13034. CXX="g++"
  13035. else
  13036. case $cross_compiling:$ac_tool_warned in
  13037. yes:)
  13038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13040. ac_tool_warned=yes ;;
  13041. esac
  13042. CXX=$ac_ct_CXX
  13043. fi
  13044. fi
  13045. fi
  13046. fi
  13047. # Provide some information about the compiler.
  13048. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  13049. set X $ac_compile
  13050. ac_compiler=$2
  13051. for ac_option in --version -v -V -qversion; do
  13052. { { ac_try="$ac_compiler $ac_option >&5"
  13053. case "(($ac_try" in
  13054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13055. *) ac_try_echo=$ac_try;;
  13056. esac
  13057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13058. $as_echo "$ac_try_echo"; } >&5
  13059. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  13060. ac_status=$?
  13061. if test -s conftest.err; then
  13062. sed '10a\
  13063. ... rest of stderr output deleted ...
  13064. 10q' conftest.err >conftest.er1
  13065. cat conftest.er1 >&5
  13066. fi
  13067. rm -f conftest.er1 conftest.err
  13068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13069. test $ac_status = 0; }
  13070. done
  13071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  13072. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  13073. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  13074. $as_echo_n "(cached) " >&6
  13075. else
  13076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13077. /* end confdefs.h. */
  13078. int
  13079. main ()
  13080. {
  13081. #ifndef __GNUC__
  13082. choke me
  13083. #endif
  13084. ;
  13085. return 0;
  13086. }
  13087. _ACEOF
  13088. if ac_fn_cxx_try_compile "$LINENO"; then :
  13089. ac_compiler_gnu=yes
  13090. else
  13091. ac_compiler_gnu=no
  13092. fi
  13093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13094. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  13095. fi
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  13097. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  13098. if test $ac_compiler_gnu = yes; then
  13099. GXX=yes
  13100. else
  13101. GXX=
  13102. fi
  13103. ac_test_CXXFLAGS=${CXXFLAGS+set}
  13104. ac_save_CXXFLAGS=$CXXFLAGS
  13105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  13106. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  13107. if ${ac_cv_prog_cxx_g+:} false; then :
  13108. $as_echo_n "(cached) " >&6
  13109. else
  13110. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  13111. ac_cxx_werror_flag=yes
  13112. ac_cv_prog_cxx_g=no
  13113. CXXFLAGS="-g"
  13114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13115. /* end confdefs.h. */
  13116. int
  13117. main ()
  13118. {
  13119. ;
  13120. return 0;
  13121. }
  13122. _ACEOF
  13123. if ac_fn_cxx_try_compile "$LINENO"; then :
  13124. ac_cv_prog_cxx_g=yes
  13125. else
  13126. CXXFLAGS=""
  13127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13128. /* end confdefs.h. */
  13129. int
  13130. main ()
  13131. {
  13132. ;
  13133. return 0;
  13134. }
  13135. _ACEOF
  13136. if ac_fn_cxx_try_compile "$LINENO"; then :
  13137. else
  13138. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13139. CXXFLAGS="-g"
  13140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13141. /* end confdefs.h. */
  13142. int
  13143. main ()
  13144. {
  13145. ;
  13146. return 0;
  13147. }
  13148. _ACEOF
  13149. if ac_fn_cxx_try_compile "$LINENO"; then :
  13150. ac_cv_prog_cxx_g=yes
  13151. fi
  13152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13153. fi
  13154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13155. fi
  13156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13157. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  13158. fi
  13159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  13160. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  13161. if test "$ac_test_CXXFLAGS" = set; then
  13162. CXXFLAGS=$ac_save_CXXFLAGS
  13163. elif test $ac_cv_prog_cxx_g = yes; then
  13164. if test "$GXX" = yes; then
  13165. CXXFLAGS="-g -O2"
  13166. else
  13167. CXXFLAGS="-g"
  13168. fi
  13169. else
  13170. if test "$GXX" = yes; then
  13171. CXXFLAGS="-O2"
  13172. else
  13173. CXXFLAGS=
  13174. fi
  13175. fi
  13176. ac_ext=c
  13177. ac_cpp='$CPP $CPPFLAGS'
  13178. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13179. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13180. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13181. depcc="$CXX" am_compiler_list=
  13182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13183. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13184. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13185. $as_echo_n "(cached) " >&6
  13186. else
  13187. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13188. # We make a subdir and do the tests there. Otherwise we can end up
  13189. # making bogus files that we don't know about and never remove. For
  13190. # instance it was reported that on HP-UX the gcc test will end up
  13191. # making a dummy file named `D' -- because `-MD' means `put the output
  13192. # in D'.
  13193. rm -rf conftest.dir
  13194. mkdir conftest.dir
  13195. # Copy depcomp to subdir because otherwise we won't find it if we're
  13196. # using a relative directory.
  13197. cp "$am_depcomp" conftest.dir
  13198. cd conftest.dir
  13199. # We will build objects and dependencies in a subdirectory because
  13200. # it helps to detect inapplicable dependency modes. For instance
  13201. # both Tru64's cc and ICC support -MD to output dependencies as a
  13202. # side effect of compilation, but ICC will put the dependencies in
  13203. # the current directory while Tru64 will put them in the object
  13204. # directory.
  13205. mkdir sub
  13206. am_cv_CXX_dependencies_compiler_type=none
  13207. if test "$am_compiler_list" = ""; then
  13208. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13209. fi
  13210. am__universal=false
  13211. case " $depcc " in #(
  13212. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13213. esac
  13214. for depmode in $am_compiler_list; do
  13215. # Setup a source with many dependencies, because some compilers
  13216. # like to wrap large dependency lists on column 80 (with \), and
  13217. # we should not choose a depcomp mode which is confused by this.
  13218. #
  13219. # We need to recreate these files for each test, as the compiler may
  13220. # overwrite some of them when testing with obscure command lines.
  13221. # This happens at least with the AIX C compiler.
  13222. : > sub/conftest.c
  13223. for i in 1 2 3 4 5 6; do
  13224. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13225. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13226. # Solaris 8's {/usr,}/bin/sh.
  13227. touch sub/conftst$i.h
  13228. done
  13229. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13230. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13231. # mode. It turns out that the SunPro C++ compiler does not properly
  13232. # handle `-M -o', and we need to detect this. Also, some Intel
  13233. # versions had trouble with output in subdirs
  13234. am__obj=sub/conftest.${OBJEXT-o}
  13235. am__minus_obj="-o $am__obj"
  13236. case $depmode in
  13237. gcc)
  13238. # This depmode causes a compiler race in universal mode.
  13239. test "$am__universal" = false || continue
  13240. ;;
  13241. nosideeffect)
  13242. # after this tag, mechanisms are not by side-effect, so they'll
  13243. # only be used when explicitly requested
  13244. if test "x$enable_dependency_tracking" = xyes; then
  13245. continue
  13246. else
  13247. break
  13248. fi
  13249. ;;
  13250. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13251. # This compiler won't grok `-c -o', but also, the minuso test has
  13252. # not run yet. These depmodes are late enough in the game, and
  13253. # so weak that their functioning should not be impacted.
  13254. am__obj=conftest.${OBJEXT-o}
  13255. am__minus_obj=
  13256. ;;
  13257. none) break ;;
  13258. esac
  13259. if depmode=$depmode \
  13260. source=sub/conftest.c object=$am__obj \
  13261. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13262. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13263. >/dev/null 2>conftest.err &&
  13264. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13265. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13266. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13267. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13268. # icc doesn't choke on unknown options, it will just issue warnings
  13269. # or remarks (even with -Werror). So we grep stderr for any message
  13270. # that says an option was ignored or not supported.
  13271. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13272. # icc: Command line warning: ignoring option '-M'; no argument required
  13273. # The diagnosis changed in icc 8.0:
  13274. # icc: Command line remark: option '-MP' not supported
  13275. if (grep 'ignoring option' conftest.err ||
  13276. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13277. am_cv_CXX_dependencies_compiler_type=$depmode
  13278. break
  13279. fi
  13280. fi
  13281. done
  13282. cd ..
  13283. rm -rf conftest.dir
  13284. else
  13285. am_cv_CXX_dependencies_compiler_type=none
  13286. fi
  13287. fi
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13289. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13290. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13291. if
  13292. test "x$enable_dependency_tracking" != xno \
  13293. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13294. am__fastdepCXX_TRUE=
  13295. am__fastdepCXX_FALSE='#'
  13296. else
  13297. am__fastdepCXX_TRUE='#'
  13298. am__fastdepCXX_FALSE=
  13299. fi
  13300. func_stripname_cnf ()
  13301. {
  13302. case ${2} in
  13303. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  13304. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  13305. esac
  13306. } # func_stripname_cnf
  13307. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  13308. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  13309. (test "X$CXX" != "Xg++"))) ; then
  13310. ac_ext=cpp
  13311. ac_cpp='$CXXCPP $CPPFLAGS'
  13312. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13313. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13314. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  13316. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  13317. if test -z "$CXXCPP"; then
  13318. if ${ac_cv_prog_CXXCPP+:} false; then :
  13319. $as_echo_n "(cached) " >&6
  13320. else
  13321. # Double quotes because CXXCPP needs to be expanded
  13322. for CXXCPP in "$CXX -E" "/lib/cpp"
  13323. do
  13324. ac_preproc_ok=false
  13325. for ac_cxx_preproc_warn_flag in '' yes
  13326. do
  13327. # Use a header file that comes with gcc, so configuring glibc
  13328. # with a fresh cross-compiler works.
  13329. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13330. # <limits.h> exists even on freestanding compilers.
  13331. # On the NeXT, cc -E runs the code through the compiler's parser,
  13332. # not just through cpp. "Syntax error" is here to catch this case.
  13333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13334. /* end confdefs.h. */
  13335. #ifdef __STDC__
  13336. # include <limits.h>
  13337. #else
  13338. # include <assert.h>
  13339. #endif
  13340. Syntax error
  13341. _ACEOF
  13342. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13343. else
  13344. # Broken: fails on valid input.
  13345. continue
  13346. fi
  13347. rm -f conftest.err conftest.i conftest.$ac_ext
  13348. # OK, works on sane cases. Now check whether nonexistent headers
  13349. # can be detected and how.
  13350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13351. /* end confdefs.h. */
  13352. #include <ac_nonexistent.h>
  13353. _ACEOF
  13354. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13355. # Broken: success on invalid input.
  13356. continue
  13357. else
  13358. # Passes both tests.
  13359. ac_preproc_ok=:
  13360. break
  13361. fi
  13362. rm -f conftest.err conftest.i conftest.$ac_ext
  13363. done
  13364. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13365. rm -f conftest.i conftest.err conftest.$ac_ext
  13366. if $ac_preproc_ok; then :
  13367. break
  13368. fi
  13369. done
  13370. ac_cv_prog_CXXCPP=$CXXCPP
  13371. fi
  13372. CXXCPP=$ac_cv_prog_CXXCPP
  13373. else
  13374. ac_cv_prog_CXXCPP=$CXXCPP
  13375. fi
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  13377. $as_echo "$CXXCPP" >&6; }
  13378. ac_preproc_ok=false
  13379. for ac_cxx_preproc_warn_flag in '' yes
  13380. do
  13381. # Use a header file that comes with gcc, so configuring glibc
  13382. # with a fresh cross-compiler works.
  13383. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13384. # <limits.h> exists even on freestanding compilers.
  13385. # On the NeXT, cc -E runs the code through the compiler's parser,
  13386. # not just through cpp. "Syntax error" is here to catch this case.
  13387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13388. /* end confdefs.h. */
  13389. #ifdef __STDC__
  13390. # include <limits.h>
  13391. #else
  13392. # include <assert.h>
  13393. #endif
  13394. Syntax error
  13395. _ACEOF
  13396. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13397. else
  13398. # Broken: fails on valid input.
  13399. continue
  13400. fi
  13401. rm -f conftest.err conftest.i conftest.$ac_ext
  13402. # OK, works on sane cases. Now check whether nonexistent headers
  13403. # can be detected and how.
  13404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13405. /* end confdefs.h. */
  13406. #include <ac_nonexistent.h>
  13407. _ACEOF
  13408. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13409. # Broken: success on invalid input.
  13410. continue
  13411. else
  13412. # Passes both tests.
  13413. ac_preproc_ok=:
  13414. break
  13415. fi
  13416. rm -f conftest.err conftest.i conftest.$ac_ext
  13417. done
  13418. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13419. rm -f conftest.i conftest.err conftest.$ac_ext
  13420. if $ac_preproc_ok; then :
  13421. else
  13422. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13423. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13424. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  13425. See \`config.log' for more details" "$LINENO" 5; }
  13426. fi
  13427. ac_ext=c
  13428. ac_cpp='$CPP $CPPFLAGS'
  13429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13432. else
  13433. _lt_caught_CXX_error=yes
  13434. fi
  13435. ac_ext=cpp
  13436. ac_cpp='$CXXCPP $CPPFLAGS'
  13437. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13438. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13439. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13440. archive_cmds_need_lc_CXX=no
  13441. allow_undefined_flag_CXX=
  13442. always_export_symbols_CXX=no
  13443. archive_expsym_cmds_CXX=
  13444. compiler_needs_object_CXX=no
  13445. export_dynamic_flag_spec_CXX=
  13446. hardcode_direct_CXX=no
  13447. hardcode_direct_absolute_CXX=no
  13448. hardcode_libdir_flag_spec_CXX=
  13449. hardcode_libdir_separator_CXX=
  13450. hardcode_minus_L_CXX=no
  13451. hardcode_shlibpath_var_CXX=unsupported
  13452. hardcode_automatic_CXX=no
  13453. inherit_rpath_CXX=no
  13454. module_cmds_CXX=
  13455. module_expsym_cmds_CXX=
  13456. link_all_deplibs_CXX=unknown
  13457. old_archive_cmds_CXX=$old_archive_cmds
  13458. reload_flag_CXX=$reload_flag
  13459. reload_cmds_CXX=$reload_cmds
  13460. no_undefined_flag_CXX=
  13461. whole_archive_flag_spec_CXX=
  13462. enable_shared_with_static_runtimes_CXX=no
  13463. # Source file extension for C++ test sources.
  13464. ac_ext=cpp
  13465. # Object file extension for compiled C++ test sources.
  13466. objext=o
  13467. objext_CXX=$objext
  13468. # No sense in running all these tests if we already determined that
  13469. # the CXX compiler isn't working. Some variables (like enable_shared)
  13470. # are currently assumed to apply to all compilers on this platform,
  13471. # and will be corrupted by setting them based on a non-working compiler.
  13472. if test "$_lt_caught_CXX_error" != yes; then
  13473. # Code to be used in simple compile tests
  13474. lt_simple_compile_test_code="int some_variable = 0;"
  13475. # Code to be used in simple link tests
  13476. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  13477. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13478. # If no C compiler was specified, use CC.
  13479. LTCC=${LTCC-"$CC"}
  13480. # If no C compiler flags were specified, use CFLAGS.
  13481. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13482. # Allow CC to be a program name with arguments.
  13483. compiler=$CC
  13484. # save warnings/boilerplate of simple test code
  13485. ac_outfile=conftest.$ac_objext
  13486. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13487. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13488. _lt_compiler_boilerplate=`cat conftest.err`
  13489. $RM conftest*
  13490. ac_outfile=conftest.$ac_objext
  13491. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13492. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13493. _lt_linker_boilerplate=`cat conftest.err`
  13494. $RM -r conftest*
  13495. # Allow CC to be a program name with arguments.
  13496. lt_save_CC=$CC
  13497. lt_save_CFLAGS=$CFLAGS
  13498. lt_save_LD=$LD
  13499. lt_save_GCC=$GCC
  13500. GCC=$GXX
  13501. lt_save_with_gnu_ld=$with_gnu_ld
  13502. lt_save_path_LD=$lt_cv_path_LD
  13503. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  13504. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  13505. else
  13506. $as_unset lt_cv_prog_gnu_ld
  13507. fi
  13508. if test -n "${lt_cv_path_LDCXX+set}"; then
  13509. lt_cv_path_LD=$lt_cv_path_LDCXX
  13510. else
  13511. $as_unset lt_cv_path_LD
  13512. fi
  13513. test -z "${LDCXX+set}" || LD=$LDCXX
  13514. CC=${CXX-"c++"}
  13515. CFLAGS=$CXXFLAGS
  13516. compiler=$CC
  13517. compiler_CXX=$CC
  13518. for cc_temp in $compiler""; do
  13519. case $cc_temp in
  13520. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13521. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13522. \-*) ;;
  13523. *) break;;
  13524. esac
  13525. done
  13526. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  13527. if test -n "$compiler"; then
  13528. # We don't want -fno-exception when compiling C++ code, so set the
  13529. # no_builtin_flag separately
  13530. if test "$GXX" = yes; then
  13531. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  13532. else
  13533. lt_prog_compiler_no_builtin_flag_CXX=
  13534. fi
  13535. if test "$GXX" = yes; then
  13536. # Set up default GNU C++ configuration
  13537. # Check whether --with-gnu-ld was given.
  13538. if test "${with_gnu_ld+set}" = set; then :
  13539. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13540. else
  13541. with_gnu_ld=no
  13542. fi
  13543. ac_prog=ld
  13544. if test "$GCC" = yes; then
  13545. # Check if gcc -print-prog-name=ld gives a path.
  13546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13547. $as_echo_n "checking for ld used by $CC... " >&6; }
  13548. case $host in
  13549. *-*-mingw*)
  13550. # gcc leaves a trailing carriage return which upsets mingw
  13551. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13552. *)
  13553. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13554. esac
  13555. case $ac_prog in
  13556. # Accept absolute paths.
  13557. [\\/]* | ?:[\\/]*)
  13558. re_direlt='/[^/][^/]*/\.\./'
  13559. # Canonicalize the pathname of ld
  13560. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13561. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13562. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13563. done
  13564. test -z "$LD" && LD="$ac_prog"
  13565. ;;
  13566. "")
  13567. # If it fails, then pretend we aren't using GCC.
  13568. ac_prog=ld
  13569. ;;
  13570. *)
  13571. # If it is relative, then search for the first ld in PATH.
  13572. with_gnu_ld=unknown
  13573. ;;
  13574. esac
  13575. elif test "$with_gnu_ld" = yes; then
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13577. $as_echo_n "checking for GNU ld... " >&6; }
  13578. else
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13580. $as_echo_n "checking for non-GNU ld... " >&6; }
  13581. fi
  13582. if ${lt_cv_path_LD+:} false; then :
  13583. $as_echo_n "(cached) " >&6
  13584. else
  13585. if test -z "$LD"; then
  13586. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13587. for ac_dir in $PATH; do
  13588. IFS="$lt_save_ifs"
  13589. test -z "$ac_dir" && ac_dir=.
  13590. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13591. lt_cv_path_LD="$ac_dir/$ac_prog"
  13592. # Check to see if the program is GNU ld. I'd rather use --version,
  13593. # but apparently some variants of GNU ld only accept -v.
  13594. # Break only if it was the GNU/non-GNU ld that we prefer.
  13595. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13596. *GNU* | *'with BFD'*)
  13597. test "$with_gnu_ld" != no && break
  13598. ;;
  13599. *)
  13600. test "$with_gnu_ld" != yes && break
  13601. ;;
  13602. esac
  13603. fi
  13604. done
  13605. IFS="$lt_save_ifs"
  13606. else
  13607. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  13608. fi
  13609. fi
  13610. LD="$lt_cv_path_LD"
  13611. if test -n "$LD"; then
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13613. $as_echo "$LD" >&6; }
  13614. else
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13616. $as_echo "no" >&6; }
  13617. fi
  13618. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13620. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13621. if ${lt_cv_prog_gnu_ld+:} false; then :
  13622. $as_echo_n "(cached) " >&6
  13623. else
  13624. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13625. case `$LD -v 2>&1 </dev/null` in
  13626. *GNU* | *'with BFD'*)
  13627. lt_cv_prog_gnu_ld=yes
  13628. ;;
  13629. *)
  13630. lt_cv_prog_gnu_ld=no
  13631. ;;
  13632. esac
  13633. fi
  13634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13635. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  13636. with_gnu_ld=$lt_cv_prog_gnu_ld
  13637. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  13638. # archiving commands below assume that GNU ld is being used.
  13639. if test "$with_gnu_ld" = yes; then
  13640. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13641. 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'
  13642. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13643. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13644. # If archive_cmds runs LD, not CC, wlarc should be empty
  13645. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  13646. # investigate it a little bit more. (MM)
  13647. wlarc='${wl}'
  13648. # ancient GNU ld didn't support --whole-archive et. al.
  13649. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  13650. $GREP 'no-whole-archive' > /dev/null; then
  13651. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13652. else
  13653. whole_archive_flag_spec_CXX=
  13654. fi
  13655. else
  13656. with_gnu_ld=no
  13657. wlarc=
  13658. # A generic and very simple default shared library creation
  13659. # command for GNU C++ for the case where it uses the native
  13660. # linker, instead of GNU ld. If possible, this setting should
  13661. # overridden to take advantage of the native linker features on
  13662. # the platform it is being used on.
  13663. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13664. fi
  13665. # Commands to make compiler produce verbose output that lists
  13666. # what "hidden" libraries, object files and flags are used when
  13667. # linking a shared library.
  13668. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13669. else
  13670. GXX=no
  13671. with_gnu_ld=no
  13672. wlarc=
  13673. fi
  13674. # PORTME: fill in a description of your system's C++ link characteristics
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13676. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13677. ld_shlibs_CXX=yes
  13678. case $host_os in
  13679. aix3*)
  13680. # FIXME: insert proper C++ library support
  13681. ld_shlibs_CXX=no
  13682. ;;
  13683. aix[4-9]*)
  13684. if test "$host_cpu" = ia64; then
  13685. # On IA64, the linker does run time linking by default, so we don't
  13686. # have to do anything special.
  13687. aix_use_runtimelinking=no
  13688. exp_sym_flag='-Bexport'
  13689. no_entry_flag=""
  13690. else
  13691. aix_use_runtimelinking=no
  13692. # Test if we are trying to use run time linking or normal
  13693. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13694. # need to do runtime linking.
  13695. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13696. for ld_flag in $LDFLAGS; do
  13697. case $ld_flag in
  13698. *-brtl*)
  13699. aix_use_runtimelinking=yes
  13700. break
  13701. ;;
  13702. esac
  13703. done
  13704. ;;
  13705. esac
  13706. exp_sym_flag='-bexport'
  13707. no_entry_flag='-bnoentry'
  13708. fi
  13709. # When large executables or shared objects are built, AIX ld can
  13710. # have problems creating the table of contents. If linking a library
  13711. # or program results in "error TOC overflow" add -mminimal-toc to
  13712. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13713. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13714. archive_cmds_CXX=''
  13715. hardcode_direct_CXX=yes
  13716. hardcode_direct_absolute_CXX=yes
  13717. hardcode_libdir_separator_CXX=':'
  13718. link_all_deplibs_CXX=yes
  13719. file_list_spec_CXX='${wl}-f,'
  13720. if test "$GXX" = yes; then
  13721. case $host_os in aix4.[012]|aix4.[012].*)
  13722. # We only want to do this on AIX 4.2 and lower, the check
  13723. # below for broken collect2 doesn't work under 4.3+
  13724. collect2name=`${CC} -print-prog-name=collect2`
  13725. if test -f "$collect2name" &&
  13726. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13727. then
  13728. # We have reworked collect2
  13729. :
  13730. else
  13731. # We have old collect2
  13732. hardcode_direct_CXX=unsupported
  13733. # It fails to find uninstalled libraries when the uninstalled
  13734. # path is not listed in the libpath. Setting hardcode_minus_L
  13735. # to unsupported forces relinking
  13736. hardcode_minus_L_CXX=yes
  13737. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13738. hardcode_libdir_separator_CXX=
  13739. fi
  13740. esac
  13741. shared_flag='-shared'
  13742. if test "$aix_use_runtimelinking" = yes; then
  13743. shared_flag="$shared_flag "'${wl}-G'
  13744. fi
  13745. else
  13746. # not using gcc
  13747. if test "$host_cpu" = ia64; then
  13748. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13749. # chokes on -Wl,-G. The following line is correct:
  13750. shared_flag='-G'
  13751. else
  13752. if test "$aix_use_runtimelinking" = yes; then
  13753. shared_flag='${wl}-G'
  13754. else
  13755. shared_flag='${wl}-bM:SRE'
  13756. fi
  13757. fi
  13758. fi
  13759. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  13760. # It seems that -bexpall does not export symbols beginning with
  13761. # underscore (_), so it is better to generate a list of symbols to
  13762. # export.
  13763. always_export_symbols_CXX=yes
  13764. if test "$aix_use_runtimelinking" = yes; then
  13765. # Warning - without using the other runtime loading flags (-brtl),
  13766. # -berok will link without error, but may produce a broken library.
  13767. allow_undefined_flag_CXX='-berok'
  13768. # Determine the default libpath from the value encoded in an empty
  13769. # executable.
  13770. if test "${lt_cv_aix_libpath+set}" = set; then
  13771. aix_libpath=$lt_cv_aix_libpath
  13772. else
  13773. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13774. $as_echo_n "(cached) " >&6
  13775. else
  13776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13777. /* end confdefs.h. */
  13778. int
  13779. main ()
  13780. {
  13781. ;
  13782. return 0;
  13783. }
  13784. _ACEOF
  13785. if ac_fn_cxx_try_link "$LINENO"; then :
  13786. lt_aix_libpath_sed='
  13787. /Import File Strings/,/^$/ {
  13788. /^0/ {
  13789. s/^0 *\([^ ]*\) *$/\1/
  13790. p
  13791. }
  13792. }'
  13793. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13794. # Check for a 64-bit object if we didn't find anything.
  13795. if test -z "$lt_cv_aix_libpath__CXX"; then
  13796. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13797. fi
  13798. fi
  13799. rm -f core conftest.err conftest.$ac_objext \
  13800. conftest$ac_exeext conftest.$ac_ext
  13801. if test -z "$lt_cv_aix_libpath__CXX"; then
  13802. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13803. fi
  13804. fi
  13805. aix_libpath=$lt_cv_aix_libpath__CXX
  13806. fi
  13807. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13808. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13809. else
  13810. if test "$host_cpu" = ia64; then
  13811. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  13812. allow_undefined_flag_CXX="-z nodefs"
  13813. 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"
  13814. else
  13815. # Determine the default libpath from the value encoded in an
  13816. # empty executable.
  13817. if test "${lt_cv_aix_libpath+set}" = set; then
  13818. aix_libpath=$lt_cv_aix_libpath
  13819. else
  13820. if ${lt_cv_aix_libpath__CXX+:} false; then :
  13821. $as_echo_n "(cached) " >&6
  13822. else
  13823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13824. /* end confdefs.h. */
  13825. int
  13826. main ()
  13827. {
  13828. ;
  13829. return 0;
  13830. }
  13831. _ACEOF
  13832. if ac_fn_cxx_try_link "$LINENO"; then :
  13833. lt_aix_libpath_sed='
  13834. /Import File Strings/,/^$/ {
  13835. /^0/ {
  13836. s/^0 *\([^ ]*\) *$/\1/
  13837. p
  13838. }
  13839. }'
  13840. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13841. # Check for a 64-bit object if we didn't find anything.
  13842. if test -z "$lt_cv_aix_libpath__CXX"; then
  13843. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13844. fi
  13845. fi
  13846. rm -f core conftest.err conftest.$ac_objext \
  13847. conftest$ac_exeext conftest.$ac_ext
  13848. if test -z "$lt_cv_aix_libpath__CXX"; then
  13849. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  13850. fi
  13851. fi
  13852. aix_libpath=$lt_cv_aix_libpath__CXX
  13853. fi
  13854. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13855. # Warning - without using the other run time loading flags,
  13856. # -berok will link without error, but may produce a broken library.
  13857. no_undefined_flag_CXX=' ${wl}-bernotok'
  13858. allow_undefined_flag_CXX=' ${wl}-berok'
  13859. if test "$with_gnu_ld" = yes; then
  13860. # We only use this code for GNU lds that support --whole-archive.
  13861. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13862. else
  13863. # Exported symbols can be pulled into shared objects from archives
  13864. whole_archive_flag_spec_CXX='$convenience'
  13865. fi
  13866. archive_cmds_need_lc_CXX=yes
  13867. # This is similar to how AIX traditionally builds its shared
  13868. # libraries.
  13869. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13870. fi
  13871. fi
  13872. ;;
  13873. beos*)
  13874. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13875. allow_undefined_flag_CXX=unsupported
  13876. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13877. # support --undefined. This deserves some investigation. FIXME
  13878. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13879. else
  13880. ld_shlibs_CXX=no
  13881. fi
  13882. ;;
  13883. chorus*)
  13884. case $cc_basename in
  13885. *)
  13886. # FIXME: insert proper C++ library support
  13887. ld_shlibs_CXX=no
  13888. ;;
  13889. esac
  13890. ;;
  13891. cygwin* | mingw* | pw32* | cegcc*)
  13892. case $GXX,$cc_basename in
  13893. ,cl* | no,cl*)
  13894. # Native MSVC
  13895. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13896. # no search path for DLLs.
  13897. hardcode_libdir_flag_spec_CXX=' '
  13898. allow_undefined_flag_CXX=unsupported
  13899. always_export_symbols_CXX=yes
  13900. file_list_spec_CXX='@'
  13901. # Tell ltmain to make .lib files, not .a files.
  13902. libext=lib
  13903. # Tell ltmain to make .dll files, not .so files.
  13904. shrext_cmds=".dll"
  13905. # FIXME: Setting linknames here is a bad hack.
  13906. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13907. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13908. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13909. else
  13910. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13911. fi~
  13912. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13913. linknames='
  13914. # The linker will not automatically build a static lib if we build a DLL.
  13915. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13916. enable_shared_with_static_runtimes_CXX=yes
  13917. # Don't use ranlib
  13918. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13919. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13920. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13921. case $lt_outputfile in
  13922. *.exe|*.EXE) ;;
  13923. *)
  13924. lt_outputfile="$lt_outputfile.exe"
  13925. lt_tool_outputfile="$lt_tool_outputfile.exe"
  13926. ;;
  13927. esac~
  13928. func_to_tool_file "$lt_outputfile"~
  13929. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13930. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13931. $RM "$lt_outputfile.manifest";
  13932. fi'
  13933. ;;
  13934. *)
  13935. # g++
  13936. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13937. # as there is no search path for DLLs.
  13938. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13939. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  13940. allow_undefined_flag_CXX=unsupported
  13941. always_export_symbols_CXX=no
  13942. enable_shared_with_static_runtimes_CXX=yes
  13943. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13944. 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'
  13945. # If the export-symbols file already is a .def file (1st line
  13946. # is EXPORTS), use it as is; otherwise, prepend...
  13947. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13948. cp $export_symbols $output_objdir/$soname.def;
  13949. else
  13950. echo EXPORTS > $output_objdir/$soname.def;
  13951. cat $export_symbols >> $output_objdir/$soname.def;
  13952. fi~
  13953. $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'
  13954. else
  13955. ld_shlibs_CXX=no
  13956. fi
  13957. ;;
  13958. esac
  13959. ;;
  13960. darwin* | rhapsody*)
  13961. archive_cmds_need_lc_CXX=no
  13962. hardcode_direct_CXX=no
  13963. hardcode_automatic_CXX=yes
  13964. hardcode_shlibpath_var_CXX=unsupported
  13965. if test "$lt_cv_ld_force_load" = "yes"; then
  13966. 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\"`'
  13967. else
  13968. whole_archive_flag_spec_CXX=''
  13969. fi
  13970. link_all_deplibs_CXX=yes
  13971. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  13972. case $cc_basename in
  13973. ifort*) _lt_dar_can_shared=yes ;;
  13974. *) _lt_dar_can_shared=$GCC ;;
  13975. esac
  13976. if test "$_lt_dar_can_shared" = "yes"; then
  13977. output_verbose_link_cmd=func_echo_all
  13978. 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}"
  13979. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13980. 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}"
  13981. 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}"
  13982. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  13983. 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}"
  13984. 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}"
  13985. fi
  13986. else
  13987. ld_shlibs_CXX=no
  13988. fi
  13989. ;;
  13990. dgux*)
  13991. case $cc_basename in
  13992. ec++*)
  13993. # FIXME: insert proper C++ library support
  13994. ld_shlibs_CXX=no
  13995. ;;
  13996. ghcx*)
  13997. # Green Hills C++ Compiler
  13998. # FIXME: insert proper C++ library support
  13999. ld_shlibs_CXX=no
  14000. ;;
  14001. *)
  14002. # FIXME: insert proper C++ library support
  14003. ld_shlibs_CXX=no
  14004. ;;
  14005. esac
  14006. ;;
  14007. freebsd2.*)
  14008. # C++ shared libraries reported to be fairly broken before
  14009. # switch to ELF
  14010. ld_shlibs_CXX=no
  14011. ;;
  14012. freebsd-elf*)
  14013. archive_cmds_need_lc_CXX=no
  14014. ;;
  14015. freebsd* | dragonfly*)
  14016. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  14017. # conventions
  14018. ld_shlibs_CXX=yes
  14019. ;;
  14020. gnu*)
  14021. ;;
  14022. haiku*)
  14023. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14024. link_all_deplibs_CXX=yes
  14025. ;;
  14026. hpux9*)
  14027. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  14028. hardcode_libdir_separator_CXX=:
  14029. export_dynamic_flag_spec_CXX='${wl}-E'
  14030. hardcode_direct_CXX=yes
  14031. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14032. # but as the default
  14033. # location of the library.
  14034. case $cc_basename in
  14035. CC*)
  14036. # FIXME: insert proper C++ library support
  14037. ld_shlibs_CXX=no
  14038. ;;
  14039. aCC*)
  14040. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14041. # Commands to make compiler produce verbose output that lists
  14042. # what "hidden" libraries, object files and flags are used when
  14043. # linking a shared library.
  14044. #
  14045. # There doesn't appear to be a way to prevent this compiler from
  14046. # explicitly linking system object files so we need to strip them
  14047. # from the output so that they don't get included in the library
  14048. # dependencies.
  14049. 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"'
  14050. ;;
  14051. *)
  14052. if test "$GXX" = yes; then
  14053. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  14054. else
  14055. # FIXME: insert proper C++ library support
  14056. ld_shlibs_CXX=no
  14057. fi
  14058. ;;
  14059. esac
  14060. ;;
  14061. hpux10*|hpux11*)
  14062. if test $with_gnu_ld = no; then
  14063. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  14064. hardcode_libdir_separator_CXX=:
  14065. case $host_cpu in
  14066. hppa*64*|ia64*)
  14067. ;;
  14068. *)
  14069. export_dynamic_flag_spec_CXX='${wl}-E'
  14070. ;;
  14071. esac
  14072. fi
  14073. case $host_cpu in
  14074. hppa*64*|ia64*)
  14075. hardcode_direct_CXX=no
  14076. hardcode_shlibpath_var_CXX=no
  14077. ;;
  14078. *)
  14079. hardcode_direct_CXX=yes
  14080. hardcode_direct_absolute_CXX=yes
  14081. hardcode_minus_L_CXX=yes # Not in the search PATH,
  14082. # but as the default
  14083. # location of the library.
  14084. ;;
  14085. esac
  14086. case $cc_basename in
  14087. CC*)
  14088. # FIXME: insert proper C++ library support
  14089. ld_shlibs_CXX=no
  14090. ;;
  14091. aCC*)
  14092. case $host_cpu in
  14093. hppa*64*)
  14094. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14095. ;;
  14096. ia64*)
  14097. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14098. ;;
  14099. *)
  14100. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14101. ;;
  14102. esac
  14103. # Commands to make compiler produce verbose output that lists
  14104. # what "hidden" libraries, object files and flags are used when
  14105. # linking a shared library.
  14106. #
  14107. # There doesn't appear to be a way to prevent this compiler from
  14108. # explicitly linking system object files so we need to strip them
  14109. # from the output so that they don't get included in the library
  14110. # dependencies.
  14111. 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"'
  14112. ;;
  14113. *)
  14114. if test "$GXX" = yes; then
  14115. if test $with_gnu_ld = no; then
  14116. case $host_cpu in
  14117. hppa*64*)
  14118. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14119. ;;
  14120. ia64*)
  14121. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14122. ;;
  14123. *)
  14124. 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'
  14125. ;;
  14126. esac
  14127. fi
  14128. else
  14129. # FIXME: insert proper C++ library support
  14130. ld_shlibs_CXX=no
  14131. fi
  14132. ;;
  14133. esac
  14134. ;;
  14135. interix[3-9]*)
  14136. hardcode_direct_CXX=no
  14137. hardcode_shlibpath_var_CXX=no
  14138. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14139. export_dynamic_flag_spec_CXX='${wl}-E'
  14140. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14141. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14142. # default) and relocated if they conflict, which is a slow very memory
  14143. # consuming and fragmenting process. To avoid this, we pick a random,
  14144. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14145. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14146. 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'
  14147. 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'
  14148. ;;
  14149. irix5* | irix6*)
  14150. case $cc_basename in
  14151. CC*)
  14152. # SGI C++
  14153. 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'
  14154. # Archives containing C++ object files must be created using
  14155. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  14156. # necessary to make sure instantiated templates are included
  14157. # in the archive.
  14158. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  14159. ;;
  14160. *)
  14161. if test "$GXX" = yes; then
  14162. if test "$with_gnu_ld" = no; then
  14163. 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'
  14164. else
  14165. 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'
  14166. fi
  14167. fi
  14168. link_all_deplibs_CXX=yes
  14169. ;;
  14170. esac
  14171. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14172. hardcode_libdir_separator_CXX=:
  14173. inherit_rpath_CXX=yes
  14174. ;;
  14175. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14176. case $cc_basename in
  14177. KCC*)
  14178. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14179. # KCC will only create a shared library if the output file
  14180. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14181. # to its proper name (with version) after linking.
  14182. 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'
  14183. 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'
  14184. # Commands to make compiler produce verbose output that lists
  14185. # what "hidden" libraries, object files and flags are used when
  14186. # linking a shared library.
  14187. #
  14188. # There doesn't appear to be a way to prevent this compiler from
  14189. # explicitly linking system object files so we need to strip them
  14190. # from the output so that they don't get included in the library
  14191. # dependencies.
  14192. 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"'
  14193. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14194. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14195. # Archives containing C++ object files must be created using
  14196. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  14197. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  14198. ;;
  14199. icpc* | ecpc* )
  14200. # Intel C++
  14201. with_gnu_ld=yes
  14202. # version 8.0 and above of icpc choke on multiply defined symbols
  14203. # if we add $predep_objects and $postdep_objects, however 7.1 and
  14204. # earlier do not add the objects themselves.
  14205. case `$CC -V 2>&1` in
  14206. *"Version 7."*)
  14207. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14208. 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'
  14209. ;;
  14210. *) # Version 8.0 or newer
  14211. tmp_idyn=
  14212. case $host_cpu in
  14213. ia64*) tmp_idyn=' -i_dynamic';;
  14214. esac
  14215. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14216. 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'
  14217. ;;
  14218. esac
  14219. archive_cmds_need_lc_CXX=no
  14220. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14221. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14222. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  14223. ;;
  14224. pgCC* | pgcpp*)
  14225. # Portland Group C++ compiler
  14226. case `$CC -V` in
  14227. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  14228. prelink_cmds_CXX='tpldir=Template.dir~
  14229. rm -rf $tpldir~
  14230. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  14231. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  14232. old_archive_cmds_CXX='tpldir=Template.dir~
  14233. rm -rf $tpldir~
  14234. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  14235. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  14236. $RANLIB $oldlib'
  14237. archive_cmds_CXX='tpldir=Template.dir~
  14238. rm -rf $tpldir~
  14239. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14240. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  14241. archive_expsym_cmds_CXX='tpldir=Template.dir~
  14242. rm -rf $tpldir~
  14243. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  14244. $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'
  14245. ;;
  14246. *) # Version 6 and above use weak symbols
  14247. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  14248. 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'
  14249. ;;
  14250. esac
  14251. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  14252. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14253. 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'
  14254. ;;
  14255. cxx*)
  14256. # Compaq C++
  14257. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14258. 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'
  14259. runpath_var=LD_RUN_PATH
  14260. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14261. hardcode_libdir_separator_CXX=:
  14262. # Commands to make compiler produce verbose output that lists
  14263. # what "hidden" libraries, object files and flags are used when
  14264. # linking a shared library.
  14265. #
  14266. # There doesn't appear to be a way to prevent this compiler from
  14267. # explicitly linking system object files so we need to strip them
  14268. # from the output so that they don't get included in the library
  14269. # dependencies.
  14270. 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'
  14271. ;;
  14272. xl* | mpixl* | bgxl*)
  14273. # IBM XL 8.0 on PPC, with GNU ld
  14274. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14275. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  14276. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14277. if test "x$supports_anon_versioning" = xyes; then
  14278. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  14279. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14280. echo "local: *; };" >> $output_objdir/$libname.ver~
  14281. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14282. fi
  14283. ;;
  14284. *)
  14285. case `$CC -V 2>&1 | sed 5q` in
  14286. *Sun\ C*)
  14287. # Sun C++ 5.9
  14288. no_undefined_flag_CXX=' -zdefs'
  14289. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14290. 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'
  14291. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14292. 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'
  14293. compiler_needs_object_CXX=yes
  14294. # Not sure whether something based on
  14295. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  14296. # would be better.
  14297. output_verbose_link_cmd='func_echo_all'
  14298. # Archives containing C++ object files must be created using
  14299. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14300. # necessary to make sure instantiated templates are included
  14301. # in the archive.
  14302. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14303. ;;
  14304. esac
  14305. ;;
  14306. esac
  14307. ;;
  14308. lynxos*)
  14309. # FIXME: insert proper C++ library support
  14310. ld_shlibs_CXX=no
  14311. ;;
  14312. m88k*)
  14313. # FIXME: insert proper C++ library support
  14314. ld_shlibs_CXX=no
  14315. ;;
  14316. mvs*)
  14317. case $cc_basename in
  14318. cxx*)
  14319. # FIXME: insert proper C++ library support
  14320. ld_shlibs_CXX=no
  14321. ;;
  14322. *)
  14323. # FIXME: insert proper C++ library support
  14324. ld_shlibs_CXX=no
  14325. ;;
  14326. esac
  14327. ;;
  14328. netbsd*)
  14329. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14330. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  14331. wlarc=
  14332. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14333. hardcode_direct_CXX=yes
  14334. hardcode_shlibpath_var_CXX=no
  14335. fi
  14336. # Workaround some broken pre-1.5 toolchains
  14337. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  14338. ;;
  14339. *nto* | *qnx*)
  14340. ld_shlibs_CXX=yes
  14341. ;;
  14342. openbsd2*)
  14343. # C++ shared libraries are fairly broken
  14344. ld_shlibs_CXX=no
  14345. ;;
  14346. openbsd*)
  14347. if test -f /usr/libexec/ld.so; then
  14348. hardcode_direct_CXX=yes
  14349. hardcode_shlibpath_var_CXX=no
  14350. hardcode_direct_absolute_CXX=yes
  14351. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  14352. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14353. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14354. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  14355. export_dynamic_flag_spec_CXX='${wl}-E'
  14356. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14357. fi
  14358. output_verbose_link_cmd=func_echo_all
  14359. else
  14360. ld_shlibs_CXX=no
  14361. fi
  14362. ;;
  14363. osf3* | osf4* | osf5*)
  14364. case $cc_basename in
  14365. KCC*)
  14366. # Kuck and Associates, Inc. (KAI) C++ Compiler
  14367. # KCC will only create a shared library if the output file
  14368. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  14369. # to its proper name (with version) after linking.
  14370. 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'
  14371. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  14372. hardcode_libdir_separator_CXX=:
  14373. # Archives containing C++ object files must be created using
  14374. # the KAI C++ compiler.
  14375. case $host in
  14376. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  14377. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  14378. esac
  14379. ;;
  14380. RCC*)
  14381. # Rational C++ 2.4.1
  14382. # FIXME: insert proper C++ library support
  14383. ld_shlibs_CXX=no
  14384. ;;
  14385. cxx*)
  14386. case $host in
  14387. osf3*)
  14388. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14389. 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'
  14390. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14391. ;;
  14392. *)
  14393. allow_undefined_flag_CXX=' -expect_unresolved \*'
  14394. 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'
  14395. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  14396. echo "-hidden">> $lib.exp~
  14397. $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~
  14398. $RM $lib.exp'
  14399. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  14400. ;;
  14401. esac
  14402. hardcode_libdir_separator_CXX=:
  14403. # Commands to make compiler produce verbose output that lists
  14404. # what "hidden" libraries, object files and flags are used when
  14405. # linking a shared library.
  14406. #
  14407. # There doesn't appear to be a way to prevent this compiler from
  14408. # explicitly linking system object files so we need to strip them
  14409. # from the output so that they don't get included in the library
  14410. # dependencies.
  14411. 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"'
  14412. ;;
  14413. *)
  14414. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14415. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  14416. case $host in
  14417. osf3*)
  14418. 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'
  14419. ;;
  14420. *)
  14421. 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'
  14422. ;;
  14423. esac
  14424. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  14425. hardcode_libdir_separator_CXX=:
  14426. # Commands to make compiler produce verbose output that lists
  14427. # what "hidden" libraries, object files and flags are used when
  14428. # linking a shared library.
  14429. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14430. else
  14431. # FIXME: insert proper C++ library support
  14432. ld_shlibs_CXX=no
  14433. fi
  14434. ;;
  14435. esac
  14436. ;;
  14437. psos*)
  14438. # FIXME: insert proper C++ library support
  14439. ld_shlibs_CXX=no
  14440. ;;
  14441. sunos4*)
  14442. case $cc_basename in
  14443. CC*)
  14444. # Sun C++ 4.x
  14445. # FIXME: insert proper C++ library support
  14446. ld_shlibs_CXX=no
  14447. ;;
  14448. lcc*)
  14449. # Lucid
  14450. # FIXME: insert proper C++ library support
  14451. ld_shlibs_CXX=no
  14452. ;;
  14453. *)
  14454. # FIXME: insert proper C++ library support
  14455. ld_shlibs_CXX=no
  14456. ;;
  14457. esac
  14458. ;;
  14459. solaris*)
  14460. case $cc_basename in
  14461. CC* | sunCC*)
  14462. # Sun C++ 4.2, 5.x and Centerline C++
  14463. archive_cmds_need_lc_CXX=yes
  14464. no_undefined_flag_CXX=' -zdefs'
  14465. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  14466. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14467. $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'
  14468. hardcode_libdir_flag_spec_CXX='-R$libdir'
  14469. hardcode_shlibpath_var_CXX=no
  14470. case $host_os in
  14471. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14472. *)
  14473. # The compiler driver will combine and reorder linker options,
  14474. # but understands `-z linker_flag'.
  14475. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14476. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  14477. ;;
  14478. esac
  14479. link_all_deplibs_CXX=yes
  14480. output_verbose_link_cmd='func_echo_all'
  14481. # Archives containing C++ object files must be created using
  14482. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  14483. # necessary to make sure instantiated templates are included
  14484. # in the archive.
  14485. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  14486. ;;
  14487. gcx*)
  14488. # Green Hills C++ Compiler
  14489. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14490. # The C++ compiler must be used to create the archive.
  14491. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  14492. ;;
  14493. *)
  14494. # GNU C++ compiler with Solaris linker
  14495. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  14496. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  14497. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  14498. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14499. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14500. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14501. # Commands to make compiler produce verbose output that lists
  14502. # what "hidden" libraries, object files and flags are used when
  14503. # linking a shared library.
  14504. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14505. else
  14506. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  14507. # platform.
  14508. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  14509. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14510. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  14511. # Commands to make compiler produce verbose output that lists
  14512. # what "hidden" libraries, object files and flags are used when
  14513. # linking a shared library.
  14514. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  14515. fi
  14516. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  14517. case $host_os in
  14518. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14519. *)
  14520. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14521. ;;
  14522. esac
  14523. fi
  14524. ;;
  14525. esac
  14526. ;;
  14527. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14528. no_undefined_flag_CXX='${wl}-z,text'
  14529. archive_cmds_need_lc_CXX=no
  14530. hardcode_shlibpath_var_CXX=no
  14531. runpath_var='LD_RUN_PATH'
  14532. case $cc_basename in
  14533. CC*)
  14534. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14535. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14536. ;;
  14537. *)
  14538. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14539. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14540. ;;
  14541. esac
  14542. ;;
  14543. sysv5* | sco3.2v5* | sco5v6*)
  14544. # Note: We can NOT use -z defs as we might desire, because we do not
  14545. # link with -lc, and that would cause any symbols used from libc to
  14546. # always be unresolved, which means just about no library would
  14547. # ever link correctly. If we're not using GNU ld we use -z text
  14548. # though, which does catch some bad symbols but isn't as heavy-handed
  14549. # as -z defs.
  14550. no_undefined_flag_CXX='${wl}-z,text'
  14551. allow_undefined_flag_CXX='${wl}-z,nodefs'
  14552. archive_cmds_need_lc_CXX=no
  14553. hardcode_shlibpath_var_CXX=no
  14554. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  14555. hardcode_libdir_separator_CXX=':'
  14556. link_all_deplibs_CXX=yes
  14557. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  14558. runpath_var='LD_RUN_PATH'
  14559. case $cc_basename in
  14560. CC*)
  14561. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14562. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14563. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  14564. '"$old_archive_cmds_CXX"
  14565. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  14566. '"$reload_cmds_CXX"
  14567. ;;
  14568. *)
  14569. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14570. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14571. ;;
  14572. esac
  14573. ;;
  14574. tandem*)
  14575. case $cc_basename in
  14576. NCC*)
  14577. # NonStop-UX NCC 3.20
  14578. # FIXME: insert proper C++ library support
  14579. ld_shlibs_CXX=no
  14580. ;;
  14581. *)
  14582. # FIXME: insert proper C++ library support
  14583. ld_shlibs_CXX=no
  14584. ;;
  14585. esac
  14586. ;;
  14587. vxworks*)
  14588. # FIXME: insert proper C++ library support
  14589. ld_shlibs_CXX=no
  14590. ;;
  14591. *)
  14592. # FIXME: insert proper C++ library support
  14593. ld_shlibs_CXX=no
  14594. ;;
  14595. esac
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14597. $as_echo "$ld_shlibs_CXX" >&6; }
  14598. test "$ld_shlibs_CXX" = no && can_build_shared=no
  14599. GCC_CXX="$GXX"
  14600. LD_CXX="$LD"
  14601. ## CAVEAT EMPTOR:
  14602. ## There is no encapsulation within the following macros, do not change
  14603. ## the running order or otherwise move them around unless you know exactly
  14604. ## what you are doing...
  14605. # Dependencies to place before and after the object being linked:
  14606. predep_objects_CXX=
  14607. postdep_objects_CXX=
  14608. predeps_CXX=
  14609. postdeps_CXX=
  14610. compiler_lib_search_path_CXX=
  14611. cat > conftest.$ac_ext <<_LT_EOF
  14612. class Foo
  14613. {
  14614. public:
  14615. Foo (void) { a = 0; }
  14616. private:
  14617. int a;
  14618. };
  14619. _LT_EOF
  14620. _lt_libdeps_save_CFLAGS=$CFLAGS
  14621. case "$CC $CFLAGS " in #(
  14622. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  14623. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  14624. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  14625. esac
  14626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14627. (eval $ac_compile) 2>&5
  14628. ac_status=$?
  14629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14630. test $ac_status = 0; }; then
  14631. # Parse the compiler output and extract the necessary
  14632. # objects, libraries and library flags.
  14633. # Sentinel used to keep track of whether or not we are before
  14634. # the conftest object file.
  14635. pre_test_object_deps_done=no
  14636. for p in `eval "$output_verbose_link_cmd"`; do
  14637. case ${prev}${p} in
  14638. -L* | -R* | -l*)
  14639. # Some compilers place space between "-{L,R}" and the path.
  14640. # Remove the space.
  14641. if test $p = "-L" ||
  14642. test $p = "-R"; then
  14643. prev=$p
  14644. continue
  14645. fi
  14646. # Expand the sysroot to ease extracting the directories later.
  14647. if test -z "$prev"; then
  14648. case $p in
  14649. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  14650. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  14651. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  14652. esac
  14653. fi
  14654. case $p in
  14655. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  14656. esac
  14657. if test "$pre_test_object_deps_done" = no; then
  14658. case ${prev} in
  14659. -L | -R)
  14660. # Internal compiler library paths should come after those
  14661. # provided the user. The postdeps already come after the
  14662. # user supplied libs so there is no need to process them.
  14663. if test -z "$compiler_lib_search_path_CXX"; then
  14664. compiler_lib_search_path_CXX="${prev}${p}"
  14665. else
  14666. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  14667. fi
  14668. ;;
  14669. # The "-l" case would never come before the object being
  14670. # linked, so don't bother handling this case.
  14671. esac
  14672. else
  14673. if test -z "$postdeps_CXX"; then
  14674. postdeps_CXX="${prev}${p}"
  14675. else
  14676. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  14677. fi
  14678. fi
  14679. prev=
  14680. ;;
  14681. *.lto.$objext) ;; # Ignore GCC LTO objects
  14682. *.$objext)
  14683. # This assumes that the test object file only shows up
  14684. # once in the compiler output.
  14685. if test "$p" = "conftest.$objext"; then
  14686. pre_test_object_deps_done=yes
  14687. continue
  14688. fi
  14689. if test "$pre_test_object_deps_done" = no; then
  14690. if test -z "$predep_objects_CXX"; then
  14691. predep_objects_CXX="$p"
  14692. else
  14693. predep_objects_CXX="$predep_objects_CXX $p"
  14694. fi
  14695. else
  14696. if test -z "$postdep_objects_CXX"; then
  14697. postdep_objects_CXX="$p"
  14698. else
  14699. postdep_objects_CXX="$postdep_objects_CXX $p"
  14700. fi
  14701. fi
  14702. ;;
  14703. *) ;; # Ignore the rest.
  14704. esac
  14705. done
  14706. # Clean up.
  14707. rm -f a.out a.exe
  14708. else
  14709. echo "libtool.m4: error: problem compiling CXX test program"
  14710. fi
  14711. $RM -f confest.$objext
  14712. CFLAGS=$_lt_libdeps_save_CFLAGS
  14713. # PORTME: override above test on systems where it is broken
  14714. case $host_os in
  14715. interix[3-9]*)
  14716. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  14717. # hack all around it, let's just trust "g++" to DTRT.
  14718. predep_objects_CXX=
  14719. postdep_objects_CXX=
  14720. postdeps_CXX=
  14721. ;;
  14722. linux*)
  14723. case `$CC -V 2>&1 | sed 5q` in
  14724. *Sun\ C*)
  14725. # Sun C++ 5.9
  14726. # The more standards-conforming stlport4 library is
  14727. # incompatible with the Cstd library. Avoid specifying
  14728. # it if it's in CXXFLAGS. Ignore libCrun as
  14729. # -library=stlport4 depends on it.
  14730. case " $CXX $CXXFLAGS " in
  14731. *" -library=stlport4 "*)
  14732. solaris_use_stlport4=yes
  14733. ;;
  14734. esac
  14735. if test "$solaris_use_stlport4" != yes; then
  14736. postdeps_CXX='-library=Cstd -library=Crun'
  14737. fi
  14738. ;;
  14739. esac
  14740. ;;
  14741. solaris*)
  14742. case $cc_basename in
  14743. CC* | sunCC*)
  14744. # The more standards-conforming stlport4 library is
  14745. # incompatible with the Cstd library. Avoid specifying
  14746. # it if it's in CXXFLAGS. Ignore libCrun as
  14747. # -library=stlport4 depends on it.
  14748. case " $CXX $CXXFLAGS " in
  14749. *" -library=stlport4 "*)
  14750. solaris_use_stlport4=yes
  14751. ;;
  14752. esac
  14753. # Adding this requires a known-good setup of shared libraries for
  14754. # Sun compiler versions before 5.6, else PIC objects from an old
  14755. # archive will be linked into the output, leading to subtle bugs.
  14756. if test "$solaris_use_stlport4" != yes; then
  14757. postdeps_CXX='-library=Cstd -library=Crun'
  14758. fi
  14759. ;;
  14760. esac
  14761. ;;
  14762. esac
  14763. case " $postdeps_CXX " in
  14764. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  14765. esac
  14766. compiler_lib_search_dirs_CXX=
  14767. if test -n "${compiler_lib_search_path_CXX}"; then
  14768. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  14769. fi
  14770. lt_prog_compiler_wl_CXX=
  14771. lt_prog_compiler_pic_CXX=
  14772. lt_prog_compiler_static_CXX=
  14773. # C++ specific cases for pic, static, wl, etc.
  14774. if test "$GXX" = yes; then
  14775. lt_prog_compiler_wl_CXX='-Wl,'
  14776. lt_prog_compiler_static_CXX='-static'
  14777. case $host_os in
  14778. aix*)
  14779. # All AIX code is PIC.
  14780. if test "$host_cpu" = ia64; then
  14781. # AIX 5 now supports IA64 processor
  14782. lt_prog_compiler_static_CXX='-Bstatic'
  14783. fi
  14784. ;;
  14785. amigaos*)
  14786. case $host_cpu in
  14787. powerpc)
  14788. # see comment about AmigaOS4 .so support
  14789. lt_prog_compiler_pic_CXX='-fPIC'
  14790. ;;
  14791. m68k)
  14792. # FIXME: we need at least 68020 code to build shared libraries, but
  14793. # adding the `-m68020' flag to GCC prevents building anything better,
  14794. # like `-m68040'.
  14795. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  14796. ;;
  14797. esac
  14798. ;;
  14799. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14800. # PIC is the default for these OSes.
  14801. ;;
  14802. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14803. # This hack is so that the source file can tell whether it is being
  14804. # built for inclusion in a dll (and should export symbols for example).
  14805. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14806. # (--disable-auto-import) libraries
  14807. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14808. ;;
  14809. darwin* | rhapsody*)
  14810. # PIC is the default on this platform
  14811. # Common symbols not allowed in MH_DYLIB files
  14812. lt_prog_compiler_pic_CXX='-fno-common'
  14813. ;;
  14814. *djgpp*)
  14815. # DJGPP does not support shared libraries at all
  14816. lt_prog_compiler_pic_CXX=
  14817. ;;
  14818. haiku*)
  14819. # PIC is the default for Haiku.
  14820. # The "-static" flag exists, but is broken.
  14821. lt_prog_compiler_static_CXX=
  14822. ;;
  14823. interix[3-9]*)
  14824. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14825. # Instead, we relocate shared libraries at runtime.
  14826. ;;
  14827. sysv4*MP*)
  14828. if test -d /usr/nec; then
  14829. lt_prog_compiler_pic_CXX=-Kconform_pic
  14830. fi
  14831. ;;
  14832. hpux*)
  14833. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  14834. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  14835. # sets the default TLS model and affects inlining.
  14836. case $host_cpu in
  14837. hppa*64*)
  14838. ;;
  14839. *)
  14840. lt_prog_compiler_pic_CXX='-fPIC'
  14841. ;;
  14842. esac
  14843. ;;
  14844. *qnx* | *nto*)
  14845. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14846. # it will coredump.
  14847. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14848. ;;
  14849. *)
  14850. lt_prog_compiler_pic_CXX='-fPIC'
  14851. ;;
  14852. esac
  14853. else
  14854. case $host_os in
  14855. aix[4-9]*)
  14856. # All AIX code is PIC.
  14857. if test "$host_cpu" = ia64; then
  14858. # AIX 5 now supports IA64 processor
  14859. lt_prog_compiler_static_CXX='-Bstatic'
  14860. else
  14861. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14862. fi
  14863. ;;
  14864. chorus*)
  14865. case $cc_basename in
  14866. cxch68*)
  14867. # Green Hills C++ Compiler
  14868. # _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"
  14869. ;;
  14870. esac
  14871. ;;
  14872. mingw* | cygwin* | os2* | pw32* | cegcc*)
  14873. # This hack is so that the source file can tell whether it is being
  14874. # built for inclusion in a dll (and should export symbols for example).
  14875. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14876. ;;
  14877. dgux*)
  14878. case $cc_basename in
  14879. ec++*)
  14880. lt_prog_compiler_pic_CXX='-KPIC'
  14881. ;;
  14882. ghcx*)
  14883. # Green Hills C++ Compiler
  14884. lt_prog_compiler_pic_CXX='-pic'
  14885. ;;
  14886. *)
  14887. ;;
  14888. esac
  14889. ;;
  14890. freebsd* | dragonfly*)
  14891. # FreeBSD uses GNU C++
  14892. ;;
  14893. hpux9* | hpux10* | hpux11*)
  14894. case $cc_basename in
  14895. CC*)
  14896. lt_prog_compiler_wl_CXX='-Wl,'
  14897. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14898. if test "$host_cpu" != ia64; then
  14899. lt_prog_compiler_pic_CXX='+Z'
  14900. fi
  14901. ;;
  14902. aCC*)
  14903. lt_prog_compiler_wl_CXX='-Wl,'
  14904. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  14905. case $host_cpu in
  14906. hppa*64*|ia64*)
  14907. # +Z the default
  14908. ;;
  14909. *)
  14910. lt_prog_compiler_pic_CXX='+Z'
  14911. ;;
  14912. esac
  14913. ;;
  14914. *)
  14915. ;;
  14916. esac
  14917. ;;
  14918. interix*)
  14919. # This is c89, which is MS Visual C++ (no shared libs)
  14920. # Anyone wants to do a port?
  14921. ;;
  14922. irix5* | irix6* | nonstopux*)
  14923. case $cc_basename in
  14924. CC*)
  14925. lt_prog_compiler_wl_CXX='-Wl,'
  14926. lt_prog_compiler_static_CXX='-non_shared'
  14927. # CC pic flag -KPIC is the default.
  14928. ;;
  14929. *)
  14930. ;;
  14931. esac
  14932. ;;
  14933. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14934. case $cc_basename in
  14935. KCC*)
  14936. # KAI C++ Compiler
  14937. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14938. lt_prog_compiler_pic_CXX='-fPIC'
  14939. ;;
  14940. ecpc* )
  14941. # old Intel C++ for x86_64 which still supported -KPIC.
  14942. lt_prog_compiler_wl_CXX='-Wl,'
  14943. lt_prog_compiler_pic_CXX='-KPIC'
  14944. lt_prog_compiler_static_CXX='-static'
  14945. ;;
  14946. icpc* )
  14947. # Intel C++, used to be incompatible with GCC.
  14948. # ICC 10 doesn't accept -KPIC any more.
  14949. lt_prog_compiler_wl_CXX='-Wl,'
  14950. lt_prog_compiler_pic_CXX='-fPIC'
  14951. lt_prog_compiler_static_CXX='-static'
  14952. ;;
  14953. pgCC* | pgcpp*)
  14954. # Portland Group C++ compiler
  14955. lt_prog_compiler_wl_CXX='-Wl,'
  14956. lt_prog_compiler_pic_CXX='-fpic'
  14957. lt_prog_compiler_static_CXX='-Bstatic'
  14958. ;;
  14959. cxx*)
  14960. # Compaq C++
  14961. # Make sure the PIC flag is empty. It appears that all Alpha
  14962. # Linux and Compaq Tru64 Unix objects are PIC.
  14963. lt_prog_compiler_pic_CXX=
  14964. lt_prog_compiler_static_CXX='-non_shared'
  14965. ;;
  14966. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14967. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14968. lt_prog_compiler_wl_CXX='-Wl,'
  14969. lt_prog_compiler_pic_CXX='-qpic'
  14970. lt_prog_compiler_static_CXX='-qstaticlink'
  14971. ;;
  14972. *)
  14973. case `$CC -V 2>&1 | sed 5q` in
  14974. *Sun\ C*)
  14975. # Sun C++ 5.9
  14976. lt_prog_compiler_pic_CXX='-KPIC'
  14977. lt_prog_compiler_static_CXX='-Bstatic'
  14978. lt_prog_compiler_wl_CXX='-Qoption ld '
  14979. ;;
  14980. esac
  14981. ;;
  14982. esac
  14983. ;;
  14984. lynxos*)
  14985. ;;
  14986. m88k*)
  14987. ;;
  14988. mvs*)
  14989. case $cc_basename in
  14990. cxx*)
  14991. lt_prog_compiler_pic_CXX='-W c,exportall'
  14992. ;;
  14993. *)
  14994. ;;
  14995. esac
  14996. ;;
  14997. netbsd*)
  14998. ;;
  14999. *qnx* | *nto*)
  15000. # QNX uses GNU C++, but need to define -shared option too, otherwise
  15001. # it will coredump.
  15002. lt_prog_compiler_pic_CXX='-fPIC -shared'
  15003. ;;
  15004. osf3* | osf4* | osf5*)
  15005. case $cc_basename in
  15006. KCC*)
  15007. lt_prog_compiler_wl_CXX='--backend -Wl,'
  15008. ;;
  15009. RCC*)
  15010. # Rational C++ 2.4.1
  15011. lt_prog_compiler_pic_CXX='-pic'
  15012. ;;
  15013. cxx*)
  15014. # Digital/Compaq C++
  15015. lt_prog_compiler_wl_CXX='-Wl,'
  15016. # Make sure the PIC flag is empty. It appears that all Alpha
  15017. # Linux and Compaq Tru64 Unix objects are PIC.
  15018. lt_prog_compiler_pic_CXX=
  15019. lt_prog_compiler_static_CXX='-non_shared'
  15020. ;;
  15021. *)
  15022. ;;
  15023. esac
  15024. ;;
  15025. psos*)
  15026. ;;
  15027. solaris*)
  15028. case $cc_basename in
  15029. CC* | sunCC*)
  15030. # Sun C++ 4.2, 5.x and Centerline C++
  15031. lt_prog_compiler_pic_CXX='-KPIC'
  15032. lt_prog_compiler_static_CXX='-Bstatic'
  15033. lt_prog_compiler_wl_CXX='-Qoption ld '
  15034. ;;
  15035. gcx*)
  15036. # Green Hills C++ Compiler
  15037. lt_prog_compiler_pic_CXX='-PIC'
  15038. ;;
  15039. *)
  15040. ;;
  15041. esac
  15042. ;;
  15043. sunos4*)
  15044. case $cc_basename in
  15045. CC*)
  15046. # Sun C++ 4.x
  15047. lt_prog_compiler_pic_CXX='-pic'
  15048. lt_prog_compiler_static_CXX='-Bstatic'
  15049. ;;
  15050. lcc*)
  15051. # Lucid
  15052. lt_prog_compiler_pic_CXX='-pic'
  15053. ;;
  15054. *)
  15055. ;;
  15056. esac
  15057. ;;
  15058. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15059. case $cc_basename in
  15060. CC*)
  15061. lt_prog_compiler_wl_CXX='-Wl,'
  15062. lt_prog_compiler_pic_CXX='-KPIC'
  15063. lt_prog_compiler_static_CXX='-Bstatic'
  15064. ;;
  15065. esac
  15066. ;;
  15067. tandem*)
  15068. case $cc_basename in
  15069. NCC*)
  15070. # NonStop-UX NCC 3.20
  15071. lt_prog_compiler_pic_CXX='-KPIC'
  15072. ;;
  15073. *)
  15074. ;;
  15075. esac
  15076. ;;
  15077. vxworks*)
  15078. ;;
  15079. *)
  15080. lt_prog_compiler_can_build_shared_CXX=no
  15081. ;;
  15082. esac
  15083. fi
  15084. case $host_os in
  15085. # For platforms which do not support PIC, -DPIC is meaningless:
  15086. *djgpp*)
  15087. lt_prog_compiler_pic_CXX=
  15088. ;;
  15089. *)
  15090. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  15091. ;;
  15092. esac
  15093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  15094. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  15095. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  15096. $as_echo_n "(cached) " >&6
  15097. else
  15098. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  15099. fi
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  15101. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  15102. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  15103. #
  15104. # Check to make sure the PIC flag actually works.
  15105. #
  15106. if test -n "$lt_prog_compiler_pic_CXX"; then
  15107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  15108. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  15109. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  15110. $as_echo_n "(cached) " >&6
  15111. else
  15112. lt_cv_prog_compiler_pic_works_CXX=no
  15113. ac_outfile=conftest.$ac_objext
  15114. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15115. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  15116. # Insert the option either (1) after the last *FLAGS variable, or
  15117. # (2) before a word containing "conftest.", or (3) at the end.
  15118. # Note that $ac_compile itself does not contain backslashes and begins
  15119. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15120. # The option is referenced via a variable to avoid confusing sed.
  15121. lt_compile=`echo "$ac_compile" | $SED \
  15122. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15123. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15124. -e 's:$: $lt_compiler_flag:'`
  15125. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15126. (eval "$lt_compile" 2>conftest.err)
  15127. ac_status=$?
  15128. cat conftest.err >&5
  15129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15130. if (exit $ac_status) && test -s "$ac_outfile"; then
  15131. # The compiler can only warn and ignore the option if not recognized
  15132. # So say no if there are warnings other than the usual output.
  15133. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  15134. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15135. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15136. lt_cv_prog_compiler_pic_works_CXX=yes
  15137. fi
  15138. fi
  15139. $RM conftest*
  15140. fi
  15141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  15142. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  15143. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  15144. case $lt_prog_compiler_pic_CXX in
  15145. "" | " "*) ;;
  15146. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  15147. esac
  15148. else
  15149. lt_prog_compiler_pic_CXX=
  15150. lt_prog_compiler_can_build_shared_CXX=no
  15151. fi
  15152. fi
  15153. #
  15154. # Check to make sure the static flag actually works.
  15155. #
  15156. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  15157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15158. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15159. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  15160. $as_echo_n "(cached) " >&6
  15161. else
  15162. lt_cv_prog_compiler_static_works_CXX=no
  15163. save_LDFLAGS="$LDFLAGS"
  15164. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15165. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15166. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15167. # The linker can only warn and ignore the option if not recognized
  15168. # So say no if there are warnings
  15169. if test -s conftest.err; then
  15170. # Append any errors to the config.log.
  15171. cat conftest.err 1>&5
  15172. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  15173. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15174. if diff conftest.exp conftest.er2 >/dev/null; then
  15175. lt_cv_prog_compiler_static_works_CXX=yes
  15176. fi
  15177. else
  15178. lt_cv_prog_compiler_static_works_CXX=yes
  15179. fi
  15180. fi
  15181. $RM -r conftest*
  15182. LDFLAGS="$save_LDFLAGS"
  15183. fi
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  15185. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  15186. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  15187. :
  15188. else
  15189. lt_prog_compiler_static_CXX=
  15190. fi
  15191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15192. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15193. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15194. $as_echo_n "(cached) " >&6
  15195. else
  15196. lt_cv_prog_compiler_c_o_CXX=no
  15197. $RM -r conftest 2>/dev/null
  15198. mkdir conftest
  15199. cd conftest
  15200. mkdir out
  15201. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15202. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15203. # Insert the option either (1) after the last *FLAGS variable, or
  15204. # (2) before a word containing "conftest.", or (3) at the end.
  15205. # Note that $ac_compile itself does not contain backslashes and begins
  15206. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15207. lt_compile=`echo "$ac_compile" | $SED \
  15208. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15209. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15210. -e 's:$: $lt_compiler_flag:'`
  15211. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15212. (eval "$lt_compile" 2>out/conftest.err)
  15213. ac_status=$?
  15214. cat out/conftest.err >&5
  15215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15216. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15217. then
  15218. # The compiler can only warn and ignore the option if not recognized
  15219. # So say no if there are warnings
  15220. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15221. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15222. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15223. lt_cv_prog_compiler_c_o_CXX=yes
  15224. fi
  15225. fi
  15226. chmod u+w . 2>&5
  15227. $RM conftest*
  15228. # SGI C++ compiler will create directory out/ii_files/ for
  15229. # template instantiation
  15230. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15231. $RM out/* && rmdir out
  15232. cd ..
  15233. $RM -r conftest
  15234. $RM conftest*
  15235. fi
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15237. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  15239. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15240. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  15241. $as_echo_n "(cached) " >&6
  15242. else
  15243. lt_cv_prog_compiler_c_o_CXX=no
  15244. $RM -r conftest 2>/dev/null
  15245. mkdir conftest
  15246. cd conftest
  15247. mkdir out
  15248. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15249. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15250. # Insert the option either (1) after the last *FLAGS variable, or
  15251. # (2) before a word containing "conftest.", or (3) at the end.
  15252. # Note that $ac_compile itself does not contain backslashes and begins
  15253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15254. lt_compile=`echo "$ac_compile" | $SED \
  15255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15257. -e 's:$: $lt_compiler_flag:'`
  15258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  15259. (eval "$lt_compile" 2>out/conftest.err)
  15260. ac_status=$?
  15261. cat out/conftest.err >&5
  15262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15263. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15264. then
  15265. # The compiler can only warn and ignore the option if not recognized
  15266. # So say no if there are warnings
  15267. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  15268. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15269. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15270. lt_cv_prog_compiler_c_o_CXX=yes
  15271. fi
  15272. fi
  15273. chmod u+w . 2>&5
  15274. $RM conftest*
  15275. # SGI C++ compiler will create directory out/ii_files/ for
  15276. # template instantiation
  15277. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15278. $RM out/* && rmdir out
  15279. cd ..
  15280. $RM -r conftest
  15281. $RM conftest*
  15282. fi
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  15284. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  15285. hard_links="nottested"
  15286. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  15287. # do not overwrite the value of need_locks provided by the user
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  15289. $as_echo_n "checking if we can lock with hard links... " >&6; }
  15290. hard_links=yes
  15291. $RM conftest*
  15292. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15293. touch conftest.a
  15294. ln conftest.a conftest.b 2>&5 || hard_links=no
  15295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  15297. $as_echo "$hard_links" >&6; }
  15298. if test "$hard_links" = no; then
  15299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15300. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15301. need_locks=warn
  15302. fi
  15303. else
  15304. need_locks=no
  15305. fi
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15307. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15308. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15309. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  15310. case $host_os in
  15311. aix[4-9]*)
  15312. # If we're using GNU nm, then we don't want the "-C" option.
  15313. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15314. # Also, AIX nm treats weak defined symbols like other global defined
  15315. # symbols, whereas GNU nm marks them as "W".
  15316. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  15317. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  15318. else
  15319. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  15320. fi
  15321. ;;
  15322. pw32*)
  15323. export_symbols_cmds_CXX="$ltdll_cmds"
  15324. ;;
  15325. cygwin* | mingw* | cegcc*)
  15326. case $cc_basename in
  15327. cl*)
  15328. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  15329. ;;
  15330. *)
  15331. 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'
  15332. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  15333. ;;
  15334. esac
  15335. ;;
  15336. *)
  15337. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15338. ;;
  15339. esac
  15340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  15341. $as_echo "$ld_shlibs_CXX" >&6; }
  15342. test "$ld_shlibs_CXX" = no && can_build_shared=no
  15343. with_gnu_ld_CXX=$with_gnu_ld
  15344. #
  15345. # Do we need to explicitly link libc?
  15346. #
  15347. case "x$archive_cmds_need_lc_CXX" in
  15348. x|xyes)
  15349. # Assume -lc should be added
  15350. archive_cmds_need_lc_CXX=yes
  15351. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15352. case $archive_cmds_CXX in
  15353. *'~'*)
  15354. # FIXME: we may have to deal with multi-command sequences.
  15355. ;;
  15356. '$CC '*)
  15357. # Test whether the compiler implicitly links with -lc since on some
  15358. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15359. # to ld, don't add -lc before -lgcc.
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  15361. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  15362. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  15363. $as_echo_n "(cached) " >&6
  15364. else
  15365. $RM conftest*
  15366. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15367. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  15368. (eval $ac_compile) 2>&5
  15369. ac_status=$?
  15370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15371. test $ac_status = 0; } 2>conftest.err; then
  15372. soname=conftest
  15373. lib=conftest
  15374. libobjs=conftest.$ac_objext
  15375. deplibs=
  15376. wl=$lt_prog_compiler_wl_CXX
  15377. pic_flag=$lt_prog_compiler_pic_CXX
  15378. compiler_flags=-v
  15379. linker_flags=-v
  15380. verstring=
  15381. output_objdir=.
  15382. libname=conftest
  15383. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  15384. allow_undefined_flag_CXX=
  15385. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  15386. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15387. ac_status=$?
  15388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15389. test $ac_status = 0; }
  15390. then
  15391. lt_cv_archive_cmds_need_lc_CXX=no
  15392. else
  15393. lt_cv_archive_cmds_need_lc_CXX=yes
  15394. fi
  15395. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  15396. else
  15397. cat conftest.err 1>&5
  15398. fi
  15399. $RM conftest*
  15400. fi
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  15402. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  15403. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  15404. ;;
  15405. esac
  15406. fi
  15407. ;;
  15408. esac
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  15410. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  15411. library_names_spec=
  15412. libname_spec='lib$name'
  15413. soname_spec=
  15414. shrext_cmds=".so"
  15415. postinstall_cmds=
  15416. postuninstall_cmds=
  15417. finish_cmds=
  15418. finish_eval=
  15419. shlibpath_var=
  15420. shlibpath_overrides_runpath=unknown
  15421. version_type=none
  15422. dynamic_linker="$host_os ld.so"
  15423. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15424. need_lib_prefix=unknown
  15425. hardcode_into_libs=no
  15426. # when you set need_version to no, make sure it does not cause -set_version
  15427. # flags to be left without arguments
  15428. need_version=unknown
  15429. case $host_os in
  15430. aix3*)
  15431. version_type=linux # correct to gnu/linux during the next big refactor
  15432. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15433. shlibpath_var=LIBPATH
  15434. # AIX 3 has no versioning support, so we append a major version to the name.
  15435. soname_spec='${libname}${release}${shared_ext}$major'
  15436. ;;
  15437. aix[4-9]*)
  15438. version_type=linux # correct to gnu/linux during the next big refactor
  15439. need_lib_prefix=no
  15440. need_version=no
  15441. hardcode_into_libs=yes
  15442. if test "$host_cpu" = ia64; then
  15443. # AIX 5 supports IA64
  15444. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15445. shlibpath_var=LD_LIBRARY_PATH
  15446. else
  15447. # With GCC up to 2.95.x, collect2 would create an import file
  15448. # for dependence libraries. The import file would start with
  15449. # the line `#! .'. This would cause the generated library to
  15450. # depend on `.', always an invalid library. This was fixed in
  15451. # development snapshots of GCC prior to 3.0.
  15452. case $host_os in
  15453. aix4 | aix4.[01] | aix4.[01].*)
  15454. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15455. echo ' yes '
  15456. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  15457. :
  15458. else
  15459. can_build_shared=no
  15460. fi
  15461. ;;
  15462. esac
  15463. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15464. # soname into executable. Probably we can add versioning support to
  15465. # collect2, so additional links can be useful in future.
  15466. if test "$aix_use_runtimelinking" = yes; then
  15467. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15468. # instead of lib<name>.a to let people know that these are not
  15469. # typical AIX shared libraries.
  15470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15471. else
  15472. # We preserve .a as extension for shared libraries through AIX4.2
  15473. # and later when we are not doing run time linking.
  15474. library_names_spec='${libname}${release}.a $libname.a'
  15475. soname_spec='${libname}${release}${shared_ext}$major'
  15476. fi
  15477. shlibpath_var=LIBPATH
  15478. fi
  15479. ;;
  15480. amigaos*)
  15481. case $host_cpu in
  15482. powerpc)
  15483. # Since July 2007 AmigaOS4 officially supports .so libraries.
  15484. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  15485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15486. ;;
  15487. m68k)
  15488. library_names_spec='$libname.ixlibrary $libname.a'
  15489. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15490. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  15491. ;;
  15492. esac
  15493. ;;
  15494. beos*)
  15495. library_names_spec='${libname}${shared_ext}'
  15496. dynamic_linker="$host_os ld.so"
  15497. shlibpath_var=LIBRARY_PATH
  15498. ;;
  15499. bsdi[45]*)
  15500. version_type=linux # correct to gnu/linux during the next big refactor
  15501. need_version=no
  15502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15503. soname_spec='${libname}${release}${shared_ext}$major'
  15504. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15505. shlibpath_var=LD_LIBRARY_PATH
  15506. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15507. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15508. # the default ld.so.conf also contains /usr/contrib/lib and
  15509. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15510. # libtool to hard-code these into programs
  15511. ;;
  15512. cygwin* | mingw* | pw32* | cegcc*)
  15513. version_type=windows
  15514. shrext_cmds=".dll"
  15515. need_version=no
  15516. need_lib_prefix=no
  15517. case $GCC,$cc_basename in
  15518. yes,*)
  15519. # gcc
  15520. library_names_spec='$libname.dll.a'
  15521. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15522. postinstall_cmds='base_file=`basename \${file}`~
  15523. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  15524. dldir=$destdir/`dirname \$dlpath`~
  15525. test -d \$dldir || mkdir -p \$dldir~
  15526. $install_prog $dir/$dlname \$dldir/$dlname~
  15527. chmod a+x \$dldir/$dlname~
  15528. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15529. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15530. fi'
  15531. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15532. dlpath=$dir/\$dldll~
  15533. $RM \$dlpath'
  15534. shlibpath_overrides_runpath=yes
  15535. case $host_os in
  15536. cygwin*)
  15537. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15538. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15539. ;;
  15540. mingw* | cegcc*)
  15541. # MinGW DLLs use traditional 'lib' prefix
  15542. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15543. ;;
  15544. pw32*)
  15545. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15546. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15547. ;;
  15548. esac
  15549. dynamic_linker='Win32 ld.exe'
  15550. ;;
  15551. *,cl*)
  15552. # Native MSVC
  15553. libname_spec='$name'
  15554. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15555. library_names_spec='${libname}.dll.lib'
  15556. case $build_os in
  15557. mingw*)
  15558. sys_lib_search_path_spec=
  15559. lt_save_ifs=$IFS
  15560. IFS=';'
  15561. for lt_path in $LIB
  15562. do
  15563. IFS=$lt_save_ifs
  15564. # Let DOS variable expansion print the short 8.3 style file name.
  15565. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  15566. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  15567. done
  15568. IFS=$lt_save_ifs
  15569. # Convert to MSYS style.
  15570. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  15571. ;;
  15572. cygwin*)
  15573. # Convert to unix form, then to dos form, then back to unix form
  15574. # but this time dos style (no spaces!) so that the unix form looks
  15575. # like /cygdrive/c/PROGRA~1:/cygdr...
  15576. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  15577. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  15578. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15579. ;;
  15580. *)
  15581. sys_lib_search_path_spec="$LIB"
  15582. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  15583. # It is most probably a Windows format PATH.
  15584. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15585. else
  15586. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15587. fi
  15588. # FIXME: find the short name or the path components, as spaces are
  15589. # common. (e.g. "Program Files" -> "PROGRA~1")
  15590. ;;
  15591. esac
  15592. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15593. postinstall_cmds='base_file=`basename \${file}`~
  15594. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  15595. dldir=$destdir/`dirname \$dlpath`~
  15596. test -d \$dldir || mkdir -p \$dldir~
  15597. $install_prog $dir/$dlname \$dldir/$dlname'
  15598. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15599. dlpath=$dir/\$dldll~
  15600. $RM \$dlpath'
  15601. shlibpath_overrides_runpath=yes
  15602. dynamic_linker='Win32 link.exe'
  15603. ;;
  15604. *)
  15605. # Assume MSVC wrapper
  15606. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15607. dynamic_linker='Win32 ld.exe'
  15608. ;;
  15609. esac
  15610. # FIXME: first we should search . and the directory the executable is in
  15611. shlibpath_var=PATH
  15612. ;;
  15613. darwin* | rhapsody*)
  15614. dynamic_linker="$host_os dyld"
  15615. version_type=darwin
  15616. need_lib_prefix=no
  15617. need_version=no
  15618. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15619. soname_spec='${libname}${release}${major}$shared_ext'
  15620. shlibpath_overrides_runpath=yes
  15621. shlibpath_var=DYLD_LIBRARY_PATH
  15622. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15623. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15624. ;;
  15625. dgux*)
  15626. version_type=linux # correct to gnu/linux during the next big refactor
  15627. need_lib_prefix=no
  15628. need_version=no
  15629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15630. soname_spec='${libname}${release}${shared_ext}$major'
  15631. shlibpath_var=LD_LIBRARY_PATH
  15632. ;;
  15633. freebsd* | dragonfly*)
  15634. # DragonFly does not have aout. When/if they implement a new
  15635. # versioning mechanism, adjust this.
  15636. if test -x /usr/bin/objformat; then
  15637. objformat=`/usr/bin/objformat`
  15638. else
  15639. case $host_os in
  15640. freebsd[23].*) objformat=aout ;;
  15641. *) objformat=elf ;;
  15642. esac
  15643. fi
  15644. version_type=freebsd-$objformat
  15645. case $version_type in
  15646. freebsd-elf*)
  15647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15648. need_version=no
  15649. need_lib_prefix=no
  15650. ;;
  15651. freebsd-*)
  15652. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15653. need_version=yes
  15654. ;;
  15655. esac
  15656. shlibpath_var=LD_LIBRARY_PATH
  15657. case $host_os in
  15658. freebsd2.*)
  15659. shlibpath_overrides_runpath=yes
  15660. ;;
  15661. freebsd3.[01]* | freebsdelf3.[01]*)
  15662. shlibpath_overrides_runpath=yes
  15663. hardcode_into_libs=yes
  15664. ;;
  15665. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15666. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15667. shlibpath_overrides_runpath=no
  15668. hardcode_into_libs=yes
  15669. ;;
  15670. *) # from 4.6 on, and DragonFly
  15671. shlibpath_overrides_runpath=yes
  15672. hardcode_into_libs=yes
  15673. ;;
  15674. esac
  15675. ;;
  15676. gnu*)
  15677. version_type=linux # correct to gnu/linux during the next big refactor
  15678. need_lib_prefix=no
  15679. need_version=no
  15680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15681. soname_spec='${libname}${release}${shared_ext}$major'
  15682. shlibpath_var=LD_LIBRARY_PATH
  15683. shlibpath_overrides_runpath=no
  15684. hardcode_into_libs=yes
  15685. ;;
  15686. haiku*)
  15687. version_type=linux # correct to gnu/linux during the next big refactor
  15688. need_lib_prefix=no
  15689. need_version=no
  15690. dynamic_linker="$host_os runtime_loader"
  15691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15692. soname_spec='${libname}${release}${shared_ext}$major'
  15693. shlibpath_var=LIBRARY_PATH
  15694. shlibpath_overrides_runpath=yes
  15695. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  15696. hardcode_into_libs=yes
  15697. ;;
  15698. hpux9* | hpux10* | hpux11*)
  15699. # Give a soname corresponding to the major version so that dld.sl refuses to
  15700. # link against other versions.
  15701. version_type=sunos
  15702. need_lib_prefix=no
  15703. need_version=no
  15704. case $host_cpu in
  15705. ia64*)
  15706. shrext_cmds='.so'
  15707. hardcode_into_libs=yes
  15708. dynamic_linker="$host_os dld.so"
  15709. shlibpath_var=LD_LIBRARY_PATH
  15710. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15712. soname_spec='${libname}${release}${shared_ext}$major'
  15713. if test "X$HPUX_IA64_MODE" = X32; then
  15714. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15715. else
  15716. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15717. fi
  15718. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15719. ;;
  15720. hppa*64*)
  15721. shrext_cmds='.sl'
  15722. hardcode_into_libs=yes
  15723. dynamic_linker="$host_os dld.sl"
  15724. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15725. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15727. soname_spec='${libname}${release}${shared_ext}$major'
  15728. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15729. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15730. ;;
  15731. *)
  15732. shrext_cmds='.sl'
  15733. dynamic_linker="$host_os dld.sl"
  15734. shlibpath_var=SHLIB_PATH
  15735. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15737. soname_spec='${libname}${release}${shared_ext}$major'
  15738. ;;
  15739. esac
  15740. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  15741. postinstall_cmds='chmod 555 $lib'
  15742. # or fails outright, so override atomically:
  15743. install_override_mode=555
  15744. ;;
  15745. interix[3-9]*)
  15746. version_type=linux # correct to gnu/linux during the next big refactor
  15747. need_lib_prefix=no
  15748. need_version=no
  15749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15750. soname_spec='${libname}${release}${shared_ext}$major'
  15751. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15752. shlibpath_var=LD_LIBRARY_PATH
  15753. shlibpath_overrides_runpath=no
  15754. hardcode_into_libs=yes
  15755. ;;
  15756. irix5* | irix6* | nonstopux*)
  15757. case $host_os in
  15758. nonstopux*) version_type=nonstopux ;;
  15759. *)
  15760. if test "$lt_cv_prog_gnu_ld" = yes; then
  15761. version_type=linux # correct to gnu/linux during the next big refactor
  15762. else
  15763. version_type=irix
  15764. fi ;;
  15765. esac
  15766. need_lib_prefix=no
  15767. need_version=no
  15768. soname_spec='${libname}${release}${shared_ext}$major'
  15769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15770. case $host_os in
  15771. irix5* | nonstopux*)
  15772. libsuff= shlibsuff=
  15773. ;;
  15774. *)
  15775. case $LD in # libtool.m4 will add one of these switches to LD
  15776. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15777. libsuff= shlibsuff= libmagic=32-bit;;
  15778. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15779. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15780. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15781. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15782. *) libsuff= shlibsuff= libmagic=never-match;;
  15783. esac
  15784. ;;
  15785. esac
  15786. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15787. shlibpath_overrides_runpath=no
  15788. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15789. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15790. hardcode_into_libs=yes
  15791. ;;
  15792. # No shared lib support for Linux oldld, aout, or coff.
  15793. linux*oldld* | linux*aout* | linux*coff*)
  15794. dynamic_linker=no
  15795. ;;
  15796. # This must be glibc/ELF.
  15797. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  15798. version_type=linux # correct to gnu/linux during the next big refactor
  15799. need_lib_prefix=no
  15800. need_version=no
  15801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15802. soname_spec='${libname}${release}${shared_ext}$major'
  15803. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15804. shlibpath_var=LD_LIBRARY_PATH
  15805. shlibpath_overrides_runpath=no
  15806. # Some binutils ld are patched to set DT_RUNPATH
  15807. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  15808. $as_echo_n "(cached) " >&6
  15809. else
  15810. lt_cv_shlibpath_overrides_runpath=no
  15811. save_LDFLAGS=$LDFLAGS
  15812. save_libdir=$libdir
  15813. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15814. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15816. /* end confdefs.h. */
  15817. int
  15818. main ()
  15819. {
  15820. ;
  15821. return 0;
  15822. }
  15823. _ACEOF
  15824. if ac_fn_cxx_try_link "$LINENO"; then :
  15825. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  15826. lt_cv_shlibpath_overrides_runpath=yes
  15827. fi
  15828. fi
  15829. rm -f core conftest.err conftest.$ac_objext \
  15830. conftest$ac_exeext conftest.$ac_ext
  15831. LDFLAGS=$save_LDFLAGS
  15832. libdir=$save_libdir
  15833. fi
  15834. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15835. # This implies no fast_install, which is unacceptable.
  15836. # Some rework will be needed to allow for fast_install
  15837. # before this can be enabled.
  15838. hardcode_into_libs=yes
  15839. # Append ld.so.conf contents to the search path
  15840. if test -f /etc/ld.so.conf; then
  15841. 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' ' '`
  15842. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15843. fi
  15844. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15845. # powerpc, because MkLinux only supported shared libraries with the
  15846. # GNU dynamic linker. Since this was broken with cross compilers,
  15847. # most powerpc-linux boxes support dynamic linking these days and
  15848. # people can always --disable-shared, the test was removed, and we
  15849. # assume the GNU/Linux dynamic linker is in use.
  15850. dynamic_linker='GNU/Linux ld.so'
  15851. ;;
  15852. netbsd*)
  15853. version_type=sunos
  15854. need_lib_prefix=no
  15855. need_version=no
  15856. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15858. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15859. dynamic_linker='NetBSD (a.out) ld.so'
  15860. else
  15861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15862. soname_spec='${libname}${release}${shared_ext}$major'
  15863. dynamic_linker='NetBSD ld.elf_so'
  15864. fi
  15865. shlibpath_var=LD_LIBRARY_PATH
  15866. shlibpath_overrides_runpath=yes
  15867. hardcode_into_libs=yes
  15868. ;;
  15869. newsos6)
  15870. version_type=linux # correct to gnu/linux during the next big refactor
  15871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15872. shlibpath_var=LD_LIBRARY_PATH
  15873. shlibpath_overrides_runpath=yes
  15874. ;;
  15875. *nto* | *qnx*)
  15876. version_type=qnx
  15877. need_lib_prefix=no
  15878. need_version=no
  15879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15880. soname_spec='${libname}${release}${shared_ext}$major'
  15881. shlibpath_var=LD_LIBRARY_PATH
  15882. shlibpath_overrides_runpath=no
  15883. hardcode_into_libs=yes
  15884. dynamic_linker='ldqnx.so'
  15885. ;;
  15886. openbsd*)
  15887. version_type=sunos
  15888. sys_lib_dlsearch_path_spec="/usr/lib"
  15889. need_lib_prefix=no
  15890. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15891. case $host_os in
  15892. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15893. *) need_version=no ;;
  15894. esac
  15895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15896. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15897. shlibpath_var=LD_LIBRARY_PATH
  15898. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15899. case $host_os in
  15900. openbsd2.[89] | openbsd2.[89].*)
  15901. shlibpath_overrides_runpath=no
  15902. ;;
  15903. *)
  15904. shlibpath_overrides_runpath=yes
  15905. ;;
  15906. esac
  15907. else
  15908. shlibpath_overrides_runpath=yes
  15909. fi
  15910. ;;
  15911. os2*)
  15912. libname_spec='$name'
  15913. shrext_cmds=".dll"
  15914. need_lib_prefix=no
  15915. library_names_spec='$libname${shared_ext} $libname.a'
  15916. dynamic_linker='OS/2 ld.exe'
  15917. shlibpath_var=LIBPATH
  15918. ;;
  15919. osf3* | osf4* | osf5*)
  15920. version_type=osf
  15921. need_lib_prefix=no
  15922. need_version=no
  15923. soname_spec='${libname}${release}${shared_ext}$major'
  15924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15925. shlibpath_var=LD_LIBRARY_PATH
  15926. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15927. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15928. ;;
  15929. rdos*)
  15930. dynamic_linker=no
  15931. ;;
  15932. solaris*)
  15933. version_type=linux # correct to gnu/linux during the next big refactor
  15934. need_lib_prefix=no
  15935. need_version=no
  15936. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15937. soname_spec='${libname}${release}${shared_ext}$major'
  15938. shlibpath_var=LD_LIBRARY_PATH
  15939. shlibpath_overrides_runpath=yes
  15940. hardcode_into_libs=yes
  15941. # ldd complains unless libraries are executable
  15942. postinstall_cmds='chmod +x $lib'
  15943. ;;
  15944. sunos4*)
  15945. version_type=sunos
  15946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15947. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15948. shlibpath_var=LD_LIBRARY_PATH
  15949. shlibpath_overrides_runpath=yes
  15950. if test "$with_gnu_ld" = yes; then
  15951. need_lib_prefix=no
  15952. fi
  15953. need_version=yes
  15954. ;;
  15955. sysv4 | sysv4.3*)
  15956. version_type=linux # correct to gnu/linux during the next big refactor
  15957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15958. soname_spec='${libname}${release}${shared_ext}$major'
  15959. shlibpath_var=LD_LIBRARY_PATH
  15960. case $host_vendor in
  15961. sni)
  15962. shlibpath_overrides_runpath=no
  15963. need_lib_prefix=no
  15964. runpath_var=LD_RUN_PATH
  15965. ;;
  15966. siemens)
  15967. need_lib_prefix=no
  15968. ;;
  15969. motorola)
  15970. need_lib_prefix=no
  15971. need_version=no
  15972. shlibpath_overrides_runpath=no
  15973. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15974. ;;
  15975. esac
  15976. ;;
  15977. sysv4*MP*)
  15978. if test -d /usr/nec ;then
  15979. version_type=linux # correct to gnu/linux during the next big refactor
  15980. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15981. soname_spec='$libname${shared_ext}.$major'
  15982. shlibpath_var=LD_LIBRARY_PATH
  15983. fi
  15984. ;;
  15985. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15986. version_type=freebsd-elf
  15987. need_lib_prefix=no
  15988. need_version=no
  15989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15990. soname_spec='${libname}${release}${shared_ext}$major'
  15991. shlibpath_var=LD_LIBRARY_PATH
  15992. shlibpath_overrides_runpath=yes
  15993. hardcode_into_libs=yes
  15994. if test "$with_gnu_ld" = yes; then
  15995. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15996. else
  15997. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15998. case $host_os in
  15999. sco3.2v5*)
  16000. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16001. ;;
  16002. esac
  16003. fi
  16004. sys_lib_dlsearch_path_spec='/usr/lib'
  16005. ;;
  16006. tpf*)
  16007. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  16008. version_type=linux # correct to gnu/linux during the next big refactor
  16009. need_lib_prefix=no
  16010. need_version=no
  16011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16012. shlibpath_var=LD_LIBRARY_PATH
  16013. shlibpath_overrides_runpath=no
  16014. hardcode_into_libs=yes
  16015. ;;
  16016. uts4*)
  16017. version_type=linux # correct to gnu/linux during the next big refactor
  16018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16019. soname_spec='${libname}${release}${shared_ext}$major'
  16020. shlibpath_var=LD_LIBRARY_PATH
  16021. ;;
  16022. *)
  16023. dynamic_linker=no
  16024. ;;
  16025. esac
  16026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  16027. $as_echo "$dynamic_linker" >&6; }
  16028. test "$dynamic_linker" = no && can_build_shared=no
  16029. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16030. if test "$GCC" = yes; then
  16031. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16032. fi
  16033. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  16034. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  16035. fi
  16036. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  16037. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  16038. fi
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  16040. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  16041. hardcode_action_CXX=
  16042. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  16043. test -n "$runpath_var_CXX" ||
  16044. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  16045. # We can hardcode non-existent directories.
  16046. if test "$hardcode_direct_CXX" != no &&
  16047. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16048. # have to relink, otherwise we might link with an installed library
  16049. # when we should be linking with a yet-to-be-installed one
  16050. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  16051. test "$hardcode_minus_L_CXX" != no; then
  16052. # Linking always hardcodes the temporary library directory.
  16053. hardcode_action_CXX=relink
  16054. else
  16055. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16056. hardcode_action_CXX=immediate
  16057. fi
  16058. else
  16059. # We cannot hardcode anything, or else we can only hardcode existing
  16060. # directories.
  16061. hardcode_action_CXX=unsupported
  16062. fi
  16063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  16064. $as_echo "$hardcode_action_CXX" >&6; }
  16065. if test "$hardcode_action_CXX" = relink ||
  16066. test "$inherit_rpath_CXX" = yes; then
  16067. # Fast installation is not supported
  16068. enable_fast_install=no
  16069. elif test "$shlibpath_overrides_runpath" = yes ||
  16070. test "$enable_shared" = no; then
  16071. # Fast installation is not necessary
  16072. enable_fast_install=needless
  16073. fi
  16074. fi # test -n "$compiler"
  16075. CC=$lt_save_CC
  16076. CFLAGS=$lt_save_CFLAGS
  16077. LDCXX=$LD
  16078. LD=$lt_save_LD
  16079. GCC=$lt_save_GCC
  16080. with_gnu_ld=$lt_save_with_gnu_ld
  16081. lt_cv_path_LDCXX=$lt_cv_path_LD
  16082. lt_cv_path_LD=$lt_save_path_LD
  16083. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  16084. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  16085. fi # test "$_lt_caught_CXX_error" != yes
  16086. ac_ext=c
  16087. ac_cpp='$CPP $CPPFLAGS'
  16088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16091. # Configure libltdl
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
  16093. $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
  16094. if ${libltdl_cv_shlibext+:} false; then :
  16095. $as_echo_n "(cached) " >&6
  16096. else
  16097. module=yes
  16098. eval libltdl_cv_shlibext=$shrext_cmds
  16099. module=no
  16100. eval libltdl_cv_shrext=$shrext_cmds
  16101. fi
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
  16103. $as_echo "$libltdl_cv_shlibext" >&6; }
  16104. if test -n "$libltdl_cv_shlibext"; then
  16105. cat >>confdefs.h <<_ACEOF
  16106. #define LT_MODULE_EXT "$libltdl_cv_shlibext"
  16107. _ACEOF
  16108. fi
  16109. if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
  16110. cat >>confdefs.h <<_ACEOF
  16111. #define LT_SHARED_EXT "$libltdl_cv_shrext"
  16112. _ACEOF
  16113. fi
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
  16115. $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
  16116. if ${lt_cv_module_path_var+:} false; then :
  16117. $as_echo_n "(cached) " >&6
  16118. else
  16119. lt_cv_module_path_var="$shlibpath_var"
  16120. fi
  16121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
  16122. $as_echo "$lt_cv_module_path_var" >&6; }
  16123. if test -n "$lt_cv_module_path_var"; then
  16124. cat >>confdefs.h <<_ACEOF
  16125. #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
  16126. _ACEOF
  16127. fi
  16128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
  16129. $as_echo_n "checking for the default library search path... " >&6; }
  16130. if ${lt_cv_sys_dlsearch_path+:} false; then :
  16131. $as_echo_n "(cached) " >&6
  16132. else
  16133. lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
  16134. fi
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
  16136. $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
  16137. if test -n "$lt_cv_sys_dlsearch_path"; then
  16138. sys_dlsearch_path=
  16139. for dir in $lt_cv_sys_dlsearch_path; do
  16140. if test -z "$sys_dlsearch_path"; then
  16141. sys_dlsearch_path="$dir"
  16142. else
  16143. sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
  16144. fi
  16145. done
  16146. cat >>confdefs.h <<_ACEOF
  16147. #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
  16148. _ACEOF
  16149. fi
  16150. LT_DLLOADERS=
  16151. ac_ext=c
  16152. ac_cpp='$CPP $CPPFLAGS'
  16153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16156. LIBADD_DLOPEN=
  16157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  16158. $as_echo_n "checking for library containing dlopen... " >&6; }
  16159. if ${ac_cv_search_dlopen+:} false; then :
  16160. $as_echo_n "(cached) " >&6
  16161. else
  16162. ac_func_search_save_LIBS=$LIBS
  16163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16164. /* end confdefs.h. */
  16165. /* Override any GCC internal prototype to avoid an error.
  16166. Use char because int might match the return type of a GCC
  16167. builtin and then its argument prototype would still apply. */
  16168. #ifdef __cplusplus
  16169. extern "C"
  16170. #endif
  16171. char dlopen ();
  16172. int
  16173. main ()
  16174. {
  16175. return dlopen ();
  16176. ;
  16177. return 0;
  16178. }
  16179. _ACEOF
  16180. for ac_lib in '' dl; do
  16181. if test -z "$ac_lib"; then
  16182. ac_res="none required"
  16183. else
  16184. ac_res=-l$ac_lib
  16185. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16186. fi
  16187. if ac_fn_c_try_link "$LINENO"; then :
  16188. ac_cv_search_dlopen=$ac_res
  16189. fi
  16190. rm -f core conftest.err conftest.$ac_objext \
  16191. conftest$ac_exeext
  16192. if ${ac_cv_search_dlopen+:} false; then :
  16193. break
  16194. fi
  16195. done
  16196. if ${ac_cv_search_dlopen+:} false; then :
  16197. else
  16198. ac_cv_search_dlopen=no
  16199. fi
  16200. rm conftest.$ac_ext
  16201. LIBS=$ac_func_search_save_LIBS
  16202. fi
  16203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  16204. $as_echo "$ac_cv_search_dlopen" >&6; }
  16205. ac_res=$ac_cv_search_dlopen
  16206. if test "$ac_res" != no; then :
  16207. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16208. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  16209. if test "$ac_cv_search_dlopen" != "none required" ; then
  16210. LIBADD_DLOPEN="-ldl"
  16211. fi
  16212. libltdl_cv_lib_dl_dlopen="yes"
  16213. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  16214. else
  16215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16216. /* end confdefs.h. */
  16217. #if HAVE_DLFCN_H
  16218. # include <dlfcn.h>
  16219. #endif
  16220. int
  16221. main ()
  16222. {
  16223. dlopen(0, 0);
  16224. ;
  16225. return 0;
  16226. }
  16227. _ACEOF
  16228. if ac_fn_c_try_link "$LINENO"; then :
  16229. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  16230. libltdl_cv_func_dlopen="yes"
  16231. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  16232. else
  16233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  16234. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  16235. if ${ac_cv_lib_svld_dlopen+:} false; then :
  16236. $as_echo_n "(cached) " >&6
  16237. else
  16238. ac_check_lib_save_LIBS=$LIBS
  16239. LIBS="-lsvld $LIBS"
  16240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16241. /* end confdefs.h. */
  16242. /* Override any GCC internal prototype to avoid an error.
  16243. Use char because int might match the return type of a GCC
  16244. builtin and then its argument prototype would still apply. */
  16245. #ifdef __cplusplus
  16246. extern "C"
  16247. #endif
  16248. char dlopen ();
  16249. int
  16250. main ()
  16251. {
  16252. return dlopen ();
  16253. ;
  16254. return 0;
  16255. }
  16256. _ACEOF
  16257. if ac_fn_c_try_link "$LINENO"; then :
  16258. ac_cv_lib_svld_dlopen=yes
  16259. else
  16260. ac_cv_lib_svld_dlopen=no
  16261. fi
  16262. rm -f core conftest.err conftest.$ac_objext \
  16263. conftest$ac_exeext conftest.$ac_ext
  16264. LIBS=$ac_check_lib_save_LIBS
  16265. fi
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  16267. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  16268. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  16269. $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
  16270. LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
  16271. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
  16272. fi
  16273. fi
  16274. rm -f core conftest.err conftest.$ac_objext \
  16275. conftest$ac_exeext conftest.$ac_ext
  16276. fi
  16277. if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
  16278. then
  16279. lt_save_LIBS="$LIBS"
  16280. LIBS="$LIBS $LIBADD_DLOPEN"
  16281. for ac_func in dlerror
  16282. do :
  16283. ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
  16284. if test "x$ac_cv_func_dlerror" = xyes; then :
  16285. cat >>confdefs.h <<_ACEOF
  16286. #define HAVE_DLERROR 1
  16287. _ACEOF
  16288. fi
  16289. done
  16290. LIBS="$lt_save_LIBS"
  16291. fi
  16292. LIBADD_SHL_LOAD=
  16293. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  16294. if test "x$ac_cv_func_shl_load" = xyes; then :
  16295. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  16296. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  16297. else
  16298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  16299. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  16300. if ${ac_cv_lib_dld_shl_load+:} false; then :
  16301. $as_echo_n "(cached) " >&6
  16302. else
  16303. ac_check_lib_save_LIBS=$LIBS
  16304. LIBS="-ldld $LIBS"
  16305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16306. /* end confdefs.h. */
  16307. /* Override any GCC internal prototype to avoid an error.
  16308. Use char because int might match the return type of a GCC
  16309. builtin and then its argument prototype would still apply. */
  16310. #ifdef __cplusplus
  16311. extern "C"
  16312. #endif
  16313. char shl_load ();
  16314. int
  16315. main ()
  16316. {
  16317. return shl_load ();
  16318. ;
  16319. return 0;
  16320. }
  16321. _ACEOF
  16322. if ac_fn_c_try_link "$LINENO"; then :
  16323. ac_cv_lib_dld_shl_load=yes
  16324. else
  16325. ac_cv_lib_dld_shl_load=no
  16326. fi
  16327. rm -f core conftest.err conftest.$ac_objext \
  16328. conftest$ac_exeext conftest.$ac_ext
  16329. LIBS=$ac_check_lib_save_LIBS
  16330. fi
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  16332. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  16333. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  16334. $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
  16335. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
  16336. LIBADD_SHL_LOAD="-ldld"
  16337. fi
  16338. fi
  16339. case $host_os in
  16340. darwin[1567].*)
  16341. # We only want this for pre-Mac OS X 10.4.
  16342. ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
  16343. if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
  16344. $as_echo "#define HAVE_DYLD 1" >>confdefs.h
  16345. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
  16346. fi
  16347. ;;
  16348. beos*)
  16349. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
  16350. ;;
  16351. cygwin* | mingw* | os2* | pw32*)
  16352. ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
  16353. "
  16354. if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
  16355. ac_have_decl=1
  16356. else
  16357. ac_have_decl=0
  16358. fi
  16359. cat >>confdefs.h <<_ACEOF
  16360. #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
  16361. _ACEOF
  16362. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
  16363. ;;
  16364. esac
  16365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  16366. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  16367. if ${ac_cv_lib_dld_dld_link+:} false; then :
  16368. $as_echo_n "(cached) " >&6
  16369. else
  16370. ac_check_lib_save_LIBS=$LIBS
  16371. LIBS="-ldld $LIBS"
  16372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16373. /* end confdefs.h. */
  16374. /* Override any GCC internal prototype to avoid an error.
  16375. Use char because int might match the return type of a GCC
  16376. builtin and then its argument prototype would still apply. */
  16377. #ifdef __cplusplus
  16378. extern "C"
  16379. #endif
  16380. char dld_link ();
  16381. int
  16382. main ()
  16383. {
  16384. return dld_link ();
  16385. ;
  16386. return 0;
  16387. }
  16388. _ACEOF
  16389. if ac_fn_c_try_link "$LINENO"; then :
  16390. ac_cv_lib_dld_dld_link=yes
  16391. else
  16392. ac_cv_lib_dld_dld_link=no
  16393. fi
  16394. rm -f core conftest.err conftest.$ac_objext \
  16395. conftest$ac_exeext conftest.$ac_ext
  16396. LIBS=$ac_check_lib_save_LIBS
  16397. fi
  16398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  16399. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  16400. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  16401. $as_echo "#define HAVE_DLD 1" >>confdefs.h
  16402. LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
  16403. fi
  16404. LT_DLPREOPEN=
  16405. if test -n "$LT_DLLOADERS"
  16406. then
  16407. for lt_loader in $LT_DLLOADERS; do
  16408. LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
  16409. done
  16410. $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
  16411. fi
  16412. LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
  16413. ac_ext=c
  16414. ac_cpp='$CPP $CPPFLAGS'
  16415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  16419. $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  16420. if ${lt_cv_sys_symbol_underscore+:} false; then :
  16421. $as_echo_n "(cached) " >&6
  16422. else
  16423. lt_cv_sys_symbol_underscore=no
  16424. cat > conftest.$ac_ext <<_LT_EOF
  16425. void nm_test_func(){}
  16426. int main(){nm_test_func;return 0;}
  16427. _LT_EOF
  16428. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16429. (eval $ac_compile) 2>&5
  16430. ac_status=$?
  16431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16432. test $ac_status = 0; }; then
  16433. # Now try to grab the symbols.
  16434. ac_nlist=conftest.nm
  16435. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
  16436. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
  16437. ac_status=$?
  16438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16439. test $ac_status = 0; } && test -s "$ac_nlist"; then
  16440. # See whether the symbols have a leading underscore.
  16441. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
  16442. lt_cv_sys_symbol_underscore=yes
  16443. else
  16444. if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
  16445. :
  16446. else
  16447. echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  16448. fi
  16449. fi
  16450. else
  16451. echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  16452. fi
  16453. else
  16454. echo "configure: failed program was:" >&5
  16455. cat conftest.c >&5
  16456. fi
  16457. rm -rf conftest*
  16458. fi
  16459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
  16460. $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
  16461. sys_symbol_underscore=$lt_cv_sys_symbol_underscore
  16462. if test x"$lt_cv_sys_symbol_underscore" = xyes; then
  16463. if test x"$libltdl_cv_func_dlopen" = xyes ||
  16464. test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
  16466. $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
  16467. if ${libltdl_cv_need_uscore+:} false; then :
  16468. $as_echo_n "(cached) " >&6
  16469. else
  16470. libltdl_cv_need_uscore=unknown
  16471. save_LIBS="$LIBS"
  16472. LIBS="$LIBS $LIBADD_DLOPEN"
  16473. if test "$cross_compiling" = yes; then :
  16474. libltdl_cv_need_uscore=cross
  16475. else
  16476. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16477. lt_status=$lt_dlunknown
  16478. cat > conftest.$ac_ext <<_LT_EOF
  16479. #line $LINENO "configure"
  16480. #include "confdefs.h"
  16481. #if HAVE_DLFCN_H
  16482. #include <dlfcn.h>
  16483. #endif
  16484. #include <stdio.h>
  16485. #ifdef RTLD_GLOBAL
  16486. # define LT_DLGLOBAL RTLD_GLOBAL
  16487. #else
  16488. # ifdef DL_GLOBAL
  16489. # define LT_DLGLOBAL DL_GLOBAL
  16490. # else
  16491. # define LT_DLGLOBAL 0
  16492. # endif
  16493. #endif
  16494. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16495. find out it does not work in some platform. */
  16496. #ifndef LT_DLLAZY_OR_NOW
  16497. # ifdef RTLD_LAZY
  16498. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  16499. # else
  16500. # ifdef DL_LAZY
  16501. # define LT_DLLAZY_OR_NOW DL_LAZY
  16502. # else
  16503. # ifdef RTLD_NOW
  16504. # define LT_DLLAZY_OR_NOW RTLD_NOW
  16505. # else
  16506. # ifdef DL_NOW
  16507. # define LT_DLLAZY_OR_NOW DL_NOW
  16508. # else
  16509. # define LT_DLLAZY_OR_NOW 0
  16510. # endif
  16511. # endif
  16512. # endif
  16513. # endif
  16514. #endif
  16515. /* When -fvisbility=hidden is used, assume the code has been annotated
  16516. correspondingly for the symbols needed. */
  16517. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  16518. int fnord () __attribute__((visibility("default")));
  16519. #endif
  16520. int fnord () { return 42; }
  16521. int main ()
  16522. {
  16523. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16524. int status = $lt_dlunknown;
  16525. if (self)
  16526. {
  16527. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16528. else
  16529. {
  16530. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16531. else puts (dlerror ());
  16532. }
  16533. /* dlclose (self); */
  16534. }
  16535. else
  16536. puts (dlerror ());
  16537. return status;
  16538. }
  16539. _LT_EOF
  16540. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  16541. (eval $ac_link) 2>&5
  16542. ac_status=$?
  16543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16544. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  16545. (./conftest; exit; ) >&5 2>/dev/null
  16546. lt_status=$?
  16547. case x$lt_status in
  16548. x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
  16549. x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
  16550. x$lt_dlunknown|x*) ;;
  16551. esac
  16552. else :
  16553. # compilation failed
  16554. fi
  16555. fi
  16556. rm -fr conftest*
  16557. LIBS="$save_LIBS"
  16558. fi
  16559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
  16560. $as_echo "$libltdl_cv_need_uscore" >&6; }
  16561. fi
  16562. fi
  16563. if test x"$libltdl_cv_need_uscore" = xyes; then
  16564. $as_echo "#define NEED_USCORE 1" >>confdefs.h
  16565. fi
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
  16567. $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
  16568. if ${lt_cv_sys_dlopen_deplibs+:} false; then :
  16569. $as_echo_n "(cached) " >&6
  16570. else
  16571. # PORTME does your system automatically load deplibs for dlopen?
  16572. # or its logical equivalent (e.g. shl_load for HP-UX < 11)
  16573. # For now, we just catch OSes we know something about -- in the
  16574. # future, we'll try test this programmatically.
  16575. lt_cv_sys_dlopen_deplibs=unknown
  16576. case $host_os in
  16577. aix3*|aix4.1.*|aix4.2.*)
  16578. # Unknown whether this is true for these versions of AIX, but
  16579. # we want this `case' here to explicitly catch those versions.
  16580. lt_cv_sys_dlopen_deplibs=unknown
  16581. ;;
  16582. aix[4-9]*)
  16583. lt_cv_sys_dlopen_deplibs=yes
  16584. ;;
  16585. amigaos*)
  16586. case $host_cpu in
  16587. powerpc)
  16588. lt_cv_sys_dlopen_deplibs=no
  16589. ;;
  16590. esac
  16591. ;;
  16592. darwin*)
  16593. # Assuming the user has installed a libdl from somewhere, this is true
  16594. # If you are looking for one http://www.opendarwin.org/projects/dlcompat
  16595. lt_cv_sys_dlopen_deplibs=yes
  16596. ;;
  16597. freebsd* | dragonfly*)
  16598. lt_cv_sys_dlopen_deplibs=yes
  16599. ;;
  16600. gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
  16601. # GNU and its variants, using gnu ld.so (Glibc)
  16602. lt_cv_sys_dlopen_deplibs=yes
  16603. ;;
  16604. hpux10*|hpux11*)
  16605. lt_cv_sys_dlopen_deplibs=yes
  16606. ;;
  16607. interix*)
  16608. lt_cv_sys_dlopen_deplibs=yes
  16609. ;;
  16610. irix[12345]*|irix6.[01]*)
  16611. # Catch all versions of IRIX before 6.2, and indicate that we don't
  16612. # know how it worked for any of those versions.
  16613. lt_cv_sys_dlopen_deplibs=unknown
  16614. ;;
  16615. irix*)
  16616. # The case above catches anything before 6.2, and it's known that
  16617. # at 6.2 and later dlopen does load deplibs.
  16618. lt_cv_sys_dlopen_deplibs=yes
  16619. ;;
  16620. netbsd*)
  16621. lt_cv_sys_dlopen_deplibs=yes
  16622. ;;
  16623. openbsd*)
  16624. lt_cv_sys_dlopen_deplibs=yes
  16625. ;;
  16626. osf[1234]*)
  16627. # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
  16628. # it did *not* use an RPATH in a shared library to find objects the
  16629. # library depends on, so we explicitly say `no'.
  16630. lt_cv_sys_dlopen_deplibs=no
  16631. ;;
  16632. osf5.0|osf5.0a|osf5.1)
  16633. # dlopen *does* load deplibs and with the right loader patch applied
  16634. # it even uses RPATH in a shared library to search for shared objects
  16635. # that the library depends on, but there's no easy way to know if that
  16636. # patch is installed. Since this is the case, all we can really
  16637. # say is unknown -- it depends on the patch being installed. If
  16638. # it is, this changes to `yes'. Without it, it would be `no'.
  16639. lt_cv_sys_dlopen_deplibs=unknown
  16640. ;;
  16641. osf*)
  16642. # the two cases above should catch all versions of osf <= 5.1. Read
  16643. # the comments above for what we know about them.
  16644. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
  16645. # is used to find them so we can finally say `yes'.
  16646. lt_cv_sys_dlopen_deplibs=yes
  16647. ;;
  16648. qnx*)
  16649. lt_cv_sys_dlopen_deplibs=yes
  16650. ;;
  16651. solaris*)
  16652. lt_cv_sys_dlopen_deplibs=yes
  16653. ;;
  16654. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16655. libltdl_cv_sys_dlopen_deplibs=yes
  16656. ;;
  16657. esac
  16658. fi
  16659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
  16660. $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
  16661. if test "$lt_cv_sys_dlopen_deplibs" != yes; then
  16662. $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
  16663. fi
  16664. :
  16665. for ac_header in argz.h
  16666. do :
  16667. ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
  16668. "
  16669. if test "x$ac_cv_header_argz_h" = xyes; then :
  16670. cat >>confdefs.h <<_ACEOF
  16671. #define HAVE_ARGZ_H 1
  16672. _ACEOF
  16673. fi
  16674. done
  16675. ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
  16676. # include <argz.h>
  16677. #endif
  16678. "
  16679. if test "x$ac_cv_type_error_t" = xyes; then :
  16680. cat >>confdefs.h <<_ACEOF
  16681. #define HAVE_ERROR_T 1
  16682. _ACEOF
  16683. else
  16684. $as_echo "#define error_t int" >>confdefs.h
  16685. $as_echo "#define __error_t_defined 1" >>confdefs.h
  16686. fi
  16687. ARGZ_H=
  16688. for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
  16689. argz_next argz_stringify
  16690. do :
  16691. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16692. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16693. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16694. cat >>confdefs.h <<_ACEOF
  16695. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16696. _ACEOF
  16697. else
  16698. ARGZ_H=argz.h;
  16699. _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
  16700. fi
  16701. done
  16702. if test -z "$ARGZ_H"; then :
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
  16704. $as_echo_n "checking if argz actually works... " >&6; }
  16705. if ${lt_cv_sys_argz_works+:} false; then :
  16706. $as_echo_n "(cached) " >&6
  16707. else
  16708. case $host_os in #(
  16709. *cygwin*)
  16710. lt_cv_sys_argz_works=no
  16711. if test "$cross_compiling" != no; then
  16712. lt_cv_sys_argz_works="guessing no"
  16713. else
  16714. lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
  16715. save_IFS=$IFS
  16716. IFS=-.
  16717. set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
  16718. IFS=$save_IFS
  16719. lt_os_major=${2-0}
  16720. lt_os_minor=${3-0}
  16721. lt_os_micro=${4-0}
  16722. if test "$lt_os_major" -gt 1 \
  16723. || { test "$lt_os_major" -eq 1 \
  16724. && { test "$lt_os_minor" -gt 5 \
  16725. || { test "$lt_os_minor" -eq 5 \
  16726. && test "$lt_os_micro" -gt 24; }; }; }; then
  16727. lt_cv_sys_argz_works=yes
  16728. fi
  16729. fi
  16730. ;; #(
  16731. *) lt_cv_sys_argz_works=yes ;;
  16732. esac
  16733. fi
  16734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
  16735. $as_echo "$lt_cv_sys_argz_works" >&6; }
  16736. if test "$lt_cv_sys_argz_works" = yes; then :
  16737. $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
  16738. else
  16739. ARGZ_H=argz.h
  16740. _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
  16741. fi
  16742. fi
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
  16744. $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
  16745. if ${libltdl_cv_preloaded_symbols+:} false; then :
  16746. $as_echo_n "(cached) " >&6
  16747. else
  16748. if test -n "$lt_cv_sys_global_symbol_pipe"; then
  16749. libltdl_cv_preloaded_symbols=yes
  16750. else
  16751. libltdl_cv_preloaded_symbols=no
  16752. fi
  16753. fi
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
  16755. $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
  16756. if test x"$libltdl_cv_preloaded_symbols" = xyes; then
  16757. $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
  16758. fi
  16759. # Set options
  16760. # Check whether --with-included_ltdl was given.
  16761. if test "${with_included_ltdl+set}" = set; then :
  16762. withval=$with_included_ltdl;
  16763. fi
  16764. if test "x$with_included_ltdl" != xyes; then
  16765. # We are not being forced to use the included libltdl sources, so
  16766. # decide whether there is a useful installed version we can use.
  16767. ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
  16768. "
  16769. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  16770. ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
  16771. #include <ltdl.h>
  16772. "
  16773. if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
  16775. $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
  16776. if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
  16777. $as_echo_n "(cached) " >&6
  16778. else
  16779. ac_check_lib_save_LIBS=$LIBS
  16780. LIBS="-lltdl $LIBS"
  16781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16782. /* end confdefs.h. */
  16783. /* Override any GCC internal prototype to avoid an error.
  16784. Use char because int might match the return type of a GCC
  16785. builtin and then its argument prototype would still apply. */
  16786. #ifdef __cplusplus
  16787. extern "C"
  16788. #endif
  16789. char lt_dladvise_preload ();
  16790. int
  16791. main ()
  16792. {
  16793. return lt_dladvise_preload ();
  16794. ;
  16795. return 0;
  16796. }
  16797. _ACEOF
  16798. if ac_fn_c_try_link "$LINENO"; then :
  16799. ac_cv_lib_ltdl_lt_dladvise_preload=yes
  16800. else
  16801. ac_cv_lib_ltdl_lt_dladvise_preload=no
  16802. fi
  16803. rm -f core conftest.err conftest.$ac_objext \
  16804. conftest$ac_exeext conftest.$ac_ext
  16805. LIBS=$ac_check_lib_save_LIBS
  16806. fi
  16807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
  16808. $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
  16809. if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
  16810. with_included_ltdl=no
  16811. else
  16812. with_included_ltdl=yes
  16813. fi
  16814. else
  16815. with_included_ltdl=yes
  16816. fi
  16817. else
  16818. with_included_ltdl=yes
  16819. fi
  16820. fi
  16821. # Check whether --with-ltdl_include was given.
  16822. if test "${with_ltdl_include+set}" = set; then :
  16823. withval=$with_ltdl_include;
  16824. fi
  16825. if test -n "$with_ltdl_include"; then
  16826. if test -f "$with_ltdl_include/ltdl.h"; then :
  16827. else
  16828. as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
  16829. fi
  16830. else
  16831. with_ltdl_include=no
  16832. fi
  16833. # Check whether --with-ltdl_lib was given.
  16834. if test "${with_ltdl_lib+set}" = set; then :
  16835. withval=$with_ltdl_lib;
  16836. fi
  16837. if test -n "$with_ltdl_lib"; then
  16838. if test -f "$with_ltdl_lib/libltdl.la"; then :
  16839. else
  16840. as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
  16841. fi
  16842. else
  16843. with_ltdl_lib=no
  16844. fi
  16845. case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
  16846. ,yes,no,no,)
  16847. case $enable_ltdl_convenience in
  16848. no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
  16849. "") enable_ltdl_convenience=yes
  16850. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  16851. esac
  16852. LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
  16853. LTDLDEPS=$LIBLTDL
  16854. LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
  16855. # For backwards non-gettext consistent compatibility...
  16856. INCLTDL="$LTDLINCL"
  16857. ;;
  16858. ,no,no,no,)
  16859. # If the included ltdl is not to be used, then use the
  16860. # preinstalled libltdl we found.
  16861. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  16862. LIBLTDL=-lltdl
  16863. LTDLDEPS=
  16864. LTDLINCL=
  16865. ;;
  16866. ,no*,no,*)
  16867. as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
  16868. ;;
  16869. *) with_included_ltdl=no
  16870. LIBLTDL="-L$with_ltdl_lib -lltdl"
  16871. LTDLDEPS=
  16872. LTDLINCL="-I$with_ltdl_include"
  16873. ;;
  16874. esac
  16875. INCLTDL="$LTDLINCL"
  16876. # Report our decision...
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
  16878. $as_echo_n "checking where to find libltdl headers... " >&6; }
  16879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
  16880. $as_echo "$LTDLINCL" >&6; }
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
  16882. $as_echo_n "checking where to find libltdl library... " >&6; }
  16883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
  16884. $as_echo "$LIBLTDL" >&6; }
  16885. # Check whether --enable-ltdl-install was given.
  16886. if test "${enable_ltdl_install+set}" = set; then :
  16887. enableval=$enable_ltdl_install;
  16888. fi
  16889. case ,${enable_ltdl_install},${enable_ltdl_convenience} in
  16890. *yes*) ;;
  16891. *) enable_ltdl_convenience=yes ;;
  16892. esac
  16893. if test x"${enable_ltdl_install-no}" != xno; then
  16894. INSTALL_LTDL_TRUE=
  16895. INSTALL_LTDL_FALSE='#'
  16896. else
  16897. INSTALL_LTDL_TRUE='#'
  16898. INSTALL_LTDL_FALSE=
  16899. fi
  16900. if test x"${enable_ltdl_convenience-no}" != xno; then
  16901. CONVENIENCE_LTDL_TRUE=
  16902. CONVENIENCE_LTDL_FALSE='#'
  16903. else
  16904. CONVENIENCE_LTDL_TRUE='#'
  16905. CONVENIENCE_LTDL_FALSE=
  16906. fi
  16907. # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
  16908. # the user used. This is so that ltdl.h can pick up the parent projects
  16909. # config.h file, The first file in AC_CONFIG_HEADERS must contain the
  16910. # definitions required by ltdl.c.
  16911. # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
  16912. for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
  16913. do :
  16914. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16915. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  16916. "
  16917. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16918. cat >>confdefs.h <<_ACEOF
  16919. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16920. _ACEOF
  16921. fi
  16922. done
  16923. for ac_func in closedir opendir readdir
  16924. do :
  16925. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16926. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16927. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16928. cat >>confdefs.h <<_ACEOF
  16929. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16930. _ACEOF
  16931. else
  16932. _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
  16933. fi
  16934. done
  16935. for ac_func in strlcat strlcpy
  16936. do :
  16937. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16938. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16939. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16940. cat >>confdefs.h <<_ACEOF
  16941. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16942. _ACEOF
  16943. else
  16944. _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
  16945. fi
  16946. done
  16947. cat >>confdefs.h <<_ACEOF
  16948. #define LT_LIBEXT "$libext"
  16949. _ACEOF
  16950. name=
  16951. eval "lt_libprefix=\"$libname_spec\""
  16952. cat >>confdefs.h <<_ACEOF
  16953. #define LT_LIBPREFIX "$lt_libprefix"
  16954. _ACEOF
  16955. name=ltdl
  16956. eval "LTDLOPEN=\"$libname_spec\""
  16957. # Only expand once:
  16958. # Substitute INCLTDL and LIBLTDL in the Makefiles
  16959. #AC_SUBST(INCLTDL)
  16960. #AC_SUBST(LIBLTDL)
  16961. # Check to see if building shared libraries
  16962. libtool_build_shared_libs='no'
  16963. if test "$enable_shared" = 'yes'
  16964. then
  16965. libtool_build_shared_libs='yes'
  16966. fi
  16967. # Check to see if building static libraries
  16968. libtool_build_static_libs='no'
  16969. if test "$enable_static" = 'yes'
  16970. then
  16971. libtool_build_static_libs='yes'
  16972. fi
  16973. if test "${libtool_build_shared_libs}" = 'yes'; then
  16974. WITH_SHARED_LIBS_TRUE=
  16975. WITH_SHARED_LIBS_FALSE='#'
  16976. else
  16977. WITH_SHARED_LIBS_TRUE='#'
  16978. WITH_SHARED_LIBS_FALSE=
  16979. fi
  16980. #
  16981. # Enable support for building loadable modules
  16982. #
  16983. # Check whether --with-modules was given.
  16984. if test "${with_modules+set}" = set; then :
  16985. withval=$with_modules; with_modules=$withval
  16986. else
  16987. with_modules='no'
  16988. fi
  16989. # Only allow building loadable modules if we are building shared libraries
  16990. if test "$with_modules" != 'no' ; then
  16991. if test "$libtool_build_shared_libs" = 'no' ; then
  16992. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
  16993. $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
  16994. with_modules='no'
  16995. fi
  16996. fi
  16997. if test "$with_modules" != 'no' ; then
  16998. $as_echo "#define BuildMagickModules 1" >>confdefs.h
  16999. fi
  17000. if test "$with_modules" != 'no'; then
  17001. WITH_MODULES_TRUE=
  17002. WITH_MODULES_FALSE='#'
  17003. else
  17004. WITH_MODULES_TRUE='#'
  17005. WITH_MODULES_FALSE=
  17006. fi
  17007. # Enable building/use of libltdl if we are building shared libraries regardless
  17008. # of whether modules are built or not.
  17009. with_ltdl='no'
  17010. if test "$libtool_build_shared_libs" != 'no' ; then
  17011. with_ltdl='yes'
  17012. fi
  17013. if test "$with_ltdl" != 'no'; then
  17014. WITH_LTDL_TRUE=
  17015. WITH_LTDL_FALSE='#'
  17016. else
  17017. WITH_LTDL_TRUE='#'
  17018. WITH_LTDL_FALSE=
  17019. fi
  17020. if test "$with_ltdl" != 'no' ; then
  17021. $as_echo "#define HasLTDL 1" >>confdefs.h
  17022. # Set DLLDFLAGS
  17023. if test X"$enable_shared" = Xyes; then
  17024. DLLDFLAGS=-export-dynamic
  17025. fi
  17026. fi
  17027. # Build a version of GraphicsMagick which operates uninstalled.
  17028. # Used to build distributions located via MAGICK_HOME / executable path
  17029. # Check whether --enable-installed was given.
  17030. if test "${enable_installed+set}" = set; then :
  17031. enableval=$enable_installed; with_installed=$enableval
  17032. else
  17033. with_installed='yes'
  17034. fi
  17035. if test "$with_installed" = 'yes'
  17036. then
  17037. $as_echo "#define UseInstalledMagick 1" >>confdefs.h
  17038. else
  17039. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
  17040. fi
  17041. # Add configure option --enable-maintainer-mode which enables dependency
  17042. # checking and generation useful to package maintainers. This is made an
  17043. # option to avoid confusing end users.
  17044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17045. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  17046. # Check whether --enable-maintainer-mode was given.
  17047. if test "${enable_maintainer_mode+set}" = set; then :
  17048. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  17049. else
  17050. USE_MAINTAINER_MODE=no
  17051. fi
  17052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  17053. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  17054. if test $USE_MAINTAINER_MODE = yes; then
  17055. MAINTAINER_MODE_TRUE=
  17056. MAINTAINER_MODE_FALSE='#'
  17057. else
  17058. MAINTAINER_MODE_TRUE='#'
  17059. MAINTAINER_MODE_FALSE=
  17060. fi
  17061. MAINT=$MAINTAINER_MODE_TRUE
  17062. # Enable ccmalloc memory debugging support
  17063. # Check whether --enable-ccmalloc was given.
  17064. if test "${enable_ccmalloc+set}" = set; then :
  17065. enableval=$enable_ccmalloc; with_ccmalloc=$enableval
  17066. else
  17067. with_ccmalloc='no'
  17068. fi
  17069. # Enable Electric Fence memory debugging support
  17070. # Check whether --enable-efence was given.
  17071. if test "${enable_efence+set}" = set; then :
  17072. enableval=$enable_efence; with_efence=$enableval
  17073. else
  17074. with_efence='no'
  17075. fi
  17076. # Enable prof-based profiling support
  17077. # Check whether --enable-prof was given.
  17078. if test "${enable_prof+set}" = set; then :
  17079. enableval=$enable_prof; with_prof=$enableval
  17080. else
  17081. with_prof='no'
  17082. fi
  17083. # Enable gprof-based profiling support
  17084. # Check whether --enable-gprof was given.
  17085. if test "${enable_gprof+set}" = set; then :
  17086. enableval=$enable_gprof; with_gprof=$enableval
  17087. else
  17088. with_gprof='no'
  17089. fi
  17090. # Enable gcov-based profiling support
  17091. # Check whether --enable-gcov was given.
  17092. if test "${enable_gcov+set}" = set; then :
  17093. enableval=$enable_gcov; with_gcov=$enableval
  17094. else
  17095. with_gcov='no'
  17096. fi
  17097. with_profiling='no'
  17098. if test "$with_prof" = 'yes' || test "$with_gprof" = 'yes' || test "$with_gcov" = 'yes'
  17099. then
  17100. with_profiling='yes'
  17101. if test "$libtool_build_shared_libs" = 'yes'
  17102. then
  17103. echo "Warning: Can not profile code using shared libraries"
  17104. fi
  17105. fi
  17106. # Enable prefixing library symbols with a common string
  17107. # Check whether --enable-symbol-prefix was given.
  17108. if test "${enable_symbol_prefix+set}" = set; then :
  17109. enableval=$enable_symbol_prefix; with_symbol_prefix=$enableval
  17110. else
  17111. with_symbol_prefix='no'
  17112. fi
  17113. if test "$with_symbol_prefix" != 'no'
  17114. then
  17115. $as_echo "#define PREFIX_MAGICK_SYMBOLS 1" >>confdefs.h
  17116. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --enable-symbol-prefix "
  17117. fi
  17118. # Enable ImageMagick utilities compatibility shortcuts (default no)
  17119. # Check whether --enable-magick-compat was given.
  17120. if test "${enable_magick_compat+set}" = set; then :
  17121. enableval=$enable_magick_compat; with_magick_compat=$enableval
  17122. else
  17123. with_magick_compat='no'
  17124. fi
  17125. if test "$with_magick_compat" != 'no'; then
  17126. MAGICK_COMPAT_TRUE=
  17127. MAGICK_COMPAT_FALSE='#'
  17128. else
  17129. MAGICK_COMPAT_TRUE='#'
  17130. MAGICK_COMPAT_FALSE=
  17131. fi
  17132. # Number of bits in a Quantum
  17133. # Check whether --with-quantum-depth was given.
  17134. if test "${with_quantum_depth+set}" = set; then :
  17135. withval=$with_quantum_depth; with_quantum_depth=$withval
  17136. else
  17137. with_quantum_depth=8
  17138. fi
  17139. if test "$with_quantum_depth" != '8' ; then
  17140. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
  17141. fi
  17142. case "${with_quantum_depth}" in
  17143. 8 ) ;;
  17144. 16 ) ;;
  17145. 32 ) ;;
  17146. * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
  17147. esac
  17148. QuantumDepth="$with_quantum_depth"
  17149. cat >>confdefs.h <<_ACEOF
  17150. #define QuantumDepth $QuantumDepth
  17151. _ACEOF
  17152. # Disable/Enable support for full delegate paths in delegates.mgk
  17153. # Check whether --with-frozenpaths was given.
  17154. if test "${with_frozenpaths+set}" = set; then :
  17155. withval=$with_frozenpaths; with_frozenpaths=$withval
  17156. else
  17157. with_frozenpaths='no'
  17158. fi
  17159. # Enable build/install of Magick++
  17160. # Check whether --with-magick-plus-plus was given.
  17161. if test "${with_magick_plus_plus+set}" = set; then :
  17162. withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
  17163. else
  17164. with_magick_plus_plus='yes'
  17165. fi
  17166. # Enable build/install of PerlMagick.
  17167. # Check whether --with-perl was given.
  17168. if test "${with_perl+set}" = set; then :
  17169. withval=$with_perl; with_perl=$withval
  17170. else
  17171. with_perl='no'
  17172. fi
  17173. # Options to pass when configuring PerlMagick
  17174. # Check whether --with-perl-options was given.
  17175. if test "${with_perl_options+set}" = set; then :
  17176. withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
  17177. fi
  17178. # Disable BZLIB (bzip2 library)
  17179. # Check whether --with-bzlib was given.
  17180. if test "${with_bzlib+set}" = set; then :
  17181. withval=$with_bzlib; with_bzlib=$withval
  17182. else
  17183. with_bzlib='yes'
  17184. fi
  17185. if test "$with_bzlib" != 'yes' ; then
  17186. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
  17187. fi
  17188. # Disable Display Postscript.
  17189. # Check whether --with-dps was given.
  17190. if test "${with_dps+set}" = set; then :
  17191. withval=$with_dps; with_dps=$withval
  17192. else
  17193. with_dps='yes'
  17194. fi
  17195. if test "$with_dps" != 'yes' ; then
  17196. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
  17197. fi
  17198. # Enable FlashPIX.
  17199. # Check whether --with-fpx was given.
  17200. if test "${with_fpx+set}" = set; then :
  17201. withval=$with_fpx; with_fpx=$withval
  17202. else
  17203. with_fpx='no'
  17204. fi
  17205. if test "$with_fpx" != 'yes' ; then
  17206. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
  17207. fi
  17208. # Enable Ghostscript library support.
  17209. # Check whether --with-gslib was given.
  17210. if test "${with_gslib+set}" = set; then :
  17211. withval=$with_gslib; with_gslib=$withval
  17212. else
  17213. with_gslib='no'
  17214. fi
  17215. if test "$with_gslib" != 'yes' ; then
  17216. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
  17217. fi
  17218. # Disable JBIG.
  17219. # Check whether --with-jbig was given.
  17220. if test "${with_jbig+set}" = set; then :
  17221. withval=$with_jbig; with_jbig=$withval
  17222. else
  17223. with_jbig='yes'
  17224. fi
  17225. if test "$with_jbig" != 'yes' ; then
  17226. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jbig=$with_jbig "
  17227. fi
  17228. # Disable JPEG.
  17229. # Check whether --with-jpeg was given.
  17230. if test "${with_jpeg+set}" = set; then :
  17231. withval=$with_jpeg; with_jpeg=$withval
  17232. else
  17233. with_jpeg='yes'
  17234. fi
  17235. if test "$with_jpeg" != 'yes' ; then
  17236. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
  17237. fi
  17238. # Disable JPEG Version 2.
  17239. # Check whether --with-jp2 was given.
  17240. if test "${with_jp2+set}" = set; then :
  17241. withval=$with_jp2; with_jp2=$withval
  17242. else
  17243. with_jp2='yes'
  17244. fi
  17245. if test "$with_jp2" != 'yes' ; then
  17246. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
  17247. fi
  17248. # Disable LCMS.
  17249. # Check whether --with-lcms was given.
  17250. if test "${with_lcms+set}" = set; then :
  17251. withval=$with_lcms; with_lcms=$withval
  17252. else
  17253. with_lcms='yes'
  17254. fi
  17255. if test "$with_lcms" != 'yes' ; then
  17256. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
  17257. fi
  17258. # Disable LCMS2.
  17259. # Check whether --with-lcms2 was given.
  17260. if test "${with_lcms2+set}" = set; then :
  17261. withval=$with_lcms2; with_lcms2=$withval
  17262. else
  17263. with_lcms2='yes'
  17264. fi
  17265. if test "$with_lcms2" != 'yes' ; then
  17266. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
  17267. fi
  17268. # Disable LZMA (lzma library)
  17269. # Check whether --with-lzma was given.
  17270. if test "${with_lzma+set}" = set; then :
  17271. withval=$with_lzma; with_lzma=$withval
  17272. else
  17273. with_lzma='yes'
  17274. fi
  17275. if test "$with_lzma" != 'yes' ; then
  17276. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
  17277. fi
  17278. # # Disable MPEG.
  17279. # AC_ARG_WITH(mpeg2,
  17280. # [ --without-mpeg2 disable MPEG support],
  17281. # [with_mpeg2=$withval],
  17282. # [with_mpeg2='yes'])
  17283. # Disable PNG.
  17284. # Check whether --with-png was given.
  17285. if test "${with_png+set}" = set; then :
  17286. withval=$with_png; with_png=$withval
  17287. else
  17288. with_png='yes'
  17289. fi
  17290. if test "$with_png" != 'yes' ; then
  17291. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
  17292. fi
  17293. # Disable TIFF.
  17294. # Check whether --with-tiff was given.
  17295. if test "${with_tiff+set}" = set; then :
  17296. withval=$with_tiff; with_tiff=$withval
  17297. else
  17298. with_tiff='yes'
  17299. fi
  17300. if test "$with_tiff" != 'yes' ; then
  17301. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
  17302. fi
  17303. # Disable TRIO.
  17304. # Check whether --with-trio was given.
  17305. if test "${with_trio+set}" = set; then :
  17306. withval=$with_trio; with_trio=$withval
  17307. else
  17308. with_trio='yes'
  17309. fi
  17310. if test "$with_trio" != 'yes' ; then
  17311. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-trio=$with_trio "
  17312. fi
  17313. # Disable TTF.
  17314. # Check whether --with-ttf was given.
  17315. if test "${with_ttf+set}" = set; then :
  17316. withval=$with_ttf; with_ttf=$withval
  17317. else
  17318. with_ttf='yes'
  17319. fi
  17320. if test "$with_ttf" != 'yes' ; then
  17321. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-ttf=$with_ttf "
  17322. fi
  17323. # Enable use of Solaris libumem (object-caching memory allocation library).
  17324. # Available as a SourceForge project http://sourceforge.net/projects/umem/ or
  17325. # https://labs.omniti.com/trac/portableumem/.
  17326. # Check whether --with-umem was given.
  17327. if test "${with_umem+set}" = set; then :
  17328. withval=$with_umem; with_umem=$withval
  17329. else
  17330. with_umem='no'
  17331. fi
  17332. if test "$with_umem" != 'yes' ; then
  17333. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
  17334. fi
  17335. # Disable WMF.
  17336. # Check whether --with-wmf was given.
  17337. if test "${with_wmf+set}" = set; then :
  17338. withval=$with_wmf; with_wmf=$withval
  17339. else
  17340. with_wmf='yes'
  17341. fi
  17342. if test "$with_wmf" != 'yes' ; then
  17343. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
  17344. fi
  17345. # Set default font search path
  17346. # Check whether --with-fontpath was given.
  17347. if test "${with_fontpath+set}" = set; then :
  17348. withval=$with_fontpath; with_fontpath=$withval
  17349. else
  17350. with_fontpath=''
  17351. fi
  17352. if test "$with_fontpath" != "yes" && test -z "$with_fontpath"
  17353. then
  17354. with_fontpath=''
  17355. else
  17356. cat >>confdefs.h <<_ACEOF
  17357. #define MAGICK_FONT_PATH "$with_fontpath"
  17358. _ACEOF
  17359. fi
  17360. if test "$with_fontpath=" != '' ; then
  17361. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
  17362. fi
  17363. # Set Ghostscript font directory
  17364. # Check whether --with-gs-font-dir was given.
  17365. if test "${with_gs_font_dir+set}" = set; then :
  17366. withval=$with_gs_font_dir; with_gs_font_dir=$withval
  17367. else
  17368. with_gs_font_dir='default'
  17369. fi
  17370. if test "$with_gs_font_dir" != 'default' ; then
  17371. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
  17372. fi
  17373. # Set Windows font directory
  17374. # Check whether --with-windows-font-dir was given.
  17375. if test "${with_windows_font_dir+set}" = set; then :
  17376. withval=$with_windows_font_dir; with_windows_font_dir=$withval
  17377. else
  17378. with_windows_font_dir=''
  17379. fi
  17380. if test "$with_windows_font_dir" != '' ; then
  17381. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
  17382. fi
  17383. # Disable XML.
  17384. # Check whether --with-xml was given.
  17385. if test "${with_xml+set}" = set; then :
  17386. withval=$with_xml; with_xml=$withval
  17387. else
  17388. with_xml='yes'
  17389. fi
  17390. if test "$with_xml" != 'yes' ; then
  17391. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
  17392. fi
  17393. # Check whether --with-zlib was given.
  17394. if test "${with_zlib+set}" = set; then :
  17395. withval=$with_zlib; with_zlib=$withval
  17396. else
  17397. with_zlib='yes'
  17398. fi
  17399. if test "$with_zlib" != 'yes' ; then
  17400. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
  17401. fi
  17402. #
  17403. # Specify path to shared libstdc++ if not in normal location
  17404. #
  17405. # Check whether --with-libstdc was given.
  17406. if test "${with_libstdc+set}" = set; then :
  17407. withval=$with_libstdc; if test "$withval" != no && test "$withval" != yes; then
  17408. if test -d "$withval"; then
  17409. LIBSTDCLDFLAGS="-L$withval"
  17410. fi
  17411. fi
  17412. fi
  17413. # Does gcc required -traditional?
  17414. if test $ac_cv_c_compiler_gnu = yes; then
  17415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  17416. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17417. if ${ac_cv_prog_gcc_traditional+:} false; then :
  17418. $as_echo_n "(cached) " >&6
  17419. else
  17420. ac_pattern="Autoconf.*'x'"
  17421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17422. /* end confdefs.h. */
  17423. #include <sgtty.h>
  17424. Autoconf TIOCGETP
  17425. _ACEOF
  17426. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17427. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  17428. ac_cv_prog_gcc_traditional=yes
  17429. else
  17430. ac_cv_prog_gcc_traditional=no
  17431. fi
  17432. rm -f conftest*
  17433. if test $ac_cv_prog_gcc_traditional = no; then
  17434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17435. /* end confdefs.h. */
  17436. #include <termio.h>
  17437. Autoconf TCGETA
  17438. _ACEOF
  17439. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17440. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  17441. ac_cv_prog_gcc_traditional=yes
  17442. fi
  17443. rm -f conftest*
  17444. fi
  17445. fi
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  17447. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17448. if test $ac_cv_prog_gcc_traditional = yes; then
  17449. CC="$CC -traditional"
  17450. fi
  17451. fi
  17452. ########
  17453. #
  17454. # Set defines required to build DLLs and modules using MinGW
  17455. #
  17456. ########
  17457. # These options are set for multi-thread DLL module build
  17458. # libMagick: _DLL _MAGICKMOD_ _MAGICKLIB_
  17459. # module: _DLL
  17460. # executable/Magick++: _DLL _MAGICKMOD_
  17461. MODULE_EXTRA_CPPFLAGS=''
  17462. LIBRARY_EXTRA_CPPFLAGS=''
  17463. if test "${native_win32_build}" = 'yes'
  17464. then
  17465. if test "${libtool_build_shared_libs}" = 'yes'
  17466. then
  17467. CPPFLAGS="$CPPFLAGS -D_DLL"
  17468. MAGICK_API_CPPFLAGS="$MAGICK_API_CPPFLAGS -D_DLL"
  17469. MAGICK_API_PC_CPPFLAGS="$MAGICK_API_PC_CPPFLAGS -D_DLL"
  17470. LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
  17471. if test "$with_modules" = 'yes'
  17472. then
  17473. LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
  17474. else
  17475. MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
  17476. fi
  17477. else
  17478. CPPFLAGS="$CPPFLAGS -D_LIB"
  17479. MAGICK_API_CPPFLAGS="$MAGICK_API_CPPFLAGS -D_LIB"
  17480. MAGICK_API_PC_CPPFLAGS="$MAGICK_API_PC_CPPFLAGS -D_LIB"
  17481. fi
  17482. if test "$with_threads" = 'yes'
  17483. then
  17484. CPPFLAGS="$CPPFLAGS -D_MT"
  17485. MAGICK_API_CPPFLAGS="$MAGICK_API_CPPFLAGS -D_MT"
  17486. MAGICK_API_PC_CPPFLAGS="$MAGICK_API_PC_CPPFLAGS -D_MT"
  17487. fi
  17488. fi
  17489. # Check standard headers
  17490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  17491. $as_echo_n "checking for ANSI C header files... " >&6; }
  17492. if ${ac_cv_header_stdc+:} false; then :
  17493. $as_echo_n "(cached) " >&6
  17494. else
  17495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17496. /* end confdefs.h. */
  17497. #include <stdlib.h>
  17498. #include <stdarg.h>
  17499. #include <string.h>
  17500. #include <float.h>
  17501. int
  17502. main ()
  17503. {
  17504. ;
  17505. return 0;
  17506. }
  17507. _ACEOF
  17508. if ac_fn_c_try_compile "$LINENO"; then :
  17509. ac_cv_header_stdc=yes
  17510. else
  17511. ac_cv_header_stdc=no
  17512. fi
  17513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17514. if test $ac_cv_header_stdc = yes; then
  17515. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17517. /* end confdefs.h. */
  17518. #include <string.h>
  17519. _ACEOF
  17520. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17521. $EGREP "memchr" >/dev/null 2>&1; then :
  17522. else
  17523. ac_cv_header_stdc=no
  17524. fi
  17525. rm -f conftest*
  17526. fi
  17527. if test $ac_cv_header_stdc = yes; then
  17528. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17530. /* end confdefs.h. */
  17531. #include <stdlib.h>
  17532. _ACEOF
  17533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17534. $EGREP "free" >/dev/null 2>&1; then :
  17535. else
  17536. ac_cv_header_stdc=no
  17537. fi
  17538. rm -f conftest*
  17539. fi
  17540. if test $ac_cv_header_stdc = yes; then
  17541. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17542. if test "$cross_compiling" = yes; then :
  17543. :
  17544. else
  17545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17546. /* end confdefs.h. */
  17547. #include <ctype.h>
  17548. #include <stdlib.h>
  17549. #if ((' ' & 0x0FF) == 0x020)
  17550. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17551. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17552. #else
  17553. # define ISLOWER(c) \
  17554. (('a' <= (c) && (c) <= 'i') \
  17555. || ('j' <= (c) && (c) <= 'r') \
  17556. || ('s' <= (c) && (c) <= 'z'))
  17557. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17558. #endif
  17559. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17560. int
  17561. main ()
  17562. {
  17563. int i;
  17564. for (i = 0; i < 256; i++)
  17565. if (XOR (islower (i), ISLOWER (i))
  17566. || toupper (i) != TOUPPER (i))
  17567. return 2;
  17568. return 0;
  17569. }
  17570. _ACEOF
  17571. if ac_fn_c_try_run "$LINENO"; then :
  17572. else
  17573. ac_cv_header_stdc=no
  17574. fi
  17575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17577. fi
  17578. fi
  17579. fi
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  17581. $as_echo "$ac_cv_header_stdc" >&6; }
  17582. if test $ac_cv_header_stdc = yes; then
  17583. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  17584. fi
  17585. ac_header_dirent=no
  17586. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  17587. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  17588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  17589. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  17590. if eval \${$as_ac_Header+:} false; then :
  17591. $as_echo_n "(cached) " >&6
  17592. else
  17593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17594. /* end confdefs.h. */
  17595. #include <sys/types.h>
  17596. #include <$ac_hdr>
  17597. int
  17598. main ()
  17599. {
  17600. if ((DIR *) 0)
  17601. return 0;
  17602. ;
  17603. return 0;
  17604. }
  17605. _ACEOF
  17606. if ac_fn_c_try_compile "$LINENO"; then :
  17607. eval "$as_ac_Header=yes"
  17608. else
  17609. eval "$as_ac_Header=no"
  17610. fi
  17611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17612. fi
  17613. eval ac_res=\$$as_ac_Header
  17614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17615. $as_echo "$ac_res" >&6; }
  17616. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17617. cat >>confdefs.h <<_ACEOF
  17618. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  17619. _ACEOF
  17620. ac_header_dirent=$ac_hdr; break
  17621. fi
  17622. done
  17623. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  17624. if test $ac_header_dirent = dirent.h; then
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  17626. $as_echo_n "checking for library containing opendir... " >&6; }
  17627. if ${ac_cv_search_opendir+:} false; then :
  17628. $as_echo_n "(cached) " >&6
  17629. else
  17630. ac_func_search_save_LIBS=$LIBS
  17631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17632. /* end confdefs.h. */
  17633. /* Override any GCC internal prototype to avoid an error.
  17634. Use char because int might match the return type of a GCC
  17635. builtin and then its argument prototype would still apply. */
  17636. #ifdef __cplusplus
  17637. extern "C"
  17638. #endif
  17639. char opendir ();
  17640. int
  17641. main ()
  17642. {
  17643. return opendir ();
  17644. ;
  17645. return 0;
  17646. }
  17647. _ACEOF
  17648. for ac_lib in '' dir; do
  17649. if test -z "$ac_lib"; then
  17650. ac_res="none required"
  17651. else
  17652. ac_res=-l$ac_lib
  17653. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17654. fi
  17655. if ac_fn_c_try_link "$LINENO"; then :
  17656. ac_cv_search_opendir=$ac_res
  17657. fi
  17658. rm -f core conftest.err conftest.$ac_objext \
  17659. conftest$ac_exeext
  17660. if ${ac_cv_search_opendir+:} false; then :
  17661. break
  17662. fi
  17663. done
  17664. if ${ac_cv_search_opendir+:} false; then :
  17665. else
  17666. ac_cv_search_opendir=no
  17667. fi
  17668. rm conftest.$ac_ext
  17669. LIBS=$ac_func_search_save_LIBS
  17670. fi
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  17672. $as_echo "$ac_cv_search_opendir" >&6; }
  17673. ac_res=$ac_cv_search_opendir
  17674. if test "$ac_res" != no; then :
  17675. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17676. fi
  17677. else
  17678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  17679. $as_echo_n "checking for library containing opendir... " >&6; }
  17680. if ${ac_cv_search_opendir+:} false; then :
  17681. $as_echo_n "(cached) " >&6
  17682. else
  17683. ac_func_search_save_LIBS=$LIBS
  17684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17685. /* end confdefs.h. */
  17686. /* Override any GCC internal prototype to avoid an error.
  17687. Use char because int might match the return type of a GCC
  17688. builtin and then its argument prototype would still apply. */
  17689. #ifdef __cplusplus
  17690. extern "C"
  17691. #endif
  17692. char opendir ();
  17693. int
  17694. main ()
  17695. {
  17696. return opendir ();
  17697. ;
  17698. return 0;
  17699. }
  17700. _ACEOF
  17701. for ac_lib in '' x; do
  17702. if test -z "$ac_lib"; then
  17703. ac_res="none required"
  17704. else
  17705. ac_res=-l$ac_lib
  17706. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17707. fi
  17708. if ac_fn_c_try_link "$LINENO"; then :
  17709. ac_cv_search_opendir=$ac_res
  17710. fi
  17711. rm -f core conftest.err conftest.$ac_objext \
  17712. conftest$ac_exeext
  17713. if ${ac_cv_search_opendir+:} false; then :
  17714. break
  17715. fi
  17716. done
  17717. if ${ac_cv_search_opendir+:} false; then :
  17718. else
  17719. ac_cv_search_opendir=no
  17720. fi
  17721. rm conftest.$ac_ext
  17722. LIBS=$ac_func_search_save_LIBS
  17723. fi
  17724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  17725. $as_echo "$ac_cv_search_opendir" >&6; }
  17726. ac_res=$ac_cv_search_opendir
  17727. if test "$ac_res" != no; then :
  17728. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17729. fi
  17730. fi
  17731. # Check additional headers
  17732. for ac_header in machine/param.h mach-o/dyld.h process.h sun_prefetch.h sys/resource.h sys/times.h sys/types.h
  17733. do :
  17734. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17735. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17736. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17737. cat >>confdefs.h <<_ACEOF
  17738. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17739. _ACEOF
  17740. fi
  17741. done
  17742. ########
  17743. #
  17744. # Checks for typedefs, structures, and compiler characteristics.
  17745. #
  17746. ########
  17747. # If the C compiler does not fully support the ANSI C qualifier const,
  17748. # define const to be empty.
  17749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  17750. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  17751. if ${ac_cv_c_const+:} false; then :
  17752. $as_echo_n "(cached) " >&6
  17753. else
  17754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17755. /* end confdefs.h. */
  17756. int
  17757. main ()
  17758. {
  17759. #ifndef __cplusplus
  17760. /* Ultrix mips cc rejects this sort of thing. */
  17761. typedef int charset[2];
  17762. const charset cs = { 0, 0 };
  17763. /* SunOS 4.1.1 cc rejects this. */
  17764. char const *const *pcpcc;
  17765. char **ppc;
  17766. /* NEC SVR4.0.2 mips cc rejects this. */
  17767. struct point {int x, y;};
  17768. static struct point const zero = {0,0};
  17769. /* AIX XL C 1.02.0.0 rejects this.
  17770. It does not let you subtract one const X* pointer from another in
  17771. an arm of an if-expression whose if-part is not a constant
  17772. expression */
  17773. const char *g = "string";
  17774. pcpcc = &g + (g ? g-g : 0);
  17775. /* HPUX 7.0 cc rejects these. */
  17776. ++pcpcc;
  17777. ppc = (char**) pcpcc;
  17778. pcpcc = (char const *const *) ppc;
  17779. { /* SCO 3.2v4 cc rejects this sort of thing. */
  17780. char tx;
  17781. char *t = &tx;
  17782. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17783. *t++ = 0;
  17784. if (s) return 0;
  17785. }
  17786. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17787. int x[] = {25, 17};
  17788. const int *foo = &x[0];
  17789. ++foo;
  17790. }
  17791. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17792. typedef const int *iptr;
  17793. iptr p = 0;
  17794. ++p;
  17795. }
  17796. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  17797. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17798. struct s { int j; const int *ap[3]; } bx;
  17799. struct s *b = &bx; b->j = 5;
  17800. }
  17801. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17802. const int foo = 10;
  17803. if (!foo) return 0;
  17804. }
  17805. return !cs[0] && !zero.x;
  17806. #endif
  17807. ;
  17808. return 0;
  17809. }
  17810. _ACEOF
  17811. if ac_fn_c_try_compile "$LINENO"; then :
  17812. ac_cv_c_const=yes
  17813. else
  17814. ac_cv_c_const=no
  17815. fi
  17816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17817. fi
  17818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  17819. $as_echo "$ac_cv_c_const" >&6; }
  17820. if test $ac_cv_c_const = no; then
  17821. $as_echo "#define const /**/" >>confdefs.h
  17822. fi
  17823. # If the C compiler supports the keyword restrict, do
  17824. # nothing. Otherwise define restrict to __restrict__ or __restrict if
  17825. # it accepts one of those, otherwise define restrict to be empty.
  17826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  17827. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  17828. if ${ac_cv_c_restrict+:} false; then :
  17829. $as_echo_n "(cached) " >&6
  17830. else
  17831. ac_cv_c_restrict=no
  17832. # The order here caters to the fact that C++ does not require restrict.
  17833. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  17834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17835. /* end confdefs.h. */
  17836. typedef int * int_ptr;
  17837. int foo (int_ptr $ac_kw ip) {
  17838. return ip[0];
  17839. }
  17840. int
  17841. main ()
  17842. {
  17843. int s[1];
  17844. int * $ac_kw t = s;
  17845. t[0] = 0;
  17846. return foo(t)
  17847. ;
  17848. return 0;
  17849. }
  17850. _ACEOF
  17851. if ac_fn_c_try_compile "$LINENO"; then :
  17852. ac_cv_c_restrict=$ac_kw
  17853. fi
  17854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17855. test "$ac_cv_c_restrict" != no && break
  17856. done
  17857. fi
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  17859. $as_echo "$ac_cv_c_restrict" >&6; }
  17860. case $ac_cv_c_restrict in
  17861. restrict) ;;
  17862. no) $as_echo "#define restrict /**/" >>confdefs.h
  17863. ;;
  17864. *) cat >>confdefs.h <<_ACEOF
  17865. #define restrict $ac_cv_c_restrict
  17866. _ACEOF
  17867. ;;
  17868. esac
  17869. # If the C compiler supports the keyword inline, do nothing. Otherwise
  17870. # define inline to __inline__ or __inline if it accepts one of those,
  17871. # otherwise define inline to be empty.
  17872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  17873. $as_echo_n "checking for inline... " >&6; }
  17874. if ${ac_cv_c_inline+:} false; then :
  17875. $as_echo_n "(cached) " >&6
  17876. else
  17877. ac_cv_c_inline=no
  17878. for ac_kw in inline __inline__ __inline; do
  17879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17880. /* end confdefs.h. */
  17881. #ifndef __cplusplus
  17882. typedef int foo_t;
  17883. static $ac_kw foo_t static_foo () {return 0; }
  17884. $ac_kw foo_t foo () {return 0; }
  17885. #endif
  17886. _ACEOF
  17887. if ac_fn_c_try_compile "$LINENO"; then :
  17888. ac_cv_c_inline=$ac_kw
  17889. fi
  17890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17891. test "$ac_cv_c_inline" != no && break
  17892. done
  17893. fi
  17894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  17895. $as_echo "$ac_cv_c_inline" >&6; }
  17896. case $ac_cv_c_inline in
  17897. inline | yes) ;;
  17898. *)
  17899. case $ac_cv_c_inline in
  17900. no) ac_val=;;
  17901. *) ac_val=$ac_cv_c_inline;;
  17902. esac
  17903. cat >>confdefs.h <<_ACEOF
  17904. #ifndef __cplusplus
  17905. #define inline $ac_val
  17906. #endif
  17907. _ACEOF
  17908. ;;
  17909. esac
  17910. # If words are stored with the most significant byte first (like
  17911. # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
  17912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  17913. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17914. if ${ac_cv_c_bigendian+:} false; then :
  17915. $as_echo_n "(cached) " >&6
  17916. else
  17917. ac_cv_c_bigendian=unknown
  17918. # See if we're dealing with a universal compiler.
  17919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17920. /* end confdefs.h. */
  17921. #ifndef __APPLE_CC__
  17922. not a universal capable compiler
  17923. #endif
  17924. typedef int dummy;
  17925. _ACEOF
  17926. if ac_fn_c_try_compile "$LINENO"; then :
  17927. # Check for potential -arch flags. It is not universal unless
  17928. # there are at least two -arch flags with different values.
  17929. ac_arch=
  17930. ac_prev=
  17931. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  17932. if test -n "$ac_prev"; then
  17933. case $ac_word in
  17934. i?86 | x86_64 | ppc | ppc64)
  17935. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  17936. ac_arch=$ac_word
  17937. else
  17938. ac_cv_c_bigendian=universal
  17939. break
  17940. fi
  17941. ;;
  17942. esac
  17943. ac_prev=
  17944. elif test "x$ac_word" = "x-arch"; then
  17945. ac_prev=arch
  17946. fi
  17947. done
  17948. fi
  17949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17950. if test $ac_cv_c_bigendian = unknown; then
  17951. # See if sys/param.h defines the BYTE_ORDER macro.
  17952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17953. /* end confdefs.h. */
  17954. #include <sys/types.h>
  17955. #include <sys/param.h>
  17956. int
  17957. main ()
  17958. {
  17959. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17960. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17961. && LITTLE_ENDIAN)
  17962. bogus endian macros
  17963. #endif
  17964. ;
  17965. return 0;
  17966. }
  17967. _ACEOF
  17968. if ac_fn_c_try_compile "$LINENO"; then :
  17969. # It does; now see whether it defined to BIG_ENDIAN or not.
  17970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17971. /* end confdefs.h. */
  17972. #include <sys/types.h>
  17973. #include <sys/param.h>
  17974. int
  17975. main ()
  17976. {
  17977. #if BYTE_ORDER != BIG_ENDIAN
  17978. not big endian
  17979. #endif
  17980. ;
  17981. return 0;
  17982. }
  17983. _ACEOF
  17984. if ac_fn_c_try_compile "$LINENO"; then :
  17985. ac_cv_c_bigendian=yes
  17986. else
  17987. ac_cv_c_bigendian=no
  17988. fi
  17989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17990. fi
  17991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17992. fi
  17993. if test $ac_cv_c_bigendian = unknown; then
  17994. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17996. /* end confdefs.h. */
  17997. #include <limits.h>
  17998. int
  17999. main ()
  18000. {
  18001. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  18002. bogus endian macros
  18003. #endif
  18004. ;
  18005. return 0;
  18006. }
  18007. _ACEOF
  18008. if ac_fn_c_try_compile "$LINENO"; then :
  18009. # It does; now see whether it defined to _BIG_ENDIAN or not.
  18010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18011. /* end confdefs.h. */
  18012. #include <limits.h>
  18013. int
  18014. main ()
  18015. {
  18016. #ifndef _BIG_ENDIAN
  18017. not big endian
  18018. #endif
  18019. ;
  18020. return 0;
  18021. }
  18022. _ACEOF
  18023. if ac_fn_c_try_compile "$LINENO"; then :
  18024. ac_cv_c_bigendian=yes
  18025. else
  18026. ac_cv_c_bigendian=no
  18027. fi
  18028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18029. fi
  18030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18031. fi
  18032. if test $ac_cv_c_bigendian = unknown; then
  18033. # Compile a test program.
  18034. if test "$cross_compiling" = yes; then :
  18035. # Try to guess by grepping values from an object file.
  18036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18037. /* end confdefs.h. */
  18038. short int ascii_mm[] =
  18039. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  18040. short int ascii_ii[] =
  18041. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  18042. int use_ascii (int i) {
  18043. return ascii_mm[i] + ascii_ii[i];
  18044. }
  18045. short int ebcdic_ii[] =
  18046. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  18047. short int ebcdic_mm[] =
  18048. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  18049. int use_ebcdic (int i) {
  18050. return ebcdic_mm[i] + ebcdic_ii[i];
  18051. }
  18052. extern int foo;
  18053. int
  18054. main ()
  18055. {
  18056. return use_ascii (foo) == use_ebcdic (foo);
  18057. ;
  18058. return 0;
  18059. }
  18060. _ACEOF
  18061. if ac_fn_c_try_compile "$LINENO"; then :
  18062. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  18063. ac_cv_c_bigendian=yes
  18064. fi
  18065. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  18066. if test "$ac_cv_c_bigendian" = unknown; then
  18067. ac_cv_c_bigendian=no
  18068. else
  18069. # finding both strings is unlikely to happen, but who knows?
  18070. ac_cv_c_bigendian=unknown
  18071. fi
  18072. fi
  18073. fi
  18074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18075. else
  18076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18077. /* end confdefs.h. */
  18078. $ac_includes_default
  18079. int
  18080. main ()
  18081. {
  18082. /* Are we little or big endian? From Harbison&Steele. */
  18083. union
  18084. {
  18085. long int l;
  18086. char c[sizeof (long int)];
  18087. } u;
  18088. u.l = 1;
  18089. return u.c[sizeof (long int) - 1] == 1;
  18090. ;
  18091. return 0;
  18092. }
  18093. _ACEOF
  18094. if ac_fn_c_try_run "$LINENO"; then :
  18095. ac_cv_c_bigendian=no
  18096. else
  18097. ac_cv_c_bigendian=yes
  18098. fi
  18099. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18100. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18101. fi
  18102. fi
  18103. fi
  18104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  18105. $as_echo "$ac_cv_c_bigendian" >&6; }
  18106. case $ac_cv_c_bigendian in #(
  18107. yes)
  18108. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  18109. ;; #(
  18110. no)
  18111. ;; #(
  18112. universal)
  18113. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  18114. ;; #(
  18115. *)
  18116. as_fn_error $? "unknown endianness
  18117. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  18118. esac
  18119. # Define mode_t to a suitable type, if standard headers do not define it.
  18120. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  18121. if test "x$ac_cv_type_mode_t" = xyes; then :
  18122. else
  18123. cat >>confdefs.h <<_ACEOF
  18124. #define mode_t int
  18125. _ACEOF
  18126. fi
  18127. # Define off_t to a suitable type, if standard headers do not define it.
  18128. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  18129. if test "x$ac_cv_type_off_t" = xyes; then :
  18130. else
  18131. cat >>confdefs.h <<_ACEOF
  18132. #define off_t long int
  18133. _ACEOF
  18134. fi
  18135. # Define pid_t to a suitable type, if standard headers do not define it.
  18136. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  18137. if test "x$ac_cv_type_pid_t" = xyes; then :
  18138. else
  18139. cat >>confdefs.h <<_ACEOF
  18140. #define pid_t int
  18141. _ACEOF
  18142. fi
  18143. # Define size_t to a suitable type, if standard headers do not define it.
  18144. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  18145. if test "x$ac_cv_type_size_t" = xyes; then :
  18146. else
  18147. cat >>confdefs.h <<_ACEOF
  18148. #define size_t unsigned int
  18149. _ACEOF
  18150. fi
  18151. # Define ssize_t to a suitable type, if standard headers do not define it.
  18152. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  18153. if test "x$ac_cv_type_ssize_t" = xyes; then :
  18154. else
  18155. cat >>confdefs.h <<_ACEOF
  18156. #define ssize_t int
  18157. _ACEOF
  18158. fi
  18159. # If C compiler supports a working long double type with more range
  18160. # or precision than the double type then define HAVE_LONG_DOUBLE_WIDER.
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  18162. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  18163. if ${ac_cv_type_long_double_wider+:} false; then :
  18164. $as_echo_n "(cached) " >&6
  18165. else
  18166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18167. /* end confdefs.h. */
  18168. #include <float.h>
  18169. long double const a[] =
  18170. {
  18171. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  18172. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  18173. };
  18174. long double
  18175. f (long double x)
  18176. {
  18177. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  18178. + (x ? f (x) : 'c'));
  18179. }
  18180. int
  18181. main ()
  18182. {
  18183. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  18184. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  18185. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  18186. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  18187. && (int) LDBL_EPSILON == 0
  18188. )];
  18189. test_array [0] = 0;
  18190. return test_array [0];
  18191. ;
  18192. return 0;
  18193. }
  18194. _ACEOF
  18195. if ac_fn_c_try_compile "$LINENO"; then :
  18196. ac_cv_type_long_double_wider=yes
  18197. else
  18198. ac_cv_type_long_double_wider=no
  18199. fi
  18200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18201. fi
  18202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  18203. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  18204. if test $ac_cv_type_long_double_wider = yes; then
  18205. $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  18206. fi
  18207. # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
  18208. # C compiler predefines it.
  18209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  18210. $as_echo_n "checking whether char is unsigned... " >&6; }
  18211. if ${ac_cv_c_char_unsigned+:} false; then :
  18212. $as_echo_n "(cached) " >&6
  18213. else
  18214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18215. /* end confdefs.h. */
  18216. $ac_includes_default
  18217. int
  18218. main ()
  18219. {
  18220. static int test_array [1 - 2 * !(((char) -1) < 0)];
  18221. test_array [0] = 0;
  18222. return test_array [0];
  18223. ;
  18224. return 0;
  18225. }
  18226. _ACEOF
  18227. if ac_fn_c_try_compile "$LINENO"; then :
  18228. ac_cv_c_char_unsigned=no
  18229. else
  18230. ac_cv_c_char_unsigned=yes
  18231. fi
  18232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18233. fi
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  18235. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  18236. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  18237. $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
  18238. fi
  18239. # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
  18240. # The cast to long int works around a bug in the HP C Compiler
  18241. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18242. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18243. # This bug is HP SR number 8606223364.
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
  18245. $as_echo_n "checking size of signed short... " >&6; }
  18246. if ${ac_cv_sizeof_signed_short+:} false; then :
  18247. $as_echo_n "(cached) " >&6
  18248. else
  18249. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
  18250. else
  18251. if test "$ac_cv_type_signed_short" = yes; then
  18252. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18253. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18254. as_fn_error 77 "cannot compute sizeof (signed short)
  18255. See \`config.log' for more details" "$LINENO" 5; }
  18256. else
  18257. ac_cv_sizeof_signed_short=0
  18258. fi
  18259. fi
  18260. fi
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
  18262. $as_echo "$ac_cv_sizeof_signed_short" >&6; }
  18263. cat >>confdefs.h <<_ACEOF
  18264. #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
  18265. _ACEOF
  18266. # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
  18267. # The cast to long int works around a bug in the HP C Compiler
  18268. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18269. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18270. # This bug is HP SR number 8606223364.
  18271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
  18272. $as_echo_n "checking size of unsigned short... " >&6; }
  18273. if ${ac_cv_sizeof_unsigned_short+:} false; then :
  18274. $as_echo_n "(cached) " >&6
  18275. else
  18276. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
  18277. else
  18278. if test "$ac_cv_type_unsigned_short" = yes; then
  18279. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18281. as_fn_error 77 "cannot compute sizeof (unsigned short)
  18282. See \`config.log' for more details" "$LINENO" 5; }
  18283. else
  18284. ac_cv_sizeof_unsigned_short=0
  18285. fi
  18286. fi
  18287. fi
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
  18289. $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  18290. cat >>confdefs.h <<_ACEOF
  18291. #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  18292. _ACEOF
  18293. # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
  18294. # The cast to long int works around a bug in the HP C Compiler
  18295. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18296. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18297. # This bug is HP SR number 8606223364.
  18298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
  18299. $as_echo_n "checking size of signed int... " >&6; }
  18300. if ${ac_cv_sizeof_signed_int+:} false; then :
  18301. $as_echo_n "(cached) " >&6
  18302. else
  18303. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
  18304. else
  18305. if test "$ac_cv_type_signed_int" = yes; then
  18306. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18307. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18308. as_fn_error 77 "cannot compute sizeof (signed int)
  18309. See \`config.log' for more details" "$LINENO" 5; }
  18310. else
  18311. ac_cv_sizeof_signed_int=0
  18312. fi
  18313. fi
  18314. fi
  18315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
  18316. $as_echo "$ac_cv_sizeof_signed_int" >&6; }
  18317. cat >>confdefs.h <<_ACEOF
  18318. #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
  18319. _ACEOF
  18320. # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
  18321. # The cast to long int works around a bug in the HP C Compiler
  18322. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18323. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18324. # This bug is HP SR number 8606223364.
  18325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
  18326. $as_echo_n "checking size of unsigned int... " >&6; }
  18327. if ${ac_cv_sizeof_unsigned_int+:} false; then :
  18328. $as_echo_n "(cached) " >&6
  18329. else
  18330. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
  18331. else
  18332. if test "$ac_cv_type_unsigned_int" = yes; then
  18333. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18335. as_fn_error 77 "cannot compute sizeof (unsigned int)
  18336. See \`config.log' for more details" "$LINENO" 5; }
  18337. else
  18338. ac_cv_sizeof_unsigned_int=0
  18339. fi
  18340. fi
  18341. fi
  18342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
  18343. $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  18344. cat >>confdefs.h <<_ACEOF
  18345. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  18346. _ACEOF
  18347. # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
  18348. # The cast to long int works around a bug in the HP C Compiler
  18349. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18350. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18351. # This bug is HP SR number 8606223364.
  18352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
  18353. $as_echo_n "checking size of signed long... " >&6; }
  18354. if ${ac_cv_sizeof_signed_long+:} false; then :
  18355. $as_echo_n "(cached) " >&6
  18356. else
  18357. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
  18358. else
  18359. if test "$ac_cv_type_signed_long" = yes; then
  18360. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18361. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18362. as_fn_error 77 "cannot compute sizeof (signed long)
  18363. See \`config.log' for more details" "$LINENO" 5; }
  18364. else
  18365. ac_cv_sizeof_signed_long=0
  18366. fi
  18367. fi
  18368. fi
  18369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
  18370. $as_echo "$ac_cv_sizeof_signed_long" >&6; }
  18371. cat >>confdefs.h <<_ACEOF
  18372. #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
  18373. _ACEOF
  18374. # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
  18375. # The cast to long int works around a bug in the HP C Compiler
  18376. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18377. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18378. # This bug is HP SR number 8606223364.
  18379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  18380. $as_echo_n "checking size of unsigned long... " >&6; }
  18381. if ${ac_cv_sizeof_unsigned_long+:} false; then :
  18382. $as_echo_n "(cached) " >&6
  18383. else
  18384. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  18385. else
  18386. if test "$ac_cv_type_unsigned_long" = yes; then
  18387. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18389. as_fn_error 77 "cannot compute sizeof (unsigned long)
  18390. See \`config.log' for more details" "$LINENO" 5; }
  18391. else
  18392. ac_cv_sizeof_unsigned_long=0
  18393. fi
  18394. fi
  18395. fi
  18396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  18397. $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  18398. cat >>confdefs.h <<_ACEOF
  18399. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  18400. _ACEOF
  18401. # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
  18402. # 'signed long long' is not supported then the value defined is zero.
  18403. # The cast to long int works around a bug in the HP C Compiler
  18404. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18405. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18406. # This bug is HP SR number 8606223364.
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
  18408. $as_echo_n "checking size of signed long long... " >&6; }
  18409. if ${ac_cv_sizeof_signed_long_long+:} false; then :
  18410. $as_echo_n "(cached) " >&6
  18411. else
  18412. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
  18413. else
  18414. if test "$ac_cv_type_signed_long_long" = yes; then
  18415. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18416. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18417. as_fn_error 77 "cannot compute sizeof (signed long long)
  18418. See \`config.log' for more details" "$LINENO" 5; }
  18419. else
  18420. ac_cv_sizeof_signed_long_long=0
  18421. fi
  18422. fi
  18423. fi
  18424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
  18425. $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
  18426. cat >>confdefs.h <<_ACEOF
  18427. #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
  18428. _ACEOF
  18429. # Obtain size of a 'unsigned long long' and define as
  18430. # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
  18431. # supported then the value defined is zero.
  18432. # The cast to long int works around a bug in the HP C Compiler
  18433. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18434. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18435. # This bug is HP SR number 8606223364.
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  18437. $as_echo_n "checking size of unsigned long long... " >&6; }
  18438. if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
  18439. $as_echo_n "(cached) " >&6
  18440. else
  18441. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
  18442. else
  18443. if test "$ac_cv_type_unsigned_long_long" = yes; then
  18444. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18445. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18446. as_fn_error 77 "cannot compute sizeof (unsigned long long)
  18447. See \`config.log' for more details" "$LINENO" 5; }
  18448. else
  18449. ac_cv_sizeof_unsigned_long_long=0
  18450. fi
  18451. fi
  18452. fi
  18453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  18454. $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  18455. cat >>confdefs.h <<_ACEOF
  18456. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  18457. _ACEOF
  18458. # Obtain size of off_t and define as SIZEOF_OFF_T
  18459. # The cast to long int works around a bug in the HP C Compiler
  18460. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18461. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18462. # This bug is HP SR number 8606223364.
  18463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  18464. $as_echo_n "checking size of off_t... " >&6; }
  18465. if ${ac_cv_sizeof_off_t+:} false; then :
  18466. $as_echo_n "(cached) " >&6
  18467. else
  18468. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  18469. else
  18470. if test "$ac_cv_type_off_t" = yes; then
  18471. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18472. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18473. as_fn_error 77 "cannot compute sizeof (off_t)
  18474. See \`config.log' for more details" "$LINENO" 5; }
  18475. else
  18476. ac_cv_sizeof_off_t=0
  18477. fi
  18478. fi
  18479. fi
  18480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  18481. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  18482. cat >>confdefs.h <<_ACEOF
  18483. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  18484. _ACEOF
  18485. # Obtain size of size_t and define as SIZEOF_SIZE_T
  18486. # The cast to long int works around a bug in the HP C Compiler
  18487. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18488. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18489. # This bug is HP SR number 8606223364.
  18490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  18491. $as_echo_n "checking size of size_t... " >&6; }
  18492. if ${ac_cv_sizeof_size_t+:} false; then :
  18493. $as_echo_n "(cached) " >&6
  18494. else
  18495. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  18496. else
  18497. if test "$ac_cv_type_size_t" = yes; then
  18498. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18499. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18500. as_fn_error 77 "cannot compute sizeof (size_t)
  18501. See \`config.log' for more details" "$LINENO" 5; }
  18502. else
  18503. ac_cv_sizeof_size_t=0
  18504. fi
  18505. fi
  18506. fi
  18507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  18508. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  18509. cat >>confdefs.h <<_ACEOF
  18510. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  18511. _ACEOF
  18512. # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
  18513. # The cast to long int works around a bug in the HP C Compiler
  18514. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18515. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18516. # This bug is HP SR number 8606223364.
  18517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
  18518. $as_echo_n "checking size of unsigned int*... " >&6; }
  18519. if ${ac_cv_sizeof_unsigned_intp+:} false; then :
  18520. $as_echo_n "(cached) " >&6
  18521. else
  18522. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
  18523. else
  18524. if test "$ac_cv_type_unsigned_intp" = yes; then
  18525. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18527. as_fn_error 77 "cannot compute sizeof (unsigned int*)
  18528. See \`config.log' for more details" "$LINENO" 5; }
  18529. else
  18530. ac_cv_sizeof_unsigned_intp=0
  18531. fi
  18532. fi
  18533. fi
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
  18535. $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
  18536. cat >>confdefs.h <<_ACEOF
  18537. #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
  18538. _ACEOF
  18539. # If `signal.h' declares signal as returning a pointer to a function
  18540. # returning void, define RETSIGTYPE to be void; otherwise, define it
  18541. # to be int.
  18542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  18543. $as_echo_n "checking return type of signal handlers... " >&6; }
  18544. if ${ac_cv_type_signal+:} false; then :
  18545. $as_echo_n "(cached) " >&6
  18546. else
  18547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18548. /* end confdefs.h. */
  18549. #include <sys/types.h>
  18550. #include <signal.h>
  18551. int
  18552. main ()
  18553. {
  18554. return *(signal (0, 0)) (0) == 1;
  18555. ;
  18556. return 0;
  18557. }
  18558. _ACEOF
  18559. if ac_fn_c_try_compile "$LINENO"; then :
  18560. ac_cv_type_signal=int
  18561. else
  18562. ac_cv_type_signal=void
  18563. fi
  18564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18565. fi
  18566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  18567. $as_echo "$ac_cv_type_signal" >&6; }
  18568. cat >>confdefs.h <<_ACEOF
  18569. #define RETSIGTYPE $ac_cv_type_signal
  18570. _ACEOF
  18571. # Test for C compiler __func__ support
  18572. if test "$ac_cv_have_C__func__" != 'yes' ; then
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler __func__ support" >&5
  18574. $as_echo_n "checking for C compiler __func__ support... " >&6; }
  18575. if ${ac_cv_have_C__func__+:} false; then :
  18576. $as_echo_n "(cached) " >&6
  18577. else
  18578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18579. /* end confdefs.h. */
  18580. int
  18581. main ()
  18582. {
  18583. const char *func=__func__;
  18584. return (func != 0 ? 0 : 1);
  18585. ;
  18586. return 0;
  18587. }
  18588. _ACEOF
  18589. if ac_fn_c_try_compile "$LINENO"; then :
  18590. ac_cv_have_C__func__='yes'
  18591. else
  18592. ac_cv_have_C__func__='no'
  18593. fi
  18594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18595. fi
  18596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_C__func__" >&5
  18597. $as_echo "$ac_cv_have_C__func__" >&6; }
  18598. if test "$ac_cv_have_C__func__" = 'yes' ; then
  18599. $as_echo "#define HAS_C__func__ 1" >>confdefs.h
  18600. fi
  18601. fi
  18602. #
  18603. # Compute sized types for current CPU and compiler options.
  18604. #
  18605. # The reason why we don't use autoconf's recent built-in support for
  18606. # stdint.h types is because doing it ourself seems easier for dealing
  18607. # with Windows builds which don't use configure.
  18608. #
  18609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
  18610. $as_echo_n "checking for signed 8-bit type... " >&6; }
  18611. INT8_T='signed char'
  18612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
  18613. $as_echo "$INT8_T" >&6; }
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
  18615. $as_echo_n "checking for unsigned 8-bit type... " >&6; }
  18616. UINT8_T='unsigned char'
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
  18618. $as_echo "$UINT8_T" >&6; }
  18619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
  18620. $as_echo_n "checking for signed 16-bit type... " >&6; }
  18621. INT16_T='signed short'
  18622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
  18623. $as_echo "$INT16_T" >&6; }
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
  18625. $as_echo_n "checking for unsigned 16-bit type... " >&6; }
  18626. UINT16_T='unsigned short'
  18627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
  18628. $as_echo "$UINT16_T" >&6; }
  18629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
  18630. $as_echo_n "checking for signed 32-bit type... " >&6; }
  18631. INT32_T='none'
  18632. INT32_F='none'
  18633. if test $ac_cv_sizeof_signed_int -eq 4
  18634. then
  18635. INT32_T='signed int'
  18636. INT32_F='""'
  18637. elif test $ac_cv_sizeof_signed_long -eq 4
  18638. then
  18639. INT32_T='signed long'
  18640. INT32_F='"l"'
  18641. fi
  18642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
  18643. $as_echo "$INT32_T" >&6; }
  18644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
  18645. $as_echo_n "checking for unsigned 32-bit type... " >&6; }
  18646. UINT32_T='none'
  18647. UINT32_F='none'
  18648. if test $ac_cv_sizeof_unsigned_int -eq 4
  18649. then
  18650. UINT32_T='unsigned int'
  18651. UINT32_F='""'
  18652. elif test $ac_cv_sizeof_unsigned_long -eq 4
  18653. then
  18654. UINT32_T='unsigned long'
  18655. UINT32_F='"l"'
  18656. fi
  18657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
  18658. $as_echo "$UINT32_T" >&6; }
  18659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
  18660. $as_echo_n "checking for signed 64-bit type... " >&6; }
  18661. INT64_T='none'
  18662. INT64_F='none'
  18663. if test $ac_cv_sizeof_signed_long -eq 8
  18664. then
  18665. INT64_T='signed long'
  18666. INT64_F='"l"'
  18667. elif test $ac_cv_sizeof_signed_long_long -eq 8
  18668. then
  18669. INT64_T='signed long long'
  18670. INT64_F='"ll"'
  18671. fi
  18672. case "${host_os}" in
  18673. mingw* )
  18674. INT64_F='"I64"'
  18675. ;;
  18676. esac
  18677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
  18678. $as_echo "$INT64_T" >&6; }
  18679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
  18680. $as_echo_n "checking for unsigned 64-bit type... " >&6; }
  18681. UINT64_T='none'
  18682. UINT64_F='none'
  18683. if test $ac_cv_sizeof_unsigned_long -eq 8
  18684. then
  18685. UINT64_T='unsigned long'
  18686. UINT64_F='"l"'
  18687. elif test $ac_cv_sizeof_unsigned_long_long -eq 8
  18688. then
  18689. UINT64_T='unsigned long long'
  18690. UINT64_F='"ll"'
  18691. fi
  18692. case "${build_os}" in
  18693. mingw* )
  18694. UINT64_F='"I64"'
  18695. ;;
  18696. esac
  18697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
  18698. $as_echo "$UINT64_T" >&6; }
  18699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
  18700. $as_echo_n "checking for unsigned maximum type... " >&6; }
  18701. UINTMAX_T='none'
  18702. UINTMAX_F='none'
  18703. if test "$UINT64_T" != 'none'
  18704. then
  18705. UINTMAX_T=$UINT64_T
  18706. UINTMAX_F=$UINT64_F
  18707. elif test "$UINT32_T" != 'none'
  18708. then
  18709. UINTMAX_T=$UINT32_T
  18710. UINTMAX_F=$UINT32_F
  18711. fi
  18712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
  18713. $as_echo "$UINTMAX_T" >&6; }
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
  18715. $as_echo_n "checking for pointer difference type... " >&6; }
  18716. UINTPTR_T='none'
  18717. UINTPTR_F='none'
  18718. if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp
  18719. then
  18720. UINTPTR_T='unsigned long'
  18721. UINTPTR_F='"l"'
  18722. elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp
  18723. then
  18724. UINTPTR_T='unsigned long long'
  18725. UINTPTR_F='"ll"'
  18726. fi
  18727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
  18728. $as_echo "$UINTPTR_T" >&6; }
  18729. ########
  18730. #
  18731. # Check for functions
  18732. #
  18733. ########
  18734. for ac_header in stdlib.h unistd.h
  18735. do :
  18736. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18737. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18738. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18739. cat >>confdefs.h <<_ACEOF
  18740. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18741. _ACEOF
  18742. fi
  18743. done
  18744. for ac_func in getpagesize
  18745. do :
  18746. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  18747. if test "x$ac_cv_func_getpagesize" = xyes; then :
  18748. cat >>confdefs.h <<_ACEOF
  18749. #define HAVE_GETPAGESIZE 1
  18750. _ACEOF
  18751. fi
  18752. done
  18753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
  18754. $as_echo_n "checking for working mmap file i/o... " >&6; }
  18755. if ${gm_cv_func_mmap_fileio+:} false; then :
  18756. $as_echo_n "(cached) " >&6
  18757. else
  18758. if test "$cross_compiling" = yes; then :
  18759. gm_cv_func_mmap_fileio=no
  18760. else
  18761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18762. /* end confdefs.h. */
  18763. $ac_includes_default
  18764. /* malloc might have been renamed as rpl_malloc. */
  18765. #undef malloc
  18766. /*
  18767. This test is derived from GNU Autoconf's similar macro.
  18768. The purpose of this test is to verify that files may be memory
  18769. mapped, and that memory mapping and file I/O are coherent.
  18770. The test creates a test file, memory maps the file, updates
  18771. the file using the memory map, and then reads the file using
  18772. file I/O to verify that the file contains the updates.
  18773. */
  18774. #include <fcntl.h>
  18775. #include <sys/mman.h>
  18776. #if !STDC_HEADERS && !HAVE_STDLIB_H
  18777. char *malloc ();
  18778. #endif
  18779. /* This mess was copied from the GNU getpagesize.h. */
  18780. #if !HAVE_GETPAGESIZE
  18781. /* Assume that all systems that can run configure have sys/param.h. */
  18782. # if !HAVE_SYS_PARAM_H
  18783. # define HAVE_SYS_PARAM_H 1
  18784. # endif
  18785. # ifdef _SC_PAGESIZE
  18786. # define getpagesize() sysconf(_SC_PAGESIZE)
  18787. # else /* no _SC_PAGESIZE */
  18788. # if HAVE_SYS_PARAM_H
  18789. # include <sys/param.h>
  18790. # ifdef EXEC_PAGESIZE
  18791. # define getpagesize() EXEC_PAGESIZE
  18792. # else /* no EXEC_PAGESIZE */
  18793. # ifdef NBPG
  18794. # define getpagesize() NBPG * CLSIZE
  18795. # ifndef CLSIZE
  18796. # define CLSIZE 1
  18797. # endif /* no CLSIZE */
  18798. # else /* no NBPG */
  18799. # ifdef NBPC
  18800. # define getpagesize() NBPC
  18801. # else /* no NBPC */
  18802. # ifdef PAGESIZE
  18803. # define getpagesize() PAGESIZE
  18804. # endif /* PAGESIZE */
  18805. # endif /* no NBPC */
  18806. # endif /* no NBPG */
  18807. # endif /* no EXEC_PAGESIZE */
  18808. # else /* no HAVE_SYS_PARAM_H */
  18809. # define getpagesize() 8192 /* punt totally */
  18810. # endif /* no HAVE_SYS_PARAM_H */
  18811. # endif /* no _SC_PAGESIZE */
  18812. #endif /* no HAVE_GETPAGESIZE */
  18813. int
  18814. main ()
  18815. {
  18816. char *data, *data2, *data3;
  18817. int i, pagesize;
  18818. int fd;
  18819. pagesize = getpagesize ();
  18820. /* First, make a file with some known garbage in it. */
  18821. data = (char *) malloc (pagesize);
  18822. if (!data)
  18823. exit (1);
  18824. for (i = 0; i < pagesize; ++i)
  18825. *(data + i) = rand ();
  18826. umask (0);
  18827. fd = creat ("conftest.mmap", 0600);
  18828. if (fd < 0)
  18829. exit (1);
  18830. if (write (fd, data, pagesize) != pagesize)
  18831. exit (1);
  18832. close (fd);
  18833. /* Mmap the file as read/write/shared and verify that we see the
  18834. same garbage. */
  18835. fd = open ("conftest.mmap", O_RDWR);
  18836. if (fd < 0)
  18837. exit (1);
  18838. data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
  18839. if (data2 == 0)
  18840. exit (1);
  18841. for (i = 0; i < pagesize; ++i)
  18842. if (*(data + i) != *(data2 + i))
  18843. exit (1);
  18844. /* Finally, make sure that changes to the mapped area
  18845. percolate back to the file as seen by read(). */
  18846. for (i = 0; i < pagesize; ++i)
  18847. *(data2 + i) = *(data2 + i) + 1;
  18848. data3 = (char *) malloc (pagesize);
  18849. if (!data3)
  18850. exit (1);
  18851. if (read (fd, data3, pagesize) != pagesize)
  18852. exit (1);
  18853. for (i = 0; i < pagesize; ++i)
  18854. if (*(data2 + i) != *(data3 + i))
  18855. exit (1);
  18856. close (fd);
  18857. exit (0);
  18858. }
  18859. _ACEOF
  18860. if ac_fn_c_try_run "$LINENO"; then :
  18861. gm_cv_func_mmap_fileio=yes
  18862. else
  18863. gm_cv_func_mmap_fileio=no
  18864. fi
  18865. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18866. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18867. fi
  18868. fi
  18869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gm_cv_func_mmap_fileio" >&5
  18870. $as_echo "$gm_cv_func_mmap_fileio" >&6; }
  18871. if test $gm_cv_func_mmap_fileio = yes; then
  18872. $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
  18873. fi
  18874. rm -f conftest.mmap
  18875. for ac_func in atoll ctime_r _exit fcntl fstatvfs ftime getexecname \
  18876. getc_unlocked getpagesize getrlimit getpid lltostr localtime_r madvise \
  18877. mkstemp _NSGetExecutablePath _pclose pclose poll _popen popen posix_fadvise \
  18878. posix_fallocate posix_madvise posix_memalign posix_spawnp pread pwrite \
  18879. putc_unlocked raise rand_r readdir_r readlink realpath select seekdir \
  18880. setrlimit sigemptyset sigaction spawnvp strerror strerror_r strlcat strlcpy \
  18881. strtoll sysconf tempnam tmpnam_r times telldir ulltostr vsprintf vsnprintf qsort_r
  18882. do :
  18883. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18884. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18885. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18886. cat >>confdefs.h <<_ACEOF
  18887. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18888. _ACEOF
  18889. fi
  18890. done
  18891. ########
  18892. #
  18893. # Check for function prototypes
  18894. #
  18895. ########
  18896. ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
  18897. #include <unistd.h>
  18898. "
  18899. if test "x$ac_cv_have_decl_pread" = xyes; then :
  18900. ac_have_decl=1
  18901. else
  18902. ac_have_decl=0
  18903. fi
  18904. cat >>confdefs.h <<_ACEOF
  18905. #define HAVE_DECL_PREAD $ac_have_decl
  18906. _ACEOF
  18907. ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
  18908. #include <unistd.h>
  18909. "
  18910. if test "x$ac_cv_have_decl_pwrite" = xyes; then :
  18911. ac_have_decl=1
  18912. else
  18913. ac_have_decl=0
  18914. fi
  18915. cat >>confdefs.h <<_ACEOF
  18916. #define HAVE_DECL_PWRITE $ac_have_decl
  18917. _ACEOF
  18918. ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
  18919. #include <strings.h>
  18920. "
  18921. if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
  18922. ac_have_decl=1
  18923. else
  18924. ac_have_decl=0
  18925. fi
  18926. cat >>confdefs.h <<_ACEOF
  18927. #define HAVE_DECL_STRLCPY $ac_have_decl
  18928. _ACEOF
  18929. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
  18930. #include <stdio.h>
  18931. #include <stdarg.h>
  18932. "
  18933. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  18934. ac_have_decl=1
  18935. else
  18936. ac_have_decl=0
  18937. fi
  18938. cat >>confdefs.h <<_ACEOF
  18939. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  18940. _ACEOF
  18941. #######
  18942. #
  18943. # Check for /dev/urandom device
  18944. #
  18945. #######
  18946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
  18947. $as_echo_n "checking for /dev/urandom... " >&6; }
  18948. if ${gm_cv_dev_urandom+:} false; then :
  18949. $as_echo_n "(cached) " >&6
  18950. else
  18951. gm_cv_dev_urandom=no
  18952. if test -c /dev/urandom
  18953. then
  18954. gm_cv_dev_urandom=yes
  18955. fi
  18956. fi
  18957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gm_cv_dev_urandom" >&5
  18958. $as_echo "$gm_cv_dev_urandom" >&6; }
  18959. if test "${gm_cv_dev_urandom}" = yes
  18960. then
  18961. $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
  18962. fi
  18963. ########
  18964. #
  18965. # Try to find a command which reports usable physical memory
  18966. #
  18967. ########
  18968. MAGICK_PHYSICAL_MEMORY_COMMAND=''
  18969. case "${host}" in
  18970. *-*-freebsd* | *-apple-darwin*)
  18971. # Extract the first word of "sysctl", so it can be a program name with args.
  18972. set dummy sysctl; ac_word=$2
  18973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18974. $as_echo_n "checking for $ac_word... " >&6; }
  18975. if ${ac_cv_path_SysCtlDelegate+:} false; then :
  18976. $as_echo_n "(cached) " >&6
  18977. else
  18978. case $SysCtlDelegate in
  18979. [\\/]* | ?:[\\/]*)
  18980. ac_cv_path_SysCtlDelegate="$SysCtlDelegate" # Let the user override the test with a path.
  18981. ;;
  18982. *)
  18983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18984. for as_dir in $PATH
  18985. do
  18986. IFS=$as_save_IFS
  18987. test -z "$as_dir" && as_dir=.
  18988. for ac_exec_ext in '' $ac_executable_extensions; do
  18989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18990. ac_cv_path_SysCtlDelegate="$as_dir/$ac_word$ac_exec_ext"
  18991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18992. break 2
  18993. fi
  18994. done
  18995. done
  18996. IFS=$as_save_IFS
  18997. ;;
  18998. esac
  18999. fi
  19000. SysCtlDelegate=$ac_cv_path_SysCtlDelegate
  19001. if test -n "$SysCtlDelegate"; then
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SysCtlDelegate" >&5
  19003. $as_echo "$SysCtlDelegate" >&6; }
  19004. else
  19005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19006. $as_echo "no" >&6; }
  19007. fi
  19008. if test "${SysCtlDelegate}X" != 'X'
  19009. then
  19010. # "sysctl -n hw.physmem" became available in FreeBSD 2.0
  19011. # Apple's Darwin is based on FreeBSD and supports sysctl
  19012. MAGICK_PHYSICAL_MEMORY_COMMAND="${SysCtlDelegate} -n hw.physmem"
  19013. fi
  19014. ;;
  19015. esac
  19016. if test "${MAGICK_PHYSICAL_MEMORY_COMMAND}X" != 'X'
  19017. then
  19018. cat >>confdefs.h <<_ACEOF
  19019. #define MAGICK_PHYSICAL_MEMORY_COMMAND "${MAGICK_PHYSICAL_MEMORY_COMMAND}"
  19020. _ACEOF
  19021. fi
  19022. ########
  19023. #
  19024. # C++ Support Tests (For Magick++)
  19025. #
  19026. ########
  19027. have_magick_plus_plus='no'
  19028. if test "$with_magick_plus_plus" = 'yes'
  19029. then
  19030. OLIBS="$LIBS"
  19031. LIBS=''
  19032. ac_ext=cpp
  19033. ac_cpp='$CXXCPP $CPPFLAGS'
  19034. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19035. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19036. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19037. # Full set of headers used ...
  19038. # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
  19039. # functional iomanip iosfwd iostream iterator list string strstream utility
  19040. ac_ext=cpp
  19041. ac_cpp='$CXXCPP $CPPFLAGS'
  19042. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19043. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19044. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19045. ac_ext=cpp
  19046. ac_cpp='$CXXCPP $CPPFLAGS'
  19047. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19048. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19049. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19050. if test -z "$CXX"; then
  19051. if test -n "$CCC"; then
  19052. CXX=$CCC
  19053. else
  19054. if test -n "$ac_tool_prefix"; then
  19055. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  19056. do
  19057. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19058. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19060. $as_echo_n "checking for $ac_word... " >&6; }
  19061. if ${ac_cv_prog_CXX+:} false; then :
  19062. $as_echo_n "(cached) " >&6
  19063. else
  19064. if test -n "$CXX"; then
  19065. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  19066. else
  19067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19068. for as_dir in $PATH
  19069. do
  19070. IFS=$as_save_IFS
  19071. test -z "$as_dir" && as_dir=.
  19072. for ac_exec_ext in '' $ac_executable_extensions; do
  19073. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19074. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  19075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19076. break 2
  19077. fi
  19078. done
  19079. done
  19080. IFS=$as_save_IFS
  19081. fi
  19082. fi
  19083. CXX=$ac_cv_prog_CXX
  19084. if test -n "$CXX"; then
  19085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  19086. $as_echo "$CXX" >&6; }
  19087. else
  19088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19089. $as_echo "no" >&6; }
  19090. fi
  19091. test -n "$CXX" && break
  19092. done
  19093. fi
  19094. if test -z "$CXX"; then
  19095. ac_ct_CXX=$CXX
  19096. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  19097. do
  19098. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19099. set dummy $ac_prog; ac_word=$2
  19100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19101. $as_echo_n "checking for $ac_word... " >&6; }
  19102. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  19103. $as_echo_n "(cached) " >&6
  19104. else
  19105. if test -n "$ac_ct_CXX"; then
  19106. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  19107. else
  19108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19109. for as_dir in $PATH
  19110. do
  19111. IFS=$as_save_IFS
  19112. test -z "$as_dir" && as_dir=.
  19113. for ac_exec_ext in '' $ac_executable_extensions; do
  19114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19115. ac_cv_prog_ac_ct_CXX="$ac_prog"
  19116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19117. break 2
  19118. fi
  19119. done
  19120. done
  19121. IFS=$as_save_IFS
  19122. fi
  19123. fi
  19124. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  19125. if test -n "$ac_ct_CXX"; then
  19126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  19127. $as_echo "$ac_ct_CXX" >&6; }
  19128. else
  19129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19130. $as_echo "no" >&6; }
  19131. fi
  19132. test -n "$ac_ct_CXX" && break
  19133. done
  19134. if test "x$ac_ct_CXX" = x; then
  19135. CXX="g++"
  19136. else
  19137. case $cross_compiling:$ac_tool_warned in
  19138. yes:)
  19139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19140. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19141. ac_tool_warned=yes ;;
  19142. esac
  19143. CXX=$ac_ct_CXX
  19144. fi
  19145. fi
  19146. fi
  19147. fi
  19148. # Provide some information about the compiler.
  19149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  19150. set X $ac_compile
  19151. ac_compiler=$2
  19152. for ac_option in --version -v -V -qversion; do
  19153. { { ac_try="$ac_compiler $ac_option >&5"
  19154. case "(($ac_try" in
  19155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19156. *) ac_try_echo=$ac_try;;
  19157. esac
  19158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19159. $as_echo "$ac_try_echo"; } >&5
  19160. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  19161. ac_status=$?
  19162. if test -s conftest.err; then
  19163. sed '10a\
  19164. ... rest of stderr output deleted ...
  19165. 10q' conftest.err >conftest.er1
  19166. cat conftest.er1 >&5
  19167. fi
  19168. rm -f conftest.er1 conftest.err
  19169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19170. test $ac_status = 0; }
  19171. done
  19172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  19173. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  19174. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  19175. $as_echo_n "(cached) " >&6
  19176. else
  19177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19178. /* end confdefs.h. */
  19179. int
  19180. main ()
  19181. {
  19182. #ifndef __GNUC__
  19183. choke me
  19184. #endif
  19185. ;
  19186. return 0;
  19187. }
  19188. _ACEOF
  19189. if ac_fn_cxx_try_compile "$LINENO"; then :
  19190. ac_compiler_gnu=yes
  19191. else
  19192. ac_compiler_gnu=no
  19193. fi
  19194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19195. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  19196. fi
  19197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  19198. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  19199. if test $ac_compiler_gnu = yes; then
  19200. GXX=yes
  19201. else
  19202. GXX=
  19203. fi
  19204. ac_test_CXXFLAGS=${CXXFLAGS+set}
  19205. ac_save_CXXFLAGS=$CXXFLAGS
  19206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  19207. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  19208. if ${ac_cv_prog_cxx_g+:} false; then :
  19209. $as_echo_n "(cached) " >&6
  19210. else
  19211. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  19212. ac_cxx_werror_flag=yes
  19213. ac_cv_prog_cxx_g=no
  19214. CXXFLAGS="-g"
  19215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19216. /* end confdefs.h. */
  19217. int
  19218. main ()
  19219. {
  19220. ;
  19221. return 0;
  19222. }
  19223. _ACEOF
  19224. if ac_fn_cxx_try_compile "$LINENO"; then :
  19225. ac_cv_prog_cxx_g=yes
  19226. else
  19227. CXXFLAGS=""
  19228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19229. /* end confdefs.h. */
  19230. int
  19231. main ()
  19232. {
  19233. ;
  19234. return 0;
  19235. }
  19236. _ACEOF
  19237. if ac_fn_cxx_try_compile "$LINENO"; then :
  19238. else
  19239. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  19240. CXXFLAGS="-g"
  19241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19242. /* end confdefs.h. */
  19243. int
  19244. main ()
  19245. {
  19246. ;
  19247. return 0;
  19248. }
  19249. _ACEOF
  19250. if ac_fn_cxx_try_compile "$LINENO"; then :
  19251. ac_cv_prog_cxx_g=yes
  19252. fi
  19253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19254. fi
  19255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19256. fi
  19257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19258. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  19259. fi
  19260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  19261. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  19262. if test "$ac_test_CXXFLAGS" = set; then
  19263. CXXFLAGS=$ac_save_CXXFLAGS
  19264. elif test $ac_cv_prog_cxx_g = yes; then
  19265. if test "$GXX" = yes; then
  19266. CXXFLAGS="-g -O2"
  19267. else
  19268. CXXFLAGS="-g"
  19269. fi
  19270. else
  19271. if test "$GXX" = yes; then
  19272. CXXFLAGS="-O2"
  19273. else
  19274. CXXFLAGS=
  19275. fi
  19276. fi
  19277. ac_ext=cpp
  19278. ac_cpp='$CXXCPP $CPPFLAGS'
  19279. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19280. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19281. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19282. depcc="$CXX" am_compiler_list=
  19283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  19284. $as_echo_n "checking dependency style of $depcc... " >&6; }
  19285. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  19286. $as_echo_n "(cached) " >&6
  19287. else
  19288. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  19289. # We make a subdir and do the tests there. Otherwise we can end up
  19290. # making bogus files that we don't know about and never remove. For
  19291. # instance it was reported that on HP-UX the gcc test will end up
  19292. # making a dummy file named `D' -- because `-MD' means `put the output
  19293. # in D'.
  19294. rm -rf conftest.dir
  19295. mkdir conftest.dir
  19296. # Copy depcomp to subdir because otherwise we won't find it if we're
  19297. # using a relative directory.
  19298. cp "$am_depcomp" conftest.dir
  19299. cd conftest.dir
  19300. # We will build objects and dependencies in a subdirectory because
  19301. # it helps to detect inapplicable dependency modes. For instance
  19302. # both Tru64's cc and ICC support -MD to output dependencies as a
  19303. # side effect of compilation, but ICC will put the dependencies in
  19304. # the current directory while Tru64 will put them in the object
  19305. # directory.
  19306. mkdir sub
  19307. am_cv_CXX_dependencies_compiler_type=none
  19308. if test "$am_compiler_list" = ""; then
  19309. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  19310. fi
  19311. am__universal=false
  19312. case " $depcc " in #(
  19313. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  19314. esac
  19315. for depmode in $am_compiler_list; do
  19316. # Setup a source with many dependencies, because some compilers
  19317. # like to wrap large dependency lists on column 80 (with \), and
  19318. # we should not choose a depcomp mode which is confused by this.
  19319. #
  19320. # We need to recreate these files for each test, as the compiler may
  19321. # overwrite some of them when testing with obscure command lines.
  19322. # This happens at least with the AIX C compiler.
  19323. : > sub/conftest.c
  19324. for i in 1 2 3 4 5 6; do
  19325. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  19326. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  19327. # Solaris 8's {/usr,}/bin/sh.
  19328. touch sub/conftst$i.h
  19329. done
  19330. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  19331. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  19332. # mode. It turns out that the SunPro C++ compiler does not properly
  19333. # handle `-M -o', and we need to detect this. Also, some Intel
  19334. # versions had trouble with output in subdirs
  19335. am__obj=sub/conftest.${OBJEXT-o}
  19336. am__minus_obj="-o $am__obj"
  19337. case $depmode in
  19338. gcc)
  19339. # This depmode causes a compiler race in universal mode.
  19340. test "$am__universal" = false || continue
  19341. ;;
  19342. nosideeffect)
  19343. # after this tag, mechanisms are not by side-effect, so they'll
  19344. # only be used when explicitly requested
  19345. if test "x$enable_dependency_tracking" = xyes; then
  19346. continue
  19347. else
  19348. break
  19349. fi
  19350. ;;
  19351. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  19352. # This compiler won't grok `-c -o', but also, the minuso test has
  19353. # not run yet. These depmodes are late enough in the game, and
  19354. # so weak that their functioning should not be impacted.
  19355. am__obj=conftest.${OBJEXT-o}
  19356. am__minus_obj=
  19357. ;;
  19358. none) break ;;
  19359. esac
  19360. if depmode=$depmode \
  19361. source=sub/conftest.c object=$am__obj \
  19362. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  19363. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  19364. >/dev/null 2>conftest.err &&
  19365. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  19366. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  19367. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  19368. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  19369. # icc doesn't choke on unknown options, it will just issue warnings
  19370. # or remarks (even with -Werror). So we grep stderr for any message
  19371. # that says an option was ignored or not supported.
  19372. # When given -MP, icc 7.0 and 7.1 complain thusly:
  19373. # icc: Command line warning: ignoring option '-M'; no argument required
  19374. # The diagnosis changed in icc 8.0:
  19375. # icc: Command line remark: option '-MP' not supported
  19376. if (grep 'ignoring option' conftest.err ||
  19377. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  19378. am_cv_CXX_dependencies_compiler_type=$depmode
  19379. break
  19380. fi
  19381. fi
  19382. done
  19383. cd ..
  19384. rm -rf conftest.dir
  19385. else
  19386. am_cv_CXX_dependencies_compiler_type=none
  19387. fi
  19388. fi
  19389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  19390. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  19391. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  19392. if
  19393. test "x$enable_dependency_tracking" != xno \
  19394. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  19395. am__fastdepCXX_TRUE=
  19396. am__fastdepCXX_FALSE='#'
  19397. else
  19398. am__fastdepCXX_TRUE='#'
  19399. am__fastdepCXX_FALSE=
  19400. fi
  19401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
  19402. $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
  19403. if ${ac_cv_cxx_bool+:} false; then :
  19404. $as_echo_n "(cached) " >&6
  19405. else
  19406. ac_ext=cpp
  19407. ac_cpp='$CXXCPP $CPPFLAGS'
  19408. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19409. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19410. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19412. /* end confdefs.h. */
  19413. int f(int x){return 1;}
  19414. int f(char x){return 1;}
  19415. int f(bool x){return 1;}
  19416. int
  19417. main ()
  19418. {
  19419. bool b = true; return f(b);
  19420. ;
  19421. return 0;
  19422. }
  19423. _ACEOF
  19424. if ac_fn_cxx_try_compile "$LINENO"; then :
  19425. ac_cv_cxx_bool=yes
  19426. else
  19427. ac_cv_cxx_bool=no
  19428. fi
  19429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19430. ac_ext=cpp
  19431. ac_cpp='$CXXCPP $CPPFLAGS'
  19432. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19433. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19434. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19435. fi
  19436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5
  19437. $as_echo "$ac_cv_cxx_bool" >&6; }
  19438. if test "$ac_cv_cxx_bool" = yes; then
  19439. $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
  19440. fi
  19441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports const_cast<>" >&5
  19442. $as_echo_n "checking whether the compiler supports const_cast<>... " >&6; }
  19443. if ${ac_cv_cxx_const_cast+:} false; then :
  19444. $as_echo_n "(cached) " >&6
  19445. else
  19446. ac_ext=cpp
  19447. ac_cpp='$CXXCPP $CPPFLAGS'
  19448. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19449. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19450. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19452. /* end confdefs.h. */
  19453. int
  19454. main ()
  19455. {
  19456. int x = 0;
  19457. const int& y = x;
  19458. int& z = const_cast<int&>(y);
  19459. return z;
  19460. ;
  19461. return 0;
  19462. }
  19463. _ACEOF
  19464. if ac_fn_cxx_try_compile "$LINENO"; then :
  19465. ac_cv_cxx_const_cast=yes
  19466. else
  19467. ac_cv_cxx_const_cast=no
  19468. fi
  19469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19470. ac_ext=cpp
  19471. ac_cpp='$CXXCPP $CPPFLAGS'
  19472. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19473. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19474. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19475. fi
  19476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_const_cast" >&5
  19477. $as_echo "$ac_cv_cxx_const_cast" >&6; }
  19478. if test "$ac_cv_cxx_const_cast" = yes; then
  19479. $as_echo "#define HAVE_CONST_CAST /**/" >>confdefs.h
  19480. fi
  19481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports default template parameters" >&5
  19482. $as_echo_n "checking whether the compiler supports default template parameters... " >&6; }
  19483. if ${ac_cv_cxx_default_template_parameters+:} false; then :
  19484. $as_echo_n "(cached) " >&6
  19485. else
  19486. ac_ext=cpp
  19487. ac_cpp='$CXXCPP $CPPFLAGS'
  19488. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19489. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19490. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19492. /* end confdefs.h. */
  19493. template<class T = double, int N = 10> class A {public: int f() {return 0;}};
  19494. int
  19495. main ()
  19496. {
  19497. A<float> a; return a.f();
  19498. ;
  19499. return 0;
  19500. }
  19501. _ACEOF
  19502. if ac_fn_cxx_try_compile "$LINENO"; then :
  19503. ac_cv_cxx_default_template_parameters=yes
  19504. else
  19505. ac_cv_cxx_default_template_parameters=no
  19506. fi
  19507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19508. ac_ext=cpp
  19509. ac_cpp='$CXXCPP $CPPFLAGS'
  19510. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19511. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19512. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19513. fi
  19514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_default_template_parameters" >&5
  19515. $as_echo "$ac_cv_cxx_default_template_parameters" >&6; }
  19516. if test "$ac_cv_cxx_default_template_parameters" = yes; then
  19517. $as_echo "#define HAVE_DEFAULT_TEMPLATE_PARAMETERS /**/" >>confdefs.h
  19518. fi
  19519. rm -rf SunWS_cache
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5
  19521. $as_echo_n "checking whether the compiler supports exceptions... " >&6; }
  19522. if ${ac_cv_cxx_exceptions+:} false; then :
  19523. $as_echo_n "(cached) " >&6
  19524. else
  19525. ac_ext=cpp
  19526. ac_cpp='$CXXCPP $CPPFLAGS'
  19527. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19528. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19529. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19531. /* end confdefs.h. */
  19532. int
  19533. main ()
  19534. {
  19535. try { throw 1; } catch (int i) { return i; }
  19536. ;
  19537. return 0;
  19538. }
  19539. _ACEOF
  19540. if ac_fn_cxx_try_compile "$LINENO"; then :
  19541. ac_cv_cxx_exceptions=yes
  19542. else
  19543. ac_cv_cxx_exceptions=no
  19544. fi
  19545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19546. ac_ext=cpp
  19547. ac_cpp='$CXXCPP $CPPFLAGS'
  19548. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19549. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19550. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19551. fi
  19552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exceptions" >&5
  19553. $as_echo "$ac_cv_cxx_exceptions" >&6; }
  19554. if test "$ac_cv_cxx_exceptions" = yes; then
  19555. $as_echo "#define HAVE_EXCEPTIONS /**/" >>confdefs.h
  19556. fi
  19557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
  19558. $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
  19559. if ${ac_cv_cxx_namespaces+:} false; then :
  19560. $as_echo_n "(cached) " >&6
  19561. else
  19562. ac_ext=cpp
  19563. ac_cpp='$CXXCPP $CPPFLAGS'
  19564. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19565. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19566. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19568. /* end confdefs.h. */
  19569. namespace Outer { namespace Inner { int i = 0; }}
  19570. int
  19571. main ()
  19572. {
  19573. using namespace Outer::Inner; return i;
  19574. ;
  19575. return 0;
  19576. }
  19577. _ACEOF
  19578. if ac_fn_cxx_try_compile "$LINENO"; then :
  19579. ac_cv_cxx_namespaces=yes
  19580. else
  19581. ac_cv_cxx_namespaces=no
  19582. fi
  19583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19584. ac_ext=cpp
  19585. ac_cpp='$CXXCPP $CPPFLAGS'
  19586. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19587. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19588. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19589. fi
  19590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
  19591. $as_echo "$ac_cv_cxx_namespaces" >&6; }
  19592. if test "$ac_cv_cxx_namespaces" = yes; then
  19593. $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
  19594. fi
  19595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the explicit keyword" >&5
  19596. $as_echo_n "checking whether the compiler supports the explicit keyword... " >&6; }
  19597. if ${ac_cv_cxx_explicit+:} false; then :
  19598. $as_echo_n "(cached) " >&6
  19599. else
  19600. ac_ext=cpp
  19601. ac_cpp='$CXXCPP $CPPFLAGS'
  19602. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19603. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19604. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19606. /* end confdefs.h. */
  19607. class A{public:explicit A(double){}};
  19608. int
  19609. main ()
  19610. {
  19611. double c = 5.0;A x(c);return 0;
  19612. ;
  19613. return 0;
  19614. }
  19615. _ACEOF
  19616. if ac_fn_cxx_try_compile "$LINENO"; then :
  19617. ac_cv_cxx_explicit=yes
  19618. else
  19619. ac_cv_cxx_explicit=no
  19620. fi
  19621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19622. ac_ext=cpp
  19623. ac_cpp='$CXXCPP $CPPFLAGS'
  19624. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19625. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19626. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19627. fi
  19628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_explicit" >&5
  19629. $as_echo "$ac_cv_cxx_explicit" >&6; }
  19630. if test "$ac_cv_cxx_explicit" = yes; then
  19631. $as_echo "#define HAVE_EXPLICIT /**/" >>confdefs.h
  19632. fi
  19633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
  19634. $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
  19635. if ${ac_cv_cxx_have_std+:} false; then :
  19636. $as_echo_n "(cached) " >&6
  19637. else
  19638. ac_ext=cpp
  19639. ac_cpp='$CXXCPP $CPPFLAGS'
  19640. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19641. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19642. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19644. /* end confdefs.h. */
  19645. #include <iostream>
  19646. #include <map>
  19647. #include <iomanip>
  19648. #ifdef HAVE_NAMESPACES
  19649. using namespace std;
  19650. #endif
  19651. int
  19652. main ()
  19653. {
  19654. return 0;
  19655. ;
  19656. return 0;
  19657. }
  19658. _ACEOF
  19659. if ac_fn_cxx_try_compile "$LINENO"; then :
  19660. ac_cv_cxx_have_std=yes
  19661. else
  19662. ac_cv_cxx_have_std=no
  19663. fi
  19664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19665. ac_ext=cpp
  19666. ac_cpp='$CXXCPP $CPPFLAGS'
  19667. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19668. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19669. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19670. fi
  19671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std" >&5
  19672. $as_echo "$ac_cv_cxx_have_std" >&6; }
  19673. if test "$ac_cv_cxx_have_std" = yes; then
  19674. $as_echo "#define HAVE_STD /**/" >>confdefs.h
  19675. fi
  19676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports Standard Template Library" >&5
  19677. $as_echo_n "checking whether the compiler supports Standard Template Library... " >&6; }
  19678. if ${ac_cv_cxx_have_stl+:} false; then :
  19679. $as_echo_n "(cached) " >&6
  19680. else
  19681. ac_ext=cpp
  19682. ac_cpp='$CXXCPP $CPPFLAGS'
  19683. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19684. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19685. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19687. /* end confdefs.h. */
  19688. #include <list>
  19689. #include <deque>
  19690. #ifdef HAVE_NAMESPACES
  19691. using namespace std;
  19692. #endif
  19693. int
  19694. main ()
  19695. {
  19696. list<int> x; x.push_back(5);
  19697. list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
  19698. ;
  19699. return 0;
  19700. }
  19701. _ACEOF
  19702. if ac_fn_cxx_try_compile "$LINENO"; then :
  19703. ac_cv_cxx_have_stl=yes
  19704. else
  19705. ac_cv_cxx_have_stl=no
  19706. fi
  19707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19708. ac_ext=cpp
  19709. ac_cpp='$CXXCPP $CPPFLAGS'
  19710. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19711. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19712. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19713. fi
  19714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5
  19715. $as_echo "$ac_cv_cxx_have_stl" >&6; }
  19716. if test "$ac_cv_cxx_have_stl" = yes; then
  19717. $as_echo "#define HAVE_STL /**/" >>confdefs.h
  19718. fi
  19719. rm -rf SunWS_cache
  19720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ios::binary" >&5
  19721. $as_echo_n "checking whether the compiler supports ios::binary... " >&6; }
  19722. if ${ac_cv_cxx_ios_binary+:} false; then :
  19723. $as_echo_n "(cached) " >&6
  19724. else
  19725. ac_ext=cpp
  19726. ac_cpp='$CXXCPP $CPPFLAGS'
  19727. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19728. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19729. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19731. /* end confdefs.h. */
  19732. #include <fstream>
  19733. #ifdef HAVE_NAMESPACES
  19734. using namespace std;
  19735. #endif
  19736. int
  19737. main ()
  19738. {
  19739. ifstream in( "/dev/null", ios::binary );
  19740. ;
  19741. return 0;
  19742. }
  19743. _ACEOF
  19744. if ac_fn_cxx_try_compile "$LINENO"; then :
  19745. ac_cv_cxx_ios_binary=yes
  19746. else
  19747. ac_cv_cxx_ios_binary=no
  19748. fi
  19749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19750. ac_ext=cpp
  19751. ac_cpp='$CXXCPP $CPPFLAGS'
  19752. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19753. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19754. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19755. fi
  19756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_ios_binary" >&5
  19757. $as_echo "$ac_cv_cxx_ios_binary" >&6; }
  19758. if test "$ac_cv_cxx_ios_binary" = no; then
  19759. $as_echo "#define MISSING_STD_IOS_BINARY /**/" >>confdefs.h
  19760. fi
  19761. rm -rf SunWS_cache
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the mutable keyword" >&5
  19763. $as_echo_n "checking whether the compiler supports the mutable keyword... " >&6; }
  19764. if ${ac_cv_cxx_mutable+:} false; then :
  19765. $as_echo_n "(cached) " >&6
  19766. else
  19767. ac_ext=cpp
  19768. ac_cpp='$CXXCPP $CPPFLAGS'
  19769. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19770. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19771. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19773. /* end confdefs.h. */
  19774. class A { mutable int i;
  19775. public:
  19776. int f (int n) const { i = n; return i; }
  19777. };
  19778. int
  19779. main ()
  19780. {
  19781. A a; return a.f (1);
  19782. ;
  19783. return 0;
  19784. }
  19785. _ACEOF
  19786. if ac_fn_cxx_try_compile "$LINENO"; then :
  19787. ac_cv_cxx_mutable=yes
  19788. else
  19789. ac_cv_cxx_mutable=no
  19790. fi
  19791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19792. ac_ext=cpp
  19793. ac_cpp='$CXXCPP $CPPFLAGS'
  19794. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19795. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19796. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19797. fi
  19798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_mutable" >&5
  19799. $as_echo "$ac_cv_cxx_mutable" >&6; }
  19800. if test "$ac_cv_cxx_mutable" = yes; then
  19801. $as_echo "#define HAVE_MUTABLE /**/" >>confdefs.h
  19802. fi
  19803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts the new for scoping rules" >&5
  19804. $as_echo_n "checking whether the compiler accepts the new for scoping rules... " >&6; }
  19805. if ${ac_cv_cxx_new_for_scoping+:} false; then :
  19806. $as_echo_n "(cached) " >&6
  19807. else
  19808. ac_ext=cpp
  19809. ac_cpp='$CXXCPP $CPPFLAGS'
  19810. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19811. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19812. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19814. /* end confdefs.h. */
  19815. int
  19816. main ()
  19817. {
  19818. int z = 0;
  19819. for (int i = 0; i < 10; ++i)
  19820. z = z + i;
  19821. for (int i = 0; i < 10; ++i)
  19822. z = z - i;
  19823. return z;
  19824. ;
  19825. return 0;
  19826. }
  19827. _ACEOF
  19828. if ac_fn_cxx_try_compile "$LINENO"; then :
  19829. ac_cv_cxx_new_for_scoping=yes
  19830. else
  19831. ac_cv_cxx_new_for_scoping=no
  19832. fi
  19833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19834. ac_ext=cpp
  19835. ac_cpp='$CXXCPP $CPPFLAGS'
  19836. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19837. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19838. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19839. fi
  19840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_new_for_scoping" >&5
  19841. $as_echo "$ac_cv_cxx_new_for_scoping" >&6; }
  19842. if test "$ac_cv_cxx_new_for_scoping" = yes; then
  19843. $as_echo "#define HAVE_NEW_FOR_SCOPING /**/" >>confdefs.h
  19844. fi
  19845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports static_cast<>" >&5
  19846. $as_echo_n "checking whether the compiler supports static_cast<>... " >&6; }
  19847. if ${ac_cv_cxx_static_cast+:} false; then :
  19848. $as_echo_n "(cached) " >&6
  19849. else
  19850. ac_ext=cpp
  19851. ac_cpp='$CXXCPP $CPPFLAGS'
  19852. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19853. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19854. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19856. /* end confdefs.h. */
  19857. #include <typeinfo>
  19858. class Base { public : Base () {} virtual void f () = 0; };
  19859. class Derived : public Base { public : Derived () {} virtual void f () {} };
  19860. int g (Derived&) { return 0; }
  19861. int
  19862. main ()
  19863. {
  19864. Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
  19865. ;
  19866. return 0;
  19867. }
  19868. _ACEOF
  19869. if ac_fn_cxx_try_compile "$LINENO"; then :
  19870. ac_cv_cxx_static_cast=yes
  19871. else
  19872. ac_cv_cxx_static_cast=no
  19873. fi
  19874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19875. ac_ext=cpp
  19876. ac_cpp='$CXXCPP $CPPFLAGS'
  19877. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19878. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19879. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19880. fi
  19881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_cast" >&5
  19882. $as_echo "$ac_cv_cxx_static_cast" >&6; }
  19883. if test "$ac_cv_cxx_static_cast" = yes; then
  19884. $as_echo "#define HAVE_STATIC_CAST /**/" >>confdefs.h
  19885. fi
  19886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports basic templates" >&5
  19887. $as_echo_n "checking whether the compiler supports basic templates... " >&6; }
  19888. if ${ac_cv_cxx_templates+:} false; then :
  19889. $as_echo_n "(cached) " >&6
  19890. else
  19891. ac_ext=cpp
  19892. ac_cpp='$CXXCPP $CPPFLAGS'
  19893. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19894. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19895. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19897. /* end confdefs.h. */
  19898. template<class T> class A {public:A(){}};
  19899. template<class T> void f(const A<T>& ){}
  19900. int
  19901. main ()
  19902. {
  19903. A<double> d; A<int> i; f(d); f(i); return 0;
  19904. ;
  19905. return 0;
  19906. }
  19907. _ACEOF
  19908. if ac_fn_cxx_try_compile "$LINENO"; then :
  19909. ac_cv_cxx_templates=yes
  19910. else
  19911. ac_cv_cxx_templates=no
  19912. fi
  19913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19914. ac_ext=cpp
  19915. ac_cpp='$CXXCPP $CPPFLAGS'
  19916. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19917. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19918. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19919. fi
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_templates" >&5
  19921. $as_echo "$ac_cv_cxx_templates" >&6; }
  19922. if test "$ac_cv_cxx_templates" = yes; then
  19923. $as_echo "#define HAVE_TEMPLATES /**/" >>confdefs.h
  19924. fi
  19925. rm -rf SunWS_cache
  19926. # Test for C++ compiler __func__ support
  19927. if test "$ac_cv_have_CPP__func__" != 'yes' ; then
  19928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler __func__ support" >&5
  19929. $as_echo_n "checking for C++ compiler __func__ support... " >&6; }
  19930. if ${ac_cv_have_CPP__func__+:} false; then :
  19931. $as_echo_n "(cached) " >&6
  19932. else
  19933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19934. /* end confdefs.h. */
  19935. int
  19936. main ()
  19937. {
  19938. const char *func=__func__;
  19939. return (func != 0 ? 0 : 1);
  19940. ;
  19941. return 0;
  19942. }
  19943. _ACEOF
  19944. if ac_fn_cxx_try_compile "$LINENO"; then :
  19945. ac_cv_have_CPP__func__='yes'
  19946. else
  19947. ac_cv_have_CPP__func__='no'
  19948. fi
  19949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19950. fi
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_CPP__func__" >&5
  19952. $as_echo "$ac_cv_have_CPP__func__" >&6; }
  19953. if test "$ac_cv_have_CPP__func__" = 'yes' ; then
  19954. $as_echo "#define HAS_CPP__func__ 1" >>confdefs.h
  19955. fi
  19956. fi
  19957. ac_ext=c
  19958. ac_cpp='$CPP $CPPFLAGS'
  19959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
  19963. $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
  19964. if \
  19965. test $ac_cv_cxx_bool = 'yes' && \
  19966. test $ac_cv_cxx_const_cast = 'yes' &&
  19967. test $ac_cv_cxx_default_template_parameters = 'yes' &&
  19968. test $ac_cv_cxx_exceptions = 'yes' && \
  19969. test $ac_cv_cxx_explicit = 'yes' && \
  19970. test $ac_cv_cxx_have_std = 'yes' && \
  19971. test $ac_cv_cxx_have_stl = 'yes' && \
  19972. test $ac_cv_cxx_mutable = 'yes' && \
  19973. test $ac_cv_cxx_namespaces = 'yes' && \
  19974. test $ac_cv_cxx_new_for_scoping = 'yes' && \
  19975. test $ac_cv_cxx_static_cast = 'yes' && \
  19976. test $ac_cv_cxx_templates = 'yes'
  19977. then
  19978. have_magick_plus_plus='yes'
  19979. else
  19980. have_magick_plus_plus='no (failed tests)'
  19981. fi
  19982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
  19983. $as_echo "$have_magick_plus_plus" >&6; }
  19984. LIBS="$OLIBS"
  19985. fi
  19986. if test "$have_magick_plus_plus" = 'yes'; then
  19987. WITH_MAGICK_PLUS_PLUS_TRUE=
  19988. WITH_MAGICK_PLUS_PLUS_FALSE='#'
  19989. else
  19990. WITH_MAGICK_PLUS_PLUS_TRUE='#'
  19991. WITH_MAGICK_PLUS_PLUS_FALSE=
  19992. fi
  19993. # Assume that delegate headers and libraries may reside under same
  19994. # directory as GraphicsMagick installation prefix.
  19995. #LDFLAGS="$LDFLAGS -L$LIB_DIR"
  19996. #CPPFLAGS="$CPPFLAGS -I$INCLUDE_DIR"
  19997. MAGICK_API_CPPFLAGS="-I$INCLUDE_DIR/GraphicsMagick $MAGICK_API_CPPFLAGS"
  19998. #
  19999. # Find the X11 RGB database
  20000. #
  20001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
  20002. $as_echo_n "checking for X11 configure files... " >&6; }
  20003. if ${gm_cv_x_configure+:} false; then :
  20004. $as_echo_n "(cached) " >&6
  20005. else
  20006. # Look for the header file in a standard set of common directories.
  20007. # Check X11 before X11Rn because it is often a symlink to the current release.
  20008. for ac_dir in \
  20009. /lib/usr/lib/X11 \
  20010. /usr/X11/lib \
  20011. /usr/X11R4/lib \
  20012. /usr/X11R5/lib \
  20013. /usr/X11R6/lib \
  20014. /usr/X11R7/lib \
  20015. /usr/X386/lib \
  20016. /usr/XFree86/lib/X11 \
  20017. /usr/athena/lib \
  20018. /usr/lib \
  20019. /usr/lib/X11 \
  20020. /usr/lib/X11R4 \
  20021. /usr/lib/X11R5 \
  20022. /usr/lib/X11R6 \
  20023. /usr/lib/X11R7 \
  20024. /usr/local/X11/lib \
  20025. /usr/local/X11R4/lib \
  20026. /usr/local/X11R5/lib \
  20027. /usr/local/X11R6/lib \
  20028. /usr/local/X11R7/lib \
  20029. /usr/local/lib \
  20030. /usr/local/lib/X11 \
  20031. /usr/local/lib/X11R4 \
  20032. /usr/local/lib/X11R5 \
  20033. /usr/local/lib/X11R6 \
  20034. /usr/local/lib/X11R7 \
  20035. /usr/local/x11r5/lib \
  20036. /usr/lpp/Xamples/lib \
  20037. /usr/openwin/lib \
  20038. /usr/openwin/share/lib \
  20039. /usr/unsupported/lib \
  20040. /usr/x386/lib \
  20041. ; \
  20042. do
  20043. if test -f "$ac_dir/X11/rgb.txt"
  20044. then
  20045. gm_cv_x_configure="$ac_dir/X11/"
  20046. break
  20047. elif test -f "$ac_dir/rgb.txt"
  20048. then
  20049. gm_cv_x_configure="$ac_dir/"
  20050. break
  20051. fi
  20052. done
  20053. fi
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gm_cv_x_configure" >&5
  20055. $as_echo "$gm_cv_x_configure" >&6; }
  20056. X11ConfigurePath="$gm_cv_x_configure"
  20057. case "${build_os}" in
  20058. mingw* )
  20059. X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
  20060. ;;
  20061. esac
  20062. cat >>confdefs.h <<_ACEOF
  20063. #define X11ConfigurePath "X11ConfigurePath"
  20064. _ACEOF
  20065. #
  20066. # Find Posix threads library
  20067. #
  20068. LIB_THREAD=''
  20069. if test "$with_threads" != 'no' && test "$have_threads" = 'yes'
  20070. then
  20071. if test "x$PTHREAD_LIBS" = "x"
  20072. then
  20073. case "${host_cpu}-${host_os}" in
  20074. *-freebsd*)
  20075. ac_ext=c
  20076. ac_cpp='$CPP $CPPFLAGS'
  20077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20080. magick_pthread_lib_ok=no
  20081. LIB=-lc_r
  20082. save_LIBS="$LIBS"
  20083. LIBS="$LIBS $LIB"
  20084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
  20085. $as_echo_n "checking for the pthreads library $LIB... " >&6; }
  20086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20087. /* end confdefs.h. */
  20088. #include <pthread.h>
  20089. int
  20090. main ()
  20091. {
  20092. pthread_t th;
  20093. pthread_join(th, 0);
  20094. pthread_attr_init(0);
  20095. pthread_cleanup_push(0, 0);
  20096. pthread_create(0,0,0,0);
  20097. pthread_cleanup_pop(0);
  20098. ;
  20099. return 0;
  20100. }
  20101. _ACEOF
  20102. if ac_fn_c_try_link "$LINENO"; then :
  20103. magick_pthread_lib_ok=yes
  20104. fi
  20105. rm -f core conftest.err conftest.$ac_objext \
  20106. conftest$ac_exeext conftest.$ac_ext
  20107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
  20108. $as_echo "${magick_pthread_lib_ok}" >&6; }
  20109. if test "$magick_pthread_lib_ok" = yes
  20110. then
  20111. PTHREAD_LIBS=-lc_r
  20112. :
  20113. else
  20114. :
  20115. fi
  20116. LIBS="$save_LIBS"
  20117. ac_ext=c
  20118. ac_cpp='$CPP $CPPFLAGS'
  20119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20122. ;;
  20123. esac
  20124. fi
  20125. for lib in pthread pthreads
  20126. do
  20127. if test "x$PTHREAD_LIBS" = "x" ; then
  20128. ac_ext=c
  20129. ac_cpp='$CPP $CPPFLAGS'
  20130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20133. magick_pthread_lib_ok=no
  20134. LIB=-l$lib
  20135. save_LIBS="$LIBS"
  20136. LIBS="$LIBS $LIB"
  20137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
  20138. $as_echo_n "checking for the pthreads library $LIB... " >&6; }
  20139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20140. /* end confdefs.h. */
  20141. #include <pthread.h>
  20142. int
  20143. main ()
  20144. {
  20145. pthread_t th;
  20146. pthread_join(th, 0);
  20147. pthread_attr_init(0);
  20148. pthread_cleanup_push(0, 0);
  20149. pthread_create(0,0,0,0);
  20150. pthread_cleanup_pop(0);
  20151. ;
  20152. return 0;
  20153. }
  20154. _ACEOF
  20155. if ac_fn_c_try_link "$LINENO"; then :
  20156. magick_pthread_lib_ok=yes
  20157. fi
  20158. rm -f core conftest.err conftest.$ac_objext \
  20159. conftest$ac_exeext conftest.$ac_ext
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
  20161. $as_echo "${magick_pthread_lib_ok}" >&6; }
  20162. if test "$magick_pthread_lib_ok" = yes
  20163. then
  20164. PTHREAD_LIBS=-l$lib
  20165. :
  20166. else
  20167. :
  20168. fi
  20169. LIBS="$save_LIBS"
  20170. ac_ext=c
  20171. ac_cpp='$CPP $CPPFLAGS'
  20172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20175. fi
  20176. done
  20177. LIB_THREAD="$PTHREAD_LIBS"
  20178. LIBS="$LIBS $LIB_THREAD"
  20179. fi
  20180. #
  20181. # Check for Solaris-derived libumem
  20182. #
  20183. have_umem='no'
  20184. LIB_UMEM=''
  20185. if test "$with_umem" != 'no'
  20186. then
  20187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
  20188. $as_echo_n "checking for UMEM support ... " >&6; }
  20189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  20190. $as_echo "" >&6; }
  20191. failed=0
  20192. passed=0
  20193. ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
  20194. if test "x$ac_cv_header_umem_h" = xyes; then :
  20195. passed=`expr $passed + 1`
  20196. else
  20197. failed=`expr $failed + 1`
  20198. fi
  20199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
  20200. $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
  20201. if ${ac_cv_lib_umem_umem_alloc+:} false; then :
  20202. $as_echo_n "(cached) " >&6
  20203. else
  20204. ac_check_lib_save_LIBS=$LIBS
  20205. LIBS="-lumem $LIBS"
  20206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20207. /* end confdefs.h. */
  20208. /* Override any GCC internal prototype to avoid an error.
  20209. Use char because int might match the return type of a GCC
  20210. builtin and then its argument prototype would still apply. */
  20211. #ifdef __cplusplus
  20212. extern "C"
  20213. #endif
  20214. char umem_alloc ();
  20215. int
  20216. main ()
  20217. {
  20218. return umem_alloc ();
  20219. ;
  20220. return 0;
  20221. }
  20222. _ACEOF
  20223. if ac_fn_c_try_link "$LINENO"; then :
  20224. ac_cv_lib_umem_umem_alloc=yes
  20225. else
  20226. ac_cv_lib_umem_umem_alloc=no
  20227. fi
  20228. rm -f core conftest.err conftest.$ac_objext \
  20229. conftest$ac_exeext conftest.$ac_ext
  20230. LIBS=$ac_check_lib_save_LIBS
  20231. fi
  20232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
  20233. $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
  20234. if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
  20235. passed=`expr $passed + 1`
  20236. else
  20237. failed=`expr $failed + 1`
  20238. fi
  20239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
  20240. $as_echo_n "checking for umem_free in -lumem... " >&6; }
  20241. if ${ac_cv_lib_umem_umem_free+:} false; then :
  20242. $as_echo_n "(cached) " >&6
  20243. else
  20244. ac_check_lib_save_LIBS=$LIBS
  20245. LIBS="-lumem $LIBS"
  20246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20247. /* end confdefs.h. */
  20248. /* Override any GCC internal prototype to avoid an error.
  20249. Use char because int might match the return type of a GCC
  20250. builtin and then its argument prototype would still apply. */
  20251. #ifdef __cplusplus
  20252. extern "C"
  20253. #endif
  20254. char umem_free ();
  20255. int
  20256. main ()
  20257. {
  20258. return umem_free ();
  20259. ;
  20260. return 0;
  20261. }
  20262. _ACEOF
  20263. if ac_fn_c_try_link "$LINENO"; then :
  20264. ac_cv_lib_umem_umem_free=yes
  20265. else
  20266. ac_cv_lib_umem_umem_free=no
  20267. fi
  20268. rm -f core conftest.err conftest.$ac_objext \
  20269. conftest$ac_exeext conftest.$ac_ext
  20270. LIBS=$ac_check_lib_save_LIBS
  20271. fi
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
  20273. $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
  20274. if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
  20275. passed=`expr $passed + 1`
  20276. else
  20277. failed=`expr $failed + 1`
  20278. fi
  20279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
  20280. $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
  20281. if test $passed -gt 0
  20282. then
  20283. if test $failed -gt 0
  20284. then
  20285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  20286. $as_echo "no -- some components failed test" >&6; }
  20287. have_umem='no (failed tests)'
  20288. else
  20289. LIB_UMEM='-lumem'
  20290. LIBS="$LIB_UMEM $LIBS"
  20291. $as_echo "#define HasUMEM 1" >>confdefs.h
  20292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20293. $as_echo "yes" >&6; }
  20294. have_umem='yes'
  20295. fi
  20296. else
  20297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20298. $as_echo "no" >&6; }
  20299. fi
  20300. fi
  20301. if test "$have_umem" = 'yes'; then
  20302. HasUMEM_TRUE=
  20303. HasUMEM_FALSE='#'
  20304. else
  20305. HasUMEM_TRUE='#'
  20306. HasUMEM_FALSE=
  20307. fi
  20308. #
  20309. # Find OpenMP library
  20310. #
  20311. LIB_OMP=''
  20312. if test "${OPENMP_CFLAGS}x" != 'x'
  20313. then
  20314. if test "${GCC}" = "yes"
  20315. then
  20316. # Open64 (passes for GCC but uses different OpenMP implementation)
  20317. if test "x$LIB_OMP" = x ; then
  20318. if $CC --version 2>&1 | grep Open64 > /dev/null ; then
  20319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
  20320. $as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
  20321. if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
  20322. $as_echo_n "(cached) " >&6
  20323. else
  20324. ac_check_lib_save_LIBS=$LIBS
  20325. LIBS="-lopenmp $LIBS"
  20326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20327. /* end confdefs.h. */
  20328. /* Override any GCC internal prototype to avoid an error.
  20329. Use char because int might match the return type of a GCC
  20330. builtin and then its argument prototype would still apply. */
  20331. #ifdef __cplusplus
  20332. extern "C"
  20333. #endif
  20334. char omp_get_num_procs ();
  20335. int
  20336. main ()
  20337. {
  20338. return omp_get_num_procs ();
  20339. ;
  20340. return 0;
  20341. }
  20342. _ACEOF
  20343. if ac_fn_c_try_link "$LINENO"; then :
  20344. ac_cv_lib_openmp_omp_get_num_procs=yes
  20345. else
  20346. ac_cv_lib_openmp_omp_get_num_procs=no
  20347. fi
  20348. rm -f core conftest.err conftest.$ac_objext \
  20349. conftest$ac_exeext conftest.$ac_ext
  20350. LIBS=$ac_check_lib_save_LIBS
  20351. fi
  20352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
  20353. $as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
  20354. if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
  20355. LIB_OMP="-lopenmp"
  20356. fi
  20357. fi
  20358. fi
  20359. # GCC
  20360. if test "x$LIB_OMP" = x ; then
  20361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
  20362. $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
  20363. if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
  20364. $as_echo_n "(cached) " >&6
  20365. else
  20366. ac_check_lib_save_LIBS=$LIBS
  20367. LIBS="-lgomp $LIBS"
  20368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20369. /* end confdefs.h. */
  20370. /* Override any GCC internal prototype to avoid an error.
  20371. Use char because int might match the return type of a GCC
  20372. builtin and then its argument prototype would still apply. */
  20373. #ifdef __cplusplus
  20374. extern "C"
  20375. #endif
  20376. char GOMP_parallel_start ();
  20377. int
  20378. main ()
  20379. {
  20380. return GOMP_parallel_start ();
  20381. ;
  20382. return 0;
  20383. }
  20384. _ACEOF
  20385. if ac_fn_c_try_link "$LINENO"; then :
  20386. ac_cv_lib_gomp_GOMP_parallel_start=yes
  20387. else
  20388. ac_cv_lib_gomp_GOMP_parallel_start=no
  20389. fi
  20390. rm -f core conftest.err conftest.$ac_objext \
  20391. conftest$ac_exeext conftest.$ac_ext
  20392. LIBS=$ac_check_lib_save_LIBS
  20393. fi
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
  20395. $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
  20396. if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
  20397. LIB_OMP="-lgomp"
  20398. fi
  20399. fi
  20400. else
  20401. # Sun CC
  20402. if test "x$LIB_OMP" = x ; then
  20403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
  20404. $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
  20405. if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
  20406. $as_echo_n "(cached) " >&6
  20407. else
  20408. ac_check_lib_save_LIBS=$LIBS
  20409. LIBS="-lmtsk $LIBS"
  20410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20411. /* end confdefs.h. */
  20412. /* Override any GCC internal prototype to avoid an error.
  20413. Use char because int might match the return type of a GCC
  20414. builtin and then its argument prototype would still apply. */
  20415. #ifdef __cplusplus
  20416. extern "C"
  20417. #endif
  20418. char sunw_mp_register_warn ();
  20419. int
  20420. main ()
  20421. {
  20422. return sunw_mp_register_warn ();
  20423. ;
  20424. return 0;
  20425. }
  20426. _ACEOF
  20427. if ac_fn_c_try_link "$LINENO"; then :
  20428. ac_cv_lib_mtsk_sunw_mp_register_warn=yes
  20429. else
  20430. ac_cv_lib_mtsk_sunw_mp_register_warn=no
  20431. fi
  20432. rm -f core conftest.err conftest.$ac_objext \
  20433. conftest$ac_exeext conftest.$ac_ext
  20434. LIBS=$ac_check_lib_save_LIBS
  20435. fi
  20436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
  20437. $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
  20438. if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
  20439. LIB_OMP="-lmtsk"
  20440. fi
  20441. fi
  20442. # AIX xlc
  20443. if test "x$LIB_OMP" = x ; then
  20444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
  20445. $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
  20446. if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
  20447. $as_echo_n "(cached) " >&6
  20448. else
  20449. ac_check_lib_save_LIBS=$LIBS
  20450. LIBS="-lxlsmp $LIBS"
  20451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20452. /* end confdefs.h. */
  20453. /* Override any GCC internal prototype to avoid an error.
  20454. Use char because int might match the return type of a GCC
  20455. builtin and then its argument prototype would still apply. */
  20456. #ifdef __cplusplus
  20457. extern "C"
  20458. #endif
  20459. char _xlsmpFlush ();
  20460. int
  20461. main ()
  20462. {
  20463. return _xlsmpFlush ();
  20464. ;
  20465. return 0;
  20466. }
  20467. _ACEOF
  20468. if ac_fn_c_try_link "$LINENO"; then :
  20469. ac_cv_lib_xlsmp__xlsmpFlush=yes
  20470. else
  20471. ac_cv_lib_xlsmp__xlsmpFlush=no
  20472. fi
  20473. rm -f core conftest.err conftest.$ac_objext \
  20474. conftest$ac_exeext conftest.$ac_ext
  20475. LIBS=$ac_check_lib_save_LIBS
  20476. fi
  20477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
  20478. $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
  20479. if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
  20480. LIB_OMP="-lxlsmp"
  20481. fi
  20482. fi
  20483. # SGI IRIX 6.5 MIPSpro C/C++
  20484. if test "x$LIB_OMP" = x ; then
  20485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
  20486. $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
  20487. if ${ac_cv_lib_mp_mp_destroy+:} false; then :
  20488. $as_echo_n "(cached) " >&6
  20489. else
  20490. ac_check_lib_save_LIBS=$LIBS
  20491. LIBS="-lmp $LIBS"
  20492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20493. /* end confdefs.h. */
  20494. /* Override any GCC internal prototype to avoid an error.
  20495. Use char because int might match the return type of a GCC
  20496. builtin and then its argument prototype would still apply. */
  20497. #ifdef __cplusplus
  20498. extern "C"
  20499. #endif
  20500. char mp_destroy ();
  20501. int
  20502. main ()
  20503. {
  20504. return mp_destroy ();
  20505. ;
  20506. return 0;
  20507. }
  20508. _ACEOF
  20509. if ac_fn_c_try_link "$LINENO"; then :
  20510. ac_cv_lib_mp_mp_destroy=yes
  20511. else
  20512. ac_cv_lib_mp_mp_destroy=no
  20513. fi
  20514. rm -f core conftest.err conftest.$ac_objext \
  20515. conftest$ac_exeext conftest.$ac_ext
  20516. LIBS=$ac_check_lib_save_LIBS
  20517. fi
  20518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
  20519. $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
  20520. if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
  20521. LIB_OMP="-lmp"
  20522. fi
  20523. fi
  20524. fi
  20525. LIBS="$LIB_OMP $LIBS"
  20526. fi
  20527. #
  20528. # Add support for ccmalloc memory debugging library if requested
  20529. #
  20530. have_ccmalloc='no'
  20531. LIB_CCMALLOC=''
  20532. if test "$with_ccmalloc" = 'yes'
  20533. then
  20534. # Extract the first word of "ccmalloc", so it can be a program name with args.
  20535. set dummy ccmalloc; ac_word=$2
  20536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20537. $as_echo_n "checking for $ac_word... " >&6; }
  20538. if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
  20539. $as_echo_n "(cached) " >&6
  20540. else
  20541. case $CCMALLOCDelegate in
  20542. [\\/]* | ?:[\\/]*)
  20543. ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
  20544. ;;
  20545. *)
  20546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20547. for as_dir in $PATH
  20548. do
  20549. IFS=$as_save_IFS
  20550. test -z "$as_dir" && as_dir=.
  20551. for ac_exec_ext in '' $ac_executable_extensions; do
  20552. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20553. ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
  20554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20555. break 2
  20556. fi
  20557. done
  20558. done
  20559. IFS=$as_save_IFS
  20560. ;;
  20561. esac
  20562. fi
  20563. CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
  20564. if test -n "$CCMALLOCDelegate"; then
  20565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
  20566. $as_echo "$CCMALLOCDelegate" >&6; }
  20567. else
  20568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20569. $as_echo "no" >&6; }
  20570. fi
  20571. if test -n "$CCMALLOCDelegate"
  20572. then
  20573. eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
  20574. OLIBS="$LIBS"
  20575. # Assume that gcc is used with ccmalloc.
  20576. LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
  20577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
  20578. $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
  20579. if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
  20580. $as_echo_n "(cached) " >&6
  20581. else
  20582. ac_check_lib_save_LIBS=$LIBS
  20583. LIBS="-lccmalloc -ldl $LIBS"
  20584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20585. /* end confdefs.h. */
  20586. /* Override any GCC internal prototype to avoid an error.
  20587. Use char because int might match the return type of a GCC
  20588. builtin and then its argument prototype would still apply. */
  20589. #ifdef __cplusplus
  20590. extern "C"
  20591. #endif
  20592. char ccmalloc_malloc ();
  20593. int
  20594. main ()
  20595. {
  20596. return ccmalloc_malloc ();
  20597. ;
  20598. return 0;
  20599. }
  20600. _ACEOF
  20601. if ac_fn_c_try_link "$LINENO"; then :
  20602. ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
  20603. else
  20604. ac_cv_lib_ccmalloc_ccmalloc_malloc=no
  20605. fi
  20606. rm -f core conftest.err conftest.$ac_objext \
  20607. conftest$ac_exeext conftest.$ac_ext
  20608. LIBS=$ac_check_lib_save_LIBS
  20609. fi
  20610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
  20611. $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
  20612. if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
  20613. LIB_CCMALLOC="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
  20614. fi
  20615. if test -n "$LIB_CCMALLOC"
  20616. then
  20617. LIBS="$OLIBS"
  20618. LIBS="$LIBS $LIB_CCMALLOC"
  20619. have_ccmalloc='yes'
  20620. else
  20621. LIBS="$OLIBS"
  20622. fi
  20623. fi
  20624. fi
  20625. #
  20626. # Add support for Electric Fence debugging library if requested
  20627. #
  20628. if test "$with_efence" = 'yes'
  20629. then
  20630. LIB_EFENCE='-lefence'
  20631. LIBS="$LIB_EFENCE $LIBS"
  20632. fi
  20633. #
  20634. # Find math library
  20635. #
  20636. LIB_MATH=''
  20637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  20638. $as_echo_n "checking for sqrt in -lm... " >&6; }
  20639. if ${ac_cv_lib_m_sqrt+:} false; then :
  20640. $as_echo_n "(cached) " >&6
  20641. else
  20642. ac_check_lib_save_LIBS=$LIBS
  20643. LIBS="-lm $LIBS"
  20644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20645. /* end confdefs.h. */
  20646. /* Override any GCC internal prototype to avoid an error.
  20647. Use char because int might match the return type of a GCC
  20648. builtin and then its argument prototype would still apply. */
  20649. #ifdef __cplusplus
  20650. extern "C"
  20651. #endif
  20652. char sqrt ();
  20653. int
  20654. main ()
  20655. {
  20656. return sqrt ();
  20657. ;
  20658. return 0;
  20659. }
  20660. _ACEOF
  20661. if ac_fn_c_try_link "$LINENO"; then :
  20662. ac_cv_lib_m_sqrt=yes
  20663. else
  20664. ac_cv_lib_m_sqrt=no
  20665. fi
  20666. rm -f core conftest.err conftest.$ac_objext \
  20667. conftest$ac_exeext conftest.$ac_ext
  20668. LIBS=$ac_check_lib_save_LIBS
  20669. fi
  20670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  20671. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  20672. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  20673. LIB_MATH="-lm"
  20674. fi
  20675. LIBS="$LIB_MATH $LIBS"
  20676. #
  20677. # If vsnprintf is missing, look for TRIO
  20678. #
  20679. have_trio='no'
  20680. LIB_TRIO=''
  20681. if test "$ac_cv_func_vsnprintf" != 'yes' && test "$with_trio" != 'no'
  20682. then
  20683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TRIO vsnprintf replacement" >&5
  20684. $as_echo_n "checking for TRIO vsnprintf replacement... " >&6; }
  20685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trio_vsnprintf in -ltrio" >&5
  20686. $as_echo_n "checking for trio_vsnprintf in -ltrio... " >&6; }
  20687. if ${ac_cv_lib_trio_trio_vsnprintf+:} false; then :
  20688. $as_echo_n "(cached) " >&6
  20689. else
  20690. ac_check_lib_save_LIBS=$LIBS
  20691. LIBS="-ltrio $LIBS"
  20692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20693. /* end confdefs.h. */
  20694. /* Override any GCC internal prototype to avoid an error.
  20695. Use char because int might match the return type of a GCC
  20696. builtin and then its argument prototype would still apply. */
  20697. #ifdef __cplusplus
  20698. extern "C"
  20699. #endif
  20700. char trio_vsnprintf ();
  20701. int
  20702. main ()
  20703. {
  20704. return trio_vsnprintf ();
  20705. ;
  20706. return 0;
  20707. }
  20708. _ACEOF
  20709. if ac_fn_c_try_link "$LINENO"; then :
  20710. ac_cv_lib_trio_trio_vsnprintf=yes
  20711. else
  20712. ac_cv_lib_trio_trio_vsnprintf=no
  20713. fi
  20714. rm -f core conftest.err conftest.$ac_objext \
  20715. conftest$ac_exeext conftest.$ac_ext
  20716. LIBS=$ac_check_lib_save_LIBS
  20717. fi
  20718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_trio_trio_vsnprintf" >&5
  20719. $as_echo "$ac_cv_lib_trio_trio_vsnprintf" >&6; }
  20720. if test "x$ac_cv_lib_trio_trio_vsnprintf" = xyes; then :
  20721. have_trio='yes'
  20722. fi
  20723. if test "$have_trio" = 'yes'
  20724. then
  20725. LIB_TRIO="-ltrio"
  20726. LIBS="$LIB_TRIO $LIBS"
  20727. $as_echo "#define HasTRIO 1" >>confdefs.h
  20728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20729. $as_echo "yes" >&6; }
  20730. else
  20731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20732. $as_echo "no" >&6; }
  20733. fi
  20734. fi
  20735. #
  20736. # Check for ZLIB
  20737. #
  20738. have_zlib='no'
  20739. LIB_ZLIB=''
  20740. if test "$with_zlib" != 'no' || test "$with_png" != 'no'
  20741. then
  20742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
  20743. $as_echo_n "checking for ZLIB support ... " >&6; }
  20744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  20745. $as_echo "" >&6; }
  20746. failed=0
  20747. passed=0
  20748. ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
  20749. if test "x$ac_cv_header_zconf_h" = xyes; then :
  20750. passed=`expr $passed + 1`
  20751. else
  20752. failed=`expr $failed + 1`
  20753. fi
  20754. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  20755. if test "x$ac_cv_header_zlib_h" = xyes; then :
  20756. passed=`expr $passed + 1`
  20757. else
  20758. failed=`expr $failed + 1`
  20759. fi
  20760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  20761. $as_echo_n "checking for compress in -lz... " >&6; }
  20762. if ${ac_cv_lib_z_compress+:} false; then :
  20763. $as_echo_n "(cached) " >&6
  20764. else
  20765. ac_check_lib_save_LIBS=$LIBS
  20766. LIBS="-lz $LIBS"
  20767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20768. /* end confdefs.h. */
  20769. /* Override any GCC internal prototype to avoid an error.
  20770. Use char because int might match the return type of a GCC
  20771. builtin and then its argument prototype would still apply. */
  20772. #ifdef __cplusplus
  20773. extern "C"
  20774. #endif
  20775. char compress ();
  20776. int
  20777. main ()
  20778. {
  20779. return compress ();
  20780. ;
  20781. return 0;
  20782. }
  20783. _ACEOF
  20784. if ac_fn_c_try_link "$LINENO"; then :
  20785. ac_cv_lib_z_compress=yes
  20786. else
  20787. ac_cv_lib_z_compress=no
  20788. fi
  20789. rm -f core conftest.err conftest.$ac_objext \
  20790. conftest$ac_exeext conftest.$ac_ext
  20791. LIBS=$ac_check_lib_save_LIBS
  20792. fi
  20793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  20794. $as_echo "$ac_cv_lib_z_compress" >&6; }
  20795. if test "x$ac_cv_lib_z_compress" = xyes; then :
  20796. passed=`expr $passed + 1`
  20797. else
  20798. failed=`expr $failed + 1`
  20799. fi
  20800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
  20801. $as_echo_n "checking for uncompress in -lz... " >&6; }
  20802. if ${ac_cv_lib_z_uncompress+:} false; then :
  20803. $as_echo_n "(cached) " >&6
  20804. else
  20805. ac_check_lib_save_LIBS=$LIBS
  20806. LIBS="-lz $LIBS"
  20807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20808. /* end confdefs.h. */
  20809. /* Override any GCC internal prototype to avoid an error.
  20810. Use char because int might match the return type of a GCC
  20811. builtin and then its argument prototype would still apply. */
  20812. #ifdef __cplusplus
  20813. extern "C"
  20814. #endif
  20815. char uncompress ();
  20816. int
  20817. main ()
  20818. {
  20819. return uncompress ();
  20820. ;
  20821. return 0;
  20822. }
  20823. _ACEOF
  20824. if ac_fn_c_try_link "$LINENO"; then :
  20825. ac_cv_lib_z_uncompress=yes
  20826. else
  20827. ac_cv_lib_z_uncompress=no
  20828. fi
  20829. rm -f core conftest.err conftest.$ac_objext \
  20830. conftest$ac_exeext conftest.$ac_ext
  20831. LIBS=$ac_check_lib_save_LIBS
  20832. fi
  20833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
  20834. $as_echo "$ac_cv_lib_z_uncompress" >&6; }
  20835. if test "x$ac_cv_lib_z_uncompress" = xyes; then :
  20836. passed=`expr $passed + 1`
  20837. else
  20838. failed=`expr $failed + 1`
  20839. fi
  20840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  20841. $as_echo_n "checking for deflate in -lz... " >&6; }
  20842. if ${ac_cv_lib_z_deflate+:} false; then :
  20843. $as_echo_n "(cached) " >&6
  20844. else
  20845. ac_check_lib_save_LIBS=$LIBS
  20846. LIBS="-lz $LIBS"
  20847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20848. /* end confdefs.h. */
  20849. /* Override any GCC internal prototype to avoid an error.
  20850. Use char because int might match the return type of a GCC
  20851. builtin and then its argument prototype would still apply. */
  20852. #ifdef __cplusplus
  20853. extern "C"
  20854. #endif
  20855. char deflate ();
  20856. int
  20857. main ()
  20858. {
  20859. return deflate ();
  20860. ;
  20861. return 0;
  20862. }
  20863. _ACEOF
  20864. if ac_fn_c_try_link "$LINENO"; then :
  20865. ac_cv_lib_z_deflate=yes
  20866. else
  20867. ac_cv_lib_z_deflate=no
  20868. fi
  20869. rm -f core conftest.err conftest.$ac_objext \
  20870. conftest$ac_exeext conftest.$ac_ext
  20871. LIBS=$ac_check_lib_save_LIBS
  20872. fi
  20873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  20874. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  20875. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  20876. passed=`expr $passed + 1`
  20877. else
  20878. failed=`expr $failed + 1`
  20879. fi
  20880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  20881. $as_echo_n "checking for inflate in -lz... " >&6; }
  20882. if ${ac_cv_lib_z_inflate+:} false; then :
  20883. $as_echo_n "(cached) " >&6
  20884. else
  20885. ac_check_lib_save_LIBS=$LIBS
  20886. LIBS="-lz $LIBS"
  20887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20888. /* end confdefs.h. */
  20889. /* Override any GCC internal prototype to avoid an error.
  20890. Use char because int might match the return type of a GCC
  20891. builtin and then its argument prototype would still apply. */
  20892. #ifdef __cplusplus
  20893. extern "C"
  20894. #endif
  20895. char inflate ();
  20896. int
  20897. main ()
  20898. {
  20899. return inflate ();
  20900. ;
  20901. return 0;
  20902. }
  20903. _ACEOF
  20904. if ac_fn_c_try_link "$LINENO"; then :
  20905. ac_cv_lib_z_inflate=yes
  20906. else
  20907. ac_cv_lib_z_inflate=no
  20908. fi
  20909. rm -f core conftest.err conftest.$ac_objext \
  20910. conftest$ac_exeext conftest.$ac_ext
  20911. LIBS=$ac_check_lib_save_LIBS
  20912. fi
  20913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  20914. $as_echo "$ac_cv_lib_z_inflate" >&6; }
  20915. if test "x$ac_cv_lib_z_inflate" = xyes; then :
  20916. passed=`expr $passed + 1`
  20917. else
  20918. failed=`expr $failed + 1`
  20919. fi
  20920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
  20921. $as_echo_n "checking for gzseek in -lz... " >&6; }
  20922. if ${ac_cv_lib_z_gzseek+:} false; then :
  20923. $as_echo_n "(cached) " >&6
  20924. else
  20925. ac_check_lib_save_LIBS=$LIBS
  20926. LIBS="-lz $LIBS"
  20927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20928. /* end confdefs.h. */
  20929. /* Override any GCC internal prototype to avoid an error.
  20930. Use char because int might match the return type of a GCC
  20931. builtin and then its argument prototype would still apply. */
  20932. #ifdef __cplusplus
  20933. extern "C"
  20934. #endif
  20935. char gzseek ();
  20936. int
  20937. main ()
  20938. {
  20939. return gzseek ();
  20940. ;
  20941. return 0;
  20942. }
  20943. _ACEOF
  20944. if ac_fn_c_try_link "$LINENO"; then :
  20945. ac_cv_lib_z_gzseek=yes
  20946. else
  20947. ac_cv_lib_z_gzseek=no
  20948. fi
  20949. rm -f core conftest.err conftest.$ac_objext \
  20950. conftest$ac_exeext conftest.$ac_ext
  20951. LIBS=$ac_check_lib_save_LIBS
  20952. fi
  20953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
  20954. $as_echo "$ac_cv_lib_z_gzseek" >&6; }
  20955. if test "x$ac_cv_lib_z_gzseek" = xyes; then :
  20956. passed=`expr $passed + 1`
  20957. else
  20958. failed=`expr $failed + 1`
  20959. fi
  20960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
  20961. $as_echo_n "checking for gztell in -lz... " >&6; }
  20962. if ${ac_cv_lib_z_gztell+:} false; then :
  20963. $as_echo_n "(cached) " >&6
  20964. else
  20965. ac_check_lib_save_LIBS=$LIBS
  20966. LIBS="-lz $LIBS"
  20967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20968. /* end confdefs.h. */
  20969. /* Override any GCC internal prototype to avoid an error.
  20970. Use char because int might match the return type of a GCC
  20971. builtin and then its argument prototype would still apply. */
  20972. #ifdef __cplusplus
  20973. extern "C"
  20974. #endif
  20975. char gztell ();
  20976. int
  20977. main ()
  20978. {
  20979. return gztell ();
  20980. ;
  20981. return 0;
  20982. }
  20983. _ACEOF
  20984. if ac_fn_c_try_link "$LINENO"; then :
  20985. ac_cv_lib_z_gztell=yes
  20986. else
  20987. ac_cv_lib_z_gztell=no
  20988. fi
  20989. rm -f core conftest.err conftest.$ac_objext \
  20990. conftest$ac_exeext conftest.$ac_ext
  20991. LIBS=$ac_check_lib_save_LIBS
  20992. fi
  20993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
  20994. $as_echo "$ac_cv_lib_z_gztell" >&6; }
  20995. if test "x$ac_cv_lib_z_gztell" = xyes; then :
  20996. passed=`expr $passed + 1`
  20997. else
  20998. failed=`expr $failed + 1`
  20999. fi
  21000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
  21001. $as_echo_n "checking if ZLIB package is complete... " >&6; }
  21002. if test $passed -gt 0
  21003. then
  21004. if test $failed -gt 0
  21005. then
  21006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  21007. $as_echo "no -- some components failed test" >&6; }
  21008. have_zlib='no (failed tests)'
  21009. else
  21010. LIB_ZLIB='-lz'
  21011. LIBS="$LIB_ZLIB $LIBS"
  21012. $as_echo "#define HasZLIB 1" >>confdefs.h
  21013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21014. $as_echo "yes" >&6; }
  21015. have_zlib='yes'
  21016. fi
  21017. else
  21018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21019. $as_echo "no" >&6; }
  21020. fi
  21021. fi
  21022. if test "$have_zlib" = 'yes'; then
  21023. HasZLIB_TRUE=
  21024. HasZLIB_FALSE='#'
  21025. else
  21026. HasZLIB_TRUE='#'
  21027. HasZLIB_FALSE=
  21028. fi
  21029. #
  21030. # Check for BZLIB
  21031. #
  21032. have_bzlib='no'
  21033. if test "$with_bzlib" != 'no'
  21034. then
  21035. LIB_BZLIB=''
  21036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB support " >&5
  21037. $as_echo_n "checking for BZLIB support ... " >&6; }
  21038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  21039. $as_echo "" >&6; }
  21040. failed=0
  21041. passed=0
  21042. found_libbz=0
  21043. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  21044. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  21045. passed=`expr $passed + 1`
  21046. else
  21047. failed=`expr $failed + 1`
  21048. fi
  21049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
  21050. $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
  21051. if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
  21052. $as_echo_n "(cached) " >&6
  21053. else
  21054. ac_check_lib_save_LIBS=$LIBS
  21055. LIBS="-lbz2 $LIBS"
  21056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21057. /* end confdefs.h. */
  21058. /* Override any GCC internal prototype to avoid an error.
  21059. Use char because int might match the return type of a GCC
  21060. builtin and then its argument prototype would still apply. */
  21061. #ifdef __cplusplus
  21062. extern "C"
  21063. #endif
  21064. char BZ2_bzDecompress ();
  21065. int
  21066. main ()
  21067. {
  21068. return BZ2_bzDecompress ();
  21069. ;
  21070. return 0;
  21071. }
  21072. _ACEOF
  21073. if ac_fn_c_try_link "$LINENO"; then :
  21074. ac_cv_lib_bz2_BZ2_bzDecompress=yes
  21075. else
  21076. ac_cv_lib_bz2_BZ2_bzDecompress=no
  21077. fi
  21078. rm -f core conftest.err conftest.$ac_objext \
  21079. conftest$ac_exeext conftest.$ac_ext
  21080. LIBS=$ac_check_lib_save_LIBS
  21081. fi
  21082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
  21083. $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
  21084. if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
  21085. found_libbz=`expr $found_libbz + 1`
  21086. fi
  21087. if test "$native_win32_build" = 'yes'
  21088. then
  21089. # Under MinGW, libbz2 obfuscates its functions by declaring them
  21090. # with DLL interfaces. This would be all better if we could
  21091. # somehow include bzlib.h during the test but Autoconf does not
  21092. # make that possible. We check for BZ2_decompress since that is
  21093. # one of the few functions exported from the DLL (very strange).
  21094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
  21095. $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
  21096. if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
  21097. $as_echo_n "(cached) " >&6
  21098. else
  21099. ac_check_lib_save_LIBS=$LIBS
  21100. LIBS="-lbz2 $LIBS"
  21101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21102. /* end confdefs.h. */
  21103. /* Override any GCC internal prototype to avoid an error.
  21104. Use char because int might match the return type of a GCC
  21105. builtin and then its argument prototype would still apply. */
  21106. #ifdef __cplusplus
  21107. extern "C"
  21108. #endif
  21109. char _imp__BZ2_decompress ();
  21110. int
  21111. main ()
  21112. {
  21113. return _imp__BZ2_decompress ();
  21114. ;
  21115. return 0;
  21116. }
  21117. _ACEOF
  21118. if ac_fn_c_try_link "$LINENO"; then :
  21119. ac_cv_lib_bz2__imp__BZ2_decompress=yes
  21120. else
  21121. ac_cv_lib_bz2__imp__BZ2_decompress=no
  21122. fi
  21123. rm -f core conftest.err conftest.$ac_objext \
  21124. conftest$ac_exeext conftest.$ac_ext
  21125. LIBS=$ac_check_lib_save_LIBS
  21126. fi
  21127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
  21128. $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
  21129. if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
  21130. found_libbz=`expr $found_libbz + 1`
  21131. fi
  21132. fi
  21133. if test $found_libbz -gt 0
  21134. then
  21135. passed=`expr $passed + 1`
  21136. else
  21137. failed=`expr $failed + 1`
  21138. fi
  21139. #AC_CHECK_LIB(bz2,BZ2_bzCompress,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
  21140. #AC_CHECK_LIB(bz2,BZ2_bzDecompress,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
  21141. #AC_CHECK_LIB(bz2,_imp__BZ2_decompress,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
  21142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
  21143. $as_echo_n "checking if BZLIB package is complete... " >&6; }
  21144. if test $passed -gt 0
  21145. then
  21146. if test $failed -gt 0
  21147. then
  21148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  21149. $as_echo "no -- some components failed test" >&6; }
  21150. have_bzlib='no (failed tests)'
  21151. else
  21152. LIB_BZLIB='-lbz2'
  21153. LIBS="$LIB_BZLIB $LIBS"
  21154. $as_echo "#define HasBZLIB 1" >>confdefs.h
  21155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21156. $as_echo "yes" >&6; }
  21157. have_bzlib='yes'
  21158. fi
  21159. else
  21160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21161. $as_echo "no" >&6; }
  21162. fi
  21163. fi
  21164. if test "$have_bzlib" = 'yes'; then
  21165. HasBZLIB_TRUE=
  21166. HasBZLIB_FALSE='#'
  21167. else
  21168. HasBZLIB_TRUE='#'
  21169. HasBZLIB_FALSE=
  21170. fi
  21171. #
  21172. # Check for LZMA
  21173. #
  21174. have_lzma='no'
  21175. LIB_LZMA=''
  21176. if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'
  21177. then
  21178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA support " >&5
  21179. $as_echo_n "checking for LZMA support ... " >&6; }
  21180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  21181. $as_echo "" >&6; }
  21182. failed=0
  21183. passed=0
  21184. ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  21185. if test "x$ac_cv_header_lzma_h" = xyes; then :
  21186. passed=`expr $passed + 1`
  21187. else
  21188. failed=`expr $failed + 1`
  21189. fi
  21190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
  21191. $as_echo_n "checking for lzma_code in -llzma... " >&6; }
  21192. if ${ac_cv_lib_lzma_lzma_code+:} false; then :
  21193. $as_echo_n "(cached) " >&6
  21194. else
  21195. ac_check_lib_save_LIBS=$LIBS
  21196. LIBS="-llzma $LIBS"
  21197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21198. /* end confdefs.h. */
  21199. /* Override any GCC internal prototype to avoid an error.
  21200. Use char because int might match the return type of a GCC
  21201. builtin and then its argument prototype would still apply. */
  21202. #ifdef __cplusplus
  21203. extern "C"
  21204. #endif
  21205. char lzma_code ();
  21206. int
  21207. main ()
  21208. {
  21209. return lzma_code ();
  21210. ;
  21211. return 0;
  21212. }
  21213. _ACEOF
  21214. if ac_fn_c_try_link "$LINENO"; then :
  21215. ac_cv_lib_lzma_lzma_code=yes
  21216. else
  21217. ac_cv_lib_lzma_lzma_code=no
  21218. fi
  21219. rm -f core conftest.err conftest.$ac_objext \
  21220. conftest$ac_exeext conftest.$ac_ext
  21221. LIBS=$ac_check_lib_save_LIBS
  21222. fi
  21223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
  21224. $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
  21225. if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
  21226. passed=`expr $passed + 1`
  21227. else
  21228. failed=`expr $failed + 1`
  21229. fi
  21230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
  21231. $as_echo_n "checking if LZMA package is complete... " >&6; }
  21232. if test $passed -gt 0
  21233. then
  21234. if test $failed -gt 0
  21235. then
  21236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  21237. $as_echo "no -- some components failed test" >&6; }
  21238. have_lzma='no (failed tests)'
  21239. else
  21240. LIB_LZMA='-llzma'
  21241. LIBS="$LIB_LZMA $LIBS"
  21242. $as_echo "#define HasLZMA 1" >>confdefs.h
  21243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21244. $as_echo "yes" >&6; }
  21245. have_lzma='yes'
  21246. fi
  21247. else
  21248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21249. $as_echo "no" >&6; }
  21250. fi
  21251. fi
  21252. if test "$have_lzma" = 'yes'; then
  21253. HasLZMA_TRUE=
  21254. HasLZMA_FALSE='#'
  21255. else
  21256. HasLZMA_TRUE='#'
  21257. HasLZMA_FALSE=
  21258. fi
  21259. #
  21260. # Find the X11 include and library directories.
  21261. #
  21262. LIB_X11=''
  21263. LIB_XEXT=''
  21264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  21265. $as_echo_n "checking for X... " >&6; }
  21266. # Check whether --with-x was given.
  21267. if test "${with_x+set}" = set; then :
  21268. withval=$with_x;
  21269. fi
  21270. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  21271. if test "x$with_x" = xno; then
  21272. # The user explicitly disabled X.
  21273. have_x=disabled
  21274. else
  21275. case $x_includes,$x_libraries in #(
  21276. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  21277. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  21278. $as_echo_n "(cached) " >&6
  21279. else
  21280. # One or both of the vars are not set, and there is no cached value.
  21281. ac_x_includes=no ac_x_libraries=no
  21282. rm -f -r conftest.dir
  21283. if mkdir conftest.dir; then
  21284. cd conftest.dir
  21285. cat >Imakefile <<'_ACEOF'
  21286. incroot:
  21287. @echo incroot='${INCROOT}'
  21288. usrlibdir:
  21289. @echo usrlibdir='${USRLIBDIR}'
  21290. libdir:
  21291. @echo libdir='${LIBDIR}'
  21292. _ACEOF
  21293. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  21294. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  21295. for ac_var in incroot usrlibdir libdir; do
  21296. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  21297. done
  21298. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  21299. for ac_extension in a so sl dylib la dll; do
  21300. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  21301. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  21302. ac_im_usrlibdir=$ac_im_libdir; break
  21303. fi
  21304. done
  21305. # Screen out bogus values from the imake configuration. They are
  21306. # bogus both because they are the default anyway, and because
  21307. # using them would break gcc on systems where it needs fixed includes.
  21308. case $ac_im_incroot in
  21309. /usr/include) ac_x_includes= ;;
  21310. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  21311. esac
  21312. case $ac_im_usrlibdir in
  21313. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  21314. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  21315. esac
  21316. fi
  21317. cd ..
  21318. rm -f -r conftest.dir
  21319. fi
  21320. # Standard set of common directories for X headers.
  21321. # Check X11 before X11Rn because it is often a symlink to the current release.
  21322. ac_x_header_dirs='
  21323. /usr/X11/include
  21324. /usr/X11R7/include
  21325. /usr/X11R6/include
  21326. /usr/X11R5/include
  21327. /usr/X11R4/include
  21328. /usr/include/X11
  21329. /usr/include/X11R7
  21330. /usr/include/X11R6
  21331. /usr/include/X11R5
  21332. /usr/include/X11R4
  21333. /usr/local/X11/include
  21334. /usr/local/X11R7/include
  21335. /usr/local/X11R6/include
  21336. /usr/local/X11R5/include
  21337. /usr/local/X11R4/include
  21338. /usr/local/include/X11
  21339. /usr/local/include/X11R7
  21340. /usr/local/include/X11R6
  21341. /usr/local/include/X11R5
  21342. /usr/local/include/X11R4
  21343. /usr/X386/include
  21344. /usr/x386/include
  21345. /usr/XFree86/include/X11
  21346. /usr/include
  21347. /usr/local/include
  21348. /usr/unsupported/include
  21349. /usr/athena/include
  21350. /usr/local/x11r5/include
  21351. /usr/lpp/Xamples/include
  21352. /usr/openwin/include
  21353. /usr/openwin/share/include'
  21354. if test "$ac_x_includes" = no; then
  21355. # Guess where to find include files, by looking for Xlib.h.
  21356. # First, try using that file with no special directory specified.
  21357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21358. /* end confdefs.h. */
  21359. #include <X11/Xlib.h>
  21360. _ACEOF
  21361. if ac_fn_c_try_cpp "$LINENO"; then :
  21362. # We can compile using X headers with no special include directory.
  21363. ac_x_includes=
  21364. else
  21365. for ac_dir in $ac_x_header_dirs; do
  21366. if test -r "$ac_dir/X11/Xlib.h"; then
  21367. ac_x_includes=$ac_dir
  21368. break
  21369. fi
  21370. done
  21371. fi
  21372. rm -f conftest.err conftest.i conftest.$ac_ext
  21373. fi # $ac_x_includes = no
  21374. if test "$ac_x_libraries" = no; then
  21375. # Check for the libraries.
  21376. # See if we find them without any special options.
  21377. # Don't add to $LIBS permanently.
  21378. ac_save_LIBS=$LIBS
  21379. LIBS="-lX11 $LIBS"
  21380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21381. /* end confdefs.h. */
  21382. #include <X11/Xlib.h>
  21383. int
  21384. main ()
  21385. {
  21386. XrmInitialize ()
  21387. ;
  21388. return 0;
  21389. }
  21390. _ACEOF
  21391. if ac_fn_c_try_link "$LINENO"; then :
  21392. LIBS=$ac_save_LIBS
  21393. # We can link X programs with no special library path.
  21394. ac_x_libraries=
  21395. else
  21396. LIBS=$ac_save_LIBS
  21397. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  21398. do
  21399. # Don't even attempt the hair of trying to link an X program!
  21400. for ac_extension in a so sl dylib la dll; do
  21401. if test -r "$ac_dir/libX11.$ac_extension"; then
  21402. ac_x_libraries=$ac_dir
  21403. break 2
  21404. fi
  21405. done
  21406. done
  21407. fi
  21408. rm -f core conftest.err conftest.$ac_objext \
  21409. conftest$ac_exeext conftest.$ac_ext
  21410. fi # $ac_x_libraries = no
  21411. case $ac_x_includes,$ac_x_libraries in #(
  21412. no,* | *,no | *\'*)
  21413. # Didn't find X, or a directory has "'" in its name.
  21414. ac_cv_have_x="have_x=no";; #(
  21415. *)
  21416. # Record where we found X for the cache.
  21417. ac_cv_have_x="have_x=yes\
  21418. ac_x_includes='$ac_x_includes'\
  21419. ac_x_libraries='$ac_x_libraries'"
  21420. esac
  21421. fi
  21422. ;; #(
  21423. *) have_x=yes;;
  21424. esac
  21425. eval "$ac_cv_have_x"
  21426. fi # $with_x != no
  21427. if test "$have_x" != yes; then
  21428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  21429. $as_echo "$have_x" >&6; }
  21430. no_x=yes
  21431. else
  21432. # If each of the values was on the command line, it overrides each guess.
  21433. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  21434. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  21435. # Update the cache value to reflect the command line values.
  21436. ac_cv_have_x="have_x=yes\
  21437. ac_x_includes='$x_includes'\
  21438. ac_x_libraries='$x_libraries'"
  21439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  21440. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  21441. fi
  21442. if test "$no_x" = yes; then
  21443. # Not all programs may use this symbol, but it does not hurt to define it.
  21444. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  21445. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  21446. else
  21447. if test -n "$x_includes"; then
  21448. X_CFLAGS="$X_CFLAGS -I$x_includes"
  21449. fi
  21450. # It would also be nice to do this for all -L options, not just this one.
  21451. if test -n "$x_libraries"; then
  21452. X_LIBS="$X_LIBS -L$x_libraries"
  21453. # For Solaris; some versions of Sun CC require a space after -R and
  21454. # others require no space. Words are not sufficient . . . .
  21455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  21456. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  21457. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  21458. ac_xsave_c_werror_flag=$ac_c_werror_flag
  21459. ac_c_werror_flag=yes
  21460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21461. /* end confdefs.h. */
  21462. int
  21463. main ()
  21464. {
  21465. ;
  21466. return 0;
  21467. }
  21468. _ACEOF
  21469. if ac_fn_c_try_link "$LINENO"; then :
  21470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21471. $as_echo "no" >&6; }
  21472. X_LIBS="$X_LIBS -R$x_libraries"
  21473. else
  21474. LIBS="$ac_xsave_LIBS -R $x_libraries"
  21475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21476. /* end confdefs.h. */
  21477. int
  21478. main ()
  21479. {
  21480. ;
  21481. return 0;
  21482. }
  21483. _ACEOF
  21484. if ac_fn_c_try_link "$LINENO"; then :
  21485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21486. $as_echo "yes" >&6; }
  21487. X_LIBS="$X_LIBS -R $x_libraries"
  21488. else
  21489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  21490. $as_echo "neither works" >&6; }
  21491. fi
  21492. rm -f core conftest.err conftest.$ac_objext \
  21493. conftest$ac_exeext conftest.$ac_ext
  21494. fi
  21495. rm -f core conftest.err conftest.$ac_objext \
  21496. conftest$ac_exeext conftest.$ac_ext
  21497. ac_c_werror_flag=$ac_xsave_c_werror_flag
  21498. LIBS=$ac_xsave_LIBS
  21499. fi
  21500. # Check for system-dependent libraries X programs must link with.
  21501. # Do this before checking for the system-independent R6 libraries
  21502. # (-lICE), since we may need -lsocket or whatever for X linking.
  21503. if test "$ISC" = yes; then
  21504. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  21505. else
  21506. # Martyn Johnson says this is needed for Ultrix, if the X
  21507. # libraries were built with DECnet support. And Karl Berry says
  21508. # the Alpha needs dnet_stub (dnet does not exist).
  21509. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  21510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21511. /* end confdefs.h. */
  21512. /* Override any GCC internal prototype to avoid an error.
  21513. Use char because int might match the return type of a GCC
  21514. builtin and then its argument prototype would still apply. */
  21515. #ifdef __cplusplus
  21516. extern "C"
  21517. #endif
  21518. char XOpenDisplay ();
  21519. int
  21520. main ()
  21521. {
  21522. return XOpenDisplay ();
  21523. ;
  21524. return 0;
  21525. }
  21526. _ACEOF
  21527. if ac_fn_c_try_link "$LINENO"; then :
  21528. else
  21529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  21530. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  21531. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  21532. $as_echo_n "(cached) " >&6
  21533. else
  21534. ac_check_lib_save_LIBS=$LIBS
  21535. LIBS="-ldnet $LIBS"
  21536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21537. /* end confdefs.h. */
  21538. /* Override any GCC internal prototype to avoid an error.
  21539. Use char because int might match the return type of a GCC
  21540. builtin and then its argument prototype would still apply. */
  21541. #ifdef __cplusplus
  21542. extern "C"
  21543. #endif
  21544. char dnet_ntoa ();
  21545. int
  21546. main ()
  21547. {
  21548. return dnet_ntoa ();
  21549. ;
  21550. return 0;
  21551. }
  21552. _ACEOF
  21553. if ac_fn_c_try_link "$LINENO"; then :
  21554. ac_cv_lib_dnet_dnet_ntoa=yes
  21555. else
  21556. ac_cv_lib_dnet_dnet_ntoa=no
  21557. fi
  21558. rm -f core conftest.err conftest.$ac_objext \
  21559. conftest$ac_exeext conftest.$ac_ext
  21560. LIBS=$ac_check_lib_save_LIBS
  21561. fi
  21562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21563. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21564. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  21565. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21566. fi
  21567. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21569. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21570. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  21571. $as_echo_n "(cached) " >&6
  21572. else
  21573. ac_check_lib_save_LIBS=$LIBS
  21574. LIBS="-ldnet_stub $LIBS"
  21575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21576. /* end confdefs.h. */
  21577. /* Override any GCC internal prototype to avoid an error.
  21578. Use char because int might match the return type of a GCC
  21579. builtin and then its argument prototype would still apply. */
  21580. #ifdef __cplusplus
  21581. extern "C"
  21582. #endif
  21583. char dnet_ntoa ();
  21584. int
  21585. main ()
  21586. {
  21587. return dnet_ntoa ();
  21588. ;
  21589. return 0;
  21590. }
  21591. _ACEOF
  21592. if ac_fn_c_try_link "$LINENO"; then :
  21593. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21594. else
  21595. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21596. fi
  21597. rm -f core conftest.err conftest.$ac_objext \
  21598. conftest$ac_exeext conftest.$ac_ext
  21599. LIBS=$ac_check_lib_save_LIBS
  21600. fi
  21601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21602. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21603. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  21604. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21605. fi
  21606. fi
  21607. fi
  21608. rm -f core conftest.err conftest.$ac_objext \
  21609. conftest$ac_exeext conftest.$ac_ext
  21610. LIBS="$ac_xsave_LIBS"
  21611. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21612. # to get the SysV transport functions.
  21613. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21614. # needs -lnsl.
  21615. # The nsl library prevents programs from opening the X display
  21616. # on Irix 5.2, according to T.E. Dickey.
  21617. # The functions gethostbyname, getservbyname, and inet_addr are
  21618. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21619. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21620. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  21621. fi
  21622. if test $ac_cv_func_gethostbyname = no; then
  21623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21624. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  21625. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  21626. $as_echo_n "(cached) " >&6
  21627. else
  21628. ac_check_lib_save_LIBS=$LIBS
  21629. LIBS="-lnsl $LIBS"
  21630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21631. /* end confdefs.h. */
  21632. /* Override any GCC internal prototype to avoid an error.
  21633. Use char because int might match the return type of a GCC
  21634. builtin and then its argument prototype would still apply. */
  21635. #ifdef __cplusplus
  21636. extern "C"
  21637. #endif
  21638. char gethostbyname ();
  21639. int
  21640. main ()
  21641. {
  21642. return gethostbyname ();
  21643. ;
  21644. return 0;
  21645. }
  21646. _ACEOF
  21647. if ac_fn_c_try_link "$LINENO"; then :
  21648. ac_cv_lib_nsl_gethostbyname=yes
  21649. else
  21650. ac_cv_lib_nsl_gethostbyname=no
  21651. fi
  21652. rm -f core conftest.err conftest.$ac_objext \
  21653. conftest$ac_exeext conftest.$ac_ext
  21654. LIBS=$ac_check_lib_save_LIBS
  21655. fi
  21656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21657. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21658. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  21659. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21660. fi
  21661. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21663. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  21664. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  21665. $as_echo_n "(cached) " >&6
  21666. else
  21667. ac_check_lib_save_LIBS=$LIBS
  21668. LIBS="-lbsd $LIBS"
  21669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21670. /* end confdefs.h. */
  21671. /* Override any GCC internal prototype to avoid an error.
  21672. Use char because int might match the return type of a GCC
  21673. builtin and then its argument prototype would still apply. */
  21674. #ifdef __cplusplus
  21675. extern "C"
  21676. #endif
  21677. char gethostbyname ();
  21678. int
  21679. main ()
  21680. {
  21681. return gethostbyname ();
  21682. ;
  21683. return 0;
  21684. }
  21685. _ACEOF
  21686. if ac_fn_c_try_link "$LINENO"; then :
  21687. ac_cv_lib_bsd_gethostbyname=yes
  21688. else
  21689. ac_cv_lib_bsd_gethostbyname=no
  21690. fi
  21691. rm -f core conftest.err conftest.$ac_objext \
  21692. conftest$ac_exeext conftest.$ac_ext
  21693. LIBS=$ac_check_lib_save_LIBS
  21694. fi
  21695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21696. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21697. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  21698. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21699. fi
  21700. fi
  21701. fi
  21702. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21703. # socket/setsockopt and other routines are undefined under SCO ODT
  21704. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21705. # on later versions), says Simon Leinen: it contains gethostby*
  21706. # variants that don't use the name server (or something). -lsocket
  21707. # must be given before -lnsl if both are needed. We assume that
  21708. # if connect needs -lnsl, so does gethostbyname.
  21709. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21710. if test "x$ac_cv_func_connect" = xyes; then :
  21711. fi
  21712. if test $ac_cv_func_connect = no; then
  21713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21714. $as_echo_n "checking for connect in -lsocket... " >&6; }
  21715. if ${ac_cv_lib_socket_connect+:} false; then :
  21716. $as_echo_n "(cached) " >&6
  21717. else
  21718. ac_check_lib_save_LIBS=$LIBS
  21719. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21721. /* end confdefs.h. */
  21722. /* Override any GCC internal prototype to avoid an error.
  21723. Use char because int might match the return type of a GCC
  21724. builtin and then its argument prototype would still apply. */
  21725. #ifdef __cplusplus
  21726. extern "C"
  21727. #endif
  21728. char connect ();
  21729. int
  21730. main ()
  21731. {
  21732. return connect ();
  21733. ;
  21734. return 0;
  21735. }
  21736. _ACEOF
  21737. if ac_fn_c_try_link "$LINENO"; then :
  21738. ac_cv_lib_socket_connect=yes
  21739. else
  21740. ac_cv_lib_socket_connect=no
  21741. fi
  21742. rm -f core conftest.err conftest.$ac_objext \
  21743. conftest$ac_exeext conftest.$ac_ext
  21744. LIBS=$ac_check_lib_save_LIBS
  21745. fi
  21746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21747. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  21748. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  21749. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21750. fi
  21751. fi
  21752. # Guillermo Gomez says -lposix is necessary on A/UX.
  21753. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21754. if test "x$ac_cv_func_remove" = xyes; then :
  21755. fi
  21756. if test $ac_cv_func_remove = no; then
  21757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21758. $as_echo_n "checking for remove in -lposix... " >&6; }
  21759. if ${ac_cv_lib_posix_remove+:} false; then :
  21760. $as_echo_n "(cached) " >&6
  21761. else
  21762. ac_check_lib_save_LIBS=$LIBS
  21763. LIBS="-lposix $LIBS"
  21764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21765. /* end confdefs.h. */
  21766. /* Override any GCC internal prototype to avoid an error.
  21767. Use char because int might match the return type of a GCC
  21768. builtin and then its argument prototype would still apply. */
  21769. #ifdef __cplusplus
  21770. extern "C"
  21771. #endif
  21772. char remove ();
  21773. int
  21774. main ()
  21775. {
  21776. return remove ();
  21777. ;
  21778. return 0;
  21779. }
  21780. _ACEOF
  21781. if ac_fn_c_try_link "$LINENO"; then :
  21782. ac_cv_lib_posix_remove=yes
  21783. else
  21784. ac_cv_lib_posix_remove=no
  21785. fi
  21786. rm -f core conftest.err conftest.$ac_objext \
  21787. conftest$ac_exeext conftest.$ac_ext
  21788. LIBS=$ac_check_lib_save_LIBS
  21789. fi
  21790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21791. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  21792. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  21793. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21794. fi
  21795. fi
  21796. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21797. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21798. if test "x$ac_cv_func_shmat" = xyes; then :
  21799. fi
  21800. if test $ac_cv_func_shmat = no; then
  21801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21802. $as_echo_n "checking for shmat in -lipc... " >&6; }
  21803. if ${ac_cv_lib_ipc_shmat+:} false; then :
  21804. $as_echo_n "(cached) " >&6
  21805. else
  21806. ac_check_lib_save_LIBS=$LIBS
  21807. LIBS="-lipc $LIBS"
  21808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21809. /* end confdefs.h. */
  21810. /* Override any GCC internal prototype to avoid an error.
  21811. Use char because int might match the return type of a GCC
  21812. builtin and then its argument prototype would still apply. */
  21813. #ifdef __cplusplus
  21814. extern "C"
  21815. #endif
  21816. char shmat ();
  21817. int
  21818. main ()
  21819. {
  21820. return shmat ();
  21821. ;
  21822. return 0;
  21823. }
  21824. _ACEOF
  21825. if ac_fn_c_try_link "$LINENO"; then :
  21826. ac_cv_lib_ipc_shmat=yes
  21827. else
  21828. ac_cv_lib_ipc_shmat=no
  21829. fi
  21830. rm -f core conftest.err conftest.$ac_objext \
  21831. conftest$ac_exeext conftest.$ac_ext
  21832. LIBS=$ac_check_lib_save_LIBS
  21833. fi
  21834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21835. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  21836. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  21837. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21838. fi
  21839. fi
  21840. fi
  21841. # Check for libraries that X11R6 Xt/Xaw programs need.
  21842. ac_save_LDFLAGS=$LDFLAGS
  21843. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21844. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21845. # check for ICE first), but we must link in the order -lSM -lICE or
  21846. # we get undefined symbols. So assume we have SM if we have ICE.
  21847. # These have to be linked with before -lX11, unlike the other
  21848. # libraries we check for below, so use a different variable.
  21849. # John Interrante, Karl Berry
  21850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21851. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  21852. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  21853. $as_echo_n "(cached) " >&6
  21854. else
  21855. ac_check_lib_save_LIBS=$LIBS
  21856. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21858. /* end confdefs.h. */
  21859. /* Override any GCC internal prototype to avoid an error.
  21860. Use char because int might match the return type of a GCC
  21861. builtin and then its argument prototype would still apply. */
  21862. #ifdef __cplusplus
  21863. extern "C"
  21864. #endif
  21865. char IceConnectionNumber ();
  21866. int
  21867. main ()
  21868. {
  21869. return IceConnectionNumber ();
  21870. ;
  21871. return 0;
  21872. }
  21873. _ACEOF
  21874. if ac_fn_c_try_link "$LINENO"; then :
  21875. ac_cv_lib_ICE_IceConnectionNumber=yes
  21876. else
  21877. ac_cv_lib_ICE_IceConnectionNumber=no
  21878. fi
  21879. rm -f core conftest.err conftest.$ac_objext \
  21880. conftest$ac_exeext conftest.$ac_ext
  21881. LIBS=$ac_check_lib_save_LIBS
  21882. fi
  21883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21884. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21885. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  21886. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21887. fi
  21888. LDFLAGS=$ac_save_LDFLAGS
  21889. fi
  21890. if test "$no_x" != 'yes'
  21891. then
  21892. LDFLAGS="$LDFLAGS $X_LIBS"
  21893. LIB_X11="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  21894. LIBS="$LIB_X11 $LIBS"
  21895. CPPFLAGS="$CPPFLAGS $X_CFLAGS"
  21896. $as_echo "#define HasX11 1" >>confdefs.h
  21897. #
  21898. # Check for X11 shared memory extension
  21899. #
  21900. # shmctl is required to support the shared memory extension
  21901. LIB_IPC=''
  21902. ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
  21903. if test "x$ac_cv_func_shmctl" = xyes; then :
  21904. have_shmctl='yes'
  21905. fi
  21906. if test "$have_shmctl" != 'yes'
  21907. then
  21908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmctl" >&5
  21909. $as_echo_n "checking for library containing shmctl... " >&6; }
  21910. if ${ac_cv_search_shmctl+:} false; then :
  21911. $as_echo_n "(cached) " >&6
  21912. else
  21913. ac_func_search_save_LIBS=$LIBS
  21914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21915. /* end confdefs.h. */
  21916. /* Override any GCC internal prototype to avoid an error.
  21917. Use char because int might match the return type of a GCC
  21918. builtin and then its argument prototype would still apply. */
  21919. #ifdef __cplusplus
  21920. extern "C"
  21921. #endif
  21922. char shmctl ();
  21923. int
  21924. main ()
  21925. {
  21926. return shmctl ();
  21927. ;
  21928. return 0;
  21929. }
  21930. _ACEOF
  21931. for ac_lib in '' cygipc; do
  21932. if test -z "$ac_lib"; then
  21933. ac_res="none required"
  21934. else
  21935. ac_res=-l$ac_lib
  21936. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21937. fi
  21938. if ac_fn_c_try_link "$LINENO"; then :
  21939. ac_cv_search_shmctl=$ac_res
  21940. fi
  21941. rm -f core conftest.err conftest.$ac_objext \
  21942. conftest$ac_exeext
  21943. if ${ac_cv_search_shmctl+:} false; then :
  21944. break
  21945. fi
  21946. done
  21947. if ${ac_cv_search_shmctl+:} false; then :
  21948. else
  21949. ac_cv_search_shmctl=no
  21950. fi
  21951. rm conftest.$ac_ext
  21952. LIBS=$ac_func_search_save_LIBS
  21953. fi
  21954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmctl" >&5
  21955. $as_echo "$ac_cv_search_shmctl" >&6; }
  21956. ac_res=$ac_cv_search_shmctl
  21957. if test "$ac_res" != no; then :
  21958. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21959. have_shmctl='yes'; LIB_IPC='-lcygipc'
  21960. fi
  21961. fi
  21962. if test "$have_shmctl" = 'yes'
  21963. then
  21964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
  21965. $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
  21966. if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
  21967. $as_echo_n "(cached) " >&6
  21968. else
  21969. ac_check_lib_save_LIBS=$LIBS
  21970. LIBS="-lXext $LIBS"
  21971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21972. /* end confdefs.h. */
  21973. /* Override any GCC internal prototype to avoid an error.
  21974. Use char because int might match the return type of a GCC
  21975. builtin and then its argument prototype would still apply. */
  21976. #ifdef __cplusplus
  21977. extern "C"
  21978. #endif
  21979. char XShmAttach ();
  21980. int
  21981. main ()
  21982. {
  21983. return XShmAttach ();
  21984. ;
  21985. return 0;
  21986. }
  21987. _ACEOF
  21988. if ac_fn_c_try_link "$LINENO"; then :
  21989. ac_cv_lib_Xext_XShmAttach=yes
  21990. else
  21991. ac_cv_lib_Xext_XShmAttach=no
  21992. fi
  21993. rm -f core conftest.err conftest.$ac_objext \
  21994. conftest$ac_exeext conftest.$ac_ext
  21995. LIBS=$ac_check_lib_save_LIBS
  21996. fi
  21997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
  21998. $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
  21999. if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
  22000. LIB_XEXT='-lXext' ;
  22001. $as_echo "#define HasSharedMemory 1" >>confdefs.h
  22002. fi
  22003. fi
  22004. #
  22005. # Check for X11 shape extension
  22006. #
  22007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
  22008. $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
  22009. if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
  22010. $as_echo_n "(cached) " >&6
  22011. else
  22012. ac_check_lib_save_LIBS=$LIBS
  22013. LIBS="-lXext $LIBS"
  22014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22015. /* end confdefs.h. */
  22016. /* Override any GCC internal prototype to avoid an error.
  22017. Use char because int might match the return type of a GCC
  22018. builtin and then its argument prototype would still apply. */
  22019. #ifdef __cplusplus
  22020. extern "C"
  22021. #endif
  22022. char XShapeCombineMask ();
  22023. int
  22024. main ()
  22025. {
  22026. return XShapeCombineMask ();
  22027. ;
  22028. return 0;
  22029. }
  22030. _ACEOF
  22031. if ac_fn_c_try_link "$LINENO"; then :
  22032. ac_cv_lib_Xext_XShapeCombineMask=yes
  22033. else
  22034. ac_cv_lib_Xext_XShapeCombineMask=no
  22035. fi
  22036. rm -f core conftest.err conftest.$ac_objext \
  22037. conftest$ac_exeext conftest.$ac_ext
  22038. LIBS=$ac_check_lib_save_LIBS
  22039. fi
  22040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
  22041. $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
  22042. if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
  22043. LIB_XEXT='-lXext' ;
  22044. $as_echo "#define HasShape 1" >>confdefs.h
  22045. fi
  22046. LIBS="$LIB_XEXT $LIBS"
  22047. fi
  22048. if test "$no_x" != 'yes'
  22049. then
  22050. have_x='yes'
  22051. else
  22052. have_x='no'
  22053. fi
  22054. if test "$have_x" = 'yes'; then
  22055. HasX11_TRUE=
  22056. HasX11_FALSE='#'
  22057. else
  22058. HasX11_TRUE='#'
  22059. HasX11_FALSE=
  22060. fi
  22061. #
  22062. # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
  22063. #
  22064. LIB_DL=''
  22065. if test "$with_profiling" = 'yes'
  22066. then
  22067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22068. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  22069. if ${ac_cv_lib_dl_dlopen+:} false; then :
  22070. $as_echo_n "(cached) " >&6
  22071. else
  22072. ac_check_lib_save_LIBS=$LIBS
  22073. LIBS="-ldl $LIBS"
  22074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22075. /* end confdefs.h. */
  22076. /* Override any GCC internal prototype to avoid an error.
  22077. Use char because int might match the return type of a GCC
  22078. builtin and then its argument prototype would still apply. */
  22079. #ifdef __cplusplus
  22080. extern "C"
  22081. #endif
  22082. char dlopen ();
  22083. int
  22084. main ()
  22085. {
  22086. return dlopen ();
  22087. ;
  22088. return 0;
  22089. }
  22090. _ACEOF
  22091. if ac_fn_c_try_link "$LINENO"; then :
  22092. ac_cv_lib_dl_dlopen=yes
  22093. else
  22094. ac_cv_lib_dl_dlopen=no
  22095. fi
  22096. rm -f core conftest.err conftest.$ac_objext \
  22097. conftest$ac_exeext conftest.$ac_ext
  22098. LIBS=$ac_check_lib_save_LIBS
  22099. fi
  22100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22101. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  22102. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  22103. LIB_DL='-ldl'
  22104. fi
  22105. LIBS="$LIB_DL $LIBS"
  22106. fi
  22107. #
  22108. # Check for Display Postscript
  22109. #
  22110. have_dps='no'
  22111. LIB_DPS=''
  22112. if test "$with_dps" != 'no' && test "$with_x" != 'no'
  22113. then
  22114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Display Postscript support " >&5
  22115. $as_echo_n "checking for Display Postscript support ... " >&6; }
  22116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  22117. $as_echo "" >&6; }
  22118. failed=0
  22119. passed=0
  22120. O_CPPFLAGS="$CPPFLAGS"
  22121. CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
  22122. ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
  22123. if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
  22124. passed=`expr $passed + 1`
  22125. else
  22126. failed=`expr $failed + 1`
  22127. fi
  22128. # DPS issues:
  22129. # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
  22130. # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
  22131. # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
  22132. # GraphicsMagick itself doesn't use -lXt.
  22133. have_libdps='no'
  22134. LIBDPS_XT=''
  22135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
  22136. $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
  22137. if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
  22138. $as_echo_n "(cached) " >&6
  22139. else
  22140. ac_check_lib_save_LIBS=$LIBS
  22141. LIBS="-ldps $LIBS"
  22142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22143. /* end confdefs.h. */
  22144. /* Override any GCC internal prototype to avoid an error.
  22145. Use char because int might match the return type of a GCC
  22146. builtin and then its argument prototype would still apply. */
  22147. #ifdef __cplusplus
  22148. extern "C"
  22149. #endif
  22150. char DPSInitialize ();
  22151. int
  22152. main ()
  22153. {
  22154. return DPSInitialize ();
  22155. ;
  22156. return 0;
  22157. }
  22158. _ACEOF
  22159. if ac_fn_c_try_link "$LINENO"; then :
  22160. ac_cv_lib_dps_DPSInitialize=yes
  22161. else
  22162. ac_cv_lib_dps_DPSInitialize=no
  22163. fi
  22164. rm -f core conftest.err conftest.$ac_objext \
  22165. conftest$ac_exeext conftest.$ac_ext
  22166. LIBS=$ac_check_lib_save_LIBS
  22167. fi
  22168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
  22169. $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
  22170. if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
  22171. have_libdps='yes'
  22172. else
  22173. have_libdps='no'
  22174. fi
  22175. if test "$have_libdps" != 'yes'
  22176. then
  22177. # Unset cache variable so we can try again.
  22178. unset ac_cv_lib_dps_DPSInitialize
  22179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
  22180. $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
  22181. if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
  22182. $as_echo_n "(cached) " >&6
  22183. else
  22184. ac_check_lib_save_LIBS=$LIBS
  22185. LIBS="-ldps -lXt $LIBS"
  22186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22187. /* end confdefs.h. */
  22188. /* Override any GCC internal prototype to avoid an error.
  22189. Use char because int might match the return type of a GCC
  22190. builtin and then its argument prototype would still apply. */
  22191. #ifdef __cplusplus
  22192. extern "C"
  22193. #endif
  22194. char DPSInitialize ();
  22195. int
  22196. main ()
  22197. {
  22198. return DPSInitialize ();
  22199. ;
  22200. return 0;
  22201. }
  22202. _ACEOF
  22203. if ac_fn_c_try_link "$LINENO"; then :
  22204. ac_cv_lib_dps_DPSInitialize=yes
  22205. else
  22206. ac_cv_lib_dps_DPSInitialize=no
  22207. fi
  22208. rm -f core conftest.err conftest.$ac_objext \
  22209. conftest$ac_exeext conftest.$ac_ext
  22210. LIBS=$ac_check_lib_save_LIBS
  22211. fi
  22212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
  22213. $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
  22214. if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
  22215. have_libdps='yes'
  22216. else
  22217. have_libdps='no'
  22218. fi
  22219. if test "$have_libdps" = 'yes'
  22220. then
  22221. LIBDPS_XT='-lXt'
  22222. fi
  22223. fi
  22224. if test "$have_libdps" = 'yes'
  22225. then
  22226. passed=`expr $passed + 1`
  22227. else
  22228. failed=`expr $failed + 1`
  22229. fi
  22230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
  22231. $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
  22232. if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
  22233. $as_echo_n "(cached) " >&6
  22234. else
  22235. ac_check_lib_save_LIBS=$LIBS
  22236. LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
  22237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22238. /* end confdefs.h. */
  22239. /* Override any GCC internal prototype to avoid an error.
  22240. Use char because int might match the return type of a GCC
  22241. builtin and then its argument prototype would still apply. */
  22242. #ifdef __cplusplus
  22243. extern "C"
  22244. #endif
  22245. char XDPSPixelsPerPoint ();
  22246. int
  22247. main ()
  22248. {
  22249. return XDPSPixelsPerPoint ();
  22250. ;
  22251. return 0;
  22252. }
  22253. _ACEOF
  22254. if ac_fn_c_try_link "$LINENO"; then :
  22255. ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
  22256. else
  22257. ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
  22258. fi
  22259. rm -f core conftest.err conftest.$ac_objext \
  22260. conftest$ac_exeext conftest.$ac_ext
  22261. LIBS=$ac_check_lib_save_LIBS
  22262. fi
  22263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
  22264. $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
  22265. if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
  22266. passed=`expr $passed + 1`
  22267. else
  22268. failed=`expr $failed + 1`
  22269. fi
  22270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
  22271. $as_echo_n "checking if DPS package is complete... " >&6; }
  22272. if test $passed -gt 0
  22273. then
  22274. if test $failed -gt 0
  22275. then
  22276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  22277. $as_echo "no -- some components failed test" >&6; }
  22278. have_dps='no (failed tests)'
  22279. CPPFLAGS="$O_CPPFLAGS"
  22280. else
  22281. LIB_DPS="-ldpstk -ldps ${LIBDPS_XT}"
  22282. LIBS="$LIB_DPS $LIBS"
  22283. $as_echo "#define HasDPS 1" >>confdefs.h
  22284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22285. $as_echo "yes" >&6; }
  22286. have_dps='yes'
  22287. fi
  22288. else
  22289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22290. $as_echo "no" >&6; }
  22291. CPPFLAGS=$O_CPPFLAGS
  22292. fi
  22293. fi
  22294. if test "$have_dps" = 'yes'; then
  22295. HasDPS_TRUE=
  22296. HasDPS_FALSE='#'
  22297. else
  22298. HasDPS_TRUE='#'
  22299. HasDPS_FALSE=
  22300. fi
  22301. #
  22302. # Check for FlashPIX
  22303. #
  22304. have_fpx='no'
  22305. LIB_FPX=''
  22306. if test "$with_fpx" != 'no'
  22307. then
  22308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX components " >&5
  22309. $as_echo_n "checking for FlashPIX components ... " >&6; }
  22310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  22311. $as_echo "" >&6; }
  22312. failed=0
  22313. passed=0
  22314. ac_ext=cpp
  22315. ac_cpp='$CXXCPP $CPPFLAGS'
  22316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22319. ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
  22320. if test "x$ac_cv_header_fpxlib_h" = xyes; then :
  22321. passed=`expr $passed + 1`
  22322. else
  22323. failed=`expr $failed + 1`
  22324. fi
  22325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
  22326. $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
  22327. if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
  22328. $as_echo_n "(cached) " >&6
  22329. else
  22330. ac_check_lib_save_LIBS=$LIBS
  22331. LIBS="-lfpx $LIBS"
  22332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22333. /* end confdefs.h. */
  22334. /* Override any GCC internal prototype to avoid an error.
  22335. Use char because int might match the return type of a GCC
  22336. builtin and then its argument prototype would still apply. */
  22337. #ifdef __cplusplus
  22338. extern "C"
  22339. #endif
  22340. char FPX_OpenImageByFilename ();
  22341. int
  22342. main ()
  22343. {
  22344. return FPX_OpenImageByFilename ();
  22345. ;
  22346. return 0;
  22347. }
  22348. _ACEOF
  22349. if ac_fn_cxx_try_link "$LINENO"; then :
  22350. ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
  22351. else
  22352. ac_cv_lib_fpx_FPX_OpenImageByFilename=no
  22353. fi
  22354. rm -f core conftest.err conftest.$ac_objext \
  22355. conftest$ac_exeext conftest.$ac_ext
  22356. LIBS=$ac_check_lib_save_LIBS
  22357. fi
  22358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
  22359. $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
  22360. if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
  22361. passed=`expr $passed + 1`
  22362. else
  22363. failed=`expr $failed + 1`
  22364. fi
  22365. ac_ext=c
  22366. ac_cpp='$CPP $CPPFLAGS'
  22367. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22368. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22369. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
  22371. $as_echo_n "checking if FlashPIX package is complete... " >&6; }
  22372. if test $passed -gt 0
  22373. then
  22374. if test $failed -gt 0
  22375. then
  22376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  22377. $as_echo "no -- some components failed test" >&6; }
  22378. have_fpx='no (failed tests)'
  22379. else
  22380. LIB_FPX='-lfpx'
  22381. # LIBS="$LIB_FPX $LIBS"
  22382. $as_echo "#define HasFPX 1" >>confdefs.h
  22383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22384. $as_echo "yes" >&6; }
  22385. have_fpx='yes'
  22386. PERLMAINCC="$CXX"
  22387. fi
  22388. else
  22389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22390. $as_echo "no" >&6; }
  22391. fi
  22392. fi
  22393. if test "$have_fpx" = 'yes'; then
  22394. HasFPX_TRUE=
  22395. HasFPX_FALSE='#'
  22396. else
  22397. HasFPX_TRUE='#'
  22398. HasFPX_FALSE=
  22399. fi
  22400. #
  22401. # Check for LCMS v2
  22402. #
  22403. have_lcms2='no'
  22404. LIB_LCMS=''
  22405. if test "$with_lcms2" != 'no'
  22406. then
  22407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcms v2 support" >&5
  22408. $as_echo_n "checking for lcms v2 support... " >&6; }
  22409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  22410. $as_echo "" >&6; }
  22411. failed=0
  22412. passed=0
  22413. have_lcms_header='no'
  22414. # Check for <lcms2.h>
  22415. ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
  22416. if test "x$ac_cv_header_lcms2_h" = xyes; then :
  22417. have_lcms_header='yes'
  22418. fi
  22419. if test "$have_lcms_header" = 'yes'
  22420. then
  22421. $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
  22422. passed=`expr $passed + 1`
  22423. fi
  22424. # Check for <lcms2/lcms2.h)
  22425. if test "$have_lcms_header" != 'yes'
  22426. then
  22427. ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
  22428. if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
  22429. have_lcms_header='yes'
  22430. fi
  22431. if test "$have_lcms_header" = 'yes'
  22432. then
  22433. passed=`expr $passed + 1`
  22434. $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
  22435. fi
  22436. fi
  22437. # Failed to find lcms header?
  22438. if test "$have_lcms_header" != 'yes'
  22439. then
  22440. failed=`expr $failed + 1`
  22441. fi
  22442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
  22443. $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
  22444. if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
  22445. $as_echo_n "(cached) " >&6
  22446. else
  22447. ac_check_lib_save_LIBS=$LIBS
  22448. LIBS="-llcms2 $LIBS"
  22449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22450. /* end confdefs.h. */
  22451. /* Override any GCC internal prototype to avoid an error.
  22452. Use char because int might match the return type of a GCC
  22453. builtin and then its argument prototype would still apply. */
  22454. #ifdef __cplusplus
  22455. extern "C"
  22456. #endif
  22457. char cmsSetLogErrorHandler ();
  22458. int
  22459. main ()
  22460. {
  22461. return cmsSetLogErrorHandler ();
  22462. ;
  22463. return 0;
  22464. }
  22465. _ACEOF
  22466. if ac_fn_c_try_link "$LINENO"; then :
  22467. ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
  22468. else
  22469. ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
  22470. fi
  22471. rm -f core conftest.err conftest.$ac_objext \
  22472. conftest$ac_exeext conftest.$ac_ext
  22473. LIBS=$ac_check_lib_save_LIBS
  22474. fi
  22475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
  22476. $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
  22477. if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
  22478. passed=`expr $passed + 1`
  22479. else
  22480. failed=`expr $failed + 1`
  22481. fi
  22482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
  22483. $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
  22484. if test $passed -gt 0
  22485. then
  22486. if test $failed -gt 0
  22487. then
  22488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  22489. $as_echo "no -- some components failed test" >&6; }
  22490. have_lcms2='no (failed tests)'
  22491. else
  22492. LIB_LCMS='-llcms2'
  22493. LIBS="$LIB_LCMS $LIBS"
  22494. #AC_DEFINE(HasLCMS2,1,Define if you have LCMS v2 library)
  22495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22496. $as_echo "yes" >&6; }
  22497. have_lcms2='yes'
  22498. fi
  22499. else
  22500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22501. $as_echo "no" >&6; }
  22502. fi
  22503. fi
  22504. #
  22505. # Check for LCMS v1 (1.11 or later)
  22506. #
  22507. if test $have_lcms2 = 'yes'
  22508. then
  22509. with_lcms='no'
  22510. fi
  22511. have_lcms='no'
  22512. if test "$with_lcms" != 'no'
  22513. then
  22514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcms v1.1X support" >&5
  22515. $as_echo_n "checking for lcms v1.1X support... " >&6; }
  22516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  22517. $as_echo "" >&6; }
  22518. failed=0
  22519. passed=0
  22520. have_lcms_header='no'
  22521. # Check for <lcms.h>
  22522. if test "$have_lcms_header" != 'yes'
  22523. then
  22524. ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
  22525. if test "x$ac_cv_header_lcms_h" = xyes; then :
  22526. have_lcms_header='yes'
  22527. fi
  22528. if test "$have_lcms_header" = 'yes'
  22529. then
  22530. passed=`expr $passed + 1`
  22531. $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
  22532. fi
  22533. fi
  22534. # Check for <lcms/lcms.h>
  22535. if test "$have_lcms_header" != 'yes'
  22536. then
  22537. ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
  22538. if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
  22539. have_lcms_header='yes'
  22540. fi
  22541. if test "$have_lcms_header" = 'yes'
  22542. then
  22543. passed=`expr $passed + 1`
  22544. $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
  22545. fi
  22546. fi
  22547. # Failed to find lcms header?
  22548. if test "$have_lcms_header" != 'yes'
  22549. then
  22550. failed=`expr $failed + 1`
  22551. fi
  22552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
  22553. $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
  22554. if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
  22555. $as_echo_n "(cached) " >&6
  22556. else
  22557. ac_check_lib_save_LIBS=$LIBS
  22558. LIBS="-llcms $LIBS"
  22559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22560. /* end confdefs.h. */
  22561. /* Override any GCC internal prototype to avoid an error.
  22562. Use char because int might match the return type of a GCC
  22563. builtin and then its argument prototype would still apply. */
  22564. #ifdef __cplusplus
  22565. extern "C"
  22566. #endif
  22567. char cmsSetErrorHandler ();
  22568. int
  22569. main ()
  22570. {
  22571. return cmsSetErrorHandler ();
  22572. ;
  22573. return 0;
  22574. }
  22575. _ACEOF
  22576. if ac_fn_c_try_link "$LINENO"; then :
  22577. ac_cv_lib_lcms_cmsSetErrorHandler=yes
  22578. else
  22579. ac_cv_lib_lcms_cmsSetErrorHandler=no
  22580. fi
  22581. rm -f core conftest.err conftest.$ac_objext \
  22582. conftest$ac_exeext conftest.$ac_ext
  22583. LIBS=$ac_check_lib_save_LIBS
  22584. fi
  22585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
  22586. $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
  22587. if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
  22588. passed=`expr $passed + 1`
  22589. else
  22590. failed=`expr $failed + 1`
  22591. fi
  22592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
  22593. $as_echo_n "checking if LCMS package is complete... " >&6; }
  22594. if test $passed -gt 0
  22595. then
  22596. if test $failed -gt 0
  22597. then
  22598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  22599. $as_echo "no -- some components failed test" >&6; }
  22600. have_lcms='no (failed tests)'
  22601. else
  22602. LIB_LCMS='-llcms'
  22603. LIBS="$LIB_LCMS $LIBS"
  22604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22605. $as_echo "yes" >&6; }
  22606. have_lcms='yes'
  22607. fi
  22608. else
  22609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22610. $as_echo "no" >&6; }
  22611. fi
  22612. fi
  22613. if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
  22614. HasLCMS_TRUE=
  22615. HasLCMS_FALSE='#'
  22616. else
  22617. HasLCMS_TRUE='#'
  22618. HasLCMS_FALSE=
  22619. fi
  22620. if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'
  22621. then
  22622. $as_echo "#define HasLCMS 1" >>confdefs.h
  22623. fi
  22624. have_png='no'
  22625. LIB_PNG=''
  22626. if test "$have_zlib" = 'yes'
  22627. then
  22628. #
  22629. # Check for PNG delegate library.
  22630. #
  22631. # Check whether --with-png was given.
  22632. if test "${with_png+set}" = set; then :
  22633. withval=$with_png; with_png=$withval
  22634. else
  22635. with_png='yes'
  22636. fi
  22637. if test "$with_png" != 'yes'; then
  22638. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
  22639. fi
  22640. if test "$with_png" != 'no' ; then
  22641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
  22642. $as_echo_n "checking for PNG support ... " >&6; }
  22643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  22644. $as_echo "" >&6; }
  22645. failed=0
  22646. passed=0
  22647. ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
  22648. if test "x$ac_cv_header_png_h" = xyes; then :
  22649. passed=`expr $passed + 1`
  22650. else
  22651. failed=`expr $failed + 1`
  22652. fi
  22653. if test $passed -gt 0; then
  22654. for var in 5 4 2 '' ; do
  22655. if test "x${var}" = 'x' ; then
  22656. pnglib='png'
  22657. else
  22658. pnglib="png1${var}"
  22659. fi
  22660. if test "$have_png" = 'no'
  22661. then
  22662. # Test for compatible LIBPNG library
  22663. failed=0
  22664. passed=0
  22665. if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
  22666. if test "${pnglib}" != 'png' ; then
  22667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
  22668. $as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
  22669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22670. /* end confdefs.h. */
  22671. #include <stdio.h>
  22672. #include <stdlib.h>
  22673. #include <png.h>
  22674. int
  22675. main ()
  22676. {
  22677. #if PNG_LIBPNG_VER_MINOR != ${var}
  22678. #error LIBPNG library must be version 1${var}!
  22679. Kaboom, Kaboom
  22680. #endif
  22681. return 0;
  22682. ;
  22683. return 0;
  22684. }
  22685. _ACEOF
  22686. if ac_fn_c_try_compile "$LINENO"; then :
  22687. ac_cv_libpng_ok='yes'
  22688. else
  22689. ac_cv_libpng_ok='no'
  22690. fi
  22691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22692. if test "$ac_cv_libpng_ok" = 'yes' ; then
  22693. passed=`expr $passed + 1`
  22694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22695. $as_echo "yes" >&6; }
  22696. else
  22697. failed=`expr $failed + 1`
  22698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22699. $as_echo "no" >&6; }
  22700. fi
  22701. else
  22702. passed=`expr $passed + 1`
  22703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22704. $as_echo "yes" >&6; }
  22705. fi
  22706. fi
  22707. if test $passed -gt 0 -a $failed -le 0
  22708. then
  22709. if test "1${var}" = '15' ; then
  22710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
  22711. $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
  22712. if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
  22713. $as_echo_n "(cached) " >&6
  22714. else
  22715. ac_check_lib_save_LIBS=$LIBS
  22716. LIBS="-lpng15 $LIBS"
  22717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22718. /* end confdefs.h. */
  22719. /* Override any GCC internal prototype to avoid an error.
  22720. Use char because int might match the return type of a GCC
  22721. builtin and then its argument prototype would still apply. */
  22722. #ifdef __cplusplus
  22723. extern "C"
  22724. #endif
  22725. char png_get_io_ptr ();
  22726. int
  22727. main ()
  22728. {
  22729. return png_get_io_ptr ();
  22730. ;
  22731. return 0;
  22732. }
  22733. _ACEOF
  22734. if ac_fn_c_try_link "$LINENO"; then :
  22735. ac_cv_lib_png15_png_get_io_ptr=yes
  22736. else
  22737. ac_cv_lib_png15_png_get_io_ptr=no
  22738. fi
  22739. rm -f core conftest.err conftest.$ac_objext \
  22740. conftest$ac_exeext conftest.$ac_ext
  22741. LIBS=$ac_check_lib_save_LIBS
  22742. fi
  22743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
  22744. $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
  22745. if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
  22746. passed=`expr $passed + 1`
  22747. else
  22748. failed=`expr $failed + 1`
  22749. fi
  22750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
  22751. $as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
  22752. if ${ac_cv_lib_png15_png_longjmp+:} false; then :
  22753. $as_echo_n "(cached) " >&6
  22754. else
  22755. ac_check_lib_save_LIBS=$LIBS
  22756. LIBS="-lpng15 $LIBS"
  22757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22758. /* end confdefs.h. */
  22759. /* Override any GCC internal prototype to avoid an error.
  22760. Use char because int might match the return type of a GCC
  22761. builtin and then its argument prototype would still apply. */
  22762. #ifdef __cplusplus
  22763. extern "C"
  22764. #endif
  22765. char png_longjmp ();
  22766. int
  22767. main ()
  22768. {
  22769. return png_longjmp ();
  22770. ;
  22771. return 0;
  22772. }
  22773. _ACEOF
  22774. if ac_fn_c_try_link "$LINENO"; then :
  22775. ac_cv_lib_png15_png_longjmp=yes
  22776. else
  22777. ac_cv_lib_png15_png_longjmp=no
  22778. fi
  22779. rm -f core conftest.err conftest.$ac_objext \
  22780. conftest$ac_exeext conftest.$ac_ext
  22781. LIBS=$ac_check_lib_save_LIBS
  22782. fi
  22783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
  22784. $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
  22785. if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
  22786. passed=`expr $passed + 1`
  22787. else
  22788. failed=`expr $failed + 1`
  22789. fi
  22790. fi
  22791. if test "1${var}" = '14' ; then
  22792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
  22793. $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
  22794. if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
  22795. $as_echo_n "(cached) " >&6
  22796. else
  22797. ac_check_lib_save_LIBS=$LIBS
  22798. LIBS="-lpng14 $LIBS"
  22799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22800. /* end confdefs.h. */
  22801. /* Override any GCC internal prototype to avoid an error.
  22802. Use char because int might match the return type of a GCC
  22803. builtin and then its argument prototype would still apply. */
  22804. #ifdef __cplusplus
  22805. extern "C"
  22806. #endif
  22807. char png_get_io_ptr ();
  22808. int
  22809. main ()
  22810. {
  22811. return png_get_io_ptr ();
  22812. ;
  22813. return 0;
  22814. }
  22815. _ACEOF
  22816. if ac_fn_c_try_link "$LINENO"; then :
  22817. ac_cv_lib_png14_png_get_io_ptr=yes
  22818. else
  22819. ac_cv_lib_png14_png_get_io_ptr=no
  22820. fi
  22821. rm -f core conftest.err conftest.$ac_objext \
  22822. conftest$ac_exeext conftest.$ac_ext
  22823. LIBS=$ac_check_lib_save_LIBS
  22824. fi
  22825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
  22826. $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
  22827. if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
  22828. passed=`expr $passed + 1`
  22829. else
  22830. failed=`expr $failed + 1`
  22831. fi
  22832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
  22833. $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
  22834. if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
  22835. $as_echo_n "(cached) " >&6
  22836. else
  22837. ac_check_lib_save_LIBS=$LIBS
  22838. LIBS="-lpng14 $LIBS"
  22839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22840. /* end confdefs.h. */
  22841. /* Override any GCC internal prototype to avoid an error.
  22842. Use char because int might match the return type of a GCC
  22843. builtin and then its argument prototype would still apply. */
  22844. #ifdef __cplusplus
  22845. extern "C"
  22846. #endif
  22847. char png_get_io_state ();
  22848. int
  22849. main ()
  22850. {
  22851. return png_get_io_state ();
  22852. ;
  22853. return 0;
  22854. }
  22855. _ACEOF
  22856. if ac_fn_c_try_link "$LINENO"; then :
  22857. ac_cv_lib_png14_png_get_io_state=yes
  22858. else
  22859. ac_cv_lib_png14_png_get_io_state=no
  22860. fi
  22861. rm -f core conftest.err conftest.$ac_objext \
  22862. conftest$ac_exeext conftest.$ac_ext
  22863. LIBS=$ac_check_lib_save_LIBS
  22864. fi
  22865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
  22866. $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
  22867. if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
  22868. passed=`expr $passed + 1`
  22869. else
  22870. failed=`expr $failed + 1`
  22871. fi
  22872. fi
  22873. if test "1${var}" = '12' ; then
  22874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
  22875. $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
  22876. if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
  22877. $as_echo_n "(cached) " >&6
  22878. else
  22879. ac_check_lib_save_LIBS=$LIBS
  22880. LIBS="-lpng12 $LIBS"
  22881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22882. /* end confdefs.h. */
  22883. /* Override any GCC internal prototype to avoid an error.
  22884. Use char because int might match the return type of a GCC
  22885. builtin and then its argument prototype would still apply. */
  22886. #ifdef __cplusplus
  22887. extern "C"
  22888. #endif
  22889. char png_get_io_ptr ();
  22890. int
  22891. main ()
  22892. {
  22893. return png_get_io_ptr ();
  22894. ;
  22895. return 0;
  22896. }
  22897. _ACEOF
  22898. if ac_fn_c_try_link "$LINENO"; then :
  22899. ac_cv_lib_png12_png_get_io_ptr=yes
  22900. else
  22901. ac_cv_lib_png12_png_get_io_ptr=no
  22902. fi
  22903. rm -f core conftest.err conftest.$ac_objext \
  22904. conftest$ac_exeext conftest.$ac_ext
  22905. LIBS=$ac_check_lib_save_LIBS
  22906. fi
  22907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
  22908. $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
  22909. if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
  22910. passed=`expr $passed + 1`
  22911. else
  22912. failed=`expr $failed + 1`
  22913. fi
  22914. fi
  22915. if test "1${var}" = '1' ; then
  22916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
  22917. $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
  22918. if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
  22919. $as_echo_n "(cached) " >&6
  22920. else
  22921. ac_check_lib_save_LIBS=$LIBS
  22922. LIBS="-lpng $LIBS"
  22923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22924. /* end confdefs.h. */
  22925. /* Override any GCC internal prototype to avoid an error.
  22926. Use char because int might match the return type of a GCC
  22927. builtin and then its argument prototype would still apply. */
  22928. #ifdef __cplusplus
  22929. extern "C"
  22930. #endif
  22931. char png_get_io_ptr ();
  22932. int
  22933. main ()
  22934. {
  22935. return png_get_io_ptr ();
  22936. ;
  22937. return 0;
  22938. }
  22939. _ACEOF
  22940. if ac_fn_c_try_link "$LINENO"; then :
  22941. ac_cv_lib_png_png_get_io_ptr=yes
  22942. else
  22943. ac_cv_lib_png_png_get_io_ptr=no
  22944. fi
  22945. rm -f core conftest.err conftest.$ac_objext \
  22946. conftest$ac_exeext conftest.$ac_ext
  22947. LIBS=$ac_check_lib_save_LIBS
  22948. fi
  22949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
  22950. $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
  22951. if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
  22952. passed=`expr $passed + 1`
  22953. else
  22954. failed=`expr $failed + 1`
  22955. fi
  22956. fi
  22957. if test $passed -gt 0 -a $failed -le 0 ; then
  22958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
  22959. $as_echo_n "checking if ${pnglib} package is complete... " >&6; }
  22960. if test $passed -gt 0 ; then
  22961. if test $failed -gt 0 ; then
  22962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  22963. $as_echo "no -- some components failed test" >&6; }
  22964. have_png='no (failed tests)'
  22965. else
  22966. LIB_PNG="-l${pnglib}"
  22967. LIBS="$LIB_PNG $LIBS"
  22968. $as_echo "#define HasPNG 1" >>confdefs.h
  22969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22970. $as_echo "yes" >&6; }
  22971. have_png='yes'
  22972. fi
  22973. fi
  22974. fi
  22975. fi
  22976. fi
  22977. done
  22978. fi
  22979. fi
  22980. else
  22981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: PNG requires zlib support" >&5
  22982. $as_echo "PNG requires zlib support" >&6; }
  22983. fi
  22984. if test "$have_png" = 'yes'; then
  22985. HasPNG_TRUE=
  22986. HasPNG_FALSE='#'
  22987. else
  22988. HasPNG_TRUE='#'
  22989. HasPNG_FALSE=
  22990. fi
  22991. #
  22992. # Check for JPEG
  22993. #
  22994. have_jpeg='no'
  22995. LIB_JPEG=''
  22996. if test "$with_jpeg" != 'no'
  22997. then
  22998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support " >&5
  22999. $as_echo_n "checking for JPEG support ... " >&6; }
  23000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  23001. $as_echo "" >&6; }
  23002. failed=0
  23003. passed=0
  23004. ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
  23005. if test "x$ac_cv_header_jconfig_h" = xyes; then :
  23006. passed=`expr $passed + 1`
  23007. else
  23008. failed=`expr $failed + 1`
  23009. fi
  23010. ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
  23011. if test "x$ac_cv_header_jerror_h" = xyes; then :
  23012. passed=`expr $passed + 1`
  23013. else
  23014. failed=`expr $failed + 1`
  23015. fi
  23016. ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
  23017. if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
  23018. passed=`expr $passed + 1`
  23019. else
  23020. failed=`expr $failed + 1`
  23021. fi
  23022. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  23023. if test "x$ac_cv_header_jpeglib_h" = xyes; then :
  23024. passed=`expr $passed + 1`
  23025. else
  23026. failed=`expr $failed + 1`
  23027. fi
  23028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
  23029. $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
  23030. if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
  23031. $as_echo_n "(cached) " >&6
  23032. else
  23033. ac_check_lib_save_LIBS=$LIBS
  23034. LIBS="-ljpeg $LIBS"
  23035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23036. /* end confdefs.h. */
  23037. /* Override any GCC internal prototype to avoid an error.
  23038. Use char because int might match the return type of a GCC
  23039. builtin and then its argument prototype would still apply. */
  23040. #ifdef __cplusplus
  23041. extern "C"
  23042. #endif
  23043. char jpeg_read_header ();
  23044. int
  23045. main ()
  23046. {
  23047. return jpeg_read_header ();
  23048. ;
  23049. return 0;
  23050. }
  23051. _ACEOF
  23052. if ac_fn_c_try_link "$LINENO"; then :
  23053. ac_cv_lib_jpeg_jpeg_read_header=yes
  23054. else
  23055. ac_cv_lib_jpeg_jpeg_read_header=no
  23056. fi
  23057. rm -f core conftest.err conftest.$ac_objext \
  23058. conftest$ac_exeext conftest.$ac_ext
  23059. LIBS=$ac_check_lib_save_LIBS
  23060. fi
  23061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
  23062. $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
  23063. if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
  23064. passed=`expr $passed + 1`
  23065. else
  23066. failed=`expr $failed + 1`
  23067. fi
  23068. # Test for compatible JPEG library
  23069. if test "$ac_cv_jpeg_version_ok" != 'yes' ; then
  23070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
  23071. $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
  23072. if ${ac_cv_jpeg_version_ok+:} false; then :
  23073. $as_echo_n "(cached) " >&6
  23074. else
  23075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23076. /* end confdefs.h. */
  23077. #include <stdio.h>
  23078. #include <stdlib.h>
  23079. #include <jpeglib.h>
  23080. int
  23081. main ()
  23082. {
  23083. #if JPEG_LIB_VERSION < 62
  23084. #error IJG JPEG library must be version 6b or newer!
  23085. Kaboom, Kaboom
  23086. #endif
  23087. return 0;
  23088. ;
  23089. return 0;
  23090. }
  23091. _ACEOF
  23092. if ac_fn_c_try_compile "$LINENO"; then :
  23093. ac_cv_jpeg_version_ok='yes'
  23094. else
  23095. ac_cv_jpeg_version_ok='no'
  23096. fi
  23097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23098. fi
  23099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
  23100. $as_echo "$ac_cv_jpeg_version_ok" >&6; }
  23101. if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
  23102. passed=`expr $passed + 1`
  23103. else
  23104. failed=`expr $failed + 1`
  23105. fi
  23106. fi
  23107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
  23108. $as_echo_n "checking if JPEG package is complete... " >&6; }
  23109. if test $passed -gt 0
  23110. then
  23111. if test $failed -gt 0
  23112. then
  23113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  23114. $as_echo "no -- some components failed test" >&6; }
  23115. have_jpeg='no (failed tests)'
  23116. else
  23117. LIB_JPEG='-ljpeg'
  23118. LIBS="$LIB_JPEG $LIBS"
  23119. $as_echo "#define HasJPEG 1" >>confdefs.h
  23120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23121. $as_echo "yes" >&6; }
  23122. have_jpeg='yes'
  23123. fi
  23124. else
  23125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23126. $as_echo "no" >&6; }
  23127. fi
  23128. fi
  23129. if test "$have_jpeg" = 'yes'; then
  23130. HasJPEG_TRUE=
  23131. HasJPEG_FALSE='#'
  23132. else
  23133. HasJPEG_TRUE='#'
  23134. HasJPEG_FALSE=
  23135. fi
  23136. #
  23137. # Check for JPEG Version 2
  23138. #
  23139. have_jp2='no'
  23140. LIB_JP2=''
  23141. if test "$with_jp2" != 'no'
  23142. then
  23143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG version 2 support " >&5
  23144. $as_echo_n "checking for JPEG version 2 support ... " >&6; }
  23145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  23146. $as_echo "" >&6; }
  23147. failed=0
  23148. passed=0
  23149. ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
  23150. if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
  23151. passed=`expr $passed + 1`
  23152. else
  23153. failed=`expr $failed + 1`
  23154. fi
  23155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
  23156. $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
  23157. if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
  23158. $as_echo_n "(cached) " >&6
  23159. else
  23160. ac_check_lib_save_LIBS=$LIBS
  23161. LIBS="-ljasper $LIBS"
  23162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23163. /* end confdefs.h. */
  23164. /* Override any GCC internal prototype to avoid an error.
  23165. Use char because int might match the return type of a GCC
  23166. builtin and then its argument prototype would still apply. */
  23167. #ifdef __cplusplus
  23168. extern "C"
  23169. #endif
  23170. char jas_stream_fopen ();
  23171. int
  23172. main ()
  23173. {
  23174. return jas_stream_fopen ();
  23175. ;
  23176. return 0;
  23177. }
  23178. _ACEOF
  23179. if ac_fn_c_try_link "$LINENO"; then :
  23180. ac_cv_lib_jasper_jas_stream_fopen=yes
  23181. else
  23182. ac_cv_lib_jasper_jas_stream_fopen=no
  23183. fi
  23184. rm -f core conftest.err conftest.$ac_objext \
  23185. conftest$ac_exeext conftest.$ac_ext
  23186. LIBS=$ac_check_lib_save_LIBS
  23187. fi
  23188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
  23189. $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
  23190. if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
  23191. passed=`expr $passed + 1`
  23192. else
  23193. failed=`expr $failed + 1`
  23194. fi
  23195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
  23196. $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
  23197. if test $passed -gt 0
  23198. then
  23199. if test $failed -gt 0
  23200. then
  23201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  23202. $as_echo "no -- some components failed test" >&6; }
  23203. have_jp2='no (failed tests)'
  23204. else
  23205. LIB_JP2='-ljasper'
  23206. LIBS="$LIB_JP2 $LIBS"
  23207. $as_echo "#define HasJP2 1" >>confdefs.h
  23208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23209. $as_echo "yes" >&6; }
  23210. have_jp2='yes'
  23211. fi
  23212. else
  23213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23214. $as_echo "no" >&6; }
  23215. fi
  23216. fi
  23217. if test "$have_jp2" = 'yes'; then
  23218. HasJP2_TRUE=
  23219. HasJP2_FALSE='#'
  23220. else
  23221. HasJP2_TRUE='#'
  23222. HasJP2_FALSE=
  23223. fi
  23224. #
  23225. # Check for Ghostscript library
  23226. #
  23227. # Test for iapi.h & test for gsapi_new_instance in -lgs
  23228. have_gslib='no'
  23229. LIB_GS=''
  23230. if test "$with_gslib" != 'no'
  23231. then
  23232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript library support " >&5
  23233. $as_echo_n "checking for Ghostscript library support ... " >&6; }
  23234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  23235. $as_echo "" >&6; }
  23236. failed=0
  23237. passed=0
  23238. ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
  23239. if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
  23240. passed=`expr $passed + 1`
  23241. else
  23242. failed=`expr $failed + 1`
  23243. fi
  23244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
  23245. $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
  23246. if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
  23247. $as_echo_n "(cached) " >&6
  23248. else
  23249. ac_check_lib_save_LIBS=$LIBS
  23250. LIBS="-lgs $LIBS"
  23251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23252. /* end confdefs.h. */
  23253. /* Override any GCC internal prototype to avoid an error.
  23254. Use char because int might match the return type of a GCC
  23255. builtin and then its argument prototype would still apply. */
  23256. #ifdef __cplusplus
  23257. extern "C"
  23258. #endif
  23259. char gsapi_new_instance ();
  23260. int
  23261. main ()
  23262. {
  23263. return gsapi_new_instance ();
  23264. ;
  23265. return 0;
  23266. }
  23267. _ACEOF
  23268. if ac_fn_c_try_link "$LINENO"; then :
  23269. ac_cv_lib_gs_gsapi_new_instance=yes
  23270. else
  23271. ac_cv_lib_gs_gsapi_new_instance=no
  23272. fi
  23273. rm -f core conftest.err conftest.$ac_objext \
  23274. conftest$ac_exeext conftest.$ac_ext
  23275. LIBS=$ac_check_lib_save_LIBS
  23276. fi
  23277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
  23278. $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
  23279. if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
  23280. passed=`expr $passed + 1`
  23281. else
  23282. failed=`expr $failed + 1`
  23283. fi
  23284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript library package is complete" >&5
  23285. $as_echo_n "checking if Ghostscript library package is complete... " >&6; }
  23286. if test $passed -gt 0
  23287. then
  23288. if test $failed -gt 0
  23289. then
  23290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  23291. $as_echo "no -- some components failed test" >&6; }
  23292. have_gslib='no (failed tests)'
  23293. else
  23294. LIB_GS='-lgs'
  23295. LIBS="$LIB_GS $LIBS"
  23296. $as_echo "#define HasGS 1" >>confdefs.h
  23297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23298. $as_echo "yes" >&6; }
  23299. have_gslib='yes'
  23300. fi
  23301. else
  23302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23303. $as_echo "no" >&6; }
  23304. fi
  23305. fi
  23306. if test "$have_gslib" = 'yes'; then
  23307. HasGS_TRUE=
  23308. HasGS_FALSE='#'
  23309. else
  23310. HasGS_TRUE='#'
  23311. HasGS_FALSE=
  23312. fi
  23313. # #
  23314. # # Check for MPEG2 library
  23315. # #
  23316. # have_mpeg2='no'
  23317. # LIB_MPEG2=''
  23318. # if test "$with_mpeg2" != 'no'
  23319. # then
  23320. # AC_MSG_CHECKING(for MPEG version 2 support )
  23321. # AC_MSG_RESULT()
  23322. # failed=0
  23323. # passed=0
  23324. # AC_CHECK_HEADER(mpeg2dec/mpeg2.h,passed=`expr $passed + 1`,failed=`expr $failed + 1`)
  23325. # AC_CHECK_LIB(mpeg2,mpeg2_decode_data,passed=`expr $passed + 1`,failed=`expr $failed + 1`,)
  23326. # AC_MSG_CHECKING(if MPEG version 2 support package is complete)
  23327. # if test $passed -gt 0
  23328. # then
  23329. # if test $failed -gt 0
  23330. # then
  23331. # AC_MSG_RESULT(no -- some components failed test)
  23332. # have_mpeg2='no (failed tests)'
  23333. # else
  23334. # LIB_MPEG2='-lmpeg2'
  23335. # LIBS="$LIB_MPEG2 $LIBS"
  23336. # AC_DEFINE(HasMPEG2,1,Define if you have MPEG2 library)
  23337. # AC_MSG_RESULT(yes)
  23338. # have_mpeg2='yes'
  23339. # fi
  23340. # else
  23341. # AC_MSG_RESULT(no)
  23342. # fi
  23343. # fi
  23344. # AM_CONDITIONAL(HasMPEG2, test "$have_mpeg2" = 'yes')
  23345. # AC_SUBST(LIB_MPEG2)
  23346. #
  23347. # Check for TTF
  23348. #
  23349. have_ttf='no'
  23350. LIB_TTF=''
  23351. if test "$with_ttf" != 'no'
  23352. then
  23353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
  23354. $as_echo_n "checking for FreeType 2.0 ... " >&6; }
  23355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  23356. $as_echo "" >&6; }
  23357. failed=0
  23358. passed=0
  23359. OLD_LDFLAGS="$LDFLAGS"
  23360. OLD_CPPFLAGS="$CPPFLAGS"
  23361. freetype_config=''
  23362. # Allow the user to specify the location of freetype.
  23363. if test "$with_ttf" != 'yes'
  23364. then
  23365. if test -x "${with_ttf}/bin/freetype-config"
  23366. then
  23367. freetype_config="${with_ttf}/bin/freetype-config"
  23368. elif test -x "${with_ttf}"
  23369. then
  23370. freetype_config=${with_ttf}
  23371. fi
  23372. fi
  23373. if test -z "$freetype_config"
  23374. then
  23375. # Extract the first word of "freetype-config", so it can be a program name with args.
  23376. set dummy freetype-config; ac_word=$2
  23377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23378. $as_echo_n "checking for $ac_word... " >&6; }
  23379. if ${ac_cv_path_freetype_config+:} false; then :
  23380. $as_echo_n "(cached) " >&6
  23381. else
  23382. case $freetype_config in
  23383. [\\/]* | ?:[\\/]*)
  23384. ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
  23385. ;;
  23386. *)
  23387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23388. for as_dir in $PATH
  23389. do
  23390. IFS=$as_save_IFS
  23391. test -z "$as_dir" && as_dir=.
  23392. for ac_exec_ext in '' $ac_executable_extensions; do
  23393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23394. ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
  23395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23396. break 2
  23397. fi
  23398. done
  23399. done
  23400. IFS=$as_save_IFS
  23401. ;;
  23402. esac
  23403. fi
  23404. freetype_config=$ac_cv_path_freetype_config
  23405. if test -n "$freetype_config"; then
  23406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
  23407. $as_echo "$freetype_config" >&6; }
  23408. else
  23409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23410. $as_echo "no" >&6; }
  23411. fi
  23412. fi
  23413. if test -n "$freetype_config"
  23414. then
  23415. freetype_prefix=`${freetype_config} --prefix`
  23416. freetype_exec_prefix=`${freetype_config} --exec-prefix`
  23417. LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
  23418. CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
  23419. fi
  23420. if test "$LIB_TTF" = ''
  23421. then
  23422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
  23423. $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
  23424. if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
  23425. $as_echo_n "(cached) " >&6
  23426. else
  23427. ac_check_lib_save_LIBS=$LIBS
  23428. LIBS="-lfreetype $LIBS"
  23429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23430. /* end confdefs.h. */
  23431. /* Override any GCC internal prototype to avoid an error.
  23432. Use char because int might match the return type of a GCC
  23433. builtin and then its argument prototype would still apply. */
  23434. #ifdef __cplusplus
  23435. extern "C"
  23436. #endif
  23437. char FT_Init_FreeType ();
  23438. int
  23439. main ()
  23440. {
  23441. return FT_Init_FreeType ();
  23442. ;
  23443. return 0;
  23444. }
  23445. _ACEOF
  23446. if ac_fn_c_try_link "$LINENO"; then :
  23447. ac_cv_lib_freetype_FT_Init_FreeType=yes
  23448. else
  23449. ac_cv_lib_freetype_FT_Init_FreeType=no
  23450. fi
  23451. rm -f core conftest.err conftest.$ac_objext \
  23452. conftest$ac_exeext conftest.$ac_ext
  23453. LIBS=$ac_check_lib_save_LIBS
  23454. fi
  23455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
  23456. $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
  23457. if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
  23458. LIB_TTF='-lfreetype'
  23459. fi
  23460. if test "$LIB_TTF" != ''
  23461. then
  23462. passed=`expr $passed + 1`
  23463. else
  23464. failed=`expr $failed + 1`
  23465. LDFLAGS="$OLD_LDFLAGS"
  23466. fi
  23467. fi
  23468. # Some Freetype installs appear to require that <ft2build.h> be
  23469. # included prior to including <freetype/freetype.h>. Oops!
  23470. ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
  23471. if test "x$ac_cv_header_ft2build_h" = xyes; then :
  23472. FT2BUILD_H='#include <ft2build.h>'
  23473. else
  23474. ft2build=''
  23475. fi
  23476. ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
  23477. "
  23478. if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
  23479. have_freetype_h='yes'
  23480. else
  23481. have_freetype_h='no'
  23482. fi
  23483. if test "$have_freetype_h" = 'yes'
  23484. then
  23485. passed=`expr $passed + 1`
  23486. else
  23487. failed=`expr $failed + 1`
  23488. CPPFLAGS="$OLD_CPPFLAGS"
  23489. fi
  23490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
  23491. $as_echo_n "checking if FreeType package is complete... " >&6; }
  23492. if test $passed -gt 0
  23493. then
  23494. if test $failed -gt 0
  23495. then
  23496. LIB_TTF=''
  23497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  23498. $as_echo "no -- some components failed test" >&6; }
  23499. have_ttf='no (failed tests)'
  23500. else
  23501. LIBS="$LIB_TTF $LIBS"
  23502. $as_echo "#define HasTTF 1" >>confdefs.h
  23503. if test "$ac_cv_header_ft2build_h" = 'yes'
  23504. then
  23505. $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
  23506. fi
  23507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23508. $as_echo "yes" >&6; }
  23509. have_ttf='yes'
  23510. fi
  23511. else
  23512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23513. $as_echo "no" >&6; }
  23514. fi
  23515. fi
  23516. if test "$have_ttf" = 'yes'; then
  23517. HasTTF_TRUE=
  23518. HasTTF_FALSE='#'
  23519. else
  23520. HasTTF_TRUE='#'
  23521. HasTTF_FALSE=
  23522. fi
  23523. #
  23524. # Check for TIFF
  23525. #
  23526. have_tiff='no'
  23527. LIB_TIFF=''
  23528. if test "$with_tiff" != 'no'
  23529. then
  23530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support " >&5
  23531. $as_echo_n "checking for TIFF support ... " >&6; }
  23532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  23533. $as_echo "" >&6; }
  23534. failed=0
  23535. passed=0
  23536. ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
  23537. if test "x$ac_cv_header_tiff_h" = xyes; then :
  23538. passed=`expr $passed + 1`
  23539. else
  23540. failed=`expr $failed + 1`
  23541. fi
  23542. ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  23543. if test "x$ac_cv_header_tiffio_h" = xyes; then :
  23544. passed=`expr $passed + 1`
  23545. else
  23546. failed=`expr $failed + 1`
  23547. fi
  23548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
  23549. $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
  23550. if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
  23551. $as_echo_n "(cached) " >&6
  23552. else
  23553. ac_check_lib_save_LIBS=$LIBS
  23554. LIBS="-ltiff $LIBS"
  23555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23556. /* end confdefs.h. */
  23557. /* Override any GCC internal prototype to avoid an error.
  23558. Use char because int might match the return type of a GCC
  23559. builtin and then its argument prototype would still apply. */
  23560. #ifdef __cplusplus
  23561. extern "C"
  23562. #endif
  23563. char TIFFOpen ();
  23564. int
  23565. main ()
  23566. {
  23567. return TIFFOpen ();
  23568. ;
  23569. return 0;
  23570. }
  23571. _ACEOF
  23572. if ac_fn_c_try_link "$LINENO"; then :
  23573. ac_cv_lib_tiff_TIFFOpen=yes
  23574. else
  23575. ac_cv_lib_tiff_TIFFOpen=no
  23576. fi
  23577. rm -f core conftest.err conftest.$ac_objext \
  23578. conftest$ac_exeext conftest.$ac_ext
  23579. LIBS=$ac_check_lib_save_LIBS
  23580. fi
  23581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
  23582. $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
  23583. if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
  23584. passed=`expr $passed + 1`
  23585. else
  23586. failed=`expr $failed + 1`
  23587. fi
  23588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
  23589. $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
  23590. if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
  23591. $as_echo_n "(cached) " >&6
  23592. else
  23593. ac_check_lib_save_LIBS=$LIBS
  23594. LIBS="-ltiff $LIBS"
  23595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23596. /* end confdefs.h. */
  23597. /* Override any GCC internal prototype to avoid an error.
  23598. Use char because int might match the return type of a GCC
  23599. builtin and then its argument prototype would still apply. */
  23600. #ifdef __cplusplus
  23601. extern "C"
  23602. #endif
  23603. char TIFFClientOpen ();
  23604. int
  23605. main ()
  23606. {
  23607. return TIFFClientOpen ();
  23608. ;
  23609. return 0;
  23610. }
  23611. _ACEOF
  23612. if ac_fn_c_try_link "$LINENO"; then :
  23613. ac_cv_lib_tiff_TIFFClientOpen=yes
  23614. else
  23615. ac_cv_lib_tiff_TIFFClientOpen=no
  23616. fi
  23617. rm -f core conftest.err conftest.$ac_objext \
  23618. conftest$ac_exeext conftest.$ac_ext
  23619. LIBS=$ac_check_lib_save_LIBS
  23620. fi
  23621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
  23622. $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
  23623. if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
  23624. passed=`expr $passed + 1`
  23625. else
  23626. failed=`expr $failed + 1`
  23627. fi
  23628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
  23629. $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
  23630. if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
  23631. $as_echo_n "(cached) " >&6
  23632. else
  23633. ac_check_lib_save_LIBS=$LIBS
  23634. LIBS="-ltiff $LIBS"
  23635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23636. /* end confdefs.h. */
  23637. /* Override any GCC internal prototype to avoid an error.
  23638. Use char because int might match the return type of a GCC
  23639. builtin and then its argument prototype would still apply. */
  23640. #ifdef __cplusplus
  23641. extern "C"
  23642. #endif
  23643. char TIFFIsByteSwapped ();
  23644. int
  23645. main ()
  23646. {
  23647. return TIFFIsByteSwapped ();
  23648. ;
  23649. return 0;
  23650. }
  23651. _ACEOF
  23652. if ac_fn_c_try_link "$LINENO"; then :
  23653. ac_cv_lib_tiff_TIFFIsByteSwapped=yes
  23654. else
  23655. ac_cv_lib_tiff_TIFFIsByteSwapped=no
  23656. fi
  23657. rm -f core conftest.err conftest.$ac_objext \
  23658. conftest$ac_exeext conftest.$ac_ext
  23659. LIBS=$ac_check_lib_save_LIBS
  23660. fi
  23661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
  23662. $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
  23663. if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
  23664. passed=`expr $passed + 1`
  23665. else
  23666. failed=`expr $failed + 1`
  23667. fi
  23668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
  23669. $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
  23670. if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
  23671. $as_echo_n "(cached) " >&6
  23672. else
  23673. ac_check_lib_save_LIBS=$LIBS
  23674. LIBS="-ltiff $LIBS"
  23675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23676. /* end confdefs.h. */
  23677. /* Override any GCC internal prototype to avoid an error.
  23678. Use char because int might match the return type of a GCC
  23679. builtin and then its argument prototype would still apply. */
  23680. #ifdef __cplusplus
  23681. extern "C"
  23682. #endif
  23683. char TIFFReadRGBATile ();
  23684. int
  23685. main ()
  23686. {
  23687. return TIFFReadRGBATile ();
  23688. ;
  23689. return 0;
  23690. }
  23691. _ACEOF
  23692. if ac_fn_c_try_link "$LINENO"; then :
  23693. ac_cv_lib_tiff_TIFFReadRGBATile=yes
  23694. else
  23695. ac_cv_lib_tiff_TIFFReadRGBATile=no
  23696. fi
  23697. rm -f core conftest.err conftest.$ac_objext \
  23698. conftest$ac_exeext conftest.$ac_ext
  23699. LIBS=$ac_check_lib_save_LIBS
  23700. fi
  23701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
  23702. $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
  23703. if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
  23704. passed=`expr $passed + 1`
  23705. else
  23706. failed=`expr $failed + 1`
  23707. fi
  23708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
  23709. $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
  23710. if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
  23711. $as_echo_n "(cached) " >&6
  23712. else
  23713. ac_check_lib_save_LIBS=$LIBS
  23714. LIBS="-ltiff $LIBS"
  23715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23716. /* end confdefs.h. */
  23717. /* Override any GCC internal prototype to avoid an error.
  23718. Use char because int might match the return type of a GCC
  23719. builtin and then its argument prototype would still apply. */
  23720. #ifdef __cplusplus
  23721. extern "C"
  23722. #endif
  23723. char TIFFReadRGBAStrip ();
  23724. int
  23725. main ()
  23726. {
  23727. return TIFFReadRGBAStrip ();
  23728. ;
  23729. return 0;
  23730. }
  23731. _ACEOF
  23732. if ac_fn_c_try_link "$LINENO"; then :
  23733. ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
  23734. else
  23735. ac_cv_lib_tiff_TIFFReadRGBAStrip=no
  23736. fi
  23737. rm -f core conftest.err conftest.$ac_objext \
  23738. conftest$ac_exeext conftest.$ac_ext
  23739. LIBS=$ac_check_lib_save_LIBS
  23740. fi
  23741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
  23742. $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
  23743. if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
  23744. passed=`expr $passed + 1`
  23745. else
  23746. failed=`expr $failed + 1`
  23747. fi
  23748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
  23749. $as_echo_n "checking if TIFF package is complete... " >&6; }
  23750. if test $passed -gt 0
  23751. then
  23752. if test $failed -gt 0
  23753. then
  23754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  23755. $as_echo "no -- some components failed test" >&6; }
  23756. have_tiff='no (failed tests)'
  23757. else
  23758. LIB_TIFF='-ltiff'
  23759. LIBS="$LIB_TIFF $LIBS"
  23760. $as_echo "#define HasTIFF 1" >>confdefs.h
  23761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23762. $as_echo "yes" >&6; }
  23763. have_tiff='yes'
  23764. for ac_header in tiffconf.h
  23765. do :
  23766. ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
  23767. if test "x$ac_cv_header_tiffconf_h" = xyes; then :
  23768. cat >>confdefs.h <<_ACEOF
  23769. #define HAVE_TIFFCONF_H 1
  23770. _ACEOF
  23771. fi
  23772. done
  23773. for ac_func in TIFFIsCODECConfigured \
  23774. TIFFMergeFieldInfo \
  23775. TIFFSetErrorHandlerExt \
  23776. TIFFSetTagExtender \
  23777. TIFFSetWarningHandlerExt \
  23778. TIFFSwabArrayOfTriples
  23779. do :
  23780. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23781. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  23782. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  23783. cat >>confdefs.h <<_ACEOF
  23784. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23785. _ACEOF
  23786. fi
  23787. done
  23788. fi
  23789. else
  23790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23791. $as_echo "no" >&6; }
  23792. fi
  23793. fi
  23794. if test "$have_tiff" = 'yes'; then
  23795. HasTIFF_TRUE=
  23796. HasTIFF_FALSE='#'
  23797. else
  23798. HasTIFF_TRUE='#'
  23799. HasTIFF_FALSE=
  23800. fi
  23801. #
  23802. # Check for JBIG
  23803. #
  23804. have_jbig='no'
  23805. LIB_JBIG=''
  23806. if test "$with_jbig" != 'no'
  23807. then
  23808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG support " >&5
  23809. $as_echo_n "checking for JBIG support ... " >&6; }
  23810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  23811. $as_echo "" >&6; }
  23812. failed=0
  23813. passed=0
  23814. ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
  23815. if test "x$ac_cv_header_jbig_h" = xyes; then :
  23816. passed=`expr $passed + 1`
  23817. else
  23818. failed=`expr $failed + 1`
  23819. fi
  23820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
  23821. $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
  23822. if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
  23823. $as_echo_n "(cached) " >&6
  23824. else
  23825. ac_check_lib_save_LIBS=$LIBS
  23826. LIBS="-ljbig $LIBS"
  23827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23828. /* end confdefs.h. */
  23829. /* Override any GCC internal prototype to avoid an error.
  23830. Use char because int might match the return type of a GCC
  23831. builtin and then its argument prototype would still apply. */
  23832. #ifdef __cplusplus
  23833. extern "C"
  23834. #endif
  23835. char jbg_dec_init ();
  23836. int
  23837. main ()
  23838. {
  23839. return jbg_dec_init ();
  23840. ;
  23841. return 0;
  23842. }
  23843. _ACEOF
  23844. if ac_fn_c_try_link "$LINENO"; then :
  23845. ac_cv_lib_jbig_jbg_dec_init=yes
  23846. else
  23847. ac_cv_lib_jbig_jbg_dec_init=no
  23848. fi
  23849. rm -f core conftest.err conftest.$ac_objext \
  23850. conftest$ac_exeext conftest.$ac_ext
  23851. LIBS=$ac_check_lib_save_LIBS
  23852. fi
  23853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
  23854. $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
  23855. if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
  23856. passed=`expr $passed + 1`
  23857. else
  23858. failed=`expr $failed + 1`
  23859. fi
  23860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
  23861. $as_echo_n "checking if JBIG package is complete... " >&6; }
  23862. if test $passed -gt 0
  23863. then
  23864. if test $failed -gt 0
  23865. then
  23866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  23867. $as_echo "no -- some components failed test" >&6; }
  23868. have_jbig='no (failed tests)'
  23869. else
  23870. LIB_JBIG='-ljbig'
  23871. LIBS="$LIB_JBIG $LIBS"
  23872. $as_echo "#define HasJBIG 1" >>confdefs.h
  23873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23874. $as_echo "yes" >&6; }
  23875. have_jbig='yes'
  23876. fi
  23877. else
  23878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23879. $as_echo "no" >&6; }
  23880. fi
  23881. fi
  23882. if test "$have_jbig" = 'yes'; then
  23883. HasJBIG_TRUE=
  23884. HasJBIG_FALSE='#'
  23885. else
  23886. HasJBIG_TRUE='#'
  23887. HasJBIG_FALSE=
  23888. fi
  23889. #
  23890. # Check for XML
  23891. #
  23892. have_xml='no'
  23893. LIB_XML=''
  23894. if test "$with_xml" != 'no'
  23895. then
  23896. OLD_LDFLAGS=$LDFLAGS
  23897. OLD_CPPFLAGS=$CPPFLAGS
  23898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML support " >&5
  23899. $as_echo_n "checking for XML support ... " >&6; }
  23900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  23901. $as_echo "" >&6; }
  23902. xml2_config=''
  23903. # Extract the first word of "xml2-config", so it can be a program name with args.
  23904. set dummy xml2-config; ac_word=$2
  23905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23906. $as_echo_n "checking for $ac_word... " >&6; }
  23907. if ${ac_cv_path_xml2_config+:} false; then :
  23908. $as_echo_n "(cached) " >&6
  23909. else
  23910. case $xml2_config in
  23911. [\\/]* | ?:[\\/]*)
  23912. ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
  23913. ;;
  23914. *)
  23915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23916. for as_dir in $PATH
  23917. do
  23918. IFS=$as_save_IFS
  23919. test -z "$as_dir" && as_dir=.
  23920. for ac_exec_ext in '' $ac_executable_extensions; do
  23921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23922. ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
  23923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23924. break 2
  23925. fi
  23926. done
  23927. done
  23928. IFS=$as_save_IFS
  23929. ;;
  23930. esac
  23931. fi
  23932. xml2_config=$ac_cv_path_xml2_config
  23933. if test -n "$xml2_config"; then
  23934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
  23935. $as_echo "$xml2_config" >&6; }
  23936. else
  23937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23938. $as_echo "no" >&6; }
  23939. fi
  23940. if test -n "$xml2_config"
  23941. then
  23942. # Debian installs libxml headers under /usr/include/libxml2/libxml with
  23943. # the shared library installed under /usr/lib, whereas the package
  23944. # installs itself under $prefix/libxml and $prefix/lib.
  23945. xml2_prefix=`xml2-config --prefix`
  23946. if test -d "${xml2_prefix}/include/libxml2"
  23947. then
  23948. CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
  23949. fi
  23950. LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
  23951. fi
  23952. failed=0
  23953. passed=0
  23954. # Incantation tested with libxml2 2.7.8 configured with
  23955. # --with-minimum --with-http --with-ftp --with-push --with-zlib --with-sax1
  23956. # Note that SAX1 interfaces don't seem to be directly used but parsers fail to work
  23957. # as expected without SAX1 support compiled in.
  23958. ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
  23959. if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
  23960. passed=`expr $passed + 1`
  23961. else
  23962. failed=`expr $failed + 1`
  23963. fi
  23964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
  23965. $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
  23966. if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
  23967. $as_echo_n "(cached) " >&6
  23968. else
  23969. ac_check_lib_save_LIBS=$LIBS
  23970. LIBS="-lxml2 $LIBS"
  23971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23972. /* end confdefs.h. */
  23973. /* Override any GCC internal prototype to avoid an error.
  23974. Use char because int might match the return type of a GCC
  23975. builtin and then its argument prototype would still apply. */
  23976. #ifdef __cplusplus
  23977. extern "C"
  23978. #endif
  23979. char xmlSAXVersion ();
  23980. int
  23981. main ()
  23982. {
  23983. return xmlSAXVersion ();
  23984. ;
  23985. return 0;
  23986. }
  23987. _ACEOF
  23988. if ac_fn_c_try_link "$LINENO"; then :
  23989. ac_cv_lib_xml2_xmlSAXVersion=yes
  23990. else
  23991. ac_cv_lib_xml2_xmlSAXVersion=no
  23992. fi
  23993. rm -f core conftest.err conftest.$ac_objext \
  23994. conftest$ac_exeext conftest.$ac_ext
  23995. LIBS=$ac_check_lib_save_LIBS
  23996. fi
  23997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
  23998. $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
  23999. if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
  24000. passed=`expr $passed + 1`
  24001. else
  24002. failed=`expr $failed + 1`
  24003. fi
  24004. # Next two require --with-push to be enabled
  24005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
  24006. $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
  24007. if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
  24008. $as_echo_n "(cached) " >&6
  24009. else
  24010. ac_check_lib_save_LIBS=$LIBS
  24011. LIBS="-lxml2 $LIBS"
  24012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24013. /* end confdefs.h. */
  24014. /* Override any GCC internal prototype to avoid an error.
  24015. Use char because int might match the return type of a GCC
  24016. builtin and then its argument prototype would still apply. */
  24017. #ifdef __cplusplus
  24018. extern "C"
  24019. #endif
  24020. char xmlParseChunk ();
  24021. int
  24022. main ()
  24023. {
  24024. return xmlParseChunk ();
  24025. ;
  24026. return 0;
  24027. }
  24028. _ACEOF
  24029. if ac_fn_c_try_link "$LINENO"; then :
  24030. ac_cv_lib_xml2_xmlParseChunk=yes
  24031. else
  24032. ac_cv_lib_xml2_xmlParseChunk=no
  24033. fi
  24034. rm -f core conftest.err conftest.$ac_objext \
  24035. conftest$ac_exeext conftest.$ac_ext
  24036. LIBS=$ac_check_lib_save_LIBS
  24037. fi
  24038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
  24039. $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
  24040. if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
  24041. passed=`expr $passed + 1`
  24042. else
  24043. failed=`expr $failed + 1`
  24044. fi
  24045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
  24046. $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
  24047. if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
  24048. $as_echo_n "(cached) " >&6
  24049. else
  24050. ac_check_lib_save_LIBS=$LIBS
  24051. LIBS="-lxml2 $LIBS"
  24052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24053. /* end confdefs.h. */
  24054. /* Override any GCC internal prototype to avoid an error.
  24055. Use char because int might match the return type of a GCC
  24056. builtin and then its argument prototype would still apply. */
  24057. #ifdef __cplusplus
  24058. extern "C"
  24059. #endif
  24060. char xmlCreatePushParserCtxt ();
  24061. int
  24062. main ()
  24063. {
  24064. return xmlCreatePushParserCtxt ();
  24065. ;
  24066. return 0;
  24067. }
  24068. _ACEOF
  24069. if ac_fn_c_try_link "$LINENO"; then :
  24070. ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
  24071. else
  24072. ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
  24073. fi
  24074. rm -f core conftest.err conftest.$ac_objext \
  24075. conftest$ac_exeext conftest.$ac_ext
  24076. LIBS=$ac_check_lib_save_LIBS
  24077. fi
  24078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
  24079. $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
  24080. if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
  24081. passed=`expr $passed + 1`
  24082. else
  24083. failed=`expr $failed + 1`
  24084. fi
  24085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
  24086. $as_echo_n "checking if XML package is complete... " >&6; }
  24087. if test $passed -gt 0
  24088. then
  24089. if test $failed -gt 0
  24090. then
  24091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  24092. $as_echo "no -- some components failed test" >&6; }
  24093. have_xml='no (failed tests)'
  24094. LDFLAGS="$OLD_LDFLAGS"
  24095. CPPFLAGS="$OLD_CPPFLAGS"
  24096. else
  24097. LIB_XML='-lxml2'
  24098. LIBS="$LIB_XML $LIBS"
  24099. $as_echo "#define HasXML 1" >>confdefs.h
  24100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24101. $as_echo "yes" >&6; }
  24102. have_xml='yes'
  24103. fi
  24104. else
  24105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24106. $as_echo "no" >&6; }
  24107. fi
  24108. fi
  24109. if test "$have_xml" = 'yes'; then
  24110. HasXML_TRUE=
  24111. HasXML_FALSE='#'
  24112. else
  24113. HasXML_TRUE='#'
  24114. HasXML_FALSE=
  24115. fi
  24116. #
  24117. # Check for WMF
  24118. #
  24119. have_wmf='no'
  24120. LIB_WMF=''
  24121. LIB_WMF_DEPS=''
  24122. OLIBS="$LIBS"
  24123. if test "$with_wmf" != 'no'
  24124. then
  24125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
  24126. $as_echo_n "checking for WMF support ... " >&6; }
  24127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  24128. $as_echo "" >&6; }
  24129. have_libwmf='no'
  24130. have_libwmflite='no'
  24131. have_libwmf_ipa_h='no'
  24132. ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
  24133. "
  24134. if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
  24135. have_libwmf_ipa_h='yes'
  24136. fi
  24137. if test "$have_libwmf_ipa_h" = 'yes'
  24138. then
  24139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
  24140. $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
  24141. if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
  24142. $as_echo_n "(cached) " >&6
  24143. else
  24144. ac_check_lib_save_LIBS=$LIBS
  24145. LIBS="-lwmflite $LIBS"
  24146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24147. /* end confdefs.h. */
  24148. /* Override any GCC internal prototype to avoid an error.
  24149. Use char because int might match the return type of a GCC
  24150. builtin and then its argument prototype would still apply. */
  24151. #ifdef __cplusplus
  24152. extern "C"
  24153. #endif
  24154. char wmf_lite_create ();
  24155. int
  24156. main ()
  24157. {
  24158. return wmf_lite_create ();
  24159. ;
  24160. return 0;
  24161. }
  24162. _ACEOF
  24163. if ac_fn_c_try_link "$LINENO"; then :
  24164. ac_cv_lib_wmflite_wmf_lite_create=yes
  24165. else
  24166. ac_cv_lib_wmflite_wmf_lite_create=no
  24167. fi
  24168. rm -f core conftest.err conftest.$ac_objext \
  24169. conftest$ac_exeext conftest.$ac_ext
  24170. LIBS=$ac_check_lib_save_LIBS
  24171. fi
  24172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
  24173. $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
  24174. if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
  24175. have_libwmflite='yes'
  24176. fi
  24177. if test "$have_libwmflite" = 'yes'
  24178. then
  24179. $as_echo "#define HasWMFlite 1" >>confdefs.h
  24180. LIB_WMF='-lwmflite'
  24181. LIBS="$LIB_WMF $LIBS"
  24182. have_wmf='yes'
  24183. else
  24184. LIB_WMF_DEPS=''
  24185. WMF_CONFIG_LIBS=`libwmf-config --libs`
  24186. for lib in xml2 expat freetype jpeg png z
  24187. do
  24188. testlib="-l${lib}"
  24189. echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && LIB_WMF_DEPS="$LIB_WMF_DEPS $testlib"
  24190. done
  24191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
  24192. $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
  24193. if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
  24194. $as_echo_n "(cached) " >&6
  24195. else
  24196. ac_check_lib_save_LIBS=$LIBS
  24197. LIBS="-lwmf $LIB_WMF_DEPS $LIBS"
  24198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24199. /* end confdefs.h. */
  24200. /* Override any GCC internal prototype to avoid an error.
  24201. Use char because int might match the return type of a GCC
  24202. builtin and then its argument prototype would still apply. */
  24203. #ifdef __cplusplus
  24204. extern "C"
  24205. #endif
  24206. char wmf_api_create ();
  24207. int
  24208. main ()
  24209. {
  24210. return wmf_api_create ();
  24211. ;
  24212. return 0;
  24213. }
  24214. _ACEOF
  24215. if ac_fn_c_try_link "$LINENO"; then :
  24216. ac_cv_lib_wmf_wmf_api_create=yes
  24217. else
  24218. ac_cv_lib_wmf_wmf_api_create=no
  24219. fi
  24220. rm -f core conftest.err conftest.$ac_objext \
  24221. conftest$ac_exeext conftest.$ac_ext
  24222. LIBS=$ac_check_lib_save_LIBS
  24223. fi
  24224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
  24225. $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
  24226. if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
  24227. have_libwmf='yes'
  24228. fi
  24229. if test "$have_libwmf" = 'yes'
  24230. then
  24231. $as_echo "#define HasWMF 1" >>confdefs.h
  24232. LIB_WMF='-lwmf'
  24233. LIBS="$LIB_WMF $LIBS"
  24234. have_wmf='yes'
  24235. else
  24236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
  24237. $as_echo "no -- some components failed test" >&6; }
  24238. have_wmf='no (failed tests)'
  24239. have_wmflite='no (failed tests)'
  24240. LIBS="$OLIBS"
  24241. LIB_WMF=''
  24242. fi
  24243. fi
  24244. fi
  24245. fi
  24246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
  24247. $as_echo_n "checking if WMF package is complete... " >&6; }
  24248. if test "$have_wmf" = 'yes'
  24249. then
  24250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24251. $as_echo "yes" >&6; }
  24252. else
  24253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24254. $as_echo "no" >&6; }
  24255. fi
  24256. if test "$have_wmf" = 'yes'; then
  24257. HasWMF_TRUE=
  24258. HasWMF_FALSE='#'
  24259. else
  24260. HasWMF_TRUE='#'
  24261. HasWMF_FALSE=
  24262. fi
  24263. #
  24264. # Substitute compiler name to build/link PerlMagick
  24265. #
  24266. #
  24267. # Configure install Paths
  24268. #
  24269. # Subdirectory under lib to place GraphicsMagick lib files
  24270. MagickLibSubdir="${PACKAGE_NAME}-${PACKAGE_VERSION}"
  24271. cat >>confdefs.h <<_ACEOF
  24272. #define MagickLibSubdir "$MagickLibSubdir"
  24273. _ACEOF
  24274. # Path to GraphicsMagick bin directory
  24275. MagickBinPath="${BIN_DIR}"
  24276. MagickBinPathDefine="${MagickBinPath}/"
  24277. case "${build_os}" in
  24278. mingw* )
  24279. MagickBinPathDefine=`$WinPathScript "$MagickBinPathDefine" 1`
  24280. ;;
  24281. esac
  24282. cat >>confdefs.h <<_ACEOF
  24283. #define MagickBinPath "$MagickBinPathDefine"
  24284. _ACEOF
  24285. # Path to GraphicsMagick lib
  24286. MagickLibPath="${LIB_DIR}/${MagickLibSubdir}"
  24287. MagickLibPathDefine="${MagickLibPath}/"
  24288. case "${build_os}" in
  24289. mingw* )
  24290. MagickLibPathDefine=`$WinPathScript "$MagickLibPathDefine" 1`
  24291. ;;
  24292. esac
  24293. cat >>confdefs.h <<_ACEOF
  24294. #define MagickLibPath "$MagickLibPathDefine"
  24295. _ACEOF
  24296. # Subdirectory under lib to place GraphicsMagick configuration files
  24297. MagickLibConfigSubDir="${MagickLibSubdir}/config"
  24298. cat >>confdefs.h <<_ACEOF
  24299. #define MagickLibConfigSubDir "$MagickLibConfigSubDir"
  24300. _ACEOF
  24301. MagickLibConfigPath="${LIB_DIR}/${MagickLibConfigSubDir}"
  24302. MagickLibConfigPathDefine="${MagickLibConfigPath}/"
  24303. case "${build_os}" in
  24304. mingw* )
  24305. MagickLibConfigPathDefine=`$WinPathScript "$MagickLibConfigPathDefine" 1`
  24306. ;;
  24307. esac
  24308. cat >>confdefs.h <<_ACEOF
  24309. #define MagickLibConfigPath "$MagickLibConfigPathDefine"
  24310. _ACEOF
  24311. #
  24312. # Subdirectory under lib to place GraphicsMagick coder module files
  24313. MagickCoderModulesSubdir="${MagickLibSubdir}/modules-Q${QuantumDepth}/coders"
  24314. cat >>confdefs.h <<_ACEOF
  24315. #define MagickCoderModulesSubdir "$MagickCoderModulesSubdir"
  24316. _ACEOF
  24317. MagickCoderModulesPath="${LIB_DIR}/${MagickCoderModulesSubdir}"
  24318. MagickCoderModulesPathDefine="${MagickCoderModulesPath}/"
  24319. case "${build_os}" in
  24320. mingw* )
  24321. MagickCoderModulesPathDefine=`$WinPathScript "$MagickCoderModulesPathDefine" 1`
  24322. ;;
  24323. esac
  24324. cat >>confdefs.h <<_ACEOF
  24325. #define MagickCoderModulesPath "$MagickCoderModulesPathDefine"
  24326. _ACEOF
  24327. #
  24328. # Subdirectory under lib to place GraphicsMagick filter module files
  24329. MagickFilterModulesSubdir="${MagickLibSubdir}/modules-Q${QuantumDepth}/filters"
  24330. cat >>confdefs.h <<_ACEOF
  24331. #define MagickFilterModulesSubdir "$MagickFilterModulesSubdir"
  24332. _ACEOF
  24333. MagickFilterModulesPath="${LIB_DIR}/${MagickFilterModulesSubdir}"
  24334. MagickFilterModulesPathDefine="${MagickFilterModulesPath}/"
  24335. case "${build_os}" in
  24336. mingw* )
  24337. MagickFilterModulesPathDefine=`$WinPathScript "$MagickFilterModulesPathDefine" 1`
  24338. ;;
  24339. esac
  24340. cat >>confdefs.h <<_ACEOF
  24341. #define MagickFilterModulesPath "$MagickFilterModulesPathDefine"
  24342. _ACEOF
  24343. #
  24344. # Path to GraphicsMagick share files
  24345. MagickShareSubdir="${PACKAGE_NAME}-${PACKAGE_VERSION}"
  24346. MagickSharePath="${DATA_DIR}/${MagickShareSubdir}"
  24347. MagickSharePathDefine="${MagickSharePath}/"
  24348. case "${build_os}" in
  24349. mingw* )
  24350. MagickSharePathDefine=`$WinPathScript "$MagickSharePathDefine" 1`
  24351. ;;
  24352. esac
  24353. cat >>confdefs.h <<_ACEOF
  24354. #define MagickSharePath "$MagickSharePathDefine"
  24355. _ACEOF
  24356. # Subdirectory under share to place GraphicsMagick configuration files
  24357. MagickShareConfigSubDir="${MagickLibSubdir}/config"
  24358. cat >>confdefs.h <<_ACEOF
  24359. #define MagickShareConfigSubDir "$MagickShareConfigSubDir"
  24360. _ACEOF
  24361. MagickShareConfigPath="${DATA_DIR}/${MagickShareConfigSubDir}"
  24362. MagickShareConfigPathDefine="${MagickShareConfigPath}/"
  24363. case "${build_os}" in
  24364. mingw* )
  24365. MagickShareConfigPathDefine=`$WinPathScript "$MagickShareConfigPathDefine" 1`
  24366. ;;
  24367. esac
  24368. cat >>confdefs.h <<_ACEOF
  24369. #define MagickShareConfigPath "$MagickShareConfigPathDefine"
  24370. _ACEOF
  24371. #
  24372. # program_transform_name is formed for use in a Makefile, so create a
  24373. # modified version for use in a shell script.
  24374. configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
  24375. # Default delegate definitions
  24376. AutotraceDecodeDelegateDefault='autotrace'
  24377. BZIPDelegateDefault='bzip2'
  24378. BrowseDelegateDefault='mozilla'
  24379. CGMDecodeDelegateDefault='ralcgm'
  24380. CatDelegateDefault='cat'
  24381. DCRAWDecodeDelegateDefault='dcraw'
  24382. DOTDecodeDelegateDefault='dot'
  24383. DVIDecodeDelegateDefault='dvips'
  24384. EchoDelegateDefault='echo'
  24385. EditorDelegateDefault='xterm'
  24386. FIGDecodeDelegateDefault='fig2dev'
  24387. GMDelegateDefault=`echo gm | sed ${configure_transform_name}`
  24388. GnuplotDecodeDelegateDefault='gnuplot'
  24389. HPGLDecodeDelegateDefault='hp2xx'
  24390. HTMLDecodeDelegateDefault='html2ps'
  24391. ILBMDecodeDelegateDefault='ilbmtoppm'
  24392. ILBMEncodeDelegateDefault='ppmtoilbm'
  24393. LPDelegateDefault='lp'
  24394. LPRDelegateDefault='lpr'
  24395. LZWDecodeDelegateDefault='uncompress'
  24396. LZWEncodeDelegateDefault='compress'
  24397. LaunchDelegateDefault='gimp'
  24398. MANDelegateDefault='groff'
  24399. MPEGDecodeDelegateDefault='mpeg2decode'
  24400. MPEGEncodeDelegateDefault='mpeg2encode'
  24401. MVDelegateDefault='mv'
  24402. PGPDecodeDelegateDefault='pgpv'
  24403. POVDelegateDefault='povray'
  24404. if test "$native_win32_build" = 'yes' ; then
  24405. PSDelegateDefault='gswin32c'
  24406. else
  24407. PSDelegateDefault='gs'
  24408. fi
  24409. RADDecodeDelegateDefault='ra_ppm'
  24410. RLEEncodeDelegateDefault='rawtorle'
  24411. RMDelegateDefault='rm'
  24412. SCANDecodeDelegateDefault='scanimage'
  24413. TXTDelegateDefault='enscript'
  24414. WMFDecodeDelegateDefault='wmf2eps'
  24415. WWWDecodeDelegateDefault='wget'
  24416. ZipDelegateDefault='gzip'
  24417. # Search for delegates
  24418. # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
  24419. set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
  24420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24421. $as_echo_n "checking for $ac_word... " >&6; }
  24422. if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
  24423. $as_echo_n "(cached) " >&6
  24424. else
  24425. case $AutotraceDecodeDelegate in
  24426. [\\/]* | ?:[\\/]*)
  24427. ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
  24428. ;;
  24429. *)
  24430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24431. for as_dir in $PATH
  24432. do
  24433. IFS=$as_save_IFS
  24434. test -z "$as_dir" && as_dir=.
  24435. for ac_exec_ext in '' $ac_executable_extensions; do
  24436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24437. ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24439. break 2
  24440. fi
  24441. done
  24442. done
  24443. IFS=$as_save_IFS
  24444. test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
  24445. ;;
  24446. esac
  24447. fi
  24448. AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
  24449. if test -n "$AutotraceDecodeDelegate"; then
  24450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
  24451. $as_echo "$AutotraceDecodeDelegate" >&6; }
  24452. else
  24453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24454. $as_echo "no" >&6; }
  24455. fi
  24456. # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
  24457. set dummy "$BZIPDelegateDefault"; ac_word=$2
  24458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24459. $as_echo_n "checking for $ac_word... " >&6; }
  24460. if ${ac_cv_path_BZIPDelegate+:} false; then :
  24461. $as_echo_n "(cached) " >&6
  24462. else
  24463. case $BZIPDelegate in
  24464. [\\/]* | ?:[\\/]*)
  24465. ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
  24466. ;;
  24467. *)
  24468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24469. for as_dir in $PATH
  24470. do
  24471. IFS=$as_save_IFS
  24472. test -z "$as_dir" && as_dir=.
  24473. for ac_exec_ext in '' $ac_executable_extensions; do
  24474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24475. ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
  24476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24477. break 2
  24478. fi
  24479. done
  24480. done
  24481. IFS=$as_save_IFS
  24482. test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
  24483. ;;
  24484. esac
  24485. fi
  24486. BZIPDelegate=$ac_cv_path_BZIPDelegate
  24487. if test -n "$BZIPDelegate"; then
  24488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
  24489. $as_echo "$BZIPDelegate" >&6; }
  24490. else
  24491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24492. $as_echo "no" >&6; }
  24493. fi
  24494. # Extract the first word of ""$BrowseDelegateDefault" firefox netscape", so it can be a program name with args.
  24495. set dummy "$BrowseDelegateDefault" firefox netscape; ac_word=$2
  24496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24497. $as_echo_n "checking for $ac_word... " >&6; }
  24498. if ${ac_cv_path_BrowseDelegate+:} false; then :
  24499. $as_echo_n "(cached) " >&6
  24500. else
  24501. case $BrowseDelegate in
  24502. [\\/]* | ?:[\\/]*)
  24503. ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
  24504. ;;
  24505. *)
  24506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24507. for as_dir in $PATH
  24508. do
  24509. IFS=$as_save_IFS
  24510. test -z "$as_dir" && as_dir=.
  24511. for ac_exec_ext in '' $ac_executable_extensions; do
  24512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24513. ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
  24514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24515. break 2
  24516. fi
  24517. done
  24518. done
  24519. IFS=$as_save_IFS
  24520. test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
  24521. ;;
  24522. esac
  24523. fi
  24524. BrowseDelegate=$ac_cv_path_BrowseDelegate
  24525. if test -n "$BrowseDelegate"; then
  24526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
  24527. $as_echo "$BrowseDelegate" >&6; }
  24528. else
  24529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24530. $as_echo "no" >&6; }
  24531. fi
  24532. # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
  24533. set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
  24534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24535. $as_echo_n "checking for $ac_word... " >&6; }
  24536. if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
  24537. $as_echo_n "(cached) " >&6
  24538. else
  24539. case $CGMDecodeDelegate in
  24540. [\\/]* | ?:[\\/]*)
  24541. ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
  24542. ;;
  24543. *)
  24544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24545. for as_dir in $PATH
  24546. do
  24547. IFS=$as_save_IFS
  24548. test -z "$as_dir" && as_dir=.
  24549. for ac_exec_ext in '' $ac_executable_extensions; do
  24550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24551. ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24553. break 2
  24554. fi
  24555. done
  24556. done
  24557. IFS=$as_save_IFS
  24558. test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
  24559. ;;
  24560. esac
  24561. fi
  24562. CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
  24563. if test -n "$CGMDecodeDelegate"; then
  24564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
  24565. $as_echo "$CGMDecodeDelegate" >&6; }
  24566. else
  24567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24568. $as_echo "no" >&6; }
  24569. fi
  24570. # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
  24571. set dummy "$CatDelegateDefault"; ac_word=$2
  24572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24573. $as_echo_n "checking for $ac_word... " >&6; }
  24574. if ${ac_cv_path_CatDelegate+:} false; then :
  24575. $as_echo_n "(cached) " >&6
  24576. else
  24577. case $CatDelegate in
  24578. [\\/]* | ?:[\\/]*)
  24579. ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
  24580. ;;
  24581. *)
  24582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24583. for as_dir in $PATH
  24584. do
  24585. IFS=$as_save_IFS
  24586. test -z "$as_dir" && as_dir=.
  24587. for ac_exec_ext in '' $ac_executable_extensions; do
  24588. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24589. ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
  24590. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24591. break 2
  24592. fi
  24593. done
  24594. done
  24595. IFS=$as_save_IFS
  24596. test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
  24597. ;;
  24598. esac
  24599. fi
  24600. CatDelegate=$ac_cv_path_CatDelegate
  24601. if test -n "$CatDelegate"; then
  24602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
  24603. $as_echo "$CatDelegate" >&6; }
  24604. else
  24605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24606. $as_echo "no" >&6; }
  24607. fi
  24608. # Extract the first word of ""$DCRAWDecodeDelegateDefault"", so it can be a program name with args.
  24609. set dummy "$DCRAWDecodeDelegateDefault"; ac_word=$2
  24610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24611. $as_echo_n "checking for $ac_word... " >&6; }
  24612. if ${ac_cv_path_DCRAWDecodeDelegate+:} false; then :
  24613. $as_echo_n "(cached) " >&6
  24614. else
  24615. case $DCRAWDecodeDelegate in
  24616. [\\/]* | ?:[\\/]*)
  24617. ac_cv_path_DCRAWDecodeDelegate="$DCRAWDecodeDelegate" # Let the user override the test with a path.
  24618. ;;
  24619. *)
  24620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24621. for as_dir in $PATH
  24622. do
  24623. IFS=$as_save_IFS
  24624. test -z "$as_dir" && as_dir=.
  24625. for ac_exec_ext in '' $ac_executable_extensions; do
  24626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24627. ac_cv_path_DCRAWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24629. break 2
  24630. fi
  24631. done
  24632. done
  24633. IFS=$as_save_IFS
  24634. test -z "$ac_cv_path_DCRAWDecodeDelegate" && ac_cv_path_DCRAWDecodeDelegate=""$DCRAWDecodeDelegateDefault""
  24635. ;;
  24636. esac
  24637. fi
  24638. DCRAWDecodeDelegate=$ac_cv_path_DCRAWDecodeDelegate
  24639. if test -n "$DCRAWDecodeDelegate"; then
  24640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DCRAWDecodeDelegate" >&5
  24641. $as_echo "$DCRAWDecodeDelegate" >&6; }
  24642. else
  24643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24644. $as_echo "no" >&6; }
  24645. fi
  24646. # Extract the first word of ""$DOTDecodeDelegateDefault"", so it can be a program name with args.
  24647. set dummy "$DOTDecodeDelegateDefault"; ac_word=$2
  24648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24649. $as_echo_n "checking for $ac_word... " >&6; }
  24650. if ${ac_cv_path_DOTDecodeDelegate+:} false; then :
  24651. $as_echo_n "(cached) " >&6
  24652. else
  24653. case $DOTDecodeDelegate in
  24654. [\\/]* | ?:[\\/]*)
  24655. ac_cv_path_DOTDecodeDelegate="$DOTDecodeDelegate" # Let the user override the test with a path.
  24656. ;;
  24657. *)
  24658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24659. for as_dir in $PATH
  24660. do
  24661. IFS=$as_save_IFS
  24662. test -z "$as_dir" && as_dir=.
  24663. for ac_exec_ext in '' $ac_executable_extensions; do
  24664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24665. ac_cv_path_DOTDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24667. break 2
  24668. fi
  24669. done
  24670. done
  24671. IFS=$as_save_IFS
  24672. test -z "$ac_cv_path_DOTDecodeDelegate" && ac_cv_path_DOTDecodeDelegate=""$DOTDecodeDelegateDefault""
  24673. ;;
  24674. esac
  24675. fi
  24676. DOTDecodeDelegate=$ac_cv_path_DOTDecodeDelegate
  24677. if test -n "$DOTDecodeDelegate"; then
  24678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTDecodeDelegate" >&5
  24679. $as_echo "$DOTDecodeDelegate" >&6; }
  24680. else
  24681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24682. $as_echo "no" >&6; }
  24683. fi
  24684. # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
  24685. set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
  24686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24687. $as_echo_n "checking for $ac_word... " >&6; }
  24688. if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
  24689. $as_echo_n "(cached) " >&6
  24690. else
  24691. case $DVIDecodeDelegate in
  24692. [\\/]* | ?:[\\/]*)
  24693. ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
  24694. ;;
  24695. *)
  24696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24697. for as_dir in $PATH
  24698. do
  24699. IFS=$as_save_IFS
  24700. test -z "$as_dir" && as_dir=.
  24701. for ac_exec_ext in '' $ac_executable_extensions; do
  24702. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24703. ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24705. break 2
  24706. fi
  24707. done
  24708. done
  24709. IFS=$as_save_IFS
  24710. test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
  24711. ;;
  24712. esac
  24713. fi
  24714. DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
  24715. if test -n "$DVIDecodeDelegate"; then
  24716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
  24717. $as_echo "$DVIDecodeDelegate" >&6; }
  24718. else
  24719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24720. $as_echo "no" >&6; }
  24721. fi
  24722. # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
  24723. set dummy "$EchoDelegateDefault"; ac_word=$2
  24724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24725. $as_echo_n "checking for $ac_word... " >&6; }
  24726. if ${ac_cv_path_EchoDelegate+:} false; then :
  24727. $as_echo_n "(cached) " >&6
  24728. else
  24729. case $EchoDelegate in
  24730. [\\/]* | ?:[\\/]*)
  24731. ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
  24732. ;;
  24733. *)
  24734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24735. for as_dir in $PATH
  24736. do
  24737. IFS=$as_save_IFS
  24738. test -z "$as_dir" && as_dir=.
  24739. for ac_exec_ext in '' $ac_executable_extensions; do
  24740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24741. ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
  24742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24743. break 2
  24744. fi
  24745. done
  24746. done
  24747. IFS=$as_save_IFS
  24748. test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
  24749. ;;
  24750. esac
  24751. fi
  24752. EchoDelegate=$ac_cv_path_EchoDelegate
  24753. if test -n "$EchoDelegate"; then
  24754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
  24755. $as_echo "$EchoDelegate" >&6; }
  24756. else
  24757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24758. $as_echo "no" >&6; }
  24759. fi
  24760. # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
  24761. set dummy "$EditorDelegateDefault"; ac_word=$2
  24762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24763. $as_echo_n "checking for $ac_word... " >&6; }
  24764. if ${ac_cv_path_EditorDelegate+:} false; then :
  24765. $as_echo_n "(cached) " >&6
  24766. else
  24767. case $EditorDelegate in
  24768. [\\/]* | ?:[\\/]*)
  24769. ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
  24770. ;;
  24771. *)
  24772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24773. for as_dir in $PATH
  24774. do
  24775. IFS=$as_save_IFS
  24776. test -z "$as_dir" && as_dir=.
  24777. for ac_exec_ext in '' $ac_executable_extensions; do
  24778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24779. ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
  24780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24781. break 2
  24782. fi
  24783. done
  24784. done
  24785. IFS=$as_save_IFS
  24786. test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
  24787. ;;
  24788. esac
  24789. fi
  24790. EditorDelegate=$ac_cv_path_EditorDelegate
  24791. if test -n "$EditorDelegate"; then
  24792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
  24793. $as_echo "$EditorDelegate" >&6; }
  24794. else
  24795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24796. $as_echo "no" >&6; }
  24797. fi
  24798. # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
  24799. set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
  24800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24801. $as_echo_n "checking for $ac_word... " >&6; }
  24802. if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
  24803. $as_echo_n "(cached) " >&6
  24804. else
  24805. case $FIGDecodeDelegate in
  24806. [\\/]* | ?:[\\/]*)
  24807. ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
  24808. ;;
  24809. *)
  24810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24811. for as_dir in $PATH
  24812. do
  24813. IFS=$as_save_IFS
  24814. test -z "$as_dir" && as_dir=.
  24815. for ac_exec_ext in '' $ac_executable_extensions; do
  24816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24817. ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24819. break 2
  24820. fi
  24821. done
  24822. done
  24823. IFS=$as_save_IFS
  24824. test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
  24825. ;;
  24826. esac
  24827. fi
  24828. FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
  24829. if test -n "$FIGDecodeDelegate"; then
  24830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
  24831. $as_echo "$FIGDecodeDelegate" >&6; }
  24832. else
  24833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24834. $as_echo "no" >&6; }
  24835. fi
  24836. # Extract the first word of ""$GMDelegateDefault"", so it can be a program name with args.
  24837. set dummy "$GMDelegateDefault"; ac_word=$2
  24838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24839. $as_echo_n "checking for $ac_word... " >&6; }
  24840. if ${ac_cv_path_GMDelegate+:} false; then :
  24841. $as_echo_n "(cached) " >&6
  24842. else
  24843. case $GMDelegate in
  24844. [\\/]* | ?:[\\/]*)
  24845. ac_cv_path_GMDelegate="$GMDelegate" # Let the user override the test with a path.
  24846. ;;
  24847. *)
  24848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24849. for as_dir in $PATH
  24850. do
  24851. IFS=$as_save_IFS
  24852. test -z "$as_dir" && as_dir=.
  24853. for ac_exec_ext in '' $ac_executable_extensions; do
  24854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24855. ac_cv_path_GMDelegate="$as_dir/$ac_word$ac_exec_ext"
  24856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24857. break 2
  24858. fi
  24859. done
  24860. done
  24861. IFS=$as_save_IFS
  24862. test -z "$ac_cv_path_GMDelegate" && ac_cv_path_GMDelegate=""$GMDelegateDefault""
  24863. ;;
  24864. esac
  24865. fi
  24866. GMDelegate=$ac_cv_path_GMDelegate
  24867. if test -n "$GMDelegate"; then
  24868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMDelegate" >&5
  24869. $as_echo "$GMDelegate" >&6; }
  24870. else
  24871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24872. $as_echo "no" >&6; }
  24873. fi
  24874. # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
  24875. set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
  24876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24877. $as_echo_n "checking for $ac_word... " >&6; }
  24878. if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
  24879. $as_echo_n "(cached) " >&6
  24880. else
  24881. case $GnuplotDecodeDelegate in
  24882. [\\/]* | ?:[\\/]*)
  24883. ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
  24884. ;;
  24885. *)
  24886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24887. for as_dir in $PATH
  24888. do
  24889. IFS=$as_save_IFS
  24890. test -z "$as_dir" && as_dir=.
  24891. for ac_exec_ext in '' $ac_executable_extensions; do
  24892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24893. ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24895. break 2
  24896. fi
  24897. done
  24898. done
  24899. IFS=$as_save_IFS
  24900. test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
  24901. ;;
  24902. esac
  24903. fi
  24904. GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
  24905. if test -n "$GnuplotDecodeDelegate"; then
  24906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
  24907. $as_echo "$GnuplotDecodeDelegate" >&6; }
  24908. else
  24909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24910. $as_echo "no" >&6; }
  24911. fi
  24912. # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
  24913. set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
  24914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24915. $as_echo_n "checking for $ac_word... " >&6; }
  24916. if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
  24917. $as_echo_n "(cached) " >&6
  24918. else
  24919. case $HPGLDecodeDelegate in
  24920. [\\/]* | ?:[\\/]*)
  24921. ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
  24922. ;;
  24923. *)
  24924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24925. for as_dir in $PATH
  24926. do
  24927. IFS=$as_save_IFS
  24928. test -z "$as_dir" && as_dir=.
  24929. for ac_exec_ext in '' $ac_executable_extensions; do
  24930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24931. ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24933. break 2
  24934. fi
  24935. done
  24936. done
  24937. IFS=$as_save_IFS
  24938. test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
  24939. ;;
  24940. esac
  24941. fi
  24942. HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
  24943. if test -n "$HPGLDecodeDelegate"; then
  24944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
  24945. $as_echo "$HPGLDecodeDelegate" >&6; }
  24946. else
  24947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24948. $as_echo "no" >&6; }
  24949. fi
  24950. # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
  24951. set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
  24952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24953. $as_echo_n "checking for $ac_word... " >&6; }
  24954. if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
  24955. $as_echo_n "(cached) " >&6
  24956. else
  24957. case $HTMLDecodeDelegate in
  24958. [\\/]* | ?:[\\/]*)
  24959. ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
  24960. ;;
  24961. *)
  24962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24963. for as_dir in $PATH
  24964. do
  24965. IFS=$as_save_IFS
  24966. test -z "$as_dir" && as_dir=.
  24967. for ac_exec_ext in '' $ac_executable_extensions; do
  24968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24969. ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  24970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24971. break 2
  24972. fi
  24973. done
  24974. done
  24975. IFS=$as_save_IFS
  24976. test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
  24977. ;;
  24978. esac
  24979. fi
  24980. HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
  24981. if test -n "$HTMLDecodeDelegate"; then
  24982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
  24983. $as_echo "$HTMLDecodeDelegate" >&6; }
  24984. else
  24985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24986. $as_echo "no" >&6; }
  24987. fi
  24988. # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
  24989. set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
  24990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24991. $as_echo_n "checking for $ac_word... " >&6; }
  24992. if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
  24993. $as_echo_n "(cached) " >&6
  24994. else
  24995. case $ILBMDecodeDelegate in
  24996. [\\/]* | ?:[\\/]*)
  24997. ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
  24998. ;;
  24999. *)
  25000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25001. for as_dir in $PATH
  25002. do
  25003. IFS=$as_save_IFS
  25004. test -z "$as_dir" && as_dir=.
  25005. for ac_exec_ext in '' $ac_executable_extensions; do
  25006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25007. ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25009. break 2
  25010. fi
  25011. done
  25012. done
  25013. IFS=$as_save_IFS
  25014. test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
  25015. ;;
  25016. esac
  25017. fi
  25018. ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
  25019. if test -n "$ILBMDecodeDelegate"; then
  25020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
  25021. $as_echo "$ILBMDecodeDelegate" >&6; }
  25022. else
  25023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25024. $as_echo "no" >&6; }
  25025. fi
  25026. # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
  25027. set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
  25028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25029. $as_echo_n "checking for $ac_word... " >&6; }
  25030. if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
  25031. $as_echo_n "(cached) " >&6
  25032. else
  25033. case $ILBMEncodeDelegate in
  25034. [\\/]* | ?:[\\/]*)
  25035. ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
  25036. ;;
  25037. *)
  25038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25039. for as_dir in $PATH
  25040. do
  25041. IFS=$as_save_IFS
  25042. test -z "$as_dir" && as_dir=.
  25043. for ac_exec_ext in '' $ac_executable_extensions; do
  25044. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25045. ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25047. break 2
  25048. fi
  25049. done
  25050. done
  25051. IFS=$as_save_IFS
  25052. test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
  25053. ;;
  25054. esac
  25055. fi
  25056. ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
  25057. if test -n "$ILBMEncodeDelegate"; then
  25058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
  25059. $as_echo "$ILBMEncodeDelegate" >&6; }
  25060. else
  25061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25062. $as_echo "no" >&6; }
  25063. fi
  25064. # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
  25065. set dummy "$LPDelegateDefault"; ac_word=$2
  25066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25067. $as_echo_n "checking for $ac_word... " >&6; }
  25068. if ${ac_cv_path_LPDelegate+:} false; then :
  25069. $as_echo_n "(cached) " >&6
  25070. else
  25071. case $LPDelegate in
  25072. [\\/]* | ?:[\\/]*)
  25073. ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
  25074. ;;
  25075. *)
  25076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25077. for as_dir in $PATH
  25078. do
  25079. IFS=$as_save_IFS
  25080. test -z "$as_dir" && as_dir=.
  25081. for ac_exec_ext in '' $ac_executable_extensions; do
  25082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25083. ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
  25084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25085. break 2
  25086. fi
  25087. done
  25088. done
  25089. IFS=$as_save_IFS
  25090. test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
  25091. ;;
  25092. esac
  25093. fi
  25094. LPDelegate=$ac_cv_path_LPDelegate
  25095. if test -n "$LPDelegate"; then
  25096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
  25097. $as_echo "$LPDelegate" >&6; }
  25098. else
  25099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25100. $as_echo "no" >&6; }
  25101. fi
  25102. # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
  25103. set dummy "$LPRDelegateDefault"; ac_word=$2
  25104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25105. $as_echo_n "checking for $ac_word... " >&6; }
  25106. if ${ac_cv_path_LPRDelegate+:} false; then :
  25107. $as_echo_n "(cached) " >&6
  25108. else
  25109. case $LPRDelegate in
  25110. [\\/]* | ?:[\\/]*)
  25111. ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
  25112. ;;
  25113. *)
  25114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25115. for as_dir in $PATH
  25116. do
  25117. IFS=$as_save_IFS
  25118. test -z "$as_dir" && as_dir=.
  25119. for ac_exec_ext in '' $ac_executable_extensions; do
  25120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25121. ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
  25122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25123. break 2
  25124. fi
  25125. done
  25126. done
  25127. IFS=$as_save_IFS
  25128. test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate="no"
  25129. ;;
  25130. esac
  25131. fi
  25132. LPRDelegate=$ac_cv_path_LPRDelegate
  25133. if test -n "$LPRDelegate"; then
  25134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
  25135. $as_echo "$LPRDelegate" >&6; }
  25136. else
  25137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25138. $as_echo "no" >&6; }
  25139. fi
  25140. # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
  25141. set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
  25142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25143. $as_echo_n "checking for $ac_word... " >&6; }
  25144. if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
  25145. $as_echo_n "(cached) " >&6
  25146. else
  25147. case $LZWDecodeDelegate in
  25148. [\\/]* | ?:[\\/]*)
  25149. ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
  25150. ;;
  25151. *)
  25152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25153. for as_dir in $PATH
  25154. do
  25155. IFS=$as_save_IFS
  25156. test -z "$as_dir" && as_dir=.
  25157. for ac_exec_ext in '' $ac_executable_extensions; do
  25158. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25159. ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25161. break 2
  25162. fi
  25163. done
  25164. done
  25165. IFS=$as_save_IFS
  25166. test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
  25167. ;;
  25168. esac
  25169. fi
  25170. LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
  25171. if test -n "$LZWDecodeDelegate"; then
  25172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
  25173. $as_echo "$LZWDecodeDelegate" >&6; }
  25174. else
  25175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25176. $as_echo "no" >&6; }
  25177. fi
  25178. # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
  25179. set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
  25180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25181. $as_echo_n "checking for $ac_word... " >&6; }
  25182. if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
  25183. $as_echo_n "(cached) " >&6
  25184. else
  25185. case $LZWEncodeDelegate in
  25186. [\\/]* | ?:[\\/]*)
  25187. ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
  25188. ;;
  25189. *)
  25190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25191. for as_dir in $PATH
  25192. do
  25193. IFS=$as_save_IFS
  25194. test -z "$as_dir" && as_dir=.
  25195. for ac_exec_ext in '' $ac_executable_extensions; do
  25196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25197. ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25199. break 2
  25200. fi
  25201. done
  25202. done
  25203. IFS=$as_save_IFS
  25204. test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
  25205. ;;
  25206. esac
  25207. fi
  25208. LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
  25209. if test -n "$LZWEncodeDelegate"; then
  25210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
  25211. $as_echo "$LZWEncodeDelegate" >&6; }
  25212. else
  25213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25214. $as_echo "no" >&6; }
  25215. fi
  25216. # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
  25217. set dummy "$LaunchDelegateDefault"; ac_word=$2
  25218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25219. $as_echo_n "checking for $ac_word... " >&6; }
  25220. if ${ac_cv_path_LaunchDelegate+:} false; then :
  25221. $as_echo_n "(cached) " >&6
  25222. else
  25223. case $LaunchDelegate in
  25224. [\\/]* | ?:[\\/]*)
  25225. ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
  25226. ;;
  25227. *)
  25228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25229. for as_dir in $PATH
  25230. do
  25231. IFS=$as_save_IFS
  25232. test -z "$as_dir" && as_dir=.
  25233. for ac_exec_ext in '' $ac_executable_extensions; do
  25234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25235. ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
  25236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25237. break 2
  25238. fi
  25239. done
  25240. done
  25241. IFS=$as_save_IFS
  25242. test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
  25243. ;;
  25244. esac
  25245. fi
  25246. LaunchDelegate=$ac_cv_path_LaunchDelegate
  25247. if test -n "$LaunchDelegate"; then
  25248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
  25249. $as_echo "$LaunchDelegate" >&6; }
  25250. else
  25251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25252. $as_echo "no" >&6; }
  25253. fi
  25254. # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
  25255. set dummy "$MANDelegateDefault"; ac_word=$2
  25256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25257. $as_echo_n "checking for $ac_word... " >&6; }
  25258. if ${ac_cv_path_MANDelegate+:} false; then :
  25259. $as_echo_n "(cached) " >&6
  25260. else
  25261. case $MANDelegate in
  25262. [\\/]* | ?:[\\/]*)
  25263. ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
  25264. ;;
  25265. *)
  25266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25267. for as_dir in $PATH
  25268. do
  25269. IFS=$as_save_IFS
  25270. test -z "$as_dir" && as_dir=.
  25271. for ac_exec_ext in '' $ac_executable_extensions; do
  25272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25273. ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
  25274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25275. break 2
  25276. fi
  25277. done
  25278. done
  25279. IFS=$as_save_IFS
  25280. test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
  25281. ;;
  25282. esac
  25283. fi
  25284. MANDelegate=$ac_cv_path_MANDelegate
  25285. if test -n "$MANDelegate"; then
  25286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
  25287. $as_echo "$MANDelegate" >&6; }
  25288. else
  25289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25290. $as_echo "no" >&6; }
  25291. fi
  25292. # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
  25293. set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
  25294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25295. $as_echo_n "checking for $ac_word... " >&6; }
  25296. if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
  25297. $as_echo_n "(cached) " >&6
  25298. else
  25299. case $MPEGDecodeDelegate in
  25300. [\\/]* | ?:[\\/]*)
  25301. ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
  25302. ;;
  25303. *)
  25304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25305. for as_dir in $PATH
  25306. do
  25307. IFS=$as_save_IFS
  25308. test -z "$as_dir" && as_dir=.
  25309. for ac_exec_ext in '' $ac_executable_extensions; do
  25310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25311. ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25313. break 2
  25314. fi
  25315. done
  25316. done
  25317. IFS=$as_save_IFS
  25318. test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
  25319. ;;
  25320. esac
  25321. fi
  25322. MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
  25323. if test -n "$MPEGDecodeDelegate"; then
  25324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
  25325. $as_echo "$MPEGDecodeDelegate" >&6; }
  25326. else
  25327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25328. $as_echo "no" >&6; }
  25329. fi
  25330. # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
  25331. set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
  25332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25333. $as_echo_n "checking for $ac_word... " >&6; }
  25334. if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
  25335. $as_echo_n "(cached) " >&6
  25336. else
  25337. case $MPEGEncodeDelegate in
  25338. [\\/]* | ?:[\\/]*)
  25339. ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
  25340. ;;
  25341. *)
  25342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25343. for as_dir in $PATH
  25344. do
  25345. IFS=$as_save_IFS
  25346. test -z "$as_dir" && as_dir=.
  25347. for ac_exec_ext in '' $ac_executable_extensions; do
  25348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25349. ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25351. break 2
  25352. fi
  25353. done
  25354. done
  25355. IFS=$as_save_IFS
  25356. test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
  25357. ;;
  25358. esac
  25359. fi
  25360. MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
  25361. if test -n "$MPEGEncodeDelegate"; then
  25362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
  25363. $as_echo "$MPEGEncodeDelegate" >&6; }
  25364. else
  25365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25366. $as_echo "no" >&6; }
  25367. fi
  25368. # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
  25369. set dummy "$MVDelegateDefault"; ac_word=$2
  25370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25371. $as_echo_n "checking for $ac_word... " >&6; }
  25372. if ${ac_cv_path_MVDelegate+:} false; then :
  25373. $as_echo_n "(cached) " >&6
  25374. else
  25375. case $MVDelegate in
  25376. [\\/]* | ?:[\\/]*)
  25377. ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
  25378. ;;
  25379. *)
  25380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25381. for as_dir in $PATH
  25382. do
  25383. IFS=$as_save_IFS
  25384. test -z "$as_dir" && as_dir=.
  25385. for ac_exec_ext in '' $ac_executable_extensions; do
  25386. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25387. ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
  25388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25389. break 2
  25390. fi
  25391. done
  25392. done
  25393. IFS=$as_save_IFS
  25394. test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
  25395. ;;
  25396. esac
  25397. fi
  25398. MVDelegate=$ac_cv_path_MVDelegate
  25399. if test -n "$MVDelegate"; then
  25400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
  25401. $as_echo "$MVDelegate" >&6; }
  25402. else
  25403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25404. $as_echo "no" >&6; }
  25405. fi
  25406. # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
  25407. set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
  25408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25409. $as_echo_n "checking for $ac_word... " >&6; }
  25410. if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
  25411. $as_echo_n "(cached) " >&6
  25412. else
  25413. case $PGPDecodeDelegate in
  25414. [\\/]* | ?:[\\/]*)
  25415. ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
  25416. ;;
  25417. *)
  25418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25419. for as_dir in $PATH
  25420. do
  25421. IFS=$as_save_IFS
  25422. test -z "$as_dir" && as_dir=.
  25423. for ac_exec_ext in '' $ac_executable_extensions; do
  25424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25425. ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25427. break 2
  25428. fi
  25429. done
  25430. done
  25431. IFS=$as_save_IFS
  25432. test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
  25433. ;;
  25434. esac
  25435. fi
  25436. PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
  25437. if test -n "$PGPDecodeDelegate"; then
  25438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
  25439. $as_echo "$PGPDecodeDelegate" >&6; }
  25440. else
  25441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25442. $as_echo "no" >&6; }
  25443. fi
  25444. # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
  25445. set dummy "$POVDelegateDefault"; ac_word=$2
  25446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25447. $as_echo_n "checking for $ac_word... " >&6; }
  25448. if ${ac_cv_path_POVDelegate+:} false; then :
  25449. $as_echo_n "(cached) " >&6
  25450. else
  25451. case $POVDelegate in
  25452. [\\/]* | ?:[\\/]*)
  25453. ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
  25454. ;;
  25455. *)
  25456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25457. for as_dir in $PATH
  25458. do
  25459. IFS=$as_save_IFS
  25460. test -z "$as_dir" && as_dir=.
  25461. for ac_exec_ext in '' $ac_executable_extensions; do
  25462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25463. ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
  25464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25465. break 2
  25466. fi
  25467. done
  25468. done
  25469. IFS=$as_save_IFS
  25470. test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
  25471. ;;
  25472. esac
  25473. fi
  25474. POVDelegate=$ac_cv_path_POVDelegate
  25475. if test -n "$POVDelegate"; then
  25476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
  25477. $as_echo "$POVDelegate" >&6; }
  25478. else
  25479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25480. $as_echo "no" >&6; }
  25481. fi
  25482. # Extract the first word of ""$PSDelegateDefault"", so it can be a program name with args.
  25483. set dummy "$PSDelegateDefault"; ac_word=$2
  25484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25485. $as_echo_n "checking for $ac_word... " >&6; }
  25486. if ${ac_cv_path_PSDelegate+:} false; then :
  25487. $as_echo_n "(cached) " >&6
  25488. else
  25489. case $PSDelegate in
  25490. [\\/]* | ?:[\\/]*)
  25491. ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
  25492. ;;
  25493. *)
  25494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25495. for as_dir in $PATH
  25496. do
  25497. IFS=$as_save_IFS
  25498. test -z "$as_dir" && as_dir=.
  25499. for ac_exec_ext in '' $ac_executable_extensions; do
  25500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25501. ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
  25502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25503. break 2
  25504. fi
  25505. done
  25506. done
  25507. IFS=$as_save_IFS
  25508. test -z "$ac_cv_path_PSDelegate" && ac_cv_path_PSDelegate=""$PSDelegateDefault""
  25509. ;;
  25510. esac
  25511. fi
  25512. PSDelegate=$ac_cv_path_PSDelegate
  25513. if test -n "$PSDelegate"; then
  25514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
  25515. $as_echo "$PSDelegate" >&6; }
  25516. else
  25517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25518. $as_echo "no" >&6; }
  25519. fi
  25520. # Extract the first word of ""$RADDecodeDelegateDefault"", so it can be a program name with args.
  25521. set dummy "$RADDecodeDelegateDefault"; ac_word=$2
  25522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25523. $as_echo_n "checking for $ac_word... " >&6; }
  25524. if ${ac_cv_path_RADDecodeDelegate+:} false; then :
  25525. $as_echo_n "(cached) " >&6
  25526. else
  25527. case $RADDecodeDelegate in
  25528. [\\/]* | ?:[\\/]*)
  25529. ac_cv_path_RADDecodeDelegate="$RADDecodeDelegate" # Let the user override the test with a path.
  25530. ;;
  25531. *)
  25532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25533. for as_dir in $PATH
  25534. do
  25535. IFS=$as_save_IFS
  25536. test -z "$as_dir" && as_dir=.
  25537. for ac_exec_ext in '' $ac_executable_extensions; do
  25538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25539. ac_cv_path_RADDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25541. break 2
  25542. fi
  25543. done
  25544. done
  25545. IFS=$as_save_IFS
  25546. test -z "$ac_cv_path_RADDecodeDelegate" && ac_cv_path_RADDecodeDelegate=""$RADDecodeDelegateDefault""
  25547. ;;
  25548. esac
  25549. fi
  25550. RADDecodeDelegate=$ac_cv_path_RADDecodeDelegate
  25551. if test -n "$RADDecodeDelegate"; then
  25552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RADDecodeDelegate" >&5
  25553. $as_echo "$RADDecodeDelegate" >&6; }
  25554. else
  25555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25556. $as_echo "no" >&6; }
  25557. fi
  25558. # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
  25559. set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
  25560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25561. $as_echo_n "checking for $ac_word... " >&6; }
  25562. if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
  25563. $as_echo_n "(cached) " >&6
  25564. else
  25565. case $RLEEncodeDelegate in
  25566. [\\/]* | ?:[\\/]*)
  25567. ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
  25568. ;;
  25569. *)
  25570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25571. for as_dir in $PATH
  25572. do
  25573. IFS=$as_save_IFS
  25574. test -z "$as_dir" && as_dir=.
  25575. for ac_exec_ext in '' $ac_executable_extensions; do
  25576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25577. ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25579. break 2
  25580. fi
  25581. done
  25582. done
  25583. IFS=$as_save_IFS
  25584. test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
  25585. ;;
  25586. esac
  25587. fi
  25588. RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
  25589. if test -n "$RLEEncodeDelegate"; then
  25590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
  25591. $as_echo "$RLEEncodeDelegate" >&6; }
  25592. else
  25593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25594. $as_echo "no" >&6; }
  25595. fi
  25596. # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
  25597. set dummy "$RMDelegateDefault"; ac_word=$2
  25598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25599. $as_echo_n "checking for $ac_word... " >&6; }
  25600. if ${ac_cv_path_RMDelegate+:} false; then :
  25601. $as_echo_n "(cached) " >&6
  25602. else
  25603. case $RMDelegate in
  25604. [\\/]* | ?:[\\/]*)
  25605. ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
  25606. ;;
  25607. *)
  25608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25609. for as_dir in $PATH
  25610. do
  25611. IFS=$as_save_IFS
  25612. test -z "$as_dir" && as_dir=.
  25613. for ac_exec_ext in '' $ac_executable_extensions; do
  25614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25615. ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
  25616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25617. break 2
  25618. fi
  25619. done
  25620. done
  25621. IFS=$as_save_IFS
  25622. test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
  25623. ;;
  25624. esac
  25625. fi
  25626. RMDelegate=$ac_cv_path_RMDelegate
  25627. if test -n "$RMDelegate"; then
  25628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
  25629. $as_echo "$RMDelegate" >&6; }
  25630. else
  25631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25632. $as_echo "no" >&6; }
  25633. fi
  25634. # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
  25635. set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
  25636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25637. $as_echo_n "checking for $ac_word... " >&6; }
  25638. if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
  25639. $as_echo_n "(cached) " >&6
  25640. else
  25641. case $SCANDecodeDelegate in
  25642. [\\/]* | ?:[\\/]*)
  25643. ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
  25644. ;;
  25645. *)
  25646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25647. for as_dir in $PATH
  25648. do
  25649. IFS=$as_save_IFS
  25650. test -z "$as_dir" && as_dir=.
  25651. for ac_exec_ext in '' $ac_executable_extensions; do
  25652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25653. ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25655. break 2
  25656. fi
  25657. done
  25658. done
  25659. IFS=$as_save_IFS
  25660. test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
  25661. ;;
  25662. esac
  25663. fi
  25664. SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
  25665. if test -n "$SCANDecodeDelegate"; then
  25666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
  25667. $as_echo "$SCANDecodeDelegate" >&6; }
  25668. else
  25669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25670. $as_echo "no" >&6; }
  25671. fi
  25672. # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
  25673. set dummy "$TXTDelegateDefault"; ac_word=$2
  25674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25675. $as_echo_n "checking for $ac_word... " >&6; }
  25676. if ${ac_cv_path_TXTDelegate+:} false; then :
  25677. $as_echo_n "(cached) " >&6
  25678. else
  25679. case $TXTDelegate in
  25680. [\\/]* | ?:[\\/]*)
  25681. ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
  25682. ;;
  25683. *)
  25684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25685. for as_dir in $PATH
  25686. do
  25687. IFS=$as_save_IFS
  25688. test -z "$as_dir" && as_dir=.
  25689. for ac_exec_ext in '' $ac_executable_extensions; do
  25690. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25691. ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
  25692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25693. break 2
  25694. fi
  25695. done
  25696. done
  25697. IFS=$as_save_IFS
  25698. test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
  25699. ;;
  25700. esac
  25701. fi
  25702. TXTDelegate=$ac_cv_path_TXTDelegate
  25703. if test -n "$TXTDelegate"; then
  25704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
  25705. $as_echo "$TXTDelegate" >&6; }
  25706. else
  25707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25708. $as_echo "no" >&6; }
  25709. fi
  25710. # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
  25711. set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
  25712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25713. $as_echo_n "checking for $ac_word... " >&6; }
  25714. if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
  25715. $as_echo_n "(cached) " >&6
  25716. else
  25717. case $WMFDecodeDelegate in
  25718. [\\/]* | ?:[\\/]*)
  25719. ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
  25720. ;;
  25721. *)
  25722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25723. for as_dir in $PATH
  25724. do
  25725. IFS=$as_save_IFS
  25726. test -z "$as_dir" && as_dir=.
  25727. for ac_exec_ext in '' $ac_executable_extensions; do
  25728. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25729. ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25731. break 2
  25732. fi
  25733. done
  25734. done
  25735. IFS=$as_save_IFS
  25736. test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
  25737. ;;
  25738. esac
  25739. fi
  25740. WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
  25741. if test -n "$WMFDecodeDelegate"; then
  25742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
  25743. $as_echo "$WMFDecodeDelegate" >&6; }
  25744. else
  25745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25746. $as_echo "no" >&6; }
  25747. fi
  25748. # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
  25749. set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
  25750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25751. $as_echo_n "checking for $ac_word... " >&6; }
  25752. if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
  25753. $as_echo_n "(cached) " >&6
  25754. else
  25755. case $WWWDecodeDelegate in
  25756. [\\/]* | ?:[\\/]*)
  25757. ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
  25758. ;;
  25759. *)
  25760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25761. for as_dir in $PATH
  25762. do
  25763. IFS=$as_save_IFS
  25764. test -z "$as_dir" && as_dir=.
  25765. for ac_exec_ext in '' $ac_executable_extensions; do
  25766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25767. ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
  25768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25769. break 2
  25770. fi
  25771. done
  25772. done
  25773. IFS=$as_save_IFS
  25774. test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
  25775. ;;
  25776. esac
  25777. fi
  25778. WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
  25779. if test -n "$WWWDecodeDelegate"; then
  25780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
  25781. $as_echo "$WWWDecodeDelegate" >&6; }
  25782. else
  25783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25784. $as_echo "no" >&6; }
  25785. fi
  25786. # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
  25787. set dummy "$ZipDelegateDefault"; ac_word=$2
  25788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25789. $as_echo_n "checking for $ac_word... " >&6; }
  25790. if ${ac_cv_path_ZipDelegate+:} false; then :
  25791. $as_echo_n "(cached) " >&6
  25792. else
  25793. case $ZipDelegate in
  25794. [\\/]* | ?:[\\/]*)
  25795. ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
  25796. ;;
  25797. *)
  25798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25799. for as_dir in $PATH
  25800. do
  25801. IFS=$as_save_IFS
  25802. test -z "$as_dir" && as_dir=.
  25803. for ac_exec_ext in '' $ac_executable_extensions; do
  25804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25805. ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
  25806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25807. break 2
  25808. fi
  25809. done
  25810. done
  25811. IFS=$as_save_IFS
  25812. test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
  25813. ;;
  25814. esac
  25815. fi
  25816. ZipDelegate=$ac_cv_path_ZipDelegate
  25817. if test -n "$ZipDelegate"; then
  25818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
  25819. $as_echo "$ZipDelegate" >&6; }
  25820. else
  25821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25822. $as_echo "no" >&6; }
  25823. fi
  25824. # Prefer lpr to lp; lp needs options tacked on.
  25825. if test "$LPRDelegate" != no
  25826. then
  25827. PrintDelegate="$LPRDelegate"
  25828. else
  25829. PrintDelegate="$LPDelegate -c -s"
  25830. fi
  25831. # Installed GraphicsMagick utiltity paths
  25832. GMDelegate="${BIN_DIR}/${GMDelegateDefault}"
  25833. # Set delegate booleans
  25834. have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes' ; fi
  25835. have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes' ; fi
  25836. have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes' ; fi
  25837. have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes' ; fi
  25838. have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes' ; fi
  25839. have_mpeg2decode='no' ; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_mpeg2decode='yes' ; fi
  25840. have_mpeg2encode='no' ; if test "$MPEGEncodeDelegate" != "$MPEGEncodeDelegateDefault" ; then have_mpeg2encode='yes' ; fi
  25841. have_ra_ppm='no' ; if test "$RADDecodeDelegate" != "$RADDecodeDelegateDefault" ; then have_ra_ppm='yes' ; fi
  25842. have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes' ; fi
  25843. # Automake conditional to support test suite
  25844. if test "$have_gs" = 'yes'; then
  25845. HasPSDelegate_TRUE=
  25846. HasPSDelegate_FALSE='#'
  25847. else
  25848. HasPSDelegate_TRUE='#'
  25849. HasPSDelegate_FALSE=
  25850. fi
  25851. # Test for optional rst2html.py utility and define automake conditional HasRST2HTML if found.
  25852. for ac_prog in rst2html.py rst2html
  25853. do
  25854. # Extract the first word of "$ac_prog", so it can be a program name with args.
  25855. set dummy $ac_prog; ac_word=$2
  25856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25857. $as_echo_n "checking for $ac_word... " >&6; }
  25858. if ${ac_cv_prog_RST2HTML+:} false; then :
  25859. $as_echo_n "(cached) " >&6
  25860. else
  25861. if test -n "$RST2HTML"; then
  25862. ac_cv_prog_RST2HTML="$RST2HTML" # Let the user override the test.
  25863. else
  25864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25865. for as_dir in $PATH
  25866. do
  25867. IFS=$as_save_IFS
  25868. test -z "$as_dir" && as_dir=.
  25869. for ac_exec_ext in '' $ac_executable_extensions; do
  25870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25871. ac_cv_prog_RST2HTML="$ac_prog"
  25872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25873. break 2
  25874. fi
  25875. done
  25876. done
  25877. IFS=$as_save_IFS
  25878. fi
  25879. fi
  25880. RST2HTML=$ac_cv_prog_RST2HTML
  25881. if test -n "$RST2HTML"; then
  25882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RST2HTML" >&5
  25883. $as_echo "$RST2HTML" >&6; }
  25884. else
  25885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25886. $as_echo "no" >&6; }
  25887. fi
  25888. test -n "$RST2HTML" && break
  25889. done
  25890. if test "x$RST2HTML" != 'x'; then
  25891. HasRST2HTML_TRUE=
  25892. HasRST2HTML_FALSE='#'
  25893. else
  25894. HasRST2HTML_TRUE='#'
  25895. HasRST2HTML_FALSE=
  25896. fi
  25897. # Test for optional txt2html utility and define automake conditional HasTXT2HTML if found.
  25898. for ac_prog in txt2html
  25899. do
  25900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  25901. set dummy $ac_prog; ac_word=$2
  25902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25903. $as_echo_n "checking for $ac_word... " >&6; }
  25904. if ${ac_cv_path_TXT2HTML+:} false; then :
  25905. $as_echo_n "(cached) " >&6
  25906. else
  25907. case $TXT2HTML in
  25908. [\\/]* | ?:[\\/]*)
  25909. ac_cv_path_TXT2HTML="$TXT2HTML" # Let the user override the test with a path.
  25910. ;;
  25911. *)
  25912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25913. for as_dir in $PATH
  25914. do
  25915. IFS=$as_save_IFS
  25916. test -z "$as_dir" && as_dir=.
  25917. for ac_exec_ext in '' $ac_executable_extensions; do
  25918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25919. ac_cv_path_TXT2HTML="$as_dir/$ac_word$ac_exec_ext"
  25920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25921. break 2
  25922. fi
  25923. done
  25924. done
  25925. IFS=$as_save_IFS
  25926. ;;
  25927. esac
  25928. fi
  25929. TXT2HTML=$ac_cv_path_TXT2HTML
  25930. if test -n "$TXT2HTML"; then
  25931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXT2HTML" >&5
  25932. $as_echo "$TXT2HTML" >&6; }
  25933. else
  25934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25935. $as_echo "no" >&6; }
  25936. fi
  25937. test -n "$TXT2HTML" && break
  25938. done
  25939. if test "$TXT2HTML" != 'x'; then
  25940. HasTXT2HTML_TRUE=
  25941. HasTXT2HTML_FALSE='#'
  25942. else
  25943. HasTXT2HTML_TRUE='#'
  25944. HasTXT2HTML_FALSE=
  25945. fi
  25946. #
  25947. # Test for font directories
  25948. #
  25949. type_include_files=''
  25950. # Windows
  25951. windows_font_dir=''
  25952. if test "$with_windows_font_dir" != "yes" && test -n "$with_windows_font_dir"
  25953. then
  25954. windows_font_dir="${with_windows_font_dir}/"
  25955. fi
  25956. # Sometimes Windows fonts are found under /usr/X11R6/lib/X11/fonts/truetype
  25957. if test -n "$windows_font_dir"
  25958. then
  25959. if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'
  25960. then
  25961. windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
  25962. fi
  25963. fi
  25964. if test -n "$windows_font_dir"
  25965. then
  25966. type_include_files="$type_include_files "'<include file="type-windows.mgk" />'
  25967. fi
  25968. # Adobe Postscript fonts on various systems
  25969. case $host_os in
  25970. solaris*)
  25971. # Check for OpenWindows Type 1 fonts. Not available under OpenSolaris
  25972. if test -f /usr/openwin/lib/X11/fonts/Type1/afm/Helvetica.afm
  25973. then
  25974. type_include_files="$type_include_files "'<include file="type-solaris.mgk" />'
  25975. fi
  25976. ;;
  25977. esac
  25978. # Ghostscript
  25979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
  25980. $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
  25981. ghostscript_font_dir=''
  25982. if test "${with_gs_font_dir}" != 'default'
  25983. then
  25984. ghostscript_font_dir="${with_gs_font_dir}/"
  25985. else
  25986. if test "${native_win32_build}" = 'yes'
  25987. then
  25988. # Native Windows Build
  25989. #
  25990. # Ghostscript may install fonts to several default locations now.
  25991. # If the user does not select the default, then he is on his own.
  25992. #
  25993. # It would be nice to use reg.exe to obtain Ghostscript information
  25994. # but unfortunately MSYS seems to transform registry key paths into
  25995. # filesystem paths so it does not work. Maybe there is a way to
  25996. # prevent that translation?
  25997. #
  25998. # reg query "HKLM\Software\GPL Ghostscript" /s
  25999. for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\gs\\fonts\\"
  26000. do
  26001. if test -f "${font_dir}a010013l.pfb"
  26002. then
  26003. ghostscript_font_dir="$font_dir"
  26004. break 1
  26005. fi
  26006. done
  26007. if test "${PSDelegate}" != 'gswin32c'
  26008. then
  26009. ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
  26010. fi
  26011. else
  26012. # Unix Build
  26013. #
  26014. # Check ${prefix}/share/ghostscript/fonts first
  26015. # Red Hat Linux puts Ghostscript fonts in /usr/share/fonts/default/Type1
  26016. # Recent Cygwin puts Ghostscript fonts in /usr/share/ghostscript/fonts
  26017. # Recent Gentoo Linux puts Ghostscript fonts in /usr/share/fonts/ghostscript
  26018. # Debian puts Ghostscript fonts in /usr/share/fonts/type1/gsfonts
  26019. for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/'
  26020. do
  26021. if test -f "${font_dir}a010013l.pfb"
  26022. then
  26023. ghostscript_font_dir="${font_dir}"
  26024. break 1
  26025. fi
  26026. done
  26027. if test "${ghostscript_font_dir}x" = 'x'
  26028. then
  26029. if test "$PSDelegate" != 'gs'
  26030. then
  26031. ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
  26032. fi
  26033. fi
  26034. fi
  26035. fi
  26036. if test "${ghostscript_font_dir}x" != 'x'
  26037. then
  26038. type_include_files="${type_include_files} "'<include file="type-ghostscript.mgk" />'
  26039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
  26040. $as_echo "$ghostscript_font_dir" >&6; }
  26041. else
  26042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
  26043. $as_echo "not found!" >&6; };
  26044. fi
  26045. case "${build_os}" in
  26046. mingw* )
  26047. PSDelegate=`$WinPathScript "$PSDelegate" 1`
  26048. ;;
  26049. esac
  26050. #
  26051. # Handle case where user doesn't want frozen paths
  26052. #
  26053. if test "$with_frozenpaths" != 'yes'
  26054. then
  26055. # Re-set delegate definitions to default (no paths)
  26056. AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
  26057. BZIPDelegate="$BZIPDelegateDefault"
  26058. BrowseDelegate="$BrowseDelegateDefault"
  26059. CGMDecodeDelegate="$CGMDecodeDelegateDefault"
  26060. CatDelegate="$CatDelegateDefault"
  26061. ConvertDelegate="$ConvertDelegateDefault"
  26062. DOTDecodeDelegate="$DOTDecodeDelegateDefault"
  26063. DVIDecodeDelegate="$DVIDecodeDelegateDefault"
  26064. EchoDelegate="$EchoDelegateDefault"
  26065. EditorDelegate="$EditorDelegateDefault"
  26066. FIGDecodeDelegate="$FIGDecodeDelegateDefault"
  26067. GMDelegate="${GMDelegateDefault}"
  26068. GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
  26069. HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
  26070. HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
  26071. ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
  26072. ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
  26073. LPDelegate="$LPDelegateDefault"
  26074. LZWDecodeDelegate="$LZWDecodeDelegateDefault"
  26075. LZWEncodeDelegate="$LZWEncodeDelegateDefault"
  26076. LaunchDelegate="$LaunchDelegateDefault"
  26077. MANDelegate="$MANDelegateDefault"
  26078. MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
  26079. MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
  26080. MVDelegate="$MVDelegateDefault"
  26081. MogrifyDelegate="$MogrifyDelegateDefault"
  26082. PGPDecodeDelegate="$PGPDecodeDelegateDefault"
  26083. POVDelegate="$POVDelegateDefault"
  26084. PSDelegate="$PSDelegateDefault"
  26085. RADDecodeDelegate="$RADDecodeDelegateDefault"
  26086. RLEEncodeDelegate="$RLEEncodeDelegateDefault"
  26087. RMDelegate="$RMDelegateDefault"
  26088. SCANDecodeDelegate="$SCANDecodeDelegateDefault"
  26089. ShowImageDelegate="$ShowImageDelegateDefault"
  26090. TXTDelegate="$TXTDelegateDefault"
  26091. WMFDecodeDelegate="$WMFDecodeDelegateDefault"
  26092. WWWDecodeDelegate="$WWWDecodeDelegateDefault"
  26093. ZipDelegate="$ZipDelegateDefault"
  26094. fi
  26095. # Delegate substitutions
  26096. #
  26097. # RedHat RPM support (http://rpm5.org/)
  26098. #
  26099. RPM=''
  26100. for ac_prog in rpmbuild rpm
  26101. do
  26102. # Extract the first word of "$ac_prog", so it can be a program name with args.
  26103. set dummy $ac_prog; ac_word=$2
  26104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26105. $as_echo_n "checking for $ac_word... " >&6; }
  26106. if ${ac_cv_prog_RPM+:} false; then :
  26107. $as_echo_n "(cached) " >&6
  26108. else
  26109. if test -n "$RPM"; then
  26110. ac_cv_prog_RPM="$RPM" # Let the user override the test.
  26111. else
  26112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26113. for as_dir in $PATH
  26114. do
  26115. IFS=$as_save_IFS
  26116. test -z "$as_dir" && as_dir=.
  26117. for ac_exec_ext in '' $ac_executable_extensions; do
  26118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26119. ac_cv_prog_RPM="$ac_prog"
  26120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26121. break 2
  26122. fi
  26123. done
  26124. done
  26125. IFS=$as_save_IFS
  26126. fi
  26127. fi
  26128. RPM=$ac_cv_prog_RPM
  26129. if test -n "$RPM"; then
  26130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
  26131. $as_echo "$RPM" >&6; }
  26132. else
  26133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26134. $as_echo "no" >&6; }
  26135. fi
  26136. test -n "$RPM" && break
  26137. done
  26138. if test "x$RPM" != "x" ; then
  26139. HAS_RPM_TRUE=
  26140. HAS_RPM_FALSE='#'
  26141. else
  26142. HAS_RPM_TRUE='#'
  26143. HAS_RPM_FALSE=
  26144. fi
  26145. #
  26146. # 7ZIP support (http://p7zip.sourceforge.net/)
  26147. #
  26148. P7ZIP=''
  26149. for ac_prog in 7za
  26150. do
  26151. # Extract the first word of "$ac_prog", so it can be a program name with args.
  26152. set dummy $ac_prog; ac_word=$2
  26153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26154. $as_echo_n "checking for $ac_word... " >&6; }
  26155. if ${ac_cv_prog_P7ZIP+:} false; then :
  26156. $as_echo_n "(cached) " >&6
  26157. else
  26158. if test -n "$P7ZIP"; then
  26159. ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
  26160. else
  26161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26162. for as_dir in $PATH
  26163. do
  26164. IFS=$as_save_IFS
  26165. test -z "$as_dir" && as_dir=.
  26166. for ac_exec_ext in '' $ac_executable_extensions; do
  26167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26168. ac_cv_prog_P7ZIP="$ac_prog"
  26169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26170. break 2
  26171. fi
  26172. done
  26173. done
  26174. IFS=$as_save_IFS
  26175. fi
  26176. fi
  26177. P7ZIP=$ac_cv_prog_P7ZIP
  26178. if test -n "$P7ZIP"; then
  26179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
  26180. $as_echo "$P7ZIP" >&6; }
  26181. else
  26182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26183. $as_echo "no" >&6; }
  26184. fi
  26185. test -n "$P7ZIP" && break
  26186. done
  26187. if test "x$P7ZIP" != "x" ; then
  26188. HAS_P7ZIP_TRUE=
  26189. HAS_P7ZIP_FALSE='#'
  26190. else
  26191. HAS_P7ZIP_TRUE='#'
  26192. HAS_P7ZIP_FALSE=
  26193. fi
  26194. #
  26195. # ZIP support (http://www.info-zip.org/Zip.html)
  26196. #
  26197. ZIP=''
  26198. for ac_prog in zip
  26199. do
  26200. # Extract the first word of "$ac_prog", so it can be a program name with args.
  26201. set dummy $ac_prog; ac_word=$2
  26202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26203. $as_echo_n "checking for $ac_word... " >&6; }
  26204. if ${ac_cv_prog_ZIP+:} false; then :
  26205. $as_echo_n "(cached) " >&6
  26206. else
  26207. if test -n "$ZIP"; then
  26208. ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
  26209. else
  26210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26211. for as_dir in $PATH
  26212. do
  26213. IFS=$as_save_IFS
  26214. test -z "$as_dir" && as_dir=.
  26215. for ac_exec_ext in '' $ac_executable_extensions; do
  26216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26217. ac_cv_prog_ZIP="$ac_prog"
  26218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26219. break 2
  26220. fi
  26221. done
  26222. done
  26223. IFS=$as_save_IFS
  26224. fi
  26225. fi
  26226. ZIP=$ac_cv_prog_ZIP
  26227. if test -n "$ZIP"; then
  26228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
  26229. $as_echo "$ZIP" >&6; }
  26230. else
  26231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26232. $as_echo "no" >&6; }
  26233. fi
  26234. test -n "$ZIP" && break
  26235. done
  26236. if test "x$ZIP" != "x" ; then
  26237. HAS_ZIP_TRUE=
  26238. HAS_ZIP_FALSE='#'
  26239. else
  26240. HAS_ZIP_TRUE='#'
  26241. HAS_ZIP_FALSE=
  26242. fi
  26243. #
  26244. # Ghostscript related configuration.
  26245. #
  26246. GSColorDevice=ppmraw
  26247. GSColorAlphaDevice=pngalpha
  26248. GSGrayDevice=pgmraw
  26249. GSPaletteDevice=pcx256
  26250. GSMonoDevice=pbmraw
  26251. GSCMYKDevice=pam
  26252. GSPDFDevice=pdfwrite
  26253. GSPSDevice=pswrite
  26254. GSEPSDevice=epswrite
  26255. GSVersion='unknown'
  26256. if test $have_gs = 'yes'
  26257. then
  26258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
  26259. $as_echo_n "checking for Ghostscript version... " >&6; }
  26260. if GSVersion=`$PSDelegate --version`
  26261. then
  26262. :
  26263. else
  26264. GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
  26265. fi
  26266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
  26267. $as_echo "$GSVersion" >&6; }
  26268. # GSColorDevice
  26269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
  26270. $as_echo_n "checking for gs color device... " >&6; }
  26271. if $PSDelegate -q -dBATCH -sDEVICE=pnmraw -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26272. then
  26273. GSColorDevice=pnmraw
  26274. else
  26275. if $PSDelegate -q -dBATCH -sDEVICE=ppmraw -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26276. then
  26277. GSColorDevice=ppmraw
  26278. else
  26279. GSColorDevice=ppmraw
  26280. fi
  26281. fi
  26282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
  26283. $as_echo "$GSColorDevice" >&6; }
  26284. # GSColorAlphaDevice
  26285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color+alpha device" >&5
  26286. $as_echo_n "checking for gs color+alpha device... " >&6; }
  26287. if $PSDelegate -q -dBATCH -sDEVICE=pngalpha -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26288. then
  26289. GSColorAlphaDevice=pngalpha
  26290. else
  26291. GSColorAlphaDevice=$GSColorDevice
  26292. fi
  26293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorAlphaDevice" >&5
  26294. $as_echo "$GSColorAlphaDevice" >&6; }
  26295. # GSGrayDevice
  26296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs gray device" >&5
  26297. $as_echo_n "checking for gs gray device... " >&6; }
  26298. if $PSDelegate -q -dBATCH -sDEVICE=pgmraw -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26299. then
  26300. GSGrayDevice=pgmraw
  26301. else
  26302. GSGrayDevice=ppmraw
  26303. fi
  26304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSGrayDevice" >&5
  26305. $as_echo "$GSGrayDevice" >&6; }
  26306. # GSPaletteDevice
  26307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs pallet device" >&5
  26308. $as_echo_n "checking for gs pallet device... " >&6; }
  26309. if $PSDelegate -q -dBATCH -sDEVICE=pcx256 -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26310. then
  26311. GSPaletteDevice=pcx256
  26312. else
  26313. GSPaletteDevice=ppmraw
  26314. fi
  26315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPaletteDevice" >&5
  26316. $as_echo "$GSPaletteDevice" >&6; }
  26317. # GSMonoDevice
  26318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
  26319. $as_echo_n "checking for gs mono device... " >&6; }
  26320. if $PSDelegate -q -dBATCH -sDEVICE=pbmraw -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26321. then
  26322. GSMonoDevice=pbmraw
  26323. else
  26324. GSMonoDevice=ppmraw
  26325. fi
  26326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
  26327. $as_echo "$GSMonoDevice" >&6; }
  26328. # GSCMYKDevice
  26329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
  26330. $as_echo_n "checking for gs CMYK device... " >&6; }
  26331. if $PSDelegate -q -dBATCH -sDEVICE=pam -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26332. then
  26333. GSCMYKDevice=pam
  26334. else
  26335. GSCMYKDevice=$GSColorDevice
  26336. fi
  26337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
  26338. $as_echo "$GSCMYKDevice" >&6; }
  26339. # GSPDFDevice
  26340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
  26341. $as_echo_n "checking for gs PDF writing device... " >&6; }
  26342. if $PSDelegate -q -dBATCH -sDEVICE=pdfwrite -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26343. then
  26344. GSPDFDevice=pdfwrite
  26345. else
  26346. GSPDFDevice=nodevice
  26347. fi
  26348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
  26349. $as_echo "$GSPDFDevice" >&6; }
  26350. # GSPSDevice
  26351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
  26352. $as_echo_n "checking for gs PS writing device... " >&6; }
  26353. if $PSDelegate -q -dBATCH -sDEVICE=pswrite -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26354. then
  26355. GSPSDevice=pswrite
  26356. else
  26357. GSPSDevice=nodevice
  26358. fi
  26359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
  26360. $as_echo "$GSPSDevice" >&6; }
  26361. # GSEPSDevice
  26362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
  26363. $as_echo_n "checking for gs EPS writing device... " >&6; }
  26364. if $PSDelegate -q -dBATCH -sDEVICE=epswrite -sOutputFile=/dev/null < /dev/null 2> /dev/null
  26365. then
  26366. GSEPSDevice=epswrite
  26367. else
  26368. GSEPSDevice=nodevice
  26369. fi
  26370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
  26371. $as_echo "$GSEPSDevice" >&6; }
  26372. fi
  26373. #
  26374. # PerlMagick-related configuration
  26375. #
  26376. # Look for PERL if PerlMagick requested
  26377. # If name/path of desired PERL interpreter is specified, look for that one first
  26378. have_perl='no'
  26379. if test "$with_perl" != 'no'
  26380. then
  26381. if test "$with_perl" != 'yes'
  26382. then
  26383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
  26384. $as_echo_n "checking for perl... " >&6; }
  26385. if ${ac_cv_path_PERL+:} false; then :
  26386. $as_echo_n "(cached) " >&6
  26387. else
  26388. ac_cv_path_PERL="$with_perl"
  26389. fi
  26390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
  26391. $as_echo "$ac_cv_path_PERL" >&6; };
  26392. PERL=$ac_cv_path_PERL
  26393. have_perl="$ac_cv_path_PERL"
  26394. else
  26395. for ac_prog in perl perl5
  26396. do
  26397. # Extract the first word of "$ac_prog", so it can be a program name with args.
  26398. set dummy $ac_prog; ac_word=$2
  26399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26400. $as_echo_n "checking for $ac_word... " >&6; }
  26401. if ${ac_cv_path_PERL+:} false; then :
  26402. $as_echo_n "(cached) " >&6
  26403. else
  26404. case $PERL in
  26405. [\\/]* | ?:[\\/]*)
  26406. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  26407. ;;
  26408. *)
  26409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26410. for as_dir in $PATH
  26411. do
  26412. IFS=$as_save_IFS
  26413. test -z "$as_dir" && as_dir=.
  26414. for ac_exec_ext in '' $ac_executable_extensions; do
  26415. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26416. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  26417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26418. break 2
  26419. fi
  26420. done
  26421. done
  26422. IFS=$as_save_IFS
  26423. ;;
  26424. esac
  26425. fi
  26426. PERL=$ac_cv_path_PERL
  26427. if test -n "$PERL"; then
  26428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  26429. $as_echo "$PERL" >&6; }
  26430. else
  26431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26432. $as_echo "no" >&6; }
  26433. fi
  26434. test -n "$PERL" && break
  26435. done
  26436. if test "$ac_cv_path_PERL"
  26437. then
  26438. have_perl="$ac_cv_path_PERL"
  26439. fi
  26440. fi
  26441. fi
  26442. if test "$with_perl" != 'yes' ; then
  26443. DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
  26444. fi
  26445. PERL_SUPPORTS_DESTDIR='no'
  26446. with_perl_static='no'
  26447. with_perl_dynamic='no'
  26448. if test "$have_perl" != 'no'
  26449. then
  26450. # Should we build shared libraries?
  26451. if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'
  26452. then
  26453. with_perl_static='yes'
  26454. fi
  26455. if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'
  26456. then
  26457. with_perl_dynamic='yes'
  26458. fi
  26459. # Is PERL's MakeMaker new enough to support DESTDIR?
  26460. # Make sure we have perl
  26461. if test -z "$PERL"; then
  26462. # Extract the first word of "perl", so it can be a program name with args.
  26463. set dummy perl; ac_word=$2
  26464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26465. $as_echo_n "checking for $ac_word... " >&6; }
  26466. if ${ac_cv_prog_PERL+:} false; then :
  26467. $as_echo_n "(cached) " >&6
  26468. else
  26469. if test -n "$PERL"; then
  26470. ac_cv_prog_PERL="$PERL" # Let the user override the test.
  26471. else
  26472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26473. for as_dir in $PATH
  26474. do
  26475. IFS=$as_save_IFS
  26476. test -z "$as_dir" && as_dir=.
  26477. for ac_exec_ext in '' $ac_executable_extensions; do
  26478. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26479. ac_cv_prog_PERL="perl"
  26480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26481. break 2
  26482. fi
  26483. done
  26484. done
  26485. IFS=$as_save_IFS
  26486. fi
  26487. fi
  26488. PERL=$ac_cv_prog_PERL
  26489. if test -n "$PERL"; then
  26490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  26491. $as_echo "$PERL" >&6; }
  26492. else
  26493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26494. $as_echo "no" >&6; }
  26495. fi
  26496. fi
  26497. # Check if version of Perl is sufficient
  26498. ac_perl_version="5.8.1"
  26499. if test "x$PERL" != "x"; then
  26500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
  26501. $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
  26502. # NB: It would be nice to log the error if there is one, but we cannot rely
  26503. # on autoconf internals
  26504. $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
  26505. if test $? -ne 0; then
  26506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26507. $as_echo "no" >&6; };
  26508. PERL_SUPPORTS_DESTDIR='no'
  26509. else
  26510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  26511. $as_echo "ok" >&6; };
  26512. PERL_SUPPORTS_DESTDIR='yes'
  26513. fi
  26514. else
  26515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
  26516. $as_echo "$as_me: WARNING: could not find perl" >&2;}
  26517. fi
  26518. fi
  26519. if test "$have_perl" != 'no'; then
  26520. WITH_PERL_TRUE=
  26521. WITH_PERL_FALSE='#'
  26522. else
  26523. WITH_PERL_TRUE='#'
  26524. WITH_PERL_FALSE=
  26525. fi
  26526. if test $with_perl_static = 'yes'; then
  26527. WITH_PERL_STATIC_TRUE=
  26528. WITH_PERL_STATIC_FALSE='#'
  26529. else
  26530. WITH_PERL_STATIC_TRUE='#'
  26531. WITH_PERL_STATIC_FALSE=
  26532. fi
  26533. if test $with_perl_dynamic = 'yes'; then
  26534. WITH_PERL_DYNAMIC_TRUE=
  26535. WITH_PERL_DYNAMIC_FALSE='#'
  26536. else
  26537. WITH_PERL_DYNAMIC_TRUE='#'
  26538. WITH_PERL_DYNAMIC_FALSE=
  26539. fi
  26540. # Determine path to pick up GraphicsMagick library from for use with building PerlMagick
  26541. MAGICKLIBDIR="${LIB_DIR}"
  26542. MAGICKLIB="-L${MAGICKLIBDIR} -lGraphicsMagick"
  26543. if test $with_perl_static = 'yes'
  26544. then
  26545. # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
  26546. libtool_objdir=$objdir
  26547. # Find out what extension is applied to static libraries (as libtool_libext)
  26548. #eval `./libtool --config|grep '^libext='|sed -e 's/^libext/libtool_libext/'`
  26549. # Find out full form of library name (as libtool_libname_spec)
  26550. #eval `./libtool --config|grep '^libname_spec='|sed -e 's/^libname_spec/libtool_libname_spec/'`
  26551. #eval 'name=GraphicsMagick '`eval 'echo library_name="${libtool_libname_spec}.${libtool_libext}"'`
  26552. # Explicit path to static library (Perl rejects it!)
  26553. #MAGICKLIB="${builddir}/magick/${libtool_objdir}/${library_name}"
  26554. # Linker search path to library, followed by -lGraphicsMagick
  26555. MAGICKLIBDIR="${builddir}/magick/${libtool_objdir}"
  26556. MAGICKLIB="-L${MAGICKLIBDIR} -lGraphicsMagick"
  26557. fi
  26558. # Create a simple string containing format names for all delegate libraries
  26559. DELEGATES=''
  26560. if test "$have_bzlib" = 'yes' ; then DELEGATES="$DELEGATES bzlib" ; fi
  26561. if test "$have_ralcgm" = 'yes' ; then DELEGATES="$DELEGATES cgm" ; fi
  26562. if test "$have_fpx" = 'yes' ; then DELEGATES="$DELEGATES fpx" ; fi
  26563. if test "$have_hp2xx" = 'yes' ; then DELEGATES="$DELEGATES hpgl" ; fi
  26564. if test "$have_jbig" = 'yes' ; then DELEGATES="$DELEGATES jbig" ; fi
  26565. if test "$have_png$have_jpeg" = 'yesyes' ; then DELEGATES="$DELEGATES jng"; fi
  26566. if test "$have_jp2" = 'yes' ; then DELEGATES="$DELEGATES jp2" ; fi
  26567. if test "$have_jpeg" = 'yes' ; then DELEGATES="$DELEGATES jpeg" ; fi
  26568. if test "$have_lcms2" = 'yes' ; then DELEGATES="$DELEGATES lcms2" ; fi
  26569. if test "$have_lcms" = 'yes' ; then DELEGATES="$DELEGATES lcms" ; fi
  26570. if test "$have_lzma" = 'yes' ; then DELEGATES="$DELEGATES lzma" ; fi
  26571. # if test "$have_mpeg2" = 'yes' ; then DELEGATES="$DELEGATES mpeg2" ; fi
  26572. if test "$have_mpeg2decode" = 'yes' && test "$have_mpeg2encode" = 'yes' ; then DELEGATES="$DELEGATES mpeg" ; fi
  26573. if test "$have_png" = 'yes' ; then DELEGATES="$DELEGATES png" ; fi
  26574. have_ps='no'
  26575. if test "$have_dps" = 'yes' || test "$have_gs" = 'yes' ; then have_ps='yes' ; fi
  26576. if test "$have_ps" = 'yes' ; then DELEGATES="$DELEGATES ps" ; fi
  26577. if test "$have_ra_ppm" = 'yes' ; then DELEGATES="$DELEGATES rad" ; fi
  26578. if test "$have_tiff" = 'yes' ; then DELEGATES="$DELEGATES tiff" ; fi
  26579. if test "$have_ttf" = 'yes' ; then DELEGATES="$DELEGATES ttf" ; fi
  26580. if test "$have_wmf" = 'yes' ; then DELEGATES="$DELEGATES wmf" ; fi
  26581. if test "$have_x" = 'yes' ; then DELEGATES="$DELEGATES x" ; fi
  26582. if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then DELEGATES="$DELEGATES xfig" ; fi
  26583. if test "$have_zlib" = 'yes' ; then DELEGATES="$DELEGATES zlib" ; fi
  26584. #
  26585. # Handle special compiler flags
  26586. #
  26587. # Add '-p' if prof source profiling support enabled
  26588. if test "$with_prof" = 'yes'
  26589. then
  26590. CFLAGS="-p $CFLAGS"
  26591. CXXFLAGS="-p $CXXFLAGS"
  26592. LDFLAGS="-p $LDFLAGS"
  26593. fi
  26594. # Add '-pg' if gprof source profiling support enabled
  26595. if test "$with_gprof" = 'yes'
  26596. then
  26597. CFLAGS="-pg $CFLAGS"
  26598. CXXFLAGS="-pg $CXXFLAGS"
  26599. LDFLAGS="-pg $LDFLAGS"
  26600. fi
  26601. # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
  26602. # This is a gcc-specific feature
  26603. if test "$with_gcov" = 'yes'
  26604. then
  26605. CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
  26606. CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
  26607. LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
  26608. fi
  26609. #
  26610. # Build library dependency list for libMagick
  26611. #
  26612. # The with_ltdl variable is set to 'yes' if we are building shared
  26613. # libraries, regardless of whether modules are built or not.
  26614. #
  26615. # The with_modules variable is set to 'yes' if coders and filters are
  26616. # to be built as modules. Even if coders and filters are not built,
  26617. # module loading is supported by shared library builds.
  26618. # This is kind of tricky since if ${LIBLTDL} references a .la file,
  26619. # that .la file may represent a convenience library, or it may
  26620. # reference a shared library which will be formally installed. It may
  26621. # also reference an already formally installed libltdl using -lltdl
  26622. # syntax.
  26623. # --with-included-ltdl (with_included_ltdl)
  26624. # Use our libltdl
  26625. # Set to empty by default.
  26626. # Set to 'no' if --with-ltdl-include and --with-ltdl-lib are used.
  26627. # Set to 'no' if --with-included-ltdl=no or --without-included-ltdl are used.
  26628. # --enable-ltdl-install (enable_ltdl_install)
  26629. # Our libltdl will be formally installed
  26630. # Set to 'yes' if enable_ltdl_install or enable_ltdl_convenience is 'yes'.
  26631. # --enable-ltdl-convenience (enable_ltdl_convenience = 'yes')
  26632. # Our libltdl is built as a convenience library
  26633. #
  26634. # Make conditionals INSTALL_LTDL and CONVENIENCE_LTDL
  26635. #echo "with_included_ltdl = $with_included_ltdl"
  26636. #echo "enable_ltdl_install = $enable_ltdl_install"
  26637. #echo "enable_ltdl_convenience = $enable_ltdl_convenience"
  26638. MAGICK_LIBLTDL='' # Libltdl for GraphicsMagick build
  26639. MAGICK_API_LIBLTDL='' # Libltdl for dependent application (API) build
  26640. MAGICK_LTDLDEPS='' # Extra libltdl dependencies
  26641. if test "$with_ltdl" != 'no'
  26642. then
  26643. if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'
  26644. then
  26645. MAGICK_API_LIBLTDL='-lltdl'
  26646. fi
  26647. MAGICK_LIBLTDL=${LIBLTDL}
  26648. MAGICK_LTDLDEPS=${LTDLDEPS}
  26649. fi
  26650. if test "$with_modules" != 'no'
  26651. then
  26652. MAGICK_DEP_LIBS="$LIB_LCMS $LIB_TTF $LIB_GS $LIB_XEXT $LIB_IPC $LIB_X11 $LIB_LZMA $LIB_BZLIB $LIB_ZLIB $LIB_TRIO $LIB_GDI32 $LIB_MATH $LIB_CCMALLOC $LIB_EFENCE $LIB_OMP $LIB_UMEM $LIB_THREAD"
  26653. else
  26654. MAGICK_DEP_LIBS="$LIB_JBIG $LIB_LCMS $LIB_TIFF $LIB_TTF $LIB_JP2 $LIB_JPEG $LIB_GS $LIB_PNG $LIB_FPX $LIB_WMF $LIB_DPS $LIB_XEXT $LIB_IPC $LIB_X11 $LIB_LZMA $LIB_BZLIB $LIB_XML $LIB_ZLIB $LIB_TRIO $LIB_GDI32 $LIB_MATH $LIB_CCMALLOC $LIB_EFENCE $LIB_OMP $LIB_UMEM $LIB_THREAD"
  26655. fi
  26656. #
  26657. # Remove extraneous spaces from output variables (asthetic)
  26658. #
  26659. X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
  26660. X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
  26661. X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
  26662. X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
  26663. CC=`echo $CC | sed -e 's/ */ /g'`
  26664. CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
  26665. CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
  26666. CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
  26667. LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
  26668. TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
  26669. MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
  26670. #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
  26671. # Save configure/build parameters for later reference
  26672. cat >>confdefs.h <<_ACEOF
  26673. #define GM_BUILD_CONFIGURE_ARGS "$0 ${ac_configure_args}"
  26674. _ACEOF
  26675. cat >>confdefs.h <<_ACEOF
  26676. #define GM_BUILD_HOST "${host}"
  26677. _ACEOF
  26678. cat >>confdefs.h <<_ACEOF
  26679. #define GM_BUILD_CC "${CC}"
  26680. _ACEOF
  26681. cat >>confdefs.h <<_ACEOF
  26682. #define GM_BUILD_CXX "${CXX}"
  26683. _ACEOF
  26684. cat >>confdefs.h <<_ACEOF
  26685. #define GM_BUILD_CFLAGS "${CFLAGS}"
  26686. _ACEOF
  26687. cat >>confdefs.h <<_ACEOF
  26688. #define GM_BUILD_CPPFLAGS "${CPPFLAGS}"
  26689. _ACEOF
  26690. cat >>confdefs.h <<_ACEOF
  26691. #define GM_BUILD_CXXFLAGS "${CXXFLAGS}"
  26692. _ACEOF
  26693. cat >>confdefs.h <<_ACEOF
  26694. #define GM_BUILD_LDFLAGS "${LDFLAGS}"
  26695. _ACEOF
  26696. cat >>confdefs.h <<_ACEOF
  26697. #define GM_BUILD_LIBS "${MAGICK_DEP_LIBS}"
  26698. _ACEOF
  26699. # Pass only user-provided LIBS as "global" libraries
  26700. LIBS=$LIBS_USER
  26701. #AC_SUBST(CPPFLAGS)
  26702. #AC_SUBST(LDFLAGS)
  26703. #AC_SUBST(X_PRE_LIBS)
  26704. #AC_SUBST(X_LIBS)
  26705. #AC_SUBST(X_EXTRA_LIBS)
  26706. MAGICK_API_CFLAGS=$CFLAGS
  26707. MAGICK_API_CPPFLAGS=`echo $MAGICK_API_CPPFLAGS | sed -e 's/ */ /g'`
  26708. MAGICK_API_LDFLAGS="-L$LIB_DIR $LDFLAGS"
  26709. MAGICK_API_LIBS="-lGraphicsMagick $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
  26710. ac_config_files="$ac_config_files GraphicsMagick.spec Magick++/bin/GraphicsMagick++-config Magick++/lib/GraphicsMagick++.pc Makefile PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/PerlMagickCheck.sh config/delegates.mgk config/type-ghostscript.mgk config/type-solaris.mgk config/type-windows.mgk config/type.mgk magick/GraphicsMagick-config magick/GraphicsMagick.pc magick/magick_types.h magick/version.h rungm.sh wand/GraphicsMagickWand-config wand/GraphicsMagickWand.pc"
  26711. # Set configured scripts to executable.
  26712. ac_config_commands="$ac_config_commands default"
  26713. ac_config_commands="$ac_config_commands GraphicsMagick++-config.in"
  26714. ac_config_commands="$ac_config_commands GraphicsMagick-config.in"
  26715. ac_config_commands="$ac_config_commands GraphicsMagickWand-config.in"
  26716. ac_config_commands="$ac_config_commands rungm.sh.in"
  26717. ac_config_commands="$ac_config_commands PerlMagick/PerlMagickCheck.sh.in"
  26718. cat >confcache <<\_ACEOF
  26719. # This file is a shell script that caches the results of configure
  26720. # tests run on this system so they can be shared between configure
  26721. # scripts and configure runs, see configure's option --config-cache.
  26722. # It is not useful on other systems. If it contains results you don't
  26723. # want to keep, you may remove or edit it.
  26724. #
  26725. # config.status only pays attention to the cache file if you give it
  26726. # the --recheck option to rerun configure.
  26727. #
  26728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26730. # following values.
  26731. _ACEOF
  26732. # The following way of writing the cache mishandles newlines in values,
  26733. # but we know of no workaround that is simple, portable, and efficient.
  26734. # So, we kill variables containing newlines.
  26735. # Ultrix sh set writes to stderr and can't be redirected directly,
  26736. # and sets the high bit in the cache file unless we assign to the vars.
  26737. (
  26738. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26739. eval ac_val=\$$ac_var
  26740. case $ac_val in #(
  26741. *${as_nl}*)
  26742. case $ac_var in #(
  26743. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26744. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26745. esac
  26746. case $ac_var in #(
  26747. _ | IFS | as_nl) ;; #(
  26748. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26749. *) { eval $ac_var=; unset $ac_var;} ;;
  26750. esac ;;
  26751. esac
  26752. done
  26753. (set) 2>&1 |
  26754. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26755. *${as_nl}ac_space=\ *)
  26756. # `set' does not quote correctly, so add quotes: double-quote
  26757. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26758. sed -n \
  26759. "s/'/'\\\\''/g;
  26760. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26761. ;; #(
  26762. *)
  26763. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26764. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26765. ;;
  26766. esac |
  26767. sort
  26768. ) |
  26769. sed '
  26770. /^ac_cv_env_/b end
  26771. t clear
  26772. :clear
  26773. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  26774. t end
  26775. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26776. :end' >>confcache
  26777. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26778. if test -w "$cache_file"; then
  26779. if test "x$cache_file" != "x/dev/null"; then
  26780. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26781. $as_echo "$as_me: updating cache $cache_file" >&6;}
  26782. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26783. cat confcache >"$cache_file"
  26784. else
  26785. case $cache_file in #(
  26786. */* | ?:*)
  26787. mv -f confcache "$cache_file"$$ &&
  26788. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26789. *)
  26790. mv -f confcache "$cache_file" ;;
  26791. esac
  26792. fi
  26793. fi
  26794. else
  26795. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26796. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  26797. fi
  26798. fi
  26799. rm -f confcache
  26800. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26801. # Let make expand exec_prefix.
  26802. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26803. DEFS=-DHAVE_CONFIG_H
  26804. ac_libobjs=
  26805. ac_ltlibobjs=
  26806. U=
  26807. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26808. # 1. Remove the extension, and $U if already installed.
  26809. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26810. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  26811. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26812. # will be set to the directory where LIBOBJS objects are built.
  26813. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26814. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26815. done
  26816. LIBOBJS=$ac_libobjs
  26817. LTLIBOBJS=$ac_ltlibobjs
  26818. if test -n "$EXEEXT"; then
  26819. am__EXEEXT_TRUE=
  26820. am__EXEEXT_FALSE='#'
  26821. else
  26822. am__EXEEXT_TRUE='#'
  26823. am__EXEEXT_FALSE=
  26824. fi
  26825. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  26826. as_fn_error $? "conditional \"AMDEP\" was never defined.
  26827. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26828. fi
  26829. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  26830. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  26831. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26832. fi
  26833. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  26834. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  26835. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26836. fi
  26837. if test -z "${HasWINGDI32_TRUE}" && test -z "${HasWINGDI32_FALSE}"; then
  26838. as_fn_error $? "conditional \"HasWINGDI32\" was never defined.
  26839. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26840. fi
  26841. if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
  26842. as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
  26843. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26844. fi
  26845. if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
  26846. as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
  26847. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26848. fi
  26849. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  26850. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  26851. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26852. fi
  26853. if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
  26854. as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
  26855. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26856. fi
  26857. if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
  26858. as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
  26859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26860. fi
  26861. LT_CONFIG_H=magick/magick_config.h
  26862. _ltdl_libobjs=
  26863. _ltdl_ltlibobjs=
  26864. if test -n "$_LT_LIBOBJS"; then
  26865. # Remove the extension.
  26866. _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
  26867. for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
  26868. _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
  26869. _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
  26870. done
  26871. fi
  26872. ltdl_LIBOBJS=$_ltdl_libobjs
  26873. ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
  26874. if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
  26875. as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
  26876. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26877. fi
  26878. if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
  26879. as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
  26880. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26881. fi
  26882. if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
  26883. as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
  26884. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26885. fi
  26886. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  26887. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  26888. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26889. fi
  26890. if test -z "${MAGICK_COMPAT_TRUE}" && test -z "${MAGICK_COMPAT_FALSE}"; then
  26891. as_fn_error $? "conditional \"MAGICK_COMPAT\" was never defined.
  26892. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26893. fi
  26894. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  26895. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  26896. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26897. fi
  26898. if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
  26899. as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
  26900. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26901. fi
  26902. if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
  26903. as_fn_error $? "conditional \"HasUMEM\" was never defined.
  26904. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26905. fi
  26906. if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
  26907. as_fn_error $? "conditional \"HasZLIB\" was never defined.
  26908. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26909. fi
  26910. if test -z "${HasBZLIB_TRUE}" && test -z "${HasBZLIB_FALSE}"; then
  26911. as_fn_error $? "conditional \"HasBZLIB\" was never defined.
  26912. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26913. fi
  26914. if test -z "${HasLZMA_TRUE}" && test -z "${HasLZMA_FALSE}"; then
  26915. as_fn_error $? "conditional \"HasLZMA\" was never defined.
  26916. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26917. fi
  26918. if test -z "${HasX11_TRUE}" && test -z "${HasX11_FALSE}"; then
  26919. as_fn_error $? "conditional \"HasX11\" was never defined.
  26920. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26921. fi
  26922. if test -z "${HasDPS_TRUE}" && test -z "${HasDPS_FALSE}"; then
  26923. as_fn_error $? "conditional \"HasDPS\" was never defined.
  26924. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26925. fi
  26926. if test -z "${HasFPX_TRUE}" && test -z "${HasFPX_FALSE}"; then
  26927. as_fn_error $? "conditional \"HasFPX\" was never defined.
  26928. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26929. fi
  26930. if test -z "${HasLCMS_TRUE}" && test -z "${HasLCMS_FALSE}"; then
  26931. as_fn_error $? "conditional \"HasLCMS\" was never defined.
  26932. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26933. fi
  26934. if test -z "${HasPNG_TRUE}" && test -z "${HasPNG_FALSE}"; then
  26935. as_fn_error $? "conditional \"HasPNG\" was never defined.
  26936. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26937. fi
  26938. if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
  26939. as_fn_error $? "conditional \"HasJPEG\" was never defined.
  26940. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26941. fi
  26942. if test -z "${HasJP2_TRUE}" && test -z "${HasJP2_FALSE}"; then
  26943. as_fn_error $? "conditional \"HasJP2\" was never defined.
  26944. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26945. fi
  26946. if test -z "${HasGS_TRUE}" && test -z "${HasGS_FALSE}"; then
  26947. as_fn_error $? "conditional \"HasGS\" was never defined.
  26948. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26949. fi
  26950. if test -z "${HasTTF_TRUE}" && test -z "${HasTTF_FALSE}"; then
  26951. as_fn_error $? "conditional \"HasTTF\" was never defined.
  26952. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26953. fi
  26954. if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
  26955. as_fn_error $? "conditional \"HasTIFF\" was never defined.
  26956. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26957. fi
  26958. if test -z "${HasJBIG_TRUE}" && test -z "${HasJBIG_FALSE}"; then
  26959. as_fn_error $? "conditional \"HasJBIG\" was never defined.
  26960. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26961. fi
  26962. if test -z "${HasXML_TRUE}" && test -z "${HasXML_FALSE}"; then
  26963. as_fn_error $? "conditional \"HasXML\" was never defined.
  26964. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26965. fi
  26966. if test -z "${HasWMF_TRUE}" && test -z "${HasWMF_FALSE}"; then
  26967. as_fn_error $? "conditional \"HasWMF\" was never defined.
  26968. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26969. fi
  26970. if test -z "${HasPSDelegate_TRUE}" && test -z "${HasPSDelegate_FALSE}"; then
  26971. as_fn_error $? "conditional \"HasPSDelegate\" was never defined.
  26972. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26973. fi
  26974. if test -z "${HasRST2HTML_TRUE}" && test -z "${HasRST2HTML_FALSE}"; then
  26975. as_fn_error $? "conditional \"HasRST2HTML\" was never defined.
  26976. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26977. fi
  26978. if test -z "${HasTXT2HTML_TRUE}" && test -z "${HasTXT2HTML_FALSE}"; then
  26979. as_fn_error $? "conditional \"HasTXT2HTML\" was never defined.
  26980. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26981. fi
  26982. if test -z "${HAS_RPM_TRUE}" && test -z "${HAS_RPM_FALSE}"; then
  26983. as_fn_error $? "conditional \"HAS_RPM\" was never defined.
  26984. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26985. fi
  26986. if test -z "${HAS_P7ZIP_TRUE}" && test -z "${HAS_P7ZIP_FALSE}"; then
  26987. as_fn_error $? "conditional \"HAS_P7ZIP\" was never defined.
  26988. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26989. fi
  26990. if test -z "${HAS_ZIP_TRUE}" && test -z "${HAS_ZIP_FALSE}"; then
  26991. as_fn_error $? "conditional \"HAS_ZIP\" was never defined.
  26992. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26993. fi
  26994. if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
  26995. as_fn_error $? "conditional \"WITH_PERL\" was never defined.
  26996. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26997. fi
  26998. if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
  26999. as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
  27000. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  27001. fi
  27002. if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
  27003. as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
  27004. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  27005. fi
  27006. : "${CONFIG_STATUS=./config.status}"
  27007. ac_write_fail=0
  27008. ac_clean_files_save=$ac_clean_files
  27009. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  27010. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  27011. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  27012. as_write_fail=0
  27013. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  27014. #! $SHELL
  27015. # Generated by $as_me.
  27016. # Run this file to recreate the current configuration.
  27017. # Compiler output produced by configure, useful for debugging
  27018. # configure, is in config.log if it exists.
  27019. debug=false
  27020. ac_cs_recheck=false
  27021. ac_cs_silent=false
  27022. SHELL=\${CONFIG_SHELL-$SHELL}
  27023. export SHELL
  27024. _ASEOF
  27025. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  27026. ## -------------------- ##
  27027. ## M4sh Initialization. ##
  27028. ## -------------------- ##
  27029. # Be more Bourne compatible
  27030. DUALCASE=1; export DUALCASE # for MKS sh
  27031. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  27032. emulate sh
  27033. NULLCMD=:
  27034. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  27035. # is contrary to our usage. Disable this feature.
  27036. alias -g '${1+"$@"}'='"$@"'
  27037. setopt NO_GLOB_SUBST
  27038. else
  27039. case `(set -o) 2>/dev/null` in #(
  27040. *posix*) :
  27041. set -o posix ;; #(
  27042. *) :
  27043. ;;
  27044. esac
  27045. fi
  27046. as_nl='
  27047. '
  27048. export as_nl
  27049. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  27050. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  27051. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  27052. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  27053. # Prefer a ksh shell builtin over an external printf program on Solaris,
  27054. # but without wasting forks for bash or zsh.
  27055. if test -z "$BASH_VERSION$ZSH_VERSION" \
  27056. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  27057. as_echo='print -r --'
  27058. as_echo_n='print -rn --'
  27059. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  27060. as_echo='printf %s\n'
  27061. as_echo_n='printf %s'
  27062. else
  27063. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  27064. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  27065. as_echo_n='/usr/ucb/echo -n'
  27066. else
  27067. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  27068. as_echo_n_body='eval
  27069. arg=$1;
  27070. case $arg in #(
  27071. *"$as_nl"*)
  27072. expr "X$arg" : "X\\(.*\\)$as_nl";
  27073. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  27074. esac;
  27075. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  27076. '
  27077. export as_echo_n_body
  27078. as_echo_n='sh -c $as_echo_n_body as_echo'
  27079. fi
  27080. export as_echo_body
  27081. as_echo='sh -c $as_echo_body as_echo'
  27082. fi
  27083. # The user is always right.
  27084. if test "${PATH_SEPARATOR+set}" != set; then
  27085. PATH_SEPARATOR=:
  27086. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  27087. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  27088. PATH_SEPARATOR=';'
  27089. }
  27090. fi
  27091. # IFS
  27092. # We need space, tab and new line, in precisely that order. Quoting is
  27093. # there to prevent editors from complaining about space-tab.
  27094. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  27095. # splitting by setting IFS to empty value.)
  27096. IFS=" "" $as_nl"
  27097. # Find who we are. Look in the path if we contain no directory separator.
  27098. as_myself=
  27099. case $0 in #((
  27100. *[\\/]* ) as_myself=$0 ;;
  27101. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  27102. for as_dir in $PATH
  27103. do
  27104. IFS=$as_save_IFS
  27105. test -z "$as_dir" && as_dir=.
  27106. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  27107. done
  27108. IFS=$as_save_IFS
  27109. ;;
  27110. esac
  27111. # We did not find ourselves, most probably we were run as `sh COMMAND'
  27112. # in which case we are not to be found in the path.
  27113. if test "x$as_myself" = x; then
  27114. as_myself=$0
  27115. fi
  27116. if test ! -f "$as_myself"; then
  27117. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  27118. exit 1
  27119. fi
  27120. # Unset variables that we do not need and which cause bugs (e.g. in
  27121. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  27122. # suppresses any "Segmentation fault" message there. '((' could
  27123. # trigger a bug in pdksh 5.2.14.
  27124. for as_var in BASH_ENV ENV MAIL MAILPATH
  27125. do eval test x\${$as_var+set} = xset \
  27126. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  27127. done
  27128. PS1='$ '
  27129. PS2='> '
  27130. PS4='+ '
  27131. # NLS nuisances.
  27132. LC_ALL=C
  27133. export LC_ALL
  27134. LANGUAGE=C
  27135. export LANGUAGE
  27136. # CDPATH.
  27137. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27138. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  27139. # ----------------------------------------
  27140. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  27141. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  27142. # script with STATUS, using 1 if that was 0.
  27143. as_fn_error ()
  27144. {
  27145. as_status=$1; test $as_status -eq 0 && as_status=1
  27146. if test "$4"; then
  27147. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  27148. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  27149. fi
  27150. $as_echo "$as_me: error: $2" >&2
  27151. as_fn_exit $as_status
  27152. } # as_fn_error
  27153. # as_fn_set_status STATUS
  27154. # -----------------------
  27155. # Set $? to STATUS, without forking.
  27156. as_fn_set_status ()
  27157. {
  27158. return $1
  27159. } # as_fn_set_status
  27160. # as_fn_exit STATUS
  27161. # -----------------
  27162. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  27163. as_fn_exit ()
  27164. {
  27165. set +e
  27166. as_fn_set_status $1
  27167. exit $1
  27168. } # as_fn_exit
  27169. # as_fn_unset VAR
  27170. # ---------------
  27171. # Portably unset VAR.
  27172. as_fn_unset ()
  27173. {
  27174. { eval $1=; unset $1;}
  27175. }
  27176. as_unset=as_fn_unset
  27177. # as_fn_append VAR VALUE
  27178. # ----------------------
  27179. # Append the text in VALUE to the end of the definition contained in VAR. Take
  27180. # advantage of any shell optimizations that allow amortized linear growth over
  27181. # repeated appends, instead of the typical quadratic growth present in naive
  27182. # implementations.
  27183. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  27184. eval 'as_fn_append ()
  27185. {
  27186. eval $1+=\$2
  27187. }'
  27188. else
  27189. as_fn_append ()
  27190. {
  27191. eval $1=\$$1\$2
  27192. }
  27193. fi # as_fn_append
  27194. # as_fn_arith ARG...
  27195. # ------------------
  27196. # Perform arithmetic evaluation on the ARGs, and store the result in the
  27197. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  27198. # must be portable across $(()) and expr.
  27199. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  27200. eval 'as_fn_arith ()
  27201. {
  27202. as_val=$(( $* ))
  27203. }'
  27204. else
  27205. as_fn_arith ()
  27206. {
  27207. as_val=`expr "$@" || test $? -eq 1`
  27208. }
  27209. fi # as_fn_arith
  27210. if expr a : '\(a\)' >/dev/null 2>&1 &&
  27211. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  27212. as_expr=expr
  27213. else
  27214. as_expr=false
  27215. fi
  27216. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  27217. as_basename=basename
  27218. else
  27219. as_basename=false
  27220. fi
  27221. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  27222. as_dirname=dirname
  27223. else
  27224. as_dirname=false
  27225. fi
  27226. as_me=`$as_basename -- "$0" ||
  27227. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  27228. X"$0" : 'X\(//\)$' \| \
  27229. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  27230. $as_echo X/"$0" |
  27231. sed '/^.*\/\([^/][^/]*\)\/*$/{
  27232. s//\1/
  27233. q
  27234. }
  27235. /^X\/\(\/\/\)$/{
  27236. s//\1/
  27237. q
  27238. }
  27239. /^X\/\(\/\).*/{
  27240. s//\1/
  27241. q
  27242. }
  27243. s/.*/./; q'`
  27244. # Avoid depending upon Character Ranges.
  27245. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  27246. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  27247. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  27248. as_cr_digits='0123456789'
  27249. as_cr_alnum=$as_cr_Letters$as_cr_digits
  27250. ECHO_C= ECHO_N= ECHO_T=
  27251. case `echo -n x` in #(((((
  27252. -n*)
  27253. case `echo 'xy\c'` in
  27254. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  27255. xy) ECHO_C='\c';;
  27256. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  27257. ECHO_T=' ';;
  27258. esac;;
  27259. *)
  27260. ECHO_N='-n';;
  27261. esac
  27262. rm -f conf$$ conf$$.exe conf$$.file
  27263. if test -d conf$$.dir; then
  27264. rm -f conf$$.dir/conf$$.file
  27265. else
  27266. rm -f conf$$.dir
  27267. mkdir conf$$.dir 2>/dev/null
  27268. fi
  27269. if (echo >conf$$.file) 2>/dev/null; then
  27270. if ln -s conf$$.file conf$$ 2>/dev/null; then
  27271. as_ln_s='ln -s'
  27272. # ... but there are two gotchas:
  27273. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  27274. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  27275. # In both cases, we have to default to `cp -pR'.
  27276. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  27277. as_ln_s='cp -pR'
  27278. elif ln conf$$.file conf$$ 2>/dev/null; then
  27279. as_ln_s=ln
  27280. else
  27281. as_ln_s='cp -pR'
  27282. fi
  27283. else
  27284. as_ln_s='cp -pR'
  27285. fi
  27286. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  27287. rmdir conf$$.dir 2>/dev/null
  27288. # as_fn_mkdir_p
  27289. # -------------
  27290. # Create "$as_dir" as a directory, including parents if necessary.
  27291. as_fn_mkdir_p ()
  27292. {
  27293. case $as_dir in #(
  27294. -*) as_dir=./$as_dir;;
  27295. esac
  27296. test -d "$as_dir" || eval $as_mkdir_p || {
  27297. as_dirs=
  27298. while :; do
  27299. case $as_dir in #(
  27300. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  27301. *) as_qdir=$as_dir;;
  27302. esac
  27303. as_dirs="'$as_qdir' $as_dirs"
  27304. as_dir=`$as_dirname -- "$as_dir" ||
  27305. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27306. X"$as_dir" : 'X\(//\)[^/]' \| \
  27307. X"$as_dir" : 'X\(//\)$' \| \
  27308. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  27309. $as_echo X"$as_dir" |
  27310. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27311. s//\1/
  27312. q
  27313. }
  27314. /^X\(\/\/\)[^/].*/{
  27315. s//\1/
  27316. q
  27317. }
  27318. /^X\(\/\/\)$/{
  27319. s//\1/
  27320. q
  27321. }
  27322. /^X\(\/\).*/{
  27323. s//\1/
  27324. q
  27325. }
  27326. s/.*/./; q'`
  27327. test -d "$as_dir" && break
  27328. done
  27329. test -z "$as_dirs" || eval "mkdir $as_dirs"
  27330. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  27331. } # as_fn_mkdir_p
  27332. if mkdir -p . 2>/dev/null; then
  27333. as_mkdir_p='mkdir -p "$as_dir"'
  27334. else
  27335. test -d ./-p && rmdir ./-p
  27336. as_mkdir_p=false
  27337. fi
  27338. # as_fn_executable_p FILE
  27339. # -----------------------
  27340. # Test if FILE is an executable regular file.
  27341. as_fn_executable_p ()
  27342. {
  27343. test -f "$1" && test -x "$1"
  27344. } # as_fn_executable_p
  27345. as_test_x='test -x'
  27346. as_executable_p=as_fn_executable_p
  27347. # Sed expression to map a string onto a valid CPP name.
  27348. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  27349. # Sed expression to map a string onto a valid variable name.
  27350. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  27351. exec 6>&1
  27352. ## ----------------------------------- ##
  27353. ## Main body of $CONFIG_STATUS script. ##
  27354. ## ----------------------------------- ##
  27355. _ASEOF
  27356. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  27357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27358. # Save the log message, to keep $0 and so on meaningful, and to
  27359. # report actual input values of CONFIG_FILES etc. instead of their
  27360. # values after options handling.
  27361. ac_log="
  27362. This file was extended by $as_me, which was
  27363. generated by GNU Autoconf 2.69. Invocation command line was
  27364. CONFIG_FILES = $CONFIG_FILES
  27365. CONFIG_HEADERS = $CONFIG_HEADERS
  27366. CONFIG_LINKS = $CONFIG_LINKS
  27367. CONFIG_COMMANDS = $CONFIG_COMMANDS
  27368. $ $0 $@
  27369. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  27370. "
  27371. _ACEOF
  27372. case $ac_config_files in *"
  27373. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  27374. esac
  27375. case $ac_config_headers in *"
  27376. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  27377. esac
  27378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27379. # Files that config.status was made for.
  27380. config_files="$ac_config_files"
  27381. config_headers="$ac_config_headers"
  27382. config_commands="$ac_config_commands"
  27383. _ACEOF
  27384. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27385. ac_cs_usage="\
  27386. \`$as_me' instantiates files and other configuration actions
  27387. from templates according to the current configuration. Unless the files
  27388. and actions are specified as TAGs, all are instantiated by default.
  27389. Usage: $0 [OPTION]... [TAG]...
  27390. -h, --help print this help, then exit
  27391. -V, --version print version number and configuration settings, then exit
  27392. --config print configuration, then exit
  27393. -q, --quiet, --silent
  27394. do not print progress messages
  27395. -d, --debug don't remove temporary files
  27396. --recheck update $as_me by reconfiguring in the same conditions
  27397. --file=FILE[:TEMPLATE]
  27398. instantiate the configuration file FILE
  27399. --header=FILE[:TEMPLATE]
  27400. instantiate the configuration header FILE
  27401. Configuration files:
  27402. $config_files
  27403. Configuration headers:
  27404. $config_headers
  27405. Configuration commands:
  27406. $config_commands
  27407. Report bugs to the package provider."
  27408. _ACEOF
  27409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27410. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  27411. ac_cs_version="\\
  27412. config.status
  27413. configured by $0, generated by GNU Autoconf 2.69,
  27414. with options \\"\$ac_cs_config\\"
  27415. Copyright (C) 2012 Free Software Foundation, Inc.
  27416. This config.status script is free software; the Free Software Foundation
  27417. gives unlimited permission to copy, distribute and modify it."
  27418. ac_pwd='$ac_pwd'
  27419. srcdir='$srcdir'
  27420. INSTALL='$INSTALL'
  27421. MKDIR_P='$MKDIR_P'
  27422. AWK='$AWK'
  27423. test -n "\$AWK" || AWK=awk
  27424. _ACEOF
  27425. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27426. # The default lists apply if the user does not specify any file.
  27427. ac_need_defaults=:
  27428. while test $# != 0
  27429. do
  27430. case $1 in
  27431. --*=?*)
  27432. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27433. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  27434. ac_shift=:
  27435. ;;
  27436. --*=)
  27437. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27438. ac_optarg=
  27439. ac_shift=:
  27440. ;;
  27441. *)
  27442. ac_option=$1
  27443. ac_optarg=$2
  27444. ac_shift=shift
  27445. ;;
  27446. esac
  27447. case $ac_option in
  27448. # Handling of the options.
  27449. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  27450. ac_cs_recheck=: ;;
  27451. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  27452. $as_echo "$ac_cs_version"; exit ;;
  27453. --config | --confi | --conf | --con | --co | --c )
  27454. $as_echo "$ac_cs_config"; exit ;;
  27455. --debug | --debu | --deb | --de | --d | -d )
  27456. debug=: ;;
  27457. --file | --fil | --fi | --f )
  27458. $ac_shift
  27459. case $ac_optarg in
  27460. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  27461. '') as_fn_error $? "missing file argument" ;;
  27462. esac
  27463. as_fn_append CONFIG_FILES " '$ac_optarg'"
  27464. ac_need_defaults=false;;
  27465. --header | --heade | --head | --hea )
  27466. $ac_shift
  27467. case $ac_optarg in
  27468. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  27469. esac
  27470. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  27471. ac_need_defaults=false;;
  27472. --he | --h)
  27473. # Conflict between --help and --header
  27474. as_fn_error $? "ambiguous option: \`$1'
  27475. Try \`$0 --help' for more information.";;
  27476. --help | --hel | -h )
  27477. $as_echo "$ac_cs_usage"; exit ;;
  27478. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  27479. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  27480. ac_cs_silent=: ;;
  27481. # This is an error.
  27482. -*) as_fn_error $? "unrecognized option: \`$1'
  27483. Try \`$0 --help' for more information." ;;
  27484. *) as_fn_append ac_config_targets " $1"
  27485. ac_need_defaults=false ;;
  27486. esac
  27487. shift
  27488. done
  27489. ac_configure_extra_args=
  27490. if $ac_cs_silent; then
  27491. exec 6>/dev/null
  27492. ac_configure_extra_args="$ac_configure_extra_args --silent"
  27493. fi
  27494. _ACEOF
  27495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27496. if \$ac_cs_recheck; then
  27497. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  27498. shift
  27499. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  27500. CONFIG_SHELL='$SHELL'
  27501. export CONFIG_SHELL
  27502. exec "\$@"
  27503. fi
  27504. _ACEOF
  27505. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27506. exec 5>>config.log
  27507. {
  27508. echo
  27509. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  27510. ## Running $as_me. ##
  27511. _ASBOX
  27512. $as_echo "$ac_log"
  27513. } >&5
  27514. _ACEOF
  27515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27516. #
  27517. # INIT-COMMANDS
  27518. #
  27519. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  27520. # The HP-UX ksh and POSIX shell print the target directory to stdout
  27521. # if CDPATH is set.
  27522. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27523. sed_quote_subst='$sed_quote_subst'
  27524. double_quote_subst='$double_quote_subst'
  27525. delay_variable_subst='$delay_variable_subst'
  27526. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  27527. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  27528. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  27529. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  27530. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  27531. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  27532. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  27533. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  27534. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  27535. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  27536. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  27537. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  27538. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  27539. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  27540. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  27541. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  27542. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  27543. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  27544. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  27545. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  27546. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  27547. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  27548. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  27549. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  27550. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  27551. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  27552. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  27553. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  27554. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  27555. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  27556. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  27557. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  27558. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  27559. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  27560. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  27561. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  27562. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  27563. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  27564. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  27565. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  27566. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  27567. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  27568. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  27569. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  27570. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  27571. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  27572. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  27573. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  27574. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  27575. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  27576. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  27577. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  27578. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  27579. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  27580. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  27581. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  27582. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  27583. 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"`'
  27584. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  27585. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  27586. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  27587. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  27588. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  27589. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  27590. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  27591. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  27592. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  27593. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  27594. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  27595. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  27596. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  27597. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  27598. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  27599. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  27600. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  27601. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  27602. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  27603. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  27604. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  27605. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  27606. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  27607. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  27608. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  27609. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  27610. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  27611. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  27612. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  27613. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  27614. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  27615. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  27616. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  27617. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  27618. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  27619. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  27620. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  27621. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  27622. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  27623. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  27624. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  27625. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  27626. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  27627. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  27628. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  27629. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  27630. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  27631. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  27632. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  27633. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  27634. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  27635. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  27636. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  27637. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  27638. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  27639. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  27640. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  27641. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  27642. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  27643. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  27644. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  27645. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  27646. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  27647. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  27648. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  27649. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  27650. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  27651. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  27652. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  27653. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  27654. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  27655. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  27656. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  27657. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  27658. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  27659. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  27660. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  27661. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  27662. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  27663. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  27664. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27665. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27666. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27667. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  27668. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  27669. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27670. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  27671. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  27672. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  27673. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  27674. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  27675. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  27676. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27677. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27678. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  27679. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27680. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27681. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27682. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27683. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27684. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27685. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  27686. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27687. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27688. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27689. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  27690. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  27691. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  27692. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  27693. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  27694. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  27695. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  27696. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  27697. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  27698. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27699. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  27700. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  27701. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27702. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27703. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27704. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  27705. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  27706. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  27707. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  27708. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  27709. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  27710. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  27711. LTCC='$LTCC'
  27712. LTCFLAGS='$LTCFLAGS'
  27713. compiler='$compiler_DEFAULT'
  27714. # A function that is used when there is no print builtin or printf.
  27715. func_fallback_echo ()
  27716. {
  27717. eval 'cat <<_LTECHO_EOF
  27718. \$1
  27719. _LTECHO_EOF'
  27720. }
  27721. # Quote evaled strings.
  27722. for var in SED \
  27723. GREP \
  27724. EGREP \
  27725. FGREP \
  27726. SHELL \
  27727. ECHO \
  27728. LD \
  27729. AS \
  27730. DLLTOOL \
  27731. OBJDUMP \
  27732. PATH_SEPARATOR \
  27733. NM \
  27734. LN_S \
  27735. lt_SP2NL \
  27736. lt_NL2SP \
  27737. reload_flag \
  27738. deplibs_check_method \
  27739. file_magic_cmd \
  27740. file_magic_glob \
  27741. want_nocaseglob \
  27742. sharedlib_from_linklib_cmd \
  27743. AR \
  27744. AR_FLAGS \
  27745. archiver_list_spec \
  27746. STRIP \
  27747. RANLIB \
  27748. CC \
  27749. CFLAGS \
  27750. compiler \
  27751. lt_cv_sys_global_symbol_pipe \
  27752. lt_cv_sys_global_symbol_to_cdecl \
  27753. lt_cv_sys_global_symbol_to_c_name_address \
  27754. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  27755. nm_file_list_spec \
  27756. lt_prog_compiler_no_builtin_flag \
  27757. lt_prog_compiler_pic \
  27758. lt_prog_compiler_wl \
  27759. lt_prog_compiler_static \
  27760. lt_cv_prog_compiler_c_o \
  27761. need_locks \
  27762. MANIFEST_TOOL \
  27763. DSYMUTIL \
  27764. NMEDIT \
  27765. LIPO \
  27766. OTOOL \
  27767. OTOOL64 \
  27768. shrext_cmds \
  27769. export_dynamic_flag_spec \
  27770. whole_archive_flag_spec \
  27771. compiler_needs_object \
  27772. with_gnu_ld \
  27773. allow_undefined_flag \
  27774. no_undefined_flag \
  27775. hardcode_libdir_flag_spec \
  27776. hardcode_libdir_separator \
  27777. exclude_expsyms \
  27778. include_expsyms \
  27779. file_list_spec \
  27780. variables_saved_for_relink \
  27781. libname_spec \
  27782. library_names_spec \
  27783. soname_spec \
  27784. install_override_mode \
  27785. finish_eval \
  27786. old_striplib \
  27787. striplib \
  27788. compiler_lib_search_dirs \
  27789. predep_objects \
  27790. postdep_objects \
  27791. predeps \
  27792. postdeps \
  27793. compiler_lib_search_path \
  27794. LD_CXX \
  27795. reload_flag_CXX \
  27796. compiler_CXX \
  27797. lt_prog_compiler_no_builtin_flag_CXX \
  27798. lt_prog_compiler_pic_CXX \
  27799. lt_prog_compiler_wl_CXX \
  27800. lt_prog_compiler_static_CXX \
  27801. lt_cv_prog_compiler_c_o_CXX \
  27802. export_dynamic_flag_spec_CXX \
  27803. whole_archive_flag_spec_CXX \
  27804. compiler_needs_object_CXX \
  27805. with_gnu_ld_CXX \
  27806. allow_undefined_flag_CXX \
  27807. no_undefined_flag_CXX \
  27808. hardcode_libdir_flag_spec_CXX \
  27809. hardcode_libdir_separator_CXX \
  27810. exclude_expsyms_CXX \
  27811. include_expsyms_CXX \
  27812. file_list_spec_CXX \
  27813. compiler_lib_search_dirs_CXX \
  27814. predep_objects_CXX \
  27815. postdep_objects_CXX \
  27816. predeps_CXX \
  27817. postdeps_CXX \
  27818. compiler_lib_search_path_CXX; do
  27819. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27820. *[\\\\\\\`\\"\\\$]*)
  27821. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  27822. ;;
  27823. *)
  27824. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27825. ;;
  27826. esac
  27827. done
  27828. # Double-quote double-evaled strings.
  27829. for var in reload_cmds \
  27830. old_postinstall_cmds \
  27831. old_postuninstall_cmds \
  27832. old_archive_cmds \
  27833. extract_expsyms_cmds \
  27834. old_archive_from_new_cmds \
  27835. old_archive_from_expsyms_cmds \
  27836. archive_cmds \
  27837. archive_expsym_cmds \
  27838. module_cmds \
  27839. module_expsym_cmds \
  27840. export_symbols_cmds \
  27841. prelink_cmds \
  27842. postlink_cmds \
  27843. postinstall_cmds \
  27844. postuninstall_cmds \
  27845. finish_cmds \
  27846. sys_lib_search_path_spec \
  27847. sys_lib_dlsearch_path_spec \
  27848. reload_cmds_CXX \
  27849. old_archive_cmds_CXX \
  27850. old_archive_from_new_cmds_CXX \
  27851. old_archive_from_expsyms_cmds_CXX \
  27852. archive_cmds_CXX \
  27853. archive_expsym_cmds_CXX \
  27854. module_cmds_CXX \
  27855. module_expsym_cmds_CXX \
  27856. export_symbols_cmds_CXX \
  27857. prelink_cmds_CXX \
  27858. postlink_cmds_CXX; do
  27859. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27860. *[\\\\\\\`\\"\\\$]*)
  27861. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  27862. ;;
  27863. *)
  27864. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27865. ;;
  27866. esac
  27867. done
  27868. ac_aux_dir='$ac_aux_dir'
  27869. xsi_shell='$xsi_shell'
  27870. lt_shell_append='$lt_shell_append'
  27871. # See if we are running on zsh, and set the options which allow our
  27872. # commands through without removal of \ escapes INIT.
  27873. if test -n "\${ZSH_VERSION+set}" ; then
  27874. setopt NO_GLOB_SUBST
  27875. fi
  27876. PACKAGE='$PACKAGE'
  27877. VERSION='$VERSION'
  27878. TIMESTAMP='$TIMESTAMP'
  27879. RM='$RM'
  27880. ofile='$ofile'
  27881. _ACEOF
  27882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27883. # Handling of arguments.
  27884. for ac_config_target in $ac_config_targets
  27885. do
  27886. case $ac_config_target in
  27887. "magick/magick_config.h") CONFIG_HEADERS="$CONFIG_HEADERS magick/magick_config.h" ;;
  27888. "magick/magick_config_api.h") CONFIG_HEADERS="$CONFIG_HEADERS magick/magick_config_api.h" ;;
  27889. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  27890. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27891. "GraphicsMagick.spec") CONFIG_FILES="$CONFIG_FILES GraphicsMagick.spec" ;;
  27892. "Magick++/bin/GraphicsMagick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/GraphicsMagick++-config" ;;
  27893. "Magick++/lib/GraphicsMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/GraphicsMagick++.pc" ;;
  27894. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  27895. "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
  27896. "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
  27897. "PerlMagick/PerlMagickCheck.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/PerlMagickCheck.sh" ;;
  27898. "config/delegates.mgk") CONFIG_FILES="$CONFIG_FILES config/delegates.mgk" ;;
  27899. "config/type-ghostscript.mgk") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.mgk" ;;
  27900. "config/type-solaris.mgk") CONFIG_FILES="$CONFIG_FILES config/type-solaris.mgk" ;;
  27901. "config/type-windows.mgk") CONFIG_FILES="$CONFIG_FILES config/type-windows.mgk" ;;
  27902. "config/type.mgk") CONFIG_FILES="$CONFIG_FILES config/type.mgk" ;;
  27903. "magick/GraphicsMagick-config") CONFIG_FILES="$CONFIG_FILES magick/GraphicsMagick-config" ;;
  27904. "magick/GraphicsMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/GraphicsMagick.pc" ;;
  27905. "magick/magick_types.h") CONFIG_FILES="$CONFIG_FILES magick/magick_types.h" ;;
  27906. "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
  27907. "rungm.sh") CONFIG_FILES="$CONFIG_FILES rungm.sh" ;;
  27908. "wand/GraphicsMagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/GraphicsMagickWand-config" ;;
  27909. "wand/GraphicsMagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/GraphicsMagickWand.pc" ;;
  27910. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  27911. "GraphicsMagick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS GraphicsMagick++-config.in" ;;
  27912. "GraphicsMagick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS GraphicsMagick-config.in" ;;
  27913. "GraphicsMagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS GraphicsMagickWand-config.in" ;;
  27914. "rungm.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS rungm.sh.in" ;;
  27915. "PerlMagick/PerlMagickCheck.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/PerlMagickCheck.sh.in" ;;
  27916. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27917. esac
  27918. done
  27919. # If the user did not use the arguments to specify the items to instantiate,
  27920. # then the envvar interface is used. Set only those that are not.
  27921. # We use the long form for the default assignment because of an extremely
  27922. # bizarre bug on SunOS 4.1.3.
  27923. if $ac_need_defaults; then
  27924. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  27925. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  27926. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  27927. fi
  27928. # Have a temporary directory for convenience. Make it in the build tree
  27929. # simply because there is no reason against having it here, and in addition,
  27930. # creating and moving files from /tmp can sometimes cause problems.
  27931. # Hook for its removal unless debugging.
  27932. # Note that there is a small window in which the directory will not be cleaned:
  27933. # after its creation but before its name has been assigned to `$tmp'.
  27934. $debug ||
  27935. {
  27936. tmp= ac_tmp=
  27937. trap 'exit_status=$?
  27938. : "${ac_tmp:=$tmp}"
  27939. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27940. ' 0
  27941. trap 'as_fn_exit 1' 1 2 13 15
  27942. }
  27943. # Create a (secure) tmp directory for tmp files.
  27944. {
  27945. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27946. test -d "$tmp"
  27947. } ||
  27948. {
  27949. tmp=./conf$$-$RANDOM
  27950. (umask 077 && mkdir "$tmp")
  27951. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27952. ac_tmp=$tmp
  27953. # Set up the scripts for CONFIG_FILES section.
  27954. # No need to generate them if there are no CONFIG_FILES.
  27955. # This happens for instance with `./config.status config.h'.
  27956. if test -n "$CONFIG_FILES"; then
  27957. ac_cr=`echo X | tr X '\015'`
  27958. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27959. # But we know of no other shell where ac_cr would be empty at this
  27960. # point, so we can use a bashism as a fallback.
  27961. if test "x$ac_cr" = x; then
  27962. eval ac_cr=\$\'\\r\'
  27963. fi
  27964. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27965. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27966. ac_cs_awk_cr='\\r'
  27967. else
  27968. ac_cs_awk_cr=$ac_cr
  27969. fi
  27970. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27971. _ACEOF
  27972. {
  27973. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27974. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27975. echo "_ACEOF"
  27976. } >conf$$subs.sh ||
  27977. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27978. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27979. ac_delim='%!_!# '
  27980. for ac_last_try in false false false false false :; do
  27981. . ./conf$$subs.sh ||
  27982. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27983. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27984. if test $ac_delim_n = $ac_delim_num; then
  27985. break
  27986. elif $ac_last_try; then
  27987. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27988. else
  27989. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27990. fi
  27991. done
  27992. rm -f conf$$subs.sh
  27993. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27994. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27995. _ACEOF
  27996. sed -n '
  27997. h
  27998. s/^/S["/; s/!.*/"]=/
  27999. p
  28000. g
  28001. s/^[^!]*!//
  28002. :repl
  28003. t repl
  28004. s/'"$ac_delim"'$//
  28005. t delim
  28006. :nl
  28007. h
  28008. s/\(.\{148\}\)..*/\1/
  28009. t more1
  28010. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  28011. p
  28012. n
  28013. b repl
  28014. :more1
  28015. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28016. p
  28017. g
  28018. s/.\{148\}//
  28019. t nl
  28020. :delim
  28021. h
  28022. s/\(.\{148\}\)..*/\1/
  28023. t more2
  28024. s/["\\]/\\&/g; s/^/"/; s/$/"/
  28025. p
  28026. b
  28027. :more2
  28028. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28029. p
  28030. g
  28031. s/.\{148\}//
  28032. t delim
  28033. ' <conf$$subs.awk | sed '
  28034. /^[^""]/{
  28035. N
  28036. s/\n//
  28037. }
  28038. ' >>$CONFIG_STATUS || ac_write_fail=1
  28039. rm -f conf$$subs.awk
  28040. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28041. _ACAWK
  28042. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  28043. for (key in S) S_is_set[key] = 1
  28044. FS = ""
  28045. }
  28046. {
  28047. line = $ 0
  28048. nfields = split(line, field, "@")
  28049. substed = 0
  28050. len = length(field[1])
  28051. for (i = 2; i < nfields; i++) {
  28052. key = field[i]
  28053. keylen = length(key)
  28054. if (S_is_set[key]) {
  28055. value = S[key]
  28056. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  28057. len += length(value) + length(field[++i])
  28058. substed = 1
  28059. } else
  28060. len += 1 + keylen
  28061. }
  28062. print line
  28063. }
  28064. _ACAWK
  28065. _ACEOF
  28066. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28067. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  28068. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  28069. else
  28070. cat
  28071. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  28072. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  28073. _ACEOF
  28074. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  28075. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  28076. # trailing colons and then remove the whole line if VPATH becomes empty
  28077. # (actually we leave an empty line to preserve line numbers).
  28078. if test "x$srcdir" = x.; then
  28079. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  28080. h
  28081. s///
  28082. s/^/:/
  28083. s/[ ]*$/:/
  28084. s/:\$(srcdir):/:/g
  28085. s/:\${srcdir}:/:/g
  28086. s/:@srcdir@:/:/g
  28087. s/^:*//
  28088. s/:*$//
  28089. x
  28090. s/\(=[ ]*\).*/\1/
  28091. G
  28092. s/\n//
  28093. s/^[^=]*=[ ]*$//
  28094. }'
  28095. fi
  28096. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28097. fi # test -n "$CONFIG_FILES"
  28098. # Set up the scripts for CONFIG_HEADERS section.
  28099. # No need to generate them if there are no CONFIG_HEADERS.
  28100. # This happens for instance with `./config.status Makefile'.
  28101. if test -n "$CONFIG_HEADERS"; then
  28102. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  28103. BEGIN {
  28104. _ACEOF
  28105. # Transform confdefs.h into an awk script `defines.awk', embedded as
  28106. # here-document in config.status, that substitutes the proper values into
  28107. # config.h.in to produce config.h.
  28108. # Create a delimiter string that does not exist in confdefs.h, to ease
  28109. # handling of long lines.
  28110. ac_delim='%!_!# '
  28111. for ac_last_try in false false :; do
  28112. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  28113. if test -z "$ac_tt"; then
  28114. break
  28115. elif $ac_last_try; then
  28116. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  28117. else
  28118. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  28119. fi
  28120. done
  28121. # For the awk script, D is an array of macro values keyed by name,
  28122. # likewise P contains macro parameters if any. Preserve backslash
  28123. # newline sequences.
  28124. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  28125. sed -n '
  28126. s/.\{148\}/&'"$ac_delim"'/g
  28127. t rset
  28128. :rset
  28129. s/^[ ]*#[ ]*define[ ][ ]*/ /
  28130. t def
  28131. d
  28132. :def
  28133. s/\\$//
  28134. t bsnl
  28135. s/["\\]/\\&/g
  28136. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  28137. D["\1"]=" \3"/p
  28138. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  28139. d
  28140. :bsnl
  28141. s/["\\]/\\&/g
  28142. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  28143. D["\1"]=" \3\\\\\\n"\\/p
  28144. t cont
  28145. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  28146. t cont
  28147. d
  28148. :cont
  28149. n
  28150. s/.\{148\}/&'"$ac_delim"'/g
  28151. t clear
  28152. :clear
  28153. s/\\$//
  28154. t bsnlc
  28155. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  28156. d
  28157. :bsnlc
  28158. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  28159. b cont
  28160. ' <confdefs.h | sed '
  28161. s/'"$ac_delim"'/"\\\
  28162. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  28163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28164. for (key in D) D_is_set[key] = 1
  28165. FS = ""
  28166. }
  28167. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  28168. line = \$ 0
  28169. split(line, arg, " ")
  28170. if (arg[1] == "#") {
  28171. defundef = arg[2]
  28172. mac1 = arg[3]
  28173. } else {
  28174. defundef = substr(arg[1], 2)
  28175. mac1 = arg[2]
  28176. }
  28177. split(mac1, mac2, "(") #)
  28178. macro = mac2[1]
  28179. prefix = substr(line, 1, index(line, defundef) - 1)
  28180. if (D_is_set[macro]) {
  28181. # Preserve the white space surrounding the "#".
  28182. print prefix "define", macro P[macro] D[macro]
  28183. next
  28184. } else {
  28185. # Replace #undef with comments. This is necessary, for example,
  28186. # in the case of _POSIX_SOURCE, which is predefined and required
  28187. # on some systems where configure will not decide to define it.
  28188. if (defundef == "undef") {
  28189. print "/*", prefix defundef, macro, "*/"
  28190. next
  28191. }
  28192. }
  28193. }
  28194. { print }
  28195. _ACAWK
  28196. _ACEOF
  28197. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28198. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  28199. fi # test -n "$CONFIG_HEADERS"
  28200. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  28201. shift
  28202. for ac_tag
  28203. do
  28204. case $ac_tag in
  28205. :[FHLC]) ac_mode=$ac_tag; continue;;
  28206. esac
  28207. case $ac_mode$ac_tag in
  28208. :[FHL]*:*);;
  28209. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  28210. :[FH]-) ac_tag=-:-;;
  28211. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  28212. esac
  28213. ac_save_IFS=$IFS
  28214. IFS=:
  28215. set x $ac_tag
  28216. IFS=$ac_save_IFS
  28217. shift
  28218. ac_file=$1
  28219. shift
  28220. case $ac_mode in
  28221. :L) ac_source=$1;;
  28222. :[FH])
  28223. ac_file_inputs=
  28224. for ac_f
  28225. do
  28226. case $ac_f in
  28227. -) ac_f="$ac_tmp/stdin";;
  28228. *) # Look for the file first in the build tree, then in the source tree
  28229. # (if the path is not absolute). The absolute path cannot be DOS-style,
  28230. # because $ac_f cannot contain `:'.
  28231. test -f "$ac_f" ||
  28232. case $ac_f in
  28233. [\\/$]*) false;;
  28234. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  28235. esac ||
  28236. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  28237. esac
  28238. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  28239. as_fn_append ac_file_inputs " '$ac_f'"
  28240. done
  28241. # Let's still pretend it is `configure' which instantiates (i.e., don't
  28242. # use $as_me), people would be surprised to read:
  28243. # /* config.h. Generated by config.status. */
  28244. configure_input='Generated from '`
  28245. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  28246. `' by configure.'
  28247. if test x"$ac_file" != x-; then
  28248. configure_input="$ac_file. $configure_input"
  28249. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  28250. $as_echo "$as_me: creating $ac_file" >&6;}
  28251. fi
  28252. # Neutralize special characters interpreted by sed in replacement strings.
  28253. case $configure_input in #(
  28254. *\&* | *\|* | *\\* )
  28255. ac_sed_conf_input=`$as_echo "$configure_input" |
  28256. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  28257. *) ac_sed_conf_input=$configure_input;;
  28258. esac
  28259. case $ac_tag in
  28260. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  28261. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  28262. esac
  28263. ;;
  28264. esac
  28265. ac_dir=`$as_dirname -- "$ac_file" ||
  28266. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28267. X"$ac_file" : 'X\(//\)[^/]' \| \
  28268. X"$ac_file" : 'X\(//\)$' \| \
  28269. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  28270. $as_echo X"$ac_file" |
  28271. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28272. s//\1/
  28273. q
  28274. }
  28275. /^X\(\/\/\)[^/].*/{
  28276. s//\1/
  28277. q
  28278. }
  28279. /^X\(\/\/\)$/{
  28280. s//\1/
  28281. q
  28282. }
  28283. /^X\(\/\).*/{
  28284. s//\1/
  28285. q
  28286. }
  28287. s/.*/./; q'`
  28288. as_dir="$ac_dir"; as_fn_mkdir_p
  28289. ac_builddir=.
  28290. case "$ac_dir" in
  28291. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28292. *)
  28293. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  28294. # A ".." for each directory in $ac_dir_suffix.
  28295. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  28296. case $ac_top_builddir_sub in
  28297. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28298. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  28299. esac ;;
  28300. esac
  28301. ac_abs_top_builddir=$ac_pwd
  28302. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  28303. # for backward compatibility:
  28304. ac_top_builddir=$ac_top_build_prefix
  28305. case $srcdir in
  28306. .) # We are building in place.
  28307. ac_srcdir=.
  28308. ac_top_srcdir=$ac_top_builddir_sub
  28309. ac_abs_top_srcdir=$ac_pwd ;;
  28310. [\\/]* | ?:[\\/]* ) # Absolute name.
  28311. ac_srcdir=$srcdir$ac_dir_suffix;
  28312. ac_top_srcdir=$srcdir
  28313. ac_abs_top_srcdir=$srcdir ;;
  28314. *) # Relative name.
  28315. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  28316. ac_top_srcdir=$ac_top_build_prefix$srcdir
  28317. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  28318. esac
  28319. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  28320. case $ac_mode in
  28321. :F)
  28322. #
  28323. # CONFIG_FILE
  28324. #
  28325. case $INSTALL in
  28326. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  28327. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  28328. esac
  28329. ac_MKDIR_P=$MKDIR_P
  28330. case $MKDIR_P in
  28331. [\\/$]* | ?:[\\/]* ) ;;
  28332. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  28333. esac
  28334. _ACEOF
  28335. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28336. # If the template does not know about datarootdir, expand it.
  28337. # FIXME: This hack should be removed a few years after 2.60.
  28338. ac_datarootdir_hack=; ac_datarootdir_seen=
  28339. ac_sed_dataroot='
  28340. /datarootdir/ {
  28341. p
  28342. q
  28343. }
  28344. /@datadir@/p
  28345. /@docdir@/p
  28346. /@infodir@/p
  28347. /@localedir@/p
  28348. /@mandir@/p'
  28349. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  28350. *datarootdir*) ac_datarootdir_seen=yes;;
  28351. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  28352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  28353. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  28354. _ACEOF
  28355. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28356. ac_datarootdir_hack='
  28357. s&@datadir@&$datadir&g
  28358. s&@docdir@&$docdir&g
  28359. s&@infodir@&$infodir&g
  28360. s&@localedir@&$localedir&g
  28361. s&@mandir@&$mandir&g
  28362. s&\\\${datarootdir}&$datarootdir&g' ;;
  28363. esac
  28364. _ACEOF
  28365. # Neutralize VPATH when `$srcdir' = `.'.
  28366. # Shell code in configure.ac might set extrasub.
  28367. # FIXME: do we really want to maintain this feature?
  28368. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28369. ac_sed_extra="$ac_vpsub
  28370. $extrasub
  28371. _ACEOF
  28372. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28373. :t
  28374. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  28375. s|@configure_input@|$ac_sed_conf_input|;t t
  28376. s&@top_builddir@&$ac_top_builddir_sub&;t t
  28377. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  28378. s&@srcdir@&$ac_srcdir&;t t
  28379. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  28380. s&@top_srcdir@&$ac_top_srcdir&;t t
  28381. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  28382. s&@builddir@&$ac_builddir&;t t
  28383. s&@abs_builddir@&$ac_abs_builddir&;t t
  28384. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  28385. s&@INSTALL@&$ac_INSTALL&;t t
  28386. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  28387. $ac_datarootdir_hack
  28388. "
  28389. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  28390. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28391. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  28392. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  28393. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  28394. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  28395. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  28396. which seems to be undefined. Please make sure it is defined" >&5
  28397. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  28398. which seems to be undefined. Please make sure it is defined" >&2;}
  28399. rm -f "$ac_tmp/stdin"
  28400. case $ac_file in
  28401. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  28402. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  28403. esac \
  28404. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28405. ;;
  28406. :H)
  28407. #
  28408. # CONFIG_HEADER
  28409. #
  28410. if test x"$ac_file" != x-; then
  28411. {
  28412. $as_echo "/* $configure_input */" \
  28413. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  28414. } >"$ac_tmp/config.h" \
  28415. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28416. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  28417. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  28418. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  28419. else
  28420. rm -f "$ac_file"
  28421. mv "$ac_tmp/config.h" "$ac_file" \
  28422. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28423. fi
  28424. else
  28425. $as_echo "/* $configure_input */" \
  28426. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  28427. || as_fn_error $? "could not create -" "$LINENO" 5
  28428. fi
  28429. # Compute "$ac_file"'s index in $config_headers.
  28430. _am_arg="$ac_file"
  28431. _am_stamp_count=1
  28432. for _am_header in $config_headers :; do
  28433. case $_am_header in
  28434. $_am_arg | $_am_arg:* )
  28435. break ;;
  28436. * )
  28437. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  28438. esac
  28439. done
  28440. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  28441. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28442. X"$_am_arg" : 'X\(//\)[^/]' \| \
  28443. X"$_am_arg" : 'X\(//\)$' \| \
  28444. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  28445. $as_echo X"$_am_arg" |
  28446. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28447. s//\1/
  28448. q
  28449. }
  28450. /^X\(\/\/\)[^/].*/{
  28451. s//\1/
  28452. q
  28453. }
  28454. /^X\(\/\/\)$/{
  28455. s//\1/
  28456. q
  28457. }
  28458. /^X\(\/\).*/{
  28459. s//\1/
  28460. q
  28461. }
  28462. s/.*/./; q'`/stamp-h$_am_stamp_count
  28463. ;;
  28464. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  28465. $as_echo "$as_me: executing $ac_file commands" >&6;}
  28466. ;;
  28467. esac
  28468. case $ac_file$ac_mode in
  28469. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  28470. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  28471. # are listed without --file. Let's play safe and only enable the eval
  28472. # if we detect the quoting.
  28473. case $CONFIG_FILES in
  28474. *\'*) eval set x "$CONFIG_FILES" ;;
  28475. *) set x $CONFIG_FILES ;;
  28476. esac
  28477. shift
  28478. for mf
  28479. do
  28480. # Strip MF so we end up with the name of the file.
  28481. mf=`echo "$mf" | sed -e 's/:.*$//'`
  28482. # Check whether this is an Automake generated Makefile or not.
  28483. # We used to match only the files named `Makefile.in', but
  28484. # some people rename them; so instead we look at the file content.
  28485. # Grep'ing the first line is not enough: some people post-process
  28486. # each Makefile.in and add a new line on top of each file to say so.
  28487. # Grep'ing the whole file is not good either: AIX grep has a line
  28488. # limit of 2048, but all sed's we know have understand at least 4000.
  28489. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  28490. dirpart=`$as_dirname -- "$mf" ||
  28491. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28492. X"$mf" : 'X\(//\)[^/]' \| \
  28493. X"$mf" : 'X\(//\)$' \| \
  28494. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  28495. $as_echo X"$mf" |
  28496. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28497. s//\1/
  28498. q
  28499. }
  28500. /^X\(\/\/\)[^/].*/{
  28501. s//\1/
  28502. q
  28503. }
  28504. /^X\(\/\/\)$/{
  28505. s//\1/
  28506. q
  28507. }
  28508. /^X\(\/\).*/{
  28509. s//\1/
  28510. q
  28511. }
  28512. s/.*/./; q'`
  28513. else
  28514. continue
  28515. fi
  28516. # Extract the definition of DEPDIR, am__include, and am__quote
  28517. # from the Makefile without running `make'.
  28518. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  28519. test -z "$DEPDIR" && continue
  28520. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  28521. test -z "am__include" && continue
  28522. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  28523. # When using ansi2knr, U may be empty or an underscore; expand it
  28524. U=`sed -n 's/^U = //p' < "$mf"`
  28525. # Find all dependency output files, they are included files with
  28526. # $(DEPDIR) in their names. We invoke sed twice because it is the
  28527. # simplest approach to changing $(DEPDIR) to its actual value in the
  28528. # expansion.
  28529. for file in `sed -n "
  28530. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  28531. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  28532. # Make sure the directory exists.
  28533. test -f "$dirpart/$file" && continue
  28534. fdir=`$as_dirname -- "$file" ||
  28535. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28536. X"$file" : 'X\(//\)[^/]' \| \
  28537. X"$file" : 'X\(//\)$' \| \
  28538. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  28539. $as_echo X"$file" |
  28540. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28541. s//\1/
  28542. q
  28543. }
  28544. /^X\(\/\/\)[^/].*/{
  28545. s//\1/
  28546. q
  28547. }
  28548. /^X\(\/\/\)$/{
  28549. s//\1/
  28550. q
  28551. }
  28552. /^X\(\/\).*/{
  28553. s//\1/
  28554. q
  28555. }
  28556. s/.*/./; q'`
  28557. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  28558. # echo "creating $dirpart/$file"
  28559. echo '# dummy' > "$dirpart/$file"
  28560. done
  28561. done
  28562. }
  28563. ;;
  28564. "libtool":C)
  28565. # See if we are running on zsh, and set the options which allow our
  28566. # commands through without removal of \ escapes.
  28567. if test -n "${ZSH_VERSION+set}" ; then
  28568. setopt NO_GLOB_SUBST
  28569. fi
  28570. cfgfile="${ofile}T"
  28571. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  28572. $RM "$cfgfile"
  28573. cat <<_LT_EOF >> "$cfgfile"
  28574. #! $SHELL
  28575. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  28576. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  28577. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  28578. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  28579. #
  28580. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  28581. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  28582. # Foundation, Inc.
  28583. # Written by Gordon Matzigkeit, 1996
  28584. #
  28585. # This file is part of GNU Libtool.
  28586. #
  28587. # GNU Libtool is free software; you can redistribute it and/or
  28588. # modify it under the terms of the GNU General Public License as
  28589. # published by the Free Software Foundation; either version 2 of
  28590. # the License, or (at your option) any later version.
  28591. #
  28592. # As a special exception to the GNU General Public License,
  28593. # if you distribute this file as part of a program or library that
  28594. # is built using GNU Libtool, you may include this file under the
  28595. # same distribution terms that you use for the rest of that program.
  28596. #
  28597. # GNU Libtool is distributed in the hope that it will be useful,
  28598. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  28599. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  28600. # GNU General Public License for more details.
  28601. #
  28602. # You should have received a copy of the GNU General Public License
  28603. # along with GNU Libtool; see the file COPYING. If not, a copy
  28604. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  28605. # obtained by writing to the Free Software Foundation, Inc.,
  28606. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  28607. # The names of the tagged configurations supported by this script.
  28608. available_tags="CXX "
  28609. # ### BEGIN LIBTOOL CONFIG
  28610. # A sed program that does not truncate output.
  28611. SED=$lt_SED
  28612. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  28613. Xsed="\$SED -e 1s/^X//"
  28614. # A grep program that handles long lines.
  28615. GREP=$lt_GREP
  28616. # An ERE matcher.
  28617. EGREP=$lt_EGREP
  28618. # A literal string matcher.
  28619. FGREP=$lt_FGREP
  28620. # Shell to use when invoking shell scripts.
  28621. SHELL=$lt_SHELL
  28622. # An echo program that protects backslashes.
  28623. ECHO=$lt_ECHO
  28624. # Which release of libtool.m4 was used?
  28625. macro_version=$macro_version
  28626. macro_revision=$macro_revision
  28627. # Whether or not to build shared libraries.
  28628. build_libtool_libs=$enable_shared
  28629. # Assembler program.
  28630. AS=$lt_AS
  28631. # DLL creation program.
  28632. DLLTOOL=$lt_DLLTOOL
  28633. # Object dumper program.
  28634. OBJDUMP=$lt_OBJDUMP
  28635. # Whether or not to build static libraries.
  28636. build_old_libs=$enable_static
  28637. # What type of objects to build.
  28638. pic_mode=$pic_mode
  28639. # Whether or not to optimize for fast installation.
  28640. fast_install=$enable_fast_install
  28641. # The PATH separator for the build system.
  28642. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  28643. # The host system.
  28644. host_alias=$host_alias
  28645. host=$host
  28646. host_os=$host_os
  28647. # The build system.
  28648. build_alias=$build_alias
  28649. build=$build
  28650. build_os=$build_os
  28651. # A BSD- or MS-compatible name lister.
  28652. NM=$lt_NM
  28653. # Whether we need soft or hard links.
  28654. LN_S=$lt_LN_S
  28655. # What is the maximum length of a command?
  28656. max_cmd_len=$max_cmd_len
  28657. # Object file suffix (normally "o").
  28658. objext=$ac_objext
  28659. # Executable file suffix (normally "").
  28660. exeext=$exeext
  28661. # whether the shell understands "unset".
  28662. lt_unset=$lt_unset
  28663. # turn spaces into newlines.
  28664. SP2NL=$lt_lt_SP2NL
  28665. # turn newlines into spaces.
  28666. NL2SP=$lt_lt_NL2SP
  28667. # convert \$build file names to \$host format.
  28668. to_host_file_cmd=$lt_cv_to_host_file_cmd
  28669. # convert \$build files to toolchain format.
  28670. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  28671. # Method to check whether dependent libraries are shared objects.
  28672. deplibs_check_method=$lt_deplibs_check_method
  28673. # Command to use when deplibs_check_method = "file_magic".
  28674. file_magic_cmd=$lt_file_magic_cmd
  28675. # How to find potential files when deplibs_check_method = "file_magic".
  28676. file_magic_glob=$lt_file_magic_glob
  28677. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  28678. want_nocaseglob=$lt_want_nocaseglob
  28679. # Command to associate shared and link libraries.
  28680. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  28681. # The archiver.
  28682. AR=$lt_AR
  28683. # Flags to create an archive.
  28684. AR_FLAGS=$lt_AR_FLAGS
  28685. # How to feed a file listing to the archiver.
  28686. archiver_list_spec=$lt_archiver_list_spec
  28687. # A symbol stripping program.
  28688. STRIP=$lt_STRIP
  28689. # Commands used to install an old-style archive.
  28690. RANLIB=$lt_RANLIB
  28691. old_postinstall_cmds=$lt_old_postinstall_cmds
  28692. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  28693. # Whether to use a lock for old archive extraction.
  28694. lock_old_archive_extraction=$lock_old_archive_extraction
  28695. # A C compiler.
  28696. LTCC=$lt_CC
  28697. # LTCC compiler flags.
  28698. LTCFLAGS=$lt_CFLAGS
  28699. # Take the output of nm and produce a listing of raw symbols and C names.
  28700. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  28701. # Transform the output of nm in a proper C declaration.
  28702. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  28703. # Transform the output of nm in a C name address pair.
  28704. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  28705. # Transform the output of nm in a C name address pair when lib prefix is needed.
  28706. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  28707. # Specify filename containing input files for \$NM.
  28708. nm_file_list_spec=$lt_nm_file_list_spec
  28709. # The root where to search for dependent libraries,and in which our libraries should be installed.
  28710. lt_sysroot=$lt_sysroot
  28711. # The name of the directory that contains temporary libtool files.
  28712. objdir=$objdir
  28713. # Used to examine libraries when file_magic_cmd begins with "file".
  28714. MAGIC_CMD=$MAGIC_CMD
  28715. # Must we lock files when doing compilation?
  28716. need_locks=$lt_need_locks
  28717. # Manifest tool.
  28718. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  28719. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  28720. DSYMUTIL=$lt_DSYMUTIL
  28721. # Tool to change global to local symbols on Mac OS X.
  28722. NMEDIT=$lt_NMEDIT
  28723. # Tool to manipulate fat objects and archives on Mac OS X.
  28724. LIPO=$lt_LIPO
  28725. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  28726. OTOOL=$lt_OTOOL
  28727. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  28728. OTOOL64=$lt_OTOOL64
  28729. # Old archive suffix (normally "a").
  28730. libext=$libext
  28731. # Shared library suffix (normally ".so").
  28732. shrext_cmds=$lt_shrext_cmds
  28733. # The commands to extract the exported symbol list from a shared archive.
  28734. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  28735. # Variables whose values should be saved in libtool wrapper scripts and
  28736. # restored at link time.
  28737. variables_saved_for_relink=$lt_variables_saved_for_relink
  28738. # Do we need the "lib" prefix for modules?
  28739. need_lib_prefix=$need_lib_prefix
  28740. # Do we need a version for libraries?
  28741. need_version=$need_version
  28742. # Library versioning type.
  28743. version_type=$version_type
  28744. # Shared library runtime path variable.
  28745. runpath_var=$runpath_var
  28746. # Shared library path variable.
  28747. shlibpath_var=$shlibpath_var
  28748. # Is shlibpath searched before the hard-coded library search path?
  28749. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  28750. # Format of library name prefix.
  28751. libname_spec=$lt_libname_spec
  28752. # List of archive names. First name is the real one, the rest are links.
  28753. # The last name is the one that the linker finds with -lNAME
  28754. library_names_spec=$lt_library_names_spec
  28755. # The coded name of the library, if different from the real name.
  28756. soname_spec=$lt_soname_spec
  28757. # Permission mode override for installation of shared libraries.
  28758. install_override_mode=$lt_install_override_mode
  28759. # Command to use after installation of a shared archive.
  28760. postinstall_cmds=$lt_postinstall_cmds
  28761. # Command to use after uninstallation of a shared archive.
  28762. postuninstall_cmds=$lt_postuninstall_cmds
  28763. # Commands used to finish a libtool library installation in a directory.
  28764. finish_cmds=$lt_finish_cmds
  28765. # As "finish_cmds", except a single script fragment to be evaled but
  28766. # not shown.
  28767. finish_eval=$lt_finish_eval
  28768. # Whether we should hardcode library paths into libraries.
  28769. hardcode_into_libs=$hardcode_into_libs
  28770. # Compile-time system search path for libraries.
  28771. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  28772. # Run-time system search path for libraries.
  28773. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  28774. # Whether dlopen is supported.
  28775. dlopen_support=$enable_dlopen
  28776. # Whether dlopen of programs is supported.
  28777. dlopen_self=$enable_dlopen_self
  28778. # Whether dlopen of statically linked programs is supported.
  28779. dlopen_self_static=$enable_dlopen_self_static
  28780. # Commands to strip libraries.
  28781. old_striplib=$lt_old_striplib
  28782. striplib=$lt_striplib
  28783. # The linker used to build libraries.
  28784. LD=$lt_LD
  28785. # How to create reloadable object files.
  28786. reload_flag=$lt_reload_flag
  28787. reload_cmds=$lt_reload_cmds
  28788. # Commands used to build an old-style archive.
  28789. old_archive_cmds=$lt_old_archive_cmds
  28790. # A language specific compiler.
  28791. CC=$lt_compiler
  28792. # Is the compiler the GNU compiler?
  28793. with_gcc=$GCC
  28794. # Compiler flag to turn off builtin functions.
  28795. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  28796. # Additional compiler flags for building library objects.
  28797. pic_flag=$lt_lt_prog_compiler_pic
  28798. # How to pass a linker flag through the compiler.
  28799. wl=$lt_lt_prog_compiler_wl
  28800. # Compiler flag to prevent dynamic linking.
  28801. link_static_flag=$lt_lt_prog_compiler_static
  28802. # Does compiler simultaneously support -c and -o options?
  28803. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  28804. # Whether or not to add -lc for building shared libraries.
  28805. build_libtool_need_lc=$archive_cmds_need_lc
  28806. # Whether or not to disallow shared libs when runtime libs are static.
  28807. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  28808. # Compiler flag to allow reflexive dlopens.
  28809. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  28810. # Compiler flag to generate shared objects directly from archives.
  28811. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  28812. # Whether the compiler copes with passing no objects directly.
  28813. compiler_needs_object=$lt_compiler_needs_object
  28814. # Create an old-style archive from a shared archive.
  28815. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  28816. # Create a temporary old-style archive to link instead of a shared archive.
  28817. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  28818. # Commands used to build a shared archive.
  28819. archive_cmds=$lt_archive_cmds
  28820. archive_expsym_cmds=$lt_archive_expsym_cmds
  28821. # Commands used to build a loadable module if different from building
  28822. # a shared archive.
  28823. module_cmds=$lt_module_cmds
  28824. module_expsym_cmds=$lt_module_expsym_cmds
  28825. # Whether we are building with GNU ld or not.
  28826. with_gnu_ld=$lt_with_gnu_ld
  28827. # Flag that allows shared libraries with undefined symbols to be built.
  28828. allow_undefined_flag=$lt_allow_undefined_flag
  28829. # Flag that enforces no undefined symbols.
  28830. no_undefined_flag=$lt_no_undefined_flag
  28831. # Flag to hardcode \$libdir into a binary during linking.
  28832. # This must work even if \$libdir does not exist
  28833. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  28834. # Whether we need a single "-rpath" flag with a separated argument.
  28835. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  28836. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  28837. # DIR into the resulting binary.
  28838. hardcode_direct=$hardcode_direct
  28839. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  28840. # DIR into the resulting binary and the resulting library dependency is
  28841. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  28842. # library is relocated.
  28843. hardcode_direct_absolute=$hardcode_direct_absolute
  28844. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28845. # into the resulting binary.
  28846. hardcode_minus_L=$hardcode_minus_L
  28847. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28848. # into the resulting binary.
  28849. hardcode_shlibpath_var=$hardcode_shlibpath_var
  28850. # Set to "yes" if building a shared library automatically hardcodes DIR
  28851. # into the library and all subsequent libraries and executables linked
  28852. # against it.
  28853. hardcode_automatic=$hardcode_automatic
  28854. # Set to yes if linker adds runtime paths of dependent libraries
  28855. # to runtime path list.
  28856. inherit_rpath=$inherit_rpath
  28857. # Whether libtool must link a program against all its dependency libraries.
  28858. link_all_deplibs=$link_all_deplibs
  28859. # Set to "yes" if exported symbols are required.
  28860. always_export_symbols=$always_export_symbols
  28861. # The commands to list exported symbols.
  28862. export_symbols_cmds=$lt_export_symbols_cmds
  28863. # Symbols that should not be listed in the preloaded symbols.
  28864. exclude_expsyms=$lt_exclude_expsyms
  28865. # Symbols that must always be exported.
  28866. include_expsyms=$lt_include_expsyms
  28867. # Commands necessary for linking programs (against libraries) with templates.
  28868. prelink_cmds=$lt_prelink_cmds
  28869. # Commands necessary for finishing linking programs.
  28870. postlink_cmds=$lt_postlink_cmds
  28871. # Specify filename containing input files.
  28872. file_list_spec=$lt_file_list_spec
  28873. # How to hardcode a shared library path into an executable.
  28874. hardcode_action=$hardcode_action
  28875. # The directories searched by this compiler when creating a shared library.
  28876. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  28877. # Dependencies to place before and after the objects being linked to
  28878. # create a shared library.
  28879. predep_objects=$lt_predep_objects
  28880. postdep_objects=$lt_postdep_objects
  28881. predeps=$lt_predeps
  28882. postdeps=$lt_postdeps
  28883. # The library search path used internally by the compiler when linking
  28884. # a shared library.
  28885. compiler_lib_search_path=$lt_compiler_lib_search_path
  28886. # ### END LIBTOOL CONFIG
  28887. _LT_EOF
  28888. case $host_os in
  28889. aix3*)
  28890. cat <<\_LT_EOF >> "$cfgfile"
  28891. # AIX sometimes has problems with the GCC collect2 program. For some
  28892. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28893. # vanish in a puff of smoke.
  28894. if test "X${COLLECT_NAMES+set}" != Xset; then
  28895. COLLECT_NAMES=
  28896. export COLLECT_NAMES
  28897. fi
  28898. _LT_EOF
  28899. ;;
  28900. esac
  28901. ltmain="$ac_aux_dir/ltmain.sh"
  28902. # We use sed instead of cat because bash on DJGPP gets confused if
  28903. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  28904. # text mode, it properly converts lines to CR/LF. This bash problem
  28905. # is reportedly fixed, but why not run on old versions too?
  28906. sed '$q' "$ltmain" >> "$cfgfile" \
  28907. || (rm -f "$cfgfile"; exit 1)
  28908. if test x"$xsi_shell" = xyes; then
  28909. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  28910. func_dirname ()\
  28911. {\
  28912. \ case ${1} in\
  28913. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  28914. \ * ) func_dirname_result="${3}" ;;\
  28915. \ esac\
  28916. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  28917. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28918. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28919. test 0 -eq $? || _lt_function_replace_fail=:
  28920. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  28921. func_basename ()\
  28922. {\
  28923. \ func_basename_result="${1##*/}"\
  28924. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  28925. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28926. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28927. test 0 -eq $? || _lt_function_replace_fail=:
  28928. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  28929. func_dirname_and_basename ()\
  28930. {\
  28931. \ case ${1} in\
  28932. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  28933. \ * ) func_dirname_result="${3}" ;;\
  28934. \ esac\
  28935. \ func_basename_result="${1##*/}"\
  28936. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  28937. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28938. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28939. test 0 -eq $? || _lt_function_replace_fail=:
  28940. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  28941. func_stripname ()\
  28942. {\
  28943. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  28944. \ # positional parameters, so assign one to ordinary parameter first.\
  28945. \ func_stripname_result=${3}\
  28946. \ func_stripname_result=${func_stripname_result#"${1}"}\
  28947. \ func_stripname_result=${func_stripname_result%"${2}"}\
  28948. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  28949. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28950. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28951. test 0 -eq $? || _lt_function_replace_fail=:
  28952. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  28953. func_split_long_opt ()\
  28954. {\
  28955. \ func_split_long_opt_name=${1%%=*}\
  28956. \ func_split_long_opt_arg=${1#*=}\
  28957. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  28958. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28959. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28960. test 0 -eq $? || _lt_function_replace_fail=:
  28961. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  28962. func_split_short_opt ()\
  28963. {\
  28964. \ func_split_short_opt_arg=${1#??}\
  28965. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  28966. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  28967. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28968. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28969. test 0 -eq $? || _lt_function_replace_fail=:
  28970. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  28971. func_lo2o ()\
  28972. {\
  28973. \ case ${1} in\
  28974. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  28975. \ *) func_lo2o_result=${1} ;;\
  28976. \ esac\
  28977. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  28978. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28979. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28980. test 0 -eq $? || _lt_function_replace_fail=:
  28981. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  28982. func_xform ()\
  28983. {\
  28984. func_xform_result=${1%.*}.lo\
  28985. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  28986. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28987. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28988. test 0 -eq $? || _lt_function_replace_fail=:
  28989. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  28990. func_arith ()\
  28991. {\
  28992. func_arith_result=$(( $* ))\
  28993. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  28994. && mv -f "$cfgfile.tmp" "$cfgfile" \
  28995. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  28996. test 0 -eq $? || _lt_function_replace_fail=:
  28997. sed -e '/^func_len ()$/,/^} # func_len /c\
  28998. func_len ()\
  28999. {\
  29000. func_len_result=${#1}\
  29001. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  29002. && mv -f "$cfgfile.tmp" "$cfgfile" \
  29003. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  29004. test 0 -eq $? || _lt_function_replace_fail=:
  29005. fi
  29006. if test x"$lt_shell_append" = xyes; then
  29007. sed -e '/^func_append ()$/,/^} # func_append /c\
  29008. func_append ()\
  29009. {\
  29010. eval "${1}+=\\${2}"\
  29011. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  29012. && mv -f "$cfgfile.tmp" "$cfgfile" \
  29013. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  29014. test 0 -eq $? || _lt_function_replace_fail=:
  29015. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  29016. func_append_quoted ()\
  29017. {\
  29018. \ func_quote_for_eval "${2}"\
  29019. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  29020. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  29021. && mv -f "$cfgfile.tmp" "$cfgfile" \
  29022. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  29023. test 0 -eq $? || _lt_function_replace_fail=:
  29024. # Save a `func_append' function call where possible by direct use of '+='
  29025. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  29026. && mv -f "$cfgfile.tmp" "$cfgfile" \
  29027. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  29028. test 0 -eq $? || _lt_function_replace_fail=:
  29029. else
  29030. # Save a `func_append' function call even when '+=' is not available
  29031. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  29032. && mv -f "$cfgfile.tmp" "$cfgfile" \
  29033. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  29034. test 0 -eq $? || _lt_function_replace_fail=:
  29035. fi
  29036. if test x"$_lt_function_replace_fail" = x":"; then
  29037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  29038. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  29039. fi
  29040. mv -f "$cfgfile" "$ofile" ||
  29041. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  29042. chmod +x "$ofile"
  29043. cat <<_LT_EOF >> "$ofile"
  29044. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  29045. # The linker used to build libraries.
  29046. LD=$lt_LD_CXX
  29047. # How to create reloadable object files.
  29048. reload_flag=$lt_reload_flag_CXX
  29049. reload_cmds=$lt_reload_cmds_CXX
  29050. # Commands used to build an old-style archive.
  29051. old_archive_cmds=$lt_old_archive_cmds_CXX
  29052. # A language specific compiler.
  29053. CC=$lt_compiler_CXX
  29054. # Is the compiler the GNU compiler?
  29055. with_gcc=$GCC_CXX
  29056. # Compiler flag to turn off builtin functions.
  29057. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  29058. # Additional compiler flags for building library objects.
  29059. pic_flag=$lt_lt_prog_compiler_pic_CXX
  29060. # How to pass a linker flag through the compiler.
  29061. wl=$lt_lt_prog_compiler_wl_CXX
  29062. # Compiler flag to prevent dynamic linking.
  29063. link_static_flag=$lt_lt_prog_compiler_static_CXX
  29064. # Does compiler simultaneously support -c and -o options?
  29065. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  29066. # Whether or not to add -lc for building shared libraries.
  29067. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  29068. # Whether or not to disallow shared libs when runtime libs are static.
  29069. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  29070. # Compiler flag to allow reflexive dlopens.
  29071. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  29072. # Compiler flag to generate shared objects directly from archives.
  29073. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  29074. # Whether the compiler copes with passing no objects directly.
  29075. compiler_needs_object=$lt_compiler_needs_object_CXX
  29076. # Create an old-style archive from a shared archive.
  29077. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  29078. # Create a temporary old-style archive to link instead of a shared archive.
  29079. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  29080. # Commands used to build a shared archive.
  29081. archive_cmds=$lt_archive_cmds_CXX
  29082. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  29083. # Commands used to build a loadable module if different from building
  29084. # a shared archive.
  29085. module_cmds=$lt_module_cmds_CXX
  29086. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  29087. # Whether we are building with GNU ld or not.
  29088. with_gnu_ld=$lt_with_gnu_ld_CXX
  29089. # Flag that allows shared libraries with undefined symbols to be built.
  29090. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  29091. # Flag that enforces no undefined symbols.
  29092. no_undefined_flag=$lt_no_undefined_flag_CXX
  29093. # Flag to hardcode \$libdir into a binary during linking.
  29094. # This must work even if \$libdir does not exist
  29095. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  29096. # Whether we need a single "-rpath" flag with a separated argument.
  29097. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  29098. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  29099. # DIR into the resulting binary.
  29100. hardcode_direct=$hardcode_direct_CXX
  29101. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  29102. # DIR into the resulting binary and the resulting library dependency is
  29103. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  29104. # library is relocated.
  29105. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  29106. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  29107. # into the resulting binary.
  29108. hardcode_minus_L=$hardcode_minus_L_CXX
  29109. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  29110. # into the resulting binary.
  29111. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  29112. # Set to "yes" if building a shared library automatically hardcodes DIR
  29113. # into the library and all subsequent libraries and executables linked
  29114. # against it.
  29115. hardcode_automatic=$hardcode_automatic_CXX
  29116. # Set to yes if linker adds runtime paths of dependent libraries
  29117. # to runtime path list.
  29118. inherit_rpath=$inherit_rpath_CXX
  29119. # Whether libtool must link a program against all its dependency libraries.
  29120. link_all_deplibs=$link_all_deplibs_CXX
  29121. # Set to "yes" if exported symbols are required.
  29122. always_export_symbols=$always_export_symbols_CXX
  29123. # The commands to list exported symbols.
  29124. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  29125. # Symbols that should not be listed in the preloaded symbols.
  29126. exclude_expsyms=$lt_exclude_expsyms_CXX
  29127. # Symbols that must always be exported.
  29128. include_expsyms=$lt_include_expsyms_CXX
  29129. # Commands necessary for linking programs (against libraries) with templates.
  29130. prelink_cmds=$lt_prelink_cmds_CXX
  29131. # Commands necessary for finishing linking programs.
  29132. postlink_cmds=$lt_postlink_cmds_CXX
  29133. # Specify filename containing input files.
  29134. file_list_spec=$lt_file_list_spec_CXX
  29135. # How to hardcode a shared library path into an executable.
  29136. hardcode_action=$hardcode_action_CXX
  29137. # The directories searched by this compiler when creating a shared library.
  29138. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  29139. # Dependencies to place before and after the objects being linked to
  29140. # create a shared library.
  29141. predep_objects=$lt_predep_objects_CXX
  29142. postdep_objects=$lt_postdep_objects_CXX
  29143. predeps=$lt_predeps_CXX
  29144. postdeps=$lt_postdeps_CXX
  29145. # The library search path used internally by the compiler when linking
  29146. # a shared library.
  29147. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  29148. # ### END LIBTOOL TAG CONFIG: CXX
  29149. _LT_EOF
  29150. ;;
  29151. "GraphicsMagick++-config.in":C) chmod +x Magick++/bin/GraphicsMagick++-config ;;
  29152. "GraphicsMagick-config.in":C) chmod +x magick/GraphicsMagick-config ;;
  29153. "GraphicsMagickWand-config.in":C) chmod +x wand/GraphicsMagickWand-config ;;
  29154. "rungm.sh.in":C) chmod +x rungm.sh ;;
  29155. "PerlMagick/PerlMagickCheck.sh.in":C) chmod +x PerlMagick/PerlMagickCheck.sh ;;
  29156. esac
  29157. done # for ac_tag
  29158. as_fn_exit 0
  29159. _ACEOF
  29160. ac_clean_files=$ac_clean_files_save
  29161. test $ac_write_fail = 0 ||
  29162. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  29163. # configure is writing to config.log, and then calls config.status.
  29164. # config.status does its own redirection, appending to config.log.
  29165. # Unfortunately, on DOS this fails, as config.log is still kept open
  29166. # by configure, so config.status won't be able to write to it; its
  29167. # output is simply discarded. So we exec the FD to /dev/null,
  29168. # effectively closing config.log, so it can be properly (re)opened and
  29169. # appended to by config.status. When coming back to configure, we
  29170. # need to make the FD available again.
  29171. if test "$no_create" != yes; then
  29172. ac_cs_success=:
  29173. ac_config_status_args=
  29174. test "$silent" = yes &&
  29175. ac_config_status_args="$ac_config_status_args --quiet"
  29176. exec 5>/dev/null
  29177. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  29178. exec 5>>config.log
  29179. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  29180. # would make configure fail if this is the last instruction.
  29181. $ac_cs_success || as_fn_exit 1
  29182. fi
  29183. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  29184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  29185. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  29186. fi
  29187. rm -f magick-version
  29188. echo ""
  29189. echo "GraphicsMagick is configured as follows. Please verify that this"
  29190. echo "configuration matches your expectations."
  29191. echo ""
  29192. echo "Host system type : $host"
  29193. echo "Build system type : $build"
  29194. echo ""
  29195. echo "Option Configure option Configured value"
  29196. echo "-----------------------------------------------------------------"
  29197. echo "Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs"
  29198. echo "Static libraries --enable-static=$enable_static $libtool_build_static_libs"
  29199. echo "GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld"
  29200. echo "Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth"
  29201. echo ""
  29202. echo "Delegate Configuration:"
  29203. echo "BZLIB --with-bzlib=$with_bzlib $have_bzlib"
  29204. echo "DPS --with-dps=$with_dps $have_dps"
  29205. echo "FlashPIX --with-fpx=$with_fpx $have_fpx"
  29206. echo "FreeType 2.0 --with-ttf=$with_ttf $have_ttf"
  29207. echo "Ghostscript None $PSDelegate ($GSVersion)"
  29208. result_ghostscript_font_dir='none'
  29209. if test "${ghostscript_font_dir}x" != 'x'
  29210. then
  29211. result_ghostscript_font_dir="$ghostscript_font_dir"
  29212. fi
  29213. echo "Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir"
  29214. echo "Ghostscript lib --with-gslib=$with_gslib $have_gslib"
  29215. echo "JBIG --with-jbig=$with_jbig $have_jbig"
  29216. echo "JPEG v1 --with-jpeg=$with_jpeg $have_jpeg"
  29217. echo "JPEG-2000 --with-jp2=$with_jp2 $have_jp2"
  29218. echo "LCMS v1 --with-lcms=$with_lcms $have_lcms"
  29219. echo "LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2"
  29220. # echo "MPEG v2 --with-mpeg2=$with_mpeg2 $have_mpeg2"
  29221. echo "LZMA --with-lzma=$with_lzma $have_lzma"
  29222. echo "Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus"
  29223. echo "PERL --with-perl=$with_perl $have_perl"
  29224. if test "${LIB_PNG}x" != 'x'
  29225. then
  29226. echo "PNG --with-png=$with_png $have_png ($LIB_PNG)"
  29227. else
  29228. echo "PNG --with-png=$with_png $have_png"
  29229. fi
  29230. echo "TIFF --with-tiff=$with_tiff $have_tiff"
  29231. echo "TRIO --with-trio=$with_trio $have_trio"
  29232. result_windows_font_dir='none'
  29233. if test "${windows_font_dir}x" != 'x'
  29234. then
  29235. result_windows_font_dir="${windows_font_dir}"
  29236. fi
  29237. echo "Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir"
  29238. echo "WMF --with-wmf=$with_wmf $have_wmf"
  29239. echo "X11 --with-x=$with_x $have_x"
  29240. echo "XML --with-xml=$with_xml $have_xml"
  29241. echo "ZLIB --with-zlib=$with_zlib $have_zlib"
  29242. echo ""
  29243. echo "X11 Configuration:"
  29244. if test "$have_x" != 'no'
  29245. then
  29246. echo " X_CFLAGS = $X_CFLAGS"
  29247. echo " X_PRE_LIBS = $X_PRE_LIBS"
  29248. echo " X_LIBS = $X_LIBS"
  29249. echo " X_EXTRA_LIBS = $X_EXTRA_LIBS"
  29250. else
  29251. echo ""
  29252. echo " Not using X11."
  29253. fi
  29254. echo ""
  29255. echo "Options used to compile and link:"
  29256. echo " CC = $CC"
  29257. echo " CFLAGS = $CFLAGS"
  29258. echo " CPPFLAGS = $CPPFLAGS"
  29259. echo " CXX = $CXX"
  29260. echo " CXXFLAGS = $CXXFLAGS"
  29261. echo " DEFS = $DEFS"
  29262. echo " LDFLAGS = $LDFLAGS"
  29263. #echo " LIBS = $TESTED_LIBS"
  29264. echo " LIBS = $MAGICK_DEP_LIBS"
  29265. echo ""