2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
5 # Report bugs to <http://www.imagemagick.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.imagemagick.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
551 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
554 test -n "$DJDIR" || exec 7<&0 </dev/null
558 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
574 # Identity of this package.
575 PACKAGE_NAME='ImageMagick'
576 PACKAGE_TARNAME='ImageMagick'
577 PACKAGE_VERSION='7.0.0-0'
578 PACKAGE_STRING='ImageMagick 7.0.0-0'
579 PACKAGE_BUGREPORT='http://www.imagemagick.org'
582 ac_unique_file="MagickCore/MagickCore.h"
583 ac_config_libobj_dir=ltdl
584 # Factoring default headers for most tests.
585 ac_includes_default="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
621 ac_subst_vars='ltdl_LTLIBOBJS
639 PERL_SUPPORTS_DESTDIR
640 WITH_PERL_DYNAMIC_FALSE
641 WITH_PERL_DYNAMIC_TRUE
642 WITH_PERL_STATIC_FALSE
643 WITH_PERL_STATIC_TRUE
708 GnuplotDecodeDelegate
722 BlenderDecodeDelegate
723 AutotraceDecodeDelegate
756 PANGOFT2_DELEGATE_FALSE
757 PANGOFT2_DELEGATE_TRUE
762 OPENEXR_DELEGATE_FALSE
763 OPENEXR_DELEGATE_TRUE
793 FREETYPE_DELEGATE_FALSE
794 FREETYPE_DELEGATE_TRUE
796 FONTCONFIG_DELEGATE_FALSE
797 FONTCONFIG_DELEGATE_TRUE
812 AUTOTRACE_DELEGATE_FALSE
813 AUTOTRACE_DELEGATE_TRUE
838 WITH_MAGICK_PLUS_PLUS_FALSE
839 WITH_MAGICK_PLUS_PLUS_TRUE
860 LIBRARY_EXTRA_CPPFLAGS
861 MODULE_EXTRA_CPPFLAGS
866 MAINTAINER_MODE_FALSE
874 WITH_SHARED_LIBS_FALSE
875 WITH_SHARED_LIBS_TRUE
878 CONVENIENCE_LTDL_FALSE
879 CONVENIENCE_LTDL_TRUE
883 sys_symbol_underscore
925 WIN32_NATIVE_BUILD_FALSE
926 WIN32_NATIVE_BUILD_TRUE
927 WINGDI32_DELEGATE_FALSE
928 WINGDI32_DELEGATE_TRUE
961 MAGICK_FILTER_MODULE_PATH
962 MAGICK_CONFIGURE_BUILD_PATH
963 MAGICK_CONFIGURE_SRC_PATH
964 MAGICK_CODER_MODULE_PATH
980 CONFIG_STATUS_DEPENDENCIES
981 MAGICK_LIB_VERSION_NUMBER
982 MAGICK_LIB_VERSION_TEXT
994 INSTALL_STRIP_PROGRAM
1009 PACKAGE_VERSION_ADDENDUM
1010 PACKAGE_RELEASE_DATE
1011 PACKAGE_LIB_VERSION_NUMBER
1015 PACKAGE_PERL_VERSION
1017 MAGICK_LIBRARY_VERSION_INFO
1018 MAGICK_LIBRARY_CURRENT_MIN
1020 MAGICK_LIBRARY_REVISION
1021 MAGICK_LIBRARY_CURRENT
1023 MAGICK_TARGET_VENDOR
1038 DISTCHECK_CONFIG_FLAGS
1066 program_transform_name
1079 enable_option_checking
1081 enable_dependency_tracking
1084 enable_bounds_checking
1085 enable_osx_universal_binary
1090 with_includedir_arch
1103 enable_delegate_build
1107 enable_zero_configuration
1110 enable_maintainer_mode
1120 with_magick_plus_plus
1131 with_dejavu_font_dir
1153 with_windows_font_dir
1157 ac_precious_vars='build_alias
1190 # Initialize some variables set by options.
1192 ac_init_version=false
1193 ac_unrecognized_opts=
1194 ac_unrecognized_sep=
1195 # The variables have the same names as the options, with
1196 # dashes changed to underlines.
1197 cache_file=/dev/null
1204 program_transform_name=s,x,x,
1212 # Installation directory options.
1213 # These are left unexpanded so users can "make install exec_prefix=/foo"
1214 # and all the variables that are supposed to be based on exec_prefix
1215 # by default will actually change.
1216 # Use braces instead of parens because sh, perl, etc. also accept them.
1217 # (The list follows the same order as the GNU Coding Standards.)
1218 bindir='${exec_prefix}/bin'
1219 sbindir='${exec_prefix}/sbin'
1220 libexecdir='${exec_prefix}/libexec'
1221 datarootdir='${prefix}/share'
1222 datadir='${datarootdir}'
1223 sysconfdir='${prefix}/etc'
1224 sharedstatedir='${prefix}/com'
1225 localstatedir='${prefix}/var'
1226 includedir='${prefix}/include'
1227 oldincludedir='/usr/include'
1228 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229 infodir='${datarootdir}/info'
1234 libdir='${exec_prefix}/lib'
1235 localedir='${datarootdir}/locale'
1236 mandir='${datarootdir}/man'
1242 # If the previous option needs an argument, assign it.
1243 if test -n "$ac_prev"; then
1244 eval $ac_prev=\$ac_option
1250 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1255 # Accept the important Cygnus configure options, so we can diagnose typos.
1257 case $ac_dashdash$ac_option in
1261 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1263 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1264 bindir=$ac_optarg ;;
1266 -build | --build | --buil | --bui | --bu)
1267 ac_prev=build_alias ;;
1268 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1269 build_alias=$ac_optarg ;;
1271 -cache-file | --cache-file | --cache-fil | --cache-fi \
1272 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1273 ac_prev=cache_file ;;
1274 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1275 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1276 cache_file=$ac_optarg ;;
1278 --config-cache | -C)
1279 cache_file=config.cache ;;
1281 -datadir | --datadir | --datadi | --datad)
1283 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1284 datadir=$ac_optarg ;;
1286 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1287 | --dataroo | --dataro | --datar)
1288 ac_prev=datarootdir ;;
1289 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1290 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1291 datarootdir=$ac_optarg ;;
1293 -disable-* | --disable-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error $? "invalid feature name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "enable_$ac_useropt"
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval enable_$ac_useropt=no ;;
1309 -docdir | --docdir | --docdi | --doc | --do)
1311 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312 docdir=$ac_optarg ;;
1314 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1316 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317 dvidir=$ac_optarg ;;
1319 -enable-* | --enable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error $? "invalid feature name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1328 "enable_$ac_useropt"
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1333 eval enable_$ac_useropt=\$ac_optarg ;;
1335 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1336 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1337 | --exec | --exe | --ex)
1338 ac_prev=exec_prefix ;;
1339 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1340 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1341 | --exec=* | --exe=* | --ex=*)
1342 exec_prefix=$ac_optarg ;;
1344 -gas | --gas | --ga | --g)
1345 # Obsolete; use --with-gas.
1348 -help | --help | --hel | --he | -h)
1349 ac_init_help=long ;;
1350 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1351 ac_init_help=recursive ;;
1352 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1353 ac_init_help=short ;;
1355 -host | --host | --hos | --ho)
1356 ac_prev=host_alias ;;
1357 -host=* | --host=* | --hos=* | --ho=*)
1358 host_alias=$ac_optarg ;;
1360 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1362 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1364 htmldir=$ac_optarg ;;
1366 -includedir | --includedir | --includedi | --included | --include \
1367 | --includ | --inclu | --incl | --inc)
1368 ac_prev=includedir ;;
1369 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1370 | --includ=* | --inclu=* | --incl=* | --inc=*)
1371 includedir=$ac_optarg ;;
1373 -infodir | --infodir | --infodi | --infod | --info | --inf)
1375 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1376 infodir=$ac_optarg ;;
1378 -libdir | --libdir | --libdi | --libd)
1380 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1381 libdir=$ac_optarg ;;
1383 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1384 | --libexe | --libex | --libe)
1385 ac_prev=libexecdir ;;
1386 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1387 | --libexe=* | --libex=* | --libe=*)
1388 libexecdir=$ac_optarg ;;
1390 -localedir | --localedir | --localedi | --localed | --locale)
1391 ac_prev=localedir ;;
1392 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1393 localedir=$ac_optarg ;;
1395 -localstatedir | --localstatedir | --localstatedi | --localstated \
1396 | --localstate | --localstat | --localsta | --localst | --locals)
1397 ac_prev=localstatedir ;;
1398 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1399 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1400 localstatedir=$ac_optarg ;;
1402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1405 mandir=$ac_optarg ;;
1407 -nfp | --nfp | --nf)
1408 # Obsolete; use --without-fp.
1411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1412 | --no-cr | --no-c | -n)
1415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1421 | --oldin | --oldi | --old | --ol | --o)
1422 ac_prev=oldincludedir ;;
1423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1426 oldincludedir=$ac_optarg ;;
1428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1431 prefix=$ac_optarg ;;
1433 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1434 | --program-pre | --program-pr | --program-p)
1435 ac_prev=program_prefix ;;
1436 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1438 program_prefix=$ac_optarg ;;
1440 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1441 | --program-suf | --program-su | --program-s)
1442 ac_prev=program_suffix ;;
1443 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1445 program_suffix=$ac_optarg ;;
1447 -program-transform-name | --program-transform-name \
1448 | --program-transform-nam | --program-transform-na \
1449 | --program-transform-n | --program-transform- \
1450 | --program-transform | --program-transfor \
1451 | --program-transfo | --program-transf \
1452 | --program-trans | --program-tran \
1453 | --progr-tra | --program-tr | --program-t)
1454 ac_prev=program_transform_name ;;
1455 -program-transform-name=* | --program-transform-name=* \
1456 | --program-transform-nam=* | --program-transform-na=* \
1457 | --program-transform-n=* | --program-transform-=* \
1458 | --program-transform=* | --program-transfor=* \
1459 | --program-transfo=* | --program-transf=* \
1460 | --program-trans=* | --program-tran=* \
1461 | --progr-tra=* | --program-tr=* | --program-t=*)
1462 program_transform_name=$ac_optarg ;;
1464 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1466 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1467 pdfdir=$ac_optarg ;;
1469 -psdir | --psdir | --psdi | --psd | --ps)
1471 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1478 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1480 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1482 sbindir=$ac_optarg ;;
1484 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1485 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1486 | --sharedst | --shareds | --shared | --share | --shar \
1488 ac_prev=sharedstatedir ;;
1489 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1490 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1491 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1493 sharedstatedir=$ac_optarg ;;
1495 -site | --site | --sit)
1497 -site=* | --site=* | --sit=*)
1500 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1502 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1503 srcdir=$ac_optarg ;;
1505 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1506 | --syscon | --sysco | --sysc | --sys | --sy)
1507 ac_prev=sysconfdir ;;
1508 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1509 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1510 sysconfdir=$ac_optarg ;;
1512 -target | --target | --targe | --targ | --tar | --ta | --t)
1513 ac_prev=target_alias ;;
1514 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1515 target_alias=$ac_optarg ;;
1517 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1520 -version | --version | --versio | --versi | --vers | -V)
1521 ac_init_version=: ;;
1524 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1527 as_fn_error $? "invalid package name: $ac_useropt"
1528 ac_useropt_orig=$ac_useropt
1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1535 ac_unrecognized_sep=', ';;
1537 eval with_$ac_useropt=\$ac_optarg ;;
1539 -without-* | --without-*)
1540 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1541 # Reject names that are not valid shell variable names.
1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543 as_fn_error $? "invalid package name: $ac_useropt"
1544 ac_useropt_orig=$ac_useropt
1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546 case $ac_user_opts in
1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1551 ac_unrecognized_sep=', ';;
1553 eval with_$ac_useropt=no ;;
1556 # Obsolete; use --with-x.
1559 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1560 | --x-incl | --x-inc | --x-in | --x-i)
1561 ac_prev=x_includes ;;
1562 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1563 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1564 x_includes=$ac_optarg ;;
1566 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1567 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1568 ac_prev=x_libraries ;;
1569 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1570 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1571 x_libraries=$ac_optarg ;;
1573 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1574 Try \`$0 --help' for more information"
1578 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579 # Reject names that are not valid shell variable names.
1580 case $ac_envvar in #(
1581 '' | [0-9]* | *[!_$as_cr_alnum]* )
1582 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1584 eval $ac_envvar=\$ac_optarg
1585 export $ac_envvar ;;
1588 # FIXME: should be removed in autoconf 3.0.
1589 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1590 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1591 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1592 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1598 if test -n "$ac_prev"; then
1599 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1600 as_fn_error $? "missing argument to $ac_option"
1603 if test -n "$ac_unrecognized_opts"; then
1604 case $enable_option_checking in
1606 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1607 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1611 # Check all directory arguments for consistency.
1612 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613 datadir sysconfdir sharedstatedir localstatedir includedir \
1614 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615 libdir localedir mandir
1617 eval ac_val=\$$ac_var
1618 # Remove trailing slashes.
1621 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622 eval $ac_var=\$ac_val;;
1624 # Be sure to have absolute directory names.
1626 [\\/$]* | ?:[\\/]* ) continue;;
1627 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1629 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1632 # There might be people who depend on the old broken behavior: `$host'
1633 # used to hold the argument of --host etc.
1634 # FIXME: To remove some day.
1637 target=$target_alias
1639 # FIXME: To remove some day.
1640 if test "x$host_alias" != x; then
1641 if test "x$build_alias" = x; then
1642 cross_compiling=maybe
1643 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1644 If a cross compiler is detected then cross compile mode will be used" >&2
1645 elif test "x$build_alias" != "x$host_alias"; then
1651 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1653 test "$silent" = yes && exec 6>/dev/null
1656 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1657 ac_ls_di=`ls -di .` &&
1658 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1659 as_fn_error $? "working directory cannot be determined"
1660 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1661 as_fn_error $? "pwd does not report name of working directory"
1664 # Find the source files, if location was not specified.
1665 if test -z "$srcdir"; then
1666 ac_srcdir_defaulted=yes
1667 # Try the directory containing this script, then the parent directory.
1668 ac_confdir=`$as_dirname -- "$as_myself" ||
1669 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1670 X"$as_myself" : 'X\(//\)[^/]' \| \
1671 X"$as_myself" : 'X\(//\)$' \| \
1672 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1673 $as_echo X"$as_myself" |
1674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1696 ac_srcdir_defaulted=no
1698 if test ! -r "$srcdir/$ac_unique_file"; then
1699 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1700 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1702 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1704 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1706 # When building in place, set srcdir=.
1707 if test "$ac_abs_confdir" = "$ac_pwd"; then
1710 # Remove unnecessary trailing slashes from srcdir.
1711 # Double slashes in file names in object file debugging info
1712 # mess up M-x gdb in Emacs.
1714 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1718 eval ac_env_${ac_var}_value=\$${ac_var}
1719 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1720 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1724 # Report the --help message.
1726 if test "$ac_init_help" = "long"; then
1727 # Omit some internal or obsolete options to make the list less imposing.
1728 # This message is too long to be a string in the A/UX 3.1 sh.
1730 \`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
1732 Usage: $0 [OPTION]... [VAR=VALUE]...
1734 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1735 VAR=VALUE. See below for descriptions of some of the useful variables.
1737 Defaults for the options are specified in brackets.
1740 -h, --help display this help and exit
1741 --help=short display options specific to this package
1742 --help=recursive display the short help of all the included packages
1743 -V, --version display version information and exit
1744 -q, --quiet, --silent do not print \`checking ...' messages
1745 --cache-file=FILE cache test results in FILE [disabled]
1746 -C, --config-cache alias for \`--cache-file=config.cache'
1747 -n, --no-create do not create output files
1748 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1750 Installation directories:
1751 --prefix=PREFIX install architecture-independent files in PREFIX
1752 [$ac_default_prefix]
1753 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1756 By default, \`make install' will install all the files in
1757 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1758 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1759 for instance \`--prefix=\$HOME'.
1761 For better control, use the options below.
1763 Fine tuning of the installation directories:
1764 --bindir=DIR user executables [EPREFIX/bin]
1765 --sbindir=DIR system admin executables [EPREFIX/sbin]
1766 --libexecdir=DIR program executables [EPREFIX/libexec]
1767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1769 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1770 --libdir=DIR object code libraries [EPREFIX/lib]
1771 --includedir=DIR C header files [PREFIX/include]
1772 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1773 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1774 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1775 --infodir=DIR info documentation [DATAROOTDIR/info]
1776 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1777 --mandir=DIR man documentation [DATAROOTDIR/man]
1778 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1779 --htmldir=DIR html documentation [DOCDIR]
1780 --dvidir=DIR dvi documentation [DOCDIR]
1781 --pdfdir=DIR pdf documentation [DOCDIR]
1782 --psdir=DIR ps documentation [DOCDIR]
1788 --program-prefix=PREFIX prepend PREFIX to installed program names
1789 --program-suffix=SUFFIX append SUFFIX to installed program names
1790 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1793 --x-includes=DIR X include files are in DIR
1794 --x-libraries=DIR X library files are in DIR
1797 --build=BUILD configure for building on BUILD [guessed]
1798 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1799 --target=TARGET configure for building compilers for TARGET [HOST]
1803 if test -n "$ac_init_help"; then
1804 case $ac_init_help in
1805 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
1810 --disable-option-checking ignore unrecognized --enable/--with options
1811 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1812 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1813 --enable-silent-rules less verbose build output (undo: `make V=1')
1814 --disable-silent-rules verbose build output (undo: `make V=0')
1815 --disable-dependency-tracking speeds up one-time build
1816 --enable-dependency-tracking do not reject slow dependency extractors
1817 --bounds-checking enable run-time bounds-checking
1818 --enable-osx-universal-binary
1819 build universal binary on OS X [[default=no]]
1820 --disable-openmp do not use OpenMP
1821 --disable-opencl do not use OpenCL
1822 --disable-largefile omit support for large files
1823 --enable-shared[=PKGS] build shared libraries [default=yes]
1824 --enable-static[=PKGS] build static libraries [default=yes]
1825 --enable-fast-install[=PKGS]
1826 optimize for fast installation [default=yes]
1827 --disable-libtool-lock avoid locking (might break parallel builds)
1828 --enable-ltdl-install install libltdl
1829 --enable-delegate-build look for delegate libraries in build directory
1830 --disable-deprecated exclude deprecated methods in MagickCore and
1832 --disable-installed Formally install ImageMagick under PREFIX
1833 --disable-cipher disable enciphering and deciphering image pixels
1834 --enable-zero-configuration
1835 enable self-contained, embeddable,
1836 zero-configuration ImageMagick
1837 --enable-hdri accurately represent the wide range of intensity
1838 levels found in real scenes
1839 --disable-assert disable assert() statements in build
1840 --enable-maintainer-mode enable make rules and dependencies not useful
1841 (and sometimes confusing) to the casual installer
1842 --enable-ccmalloc enable 'ccmalloc' memory debug support
1843 --enable-efence enable 'efence' memory debug support
1844 --enable-prof enable 'prof' profiling support
1845 --enable-gprof enable 'gprof' profiling support
1846 --enable-gcov enable 'gcov' profiling support
1847 --disable-assert turn off assertions
1850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-dmalloc use dmalloc, as in
1854 http://www.dmalloc.com/dmalloc.tar.gz
1855 --without-threads disable threads support
1856 --includedir-arch=DIR ARCH specific include directory
1857 --configdir-arch=DIR ARCH specific config directory
1858 --with-pic try to use only PIC/non-PIC objects [default=use
1860 --with-sysroot=DIR Search for dependent libraries within DIR
1861 (or the compiler's sysroot if not specified).
1862 --with-included-ltdl use the GNU ltdl sources included here
1863 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1864 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1865 --with-modules enable building dynamically loadable modules
1866 --with-method-prefix=PREFIX
1867 prefix MagickCore API methods
1868 --with-quantum-depth=DEPTH
1869 number of bits in a pixel quantum (default 16)
1870 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1872 --with-frozenpaths freeze delegate paths
1873 --without-magick-plus-plus
1874 disable build/install of Magick++
1875 --with-perl enable build/install of PerlMagick
1876 --with-perl-options=OPTIONS
1877 options to pass on command-line when generating
1878 PerlMagick's build file
1879 --with-umem enable umem memory allocation library support
1880 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1881 --without-bzlib disable BZLIB support
1882 --with-x use the X Window System
1883 --without-zlib disable ZLIB support
1884 --with-autotrace enable autotrace support
1885 --without-dps disable Display Postscript support
1886 --without-djvu disable DjVu support
1887 --with-dejavu-font-dir=DIR
1888 DejaVu font directory
1889 --without-fftw disable FFTW support
1890 --without-fpx disable FlashPIX support
1891 --without-fontconfig disable fontconfig support
1892 --without-freetype disable Freetype support
1893 --without-gslib enable Ghostscript library support
1894 --with-fontpath=DIR prepend to default font search path
1895 --with-gs-font-dir=DIR Ghostscript font directory
1896 --without-gvc disable GVC support
1897 --without-jbig disable JBIG support
1898 --without-jpeg disable JPEG support
1899 --without-jp2 disable JPEG-2000 support
1900 --without-lcms disable lcms (v1.1X) support
1901 --without-lcms2 disable lcms (v2.X) support
1902 --without-lqr disable Liquid Rescale support
1903 --without-lzma disable LZMA support
1904 --without-openexr disable OpenEXR support
1905 --without-pango disable PANGO support
1906 --without-png disable PNG support
1907 --without-rsvg disable RSVG support
1908 --without-tiff disable TIFF support
1909 --without-webp disable WEBP support
1910 --with-windows-font-dir=DIR
1911 directory containing MS-Windows fonts
1912 --without-wmf disable WMF support
1913 --without-xml disable XML support
1915 Some influential environment variables:
1916 CC C compiler command
1917 CFLAGS C compiler flags
1918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1919 nonstandard directory <lib dir>
1920 LIBS libraries to pass to the linker, e.g. -l<library>
1921 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1922 you have headers in a nonstandard directory <include dir>
1924 CXX C++ compiler command
1925 CXXFLAGS C++ compiler flags
1926 PKG_CONFIG path to pkg-config utility
1927 CXXCPP C++ preprocessor
1928 XMKMF Path to xmkmf, Makefile generator for X Window System
1930 C compiler flags for AUTOTRACE, overriding pkg-config
1932 linker flags for AUTOTRACE, overriding pkg-config
1934 C compiler flags for FONTCONFIG, overriding pkg-config
1936 linker flags for FONTCONFIG, overriding pkg-config
1937 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1938 GVC_LIBS linker flags for GVC, overriding pkg-config
1939 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1940 LQR_LIBS linker flags for LQR, overriding pkg-config
1942 C compiler flags for OPENEXR, overriding pkg-config
1944 linker flags for OPENEXR, overriding pkg-config
1946 C compiler flags for PANGO, overriding pkg-config
1947 PANGO_LIBS linker flags for PANGO, overriding pkg-config
1948 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1949 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1951 C compiler flags for CAIRO_SVG, overriding pkg-config
1953 linker flags for CAIRO_SVG, overriding pkg-config
1955 Use these variables to override the choices made by `configure' or to help
1956 it to find libraries and programs with nonstandard names/locations.
1958 Report bugs to <http://www.imagemagick.org>.
1963 if test "$ac_init_help" = "recursive"; then
1964 # If there are subdirs, report their specific --help.
1965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966 test -d "$ac_dir" ||
1967 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1975 # A ".." for each directory in $ac_dir_suffix.
1976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1977 case $ac_top_builddir_sub in
1978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1982 ac_abs_top_builddir=$ac_pwd
1983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1984 # for backward compatibility:
1985 ac_top_builddir=$ac_top_build_prefix
1988 .) # We are building in place.
1990 ac_top_srcdir=$ac_top_builddir_sub
1991 ac_abs_top_srcdir=$ac_pwd ;;
1992 [\\/]* | ?:[\\/]* ) # Absolute name.
1993 ac_srcdir=$srcdir$ac_dir_suffix;
1994 ac_top_srcdir=$srcdir
1995 ac_abs_top_srcdir=$srcdir ;;
1997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1998 ac_top_srcdir=$ac_top_build_prefix$srcdir
1999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2003 cd "$ac_dir" || { ac_status=$?; continue; }
2004 # Check for guested configure.
2005 if test -f "$ac_srcdir/configure.gnu"; then
2007 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2008 elif test -f "$ac_srcdir/configure"; then
2010 $SHELL "$ac_srcdir/configure" --help=recursive
2012 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2014 cd "$ac_pwd" || { ac_status=$?; break; }
2018 test -n "$ac_init_help" && exit $ac_status
2019 if $ac_init_version; then
2021 ImageMagick configure 7.0.0-0
2022 generated by GNU Autoconf 2.68
2024 Copyright (C) 2010 Free Software Foundation, Inc.
2025 This configure script is free software; the Free Software Foundation
2026 gives unlimited permission to copy, distribute and modify it.
2031 ## ------------------------ ##
2032 ## Autoconf initialization. ##
2033 ## ------------------------ ##
2035 # ac_fn_c_try_compile LINENO
2036 # --------------------------
2037 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2038 ac_fn_c_try_compile ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 rm -f conftest.$ac_objext
2042 if { { ac_try="$ac_compile"
2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045 *) ac_try_echo=$ac_try;;
2047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048 $as_echo "$ac_try_echo"; } >&5
2049 (eval "$ac_compile") 2>conftest.err
2051 if test -s conftest.err; then
2052 grep -v '^ *+' conftest.err >conftest.er1
2053 cat conftest.er1 >&5
2054 mv -f conftest.er1 conftest.err
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && {
2058 test -z "$ac_c_werror_flag" ||
2059 test ! -s conftest.err
2060 } && test -s conftest.$ac_objext; then :
2063 $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 as_fn_set_status $ac_retval
2071 } # ac_fn_c_try_compile
2073 # ac_fn_c_try_cpp LINENO
2074 # ----------------------
2075 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if { { ac_try="$ac_cpp conftest.$ac_ext"
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094 test $ac_status = 0; } > conftest.i && {
2095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2096 test ! -s conftest.err
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 as_fn_set_status $ac_retval
2110 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2111 # -------------------------------------------------------
2112 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2113 # the include files in INCLUDES and setting the cache variable VAR
2115 ac_fn_c_check_header_mongrel ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if eval \${$3+:} false; then :
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \${$3+:} false; then :
2122 $as_echo_n "(cached) " >&6
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2128 # Is the header compilable?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2130 $as_echo_n "checking $2 usability... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_header_compiler=yes
2139 ac_header_compiler=no
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2143 $as_echo "$ac_header_compiler" >&6; }
2145 # Is the header present?
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2147 $as_echo_n "checking $2 presence... " >&6; }
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2152 if ac_fn_c_try_cpp "$LINENO"; then :
2153 ac_header_preproc=yes
2155 ac_header_preproc=no
2157 rm -f conftest.err conftest.i conftest.$ac_ext
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2159 $as_echo "$ac_header_preproc" >&6; }
2161 # So? What about this header?
2162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2165 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2171 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2173 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2175 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2177 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 ( $as_echo "## ----------------------------------------- ##
2181 ## Report this to http://www.imagemagick.org ##
2182 ## ----------------------------------------- ##"
2183 ) | sed "s/^/$as_me: WARNING: /" >&2
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189 $as_echo_n "(cached) " >&6
2191 eval "$3=\$ac_header_compiler"
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_c_check_header_mongrel
2201 # ac_fn_c_try_run LINENO
2202 # ----------------------
2203 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2204 # that executables *can* be run.
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { { ac_try="$ac_link"
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_link") 2>&5
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2219 { { case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_try") 2>&5
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; }; }; then :
2231 $as_echo "$as_me: program exited with status $ac_status" >&5
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2235 ac_retval=$ac_status
2237 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 as_fn_set_status $ac_retval
2243 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2244 # -------------------------------------------------------
2245 # Tests whether HEADER exists and can be compiled using the include files in
2246 # INCLUDES, setting the cache variable VAR accordingly.
2247 ac_fn_c_check_header_compile ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if eval \${$3+:} false; then :
2253 $as_echo_n "(cached) " >&6
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2260 if ac_fn_c_try_compile "$LINENO"; then :
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 } # ac_fn_c_check_header_compile
2274 # ac_fn_cxx_try_compile LINENO
2275 # ----------------------------
2276 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2277 ac_fn_cxx_try_compile ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 rm -f conftest.$ac_objext
2281 if { { ac_try="$ac_compile"
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2287 $as_echo "$ac_try_echo"; } >&5
2288 (eval "$ac_compile") 2>conftest.err
2290 if test -s conftest.err; then
2291 grep -v '^ *+' conftest.err >conftest.er1
2292 cat conftest.er1 >&5
2293 mv -f conftest.er1 conftest.err
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && {
2297 test -z "$ac_cxx_werror_flag" ||
2298 test ! -s conftest.err
2299 } && test -s conftest.$ac_objext; then :
2302 $as_echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308 as_fn_set_status $ac_retval
2310 } # ac_fn_cxx_try_compile
2312 # ac_fn_c_try_link LINENO
2313 # -----------------------
2314 # Try to link conftest.$ac_ext, and return whether this succeeded.
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 rm -f conftest.$ac_objext conftest$ac_exeext
2319 if { { ac_try="$ac_link"
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 $as_echo "$ac_try_echo"; } >&5
2326 (eval "$ac_link") 2>conftest.err
2328 if test -s conftest.err; then
2329 grep -v '^ *+' conftest.err >conftest.er1
2330 cat conftest.er1 >&5
2331 mv -f conftest.er1 conftest.err
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && {
2335 test -z "$ac_c_werror_flag" ||
2336 test ! -s conftest.err
2337 } && test -s conftest$ac_exeext && {
2338 test "$cross_compiling" = yes ||
2339 $as_test_x conftest$ac_exeext
2343 $as_echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2348 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2349 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2350 # interfere with the next link command; also delete a directory that is
2351 # left behind by Apple's compiler. We do this before executing the actions.
2352 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2356 } # ac_fn_c_try_link
2358 # ac_fn_c_check_func LINENO FUNC VAR
2359 # ----------------------------------
2360 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2361 ac_fn_c_check_func ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if eval \${$3+:} false; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2373 #define $2 innocuous_$2
2375 /* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char $2 (); below.
2377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 <limits.h> exists even on freestanding compilers. */
2381 # include <limits.h>
2383 # include <assert.h>
2388 /* Override any GCC internal prototype to avoid an error.
2389 Use char because int might match the return type of a GCC
2390 builtin and then its argument prototype would still apply. */
2395 /* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398 #if defined __stub_$2 || defined __stub___$2
2410 if ac_fn_c_try_link "$LINENO"; then :
2415 rm -f core conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423 } # ac_fn_c_check_func
2425 # ac_fn_cxx_try_cpp LINENO
2426 # ------------------------
2427 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2428 ac_fn_cxx_try_cpp ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 if { { ac_try="$ac_cpp conftest.$ac_ext"
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2440 if test -s conftest.err; then
2441 grep -v '^ *+' conftest.err >conftest.er1
2442 cat conftest.er1 >&5
2443 mv -f conftest.er1 conftest.err
2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2446 test $ac_status = 0; } > conftest.i && {
2447 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2448 test ! -s conftest.err
2452 $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 as_fn_set_status $ac_retval
2460 } # ac_fn_cxx_try_cpp
2462 # ac_fn_cxx_try_link LINENO
2463 # -------------------------
2464 # Try to link conftest.$ac_ext, and return whether this succeeded.
2465 ac_fn_cxx_try_link ()
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { { ac_try="$ac_link"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_link") 2>conftest.err
2478 if test -s conftest.err; then
2479 grep -v '^ *+' conftest.err >conftest.er1
2480 cat conftest.er1 >&5
2481 mv -f conftest.er1 conftest.err
2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; } && {
2485 test -z "$ac_cxx_werror_flag" ||
2486 test ! -s conftest.err
2487 } && test -s conftest$ac_exeext && {
2488 test "$cross_compiling" = yes ||
2489 $as_test_x conftest$ac_exeext
2493 $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2498 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2499 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2500 # interfere with the next link command; also delete a directory that is
2501 # left behind by Apple's compiler. We do this before executing the actions.
2502 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504 as_fn_set_status $ac_retval
2506 } # ac_fn_cxx_try_link
2508 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2509 # ---------------------------------------------
2510 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2512 ac_fn_c_check_decl ()
2514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2515 as_decl_name=`echo $2|sed 's/ *(.*//'`
2516 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2518 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2519 if eval \${$3+:} false; then :
2520 $as_echo_n "(cached) " >&6
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2528 #ifndef $as_decl_name
2530 (void) $as_decl_use;
2532 (void) $as_decl_name;
2540 if ac_fn_c_try_compile "$LINENO"; then :
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552 } # ac_fn_c_check_decl
2554 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555 # -------------------------------------------
2556 # Tests whether TYPE exists after having included INCLUDES, setting cache
2557 # variable VAR accordingly.
2558 ac_fn_c_check_type ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if eval \${$3+:} false; then :
2564 $as_echo_n "(cached) " >&6
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2592 if ac_fn_c_try_compile "$LINENO"; then :
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 } # ac_fn_c_check_type
2608 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2609 # ----------------------------------------------------
2610 # Tries to find if the field MEMBER exists in type AGGR, after including
2611 # INCLUDES, setting cache variable VAR accordingly.
2612 ac_fn_c_check_member ()
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2616 $as_echo_n "checking for $2.$3... " >&6; }
2617 if eval \${$4+:} false; then :
2618 $as_echo_n "(cached) " >&6
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2633 if ac_fn_c_try_compile "$LINENO"; then :
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2643 if (sizeof ac_aggr.$3)
2649 if ac_fn_c_try_compile "$LINENO"; then :
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2663 } # ac_fn_c_check_member
2665 # ac_fn_c_find_intX_t LINENO BITS VAR
2666 # -----------------------------------
2667 # Finds a signed integer type with width BITS, setting cache variable VAR
2669 ac_fn_c_find_intX_t ()
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2673 $as_echo_n "checking for int$2_t... " >&6; }
2674 if eval \${$3+:} false; then :
2675 $as_echo_n "(cached) " >&6
2678 # Order is important - never check a type that is potentially smaller
2679 # than half of the expected target width.
2680 for ac_type in int$2_t 'int' 'long int' \
2681 'long long int' 'short int' 'signed char'; do
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2684 $ac_includes_default
2685 enum { N = $2 / 2 - 1 };
2689 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2696 if ac_fn_c_try_compile "$LINENO"; then :
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h. */
2699 $ac_includes_default
2700 enum { N = $2 / 2 - 1 };
2704 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2705 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2712 if ac_fn_c_try_compile "$LINENO"; then :
2719 eval "$3=\$ac_type" ;;
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 if eval test \"x\$"$3"\" = x"no"; then :
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734 $as_echo "$ac_res" >&6; }
2735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2737 } # ac_fn_c_find_intX_t
2739 # ac_fn_c_find_uintX_t LINENO BITS VAR
2740 # ------------------------------------
2741 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2743 ac_fn_c_find_uintX_t ()
2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2747 $as_echo_n "checking for uint$2_t... " >&6; }
2748 if eval \${$3+:} false; then :
2749 $as_echo_n "(cached) " >&6
2752 # Order is important - never check a type that is potentially smaller
2753 # than half of the expected target width.
2754 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2755 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2758 $ac_includes_default
2762 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2769 if ac_fn_c_try_compile "$LINENO"; then :
2774 eval "$3=\$ac_type" ;;
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 if eval test \"x\$"$3"\" = x"no"; then :
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 } # ac_fn_c_find_uintX_t
2792 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2793 # --------------------------------------------
2794 # Tries to find the compile-time value of EXPR in a program that includes
2795 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2797 ac_fn_c_compute_int ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 if test "$cross_compiling" = yes; then
2801 # Depending upon the size, compute the lo and hi bounds.
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2808 static int test_array [1 - 2 * !(($2) >= 0)];
2815 if ac_fn_c_try_compile "$LINENO"; then :
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2824 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832 ac_hi=$ac_mid; break
2834 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2835 if test $ac_lo -le $ac_mid; then
2839 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2850 static int test_array [1 - 2 * !(($2) < 0)];
2857 if ac_fn_c_try_compile "$LINENO"; then :
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2866 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2873 if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_lo=$ac_mid; break
2876 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2877 if test $ac_mid -le $ac_hi; then
2881 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 # Binary search between lo and hi bounds.
2892 while test "x$ac_lo" != "x$ac_hi"; do
2893 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2900 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2907 if ac_fn_c_try_compile "$LINENO"; then :
2910 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2922 static long int longval () { return $2; }
2923 static unsigned long int ulongval () { return $2; }
2930 FILE *f = fopen ("conftest.val", "w");
2935 long int i = longval ();
2938 fprintf (f, "%ld", i);
2942 unsigned long int i = ulongval ();
2945 fprintf (f, "%lu", i);
2947 /* Do not output a trailing newline, as this causes \r\n confusion
2948 on some platforms. */
2949 return ferror (f) || fclose (f) != 0;
2955 if ac_fn_c_try_run "$LINENO"; then :
2956 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2961 conftest.$ac_objext conftest.beam conftest.$ac_ext
2965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2966 as_fn_set_status $ac_retval
2968 } # ac_fn_c_compute_int
2970 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2971 # ---------------------------------------------------------
2972 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2973 # the include files in INCLUDES and setting the cache variable VAR
2975 ac_fn_cxx_check_header_mongrel ()
2977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2978 if eval \${$3+:} false; then :
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2980 $as_echo_n "checking for $2... " >&6; }
2981 if eval \${$3+:} false; then :
2982 $as_echo_n "(cached) " >&6
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986 $as_echo "$ac_res" >&6; }
2988 # Is the header compilable?
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2990 $as_echo_n "checking $2 usability... " >&6; }
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
2996 if ac_fn_cxx_try_compile "$LINENO"; then :
2997 ac_header_compiler=yes
2999 ac_header_compiler=no
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3003 $as_echo "$ac_header_compiler" >&6; }
3005 # Is the header present?
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3007 $as_echo_n "checking $2 presence... " >&6; }
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3012 if ac_fn_cxx_try_cpp "$LINENO"; then :
3013 ac_header_preproc=yes
3015 ac_header_preproc=no
3017 rm -f conftest.err conftest.i conftest.$ac_ext
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3019 $as_echo "$ac_header_preproc" >&6; }
3021 # So? What about this header?
3022 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3025 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3031 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3033 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3035 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3037 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3040 ( $as_echo "## ----------------------------------------- ##
3041 ## Report this to http://www.imagemagick.org ##
3042 ## ----------------------------------------- ##"
3043 ) | sed "s/^/$as_me: WARNING: /" >&2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3047 $as_echo_n "checking for $2... " >&6; }
3048 if eval \${$3+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 eval "$3=\$ac_header_compiler"
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3055 $as_echo "$ac_res" >&6; }
3057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3059 } # ac_fn_cxx_check_header_mongrel
3060 cat >config.log <<_ACEOF
3061 This file contains any messages produced by compilers while
3062 running configure, to aid debugging if configure makes a mistake.
3064 It was created by ImageMagick $as_me 7.0.0-0, which was
3065 generated by GNU Autoconf 2.68. Invocation command line was
3077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3089 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 $as_echo "PATH: $as_dir"
3117 # Keep a trace of the command line.
3118 # Strip out --no-create and --no-recursion so they do not pile up.
3119 # Strip out --silent because we don't want to record it for future runs.
3120 # Also quote any args containing shell meta-characters.
3121 # Make two passes to allow for proper duplicate-argument suppression.
3125 ac_must_keep_next=false
3131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3133 | -silent | --silent | --silen | --sile | --sil)
3136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3141 as_fn_append ac_configure_args1 " '$ac_arg'"
3142 if test $ac_must_keep_next = true; then
3143 ac_must_keep_next=false # Got value, back to normal.
3146 *=* | --config-cache | -C | -disable-* | --disable-* \
3147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3149 | -with-* | --with-* | -without-* | --without-* | --x)
3150 case "$ac_configure_args0 " in
3151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3154 -* ) ac_must_keep_next=true ;;
3157 as_fn_append ac_configure_args " '$ac_arg'"
3162 { ac_configure_args0=; unset ac_configure_args0;}
3163 { ac_configure_args1=; unset ac_configure_args1;}
3165 # When interrupted or exit'd, cleanup temporary files, and complete
3166 # config.log. We remove comments because anyway the quotes in there
3167 # would cause problems or look ugly.
3168 # WARNING: Use '\'' to represent an apostrophe within the trap.
3169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3170 trap 'exit_status=$?
3171 # Save into config.log some information that might help in debugging.
3175 $as_echo "## ---------------- ##
3176 ## Cache variables. ##
3177 ## ---------------- ##"
3179 # The following way of writing the cache mishandles newlines in values,
3181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3182 eval ac_val=\$$ac_var
3186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3190 _ | IFS | as_nl) ;; #(
3191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3192 *) { eval $ac_var=; unset $ac_var;} ;;
3197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3198 *${as_nl}ac_space=\ *)
3200 "s/'\''/'\''\\\\'\'''\''/g;
3201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3211 $as_echo "## ----------------- ##
3212 ## Output variables. ##
3213 ## ----------------- ##"
3215 for ac_var in $ac_subst_vars
3217 eval ac_val=\$$ac_var
3219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3221 $as_echo "$ac_var='\''$ac_val'\''"
3225 if test -n "$ac_subst_files"; then
3226 $as_echo "## ------------------- ##
3227 ## File substitutions. ##
3228 ## ------------------- ##"
3230 for ac_var in $ac_subst_files
3232 eval ac_val=\$$ac_var
3234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3236 $as_echo "$ac_var='\''$ac_val'\''"
3241 if test -s confdefs.h; then
3242 $as_echo "## ----------- ##
3249 test "$ac_signal" != 0 &&
3250 $as_echo "$as_me: caught signal $ac_signal"
3251 $as_echo "$as_me: exit $exit_status"
3253 rm -f core *.core core.conftest.* &&
3254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3257 for ac_signal in 1 2 13 15; do
3258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3263 rm -f -r conftest* confdefs.h
3265 $as_echo "/* confdefs.h */" > confdefs.h
3267 # Predefined preprocessor variables.
3269 cat >>confdefs.h <<_ACEOF
3270 #define PACKAGE_NAME "$PACKAGE_NAME"
3273 cat >>confdefs.h <<_ACEOF
3274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3277 cat >>confdefs.h <<_ACEOF
3278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3281 cat >>confdefs.h <<_ACEOF
3282 #define PACKAGE_STRING "$PACKAGE_STRING"
3285 cat >>confdefs.h <<_ACEOF
3286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE_URL "$PACKAGE_URL"
3294 # Let the site file select an alternate cache file if it wants to.
3295 # Prefer an explicitly selected file to automatically selected ones.
3298 if test -n "$CONFIG_SITE"; then
3299 # We do not want a PATH search for config.site.
3300 case $CONFIG_SITE in #((
3301 -*) ac_site_file1=./$CONFIG_SITE;;
3302 */*) ac_site_file1=$CONFIG_SITE;;
3303 *) ac_site_file1=./$CONFIG_SITE;;
3305 elif test "x$prefix" != xNONE; then
3306 ac_site_file1=$prefix/share/config.site
3307 ac_site_file2=$prefix/etc/config.site
3309 ac_site_file1=$ac_default_prefix/share/config.site
3310 ac_site_file2=$ac_default_prefix/etc/config.site
3312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3314 test "x$ac_site_file" = xNONE && continue
3315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3318 sed 's/^/| /' "$ac_site_file" >&5
3320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "failed to load site script $ac_site_file
3323 See \`config.log' for more details" "$LINENO" 5; }
3327 if test -r "$cache_file"; then
3328 # Some versions of bash will fail to source /dev/null (special files
3329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3332 $as_echo "$as_me: loading cache $cache_file" >&6;}
3334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3335 *) . "./$cache_file";;
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3340 $as_echo "$as_me: creating cache $cache_file" >&6;}
3344 as_fn_append ac_header_list " stdlib.h"
3345 as_fn_append ac_header_list " unistd.h"
3346 as_fn_append ac_header_list " sys/param.h"
3347 # Check that the precious variables saved in the cache have kept the same
3349 ac_cache_corrupted=false
3350 for ac_var in $ac_precious_vars; do
3351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3352 eval ac_new_set=\$ac_env_${ac_var}_set
3353 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3354 eval ac_new_val=\$ac_env_${ac_var}_value
3355 case $ac_old_set,$ac_new_set in
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3358 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3359 ac_cache_corrupted=: ;;
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3362 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3363 ac_cache_corrupted=: ;;
3366 if test "x$ac_old_val" != "x$ac_new_val"; then
3367 # differences in whitespace do not lead to failure.
3368 ac_old_val_w=`echo x $ac_old_val`
3369 ac_new_val_w=`echo x $ac_new_val`
3370 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3372 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3373 ac_cache_corrupted=:
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3376 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3377 eval $ac_var=\$ac_old_val
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3380 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3382 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3385 # Pass precious variables to config.status.
3386 if test "$ac_new_set" = set; then
3388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3389 *) ac_arg=$ac_var=$ac_new_val ;;
3391 case " $ac_configure_args " in
3392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3393 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3397 if $ac_cache_corrupted; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3401 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3402 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3404 ## -------------------- ##
3405 ## Main body of script. ##
3406 ## -------------------- ##
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 for ac_dir in config "$srcdir"/config; do
3418 if test -f "$ac_dir/install-sh"; then
3420 ac_install_sh="$ac_aux_dir/install-sh -c"
3422 elif test -f "$ac_dir/install.sh"; then
3424 ac_install_sh="$ac_aux_dir/install.sh -c"
3426 elif test -f "$ac_dir/shtool"; then
3428 ac_install_sh="$ac_aux_dir/shtool install -c"
3432 if test -z "$ac_aux_dir"; then
3433 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3436 # These three variables are undocumented and unsupported,
3437 # and are intended to be withdrawn in a future Autoconf release.
3438 # They can cause serious problems if a builder's source tree is in a directory
3439 # whose full name contains unusual characters.
3440 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3441 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3442 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3447 ac_config_headers="$ac_config_headers config/config.h"
3450 ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3452 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
3456 # Save initial user-tunable values
3459 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3460 eval isset=\${$var+set}
3461 if test "$isset" = 'set'; then
3462 eval val=$`echo $var`
3463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3468 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3471 # Source file containing package/library versioning information.
3472 . ${srcdir}/version.sh
3474 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3475 # Make sure we can run config.sub.
3476 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3477 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3480 $as_echo_n "checking build system type... " >&6; }
3481 if ${ac_cv_build+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 ac_build_alias=$build_alias
3485 test "x$ac_build_alias" = x &&
3486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3487 test "x$ac_build_alias" = x &&
3488 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3489 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3494 $as_echo "$ac_cv_build" >&6; }
3495 case $ac_cv_build in
3497 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3500 ac_save_IFS=$IFS; IFS='-'
3506 # Remember, the first character of IFS is used to create $*,
3507 # except with old shells:
3510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3514 $as_echo_n "checking host system type... " >&6; }
3515 if ${ac_cv_host+:} false; then :
3516 $as_echo_n "(cached) " >&6
3518 if test "x$host_alias" = x; then
3519 ac_cv_host=$ac_cv_build
3521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3527 $as_echo "$ac_cv_host" >&6; }
3530 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3533 ac_save_IFS=$IFS; IFS='-'
3539 # Remember, the first character of IFS is used to create $*,
3540 # except with old shells:
3543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3547 $as_echo_n "checking target system type... " >&6; }
3548 if ${ac_cv_target+:} false; then :
3549 $as_echo_n "(cached) " >&6
3551 if test "x$target_alias" = x; then
3552 ac_cv_target=$ac_cv_host
3554 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3560 $as_echo "$ac_cv_target" >&6; }
3561 case $ac_cv_target in
3563 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3565 target=$ac_cv_target
3566 ac_save_IFS=$IFS; IFS='-'
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3576 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3579 # The aliases save the names the user supplied, while $host etc.
3580 # will get canonicalized.
3581 test -n "$target_alias" &&
3582 test "$program_prefix$program_suffix$program_transform_name" = \
3584 program_prefix=${target_alias}-
3589 MAGICK_TARGET_CPU=$host_cpu
3592 MAGICK_TARGET_VENDOR=$host_vendor
3595 MAGICK_TARGET_OS=$host_os
3598 # Substitute library versioning
3599 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3601 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3603 MAGICK_SVN_REVISION=5750
3608 # Ensure that make can run correctly
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3610 $as_echo_n "checking whether build environment is sane... " >&6; }
3613 echo timestamp > conftest.file
3614 # Reject unsafe characters in $srcdir or the absolute working directory
3615 # name. Accept space and tab only in the latter.
3619 *[\\\"\#\$\&\'\`$am_lf]*)
3620 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3624 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3627 # Do `set' in a subshell so we don't clobber the current shell's
3628 # arguments. Must try -L first in case configure is actually a
3629 # symlink; some systems play weird games with the mod time of symlinks
3630 # (eg FreeBSD returns the mod time of the symlink's containing
3633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3634 if test "$*" = "X"; then
3636 set X `ls -t "$srcdir/configure" conftest.file`
3639 if test "$*" != "X $srcdir/configure conftest.file" \
3640 && test "$*" != "X conftest.file $srcdir/configure"; then
3642 # If neither matched, then we have a broken ls. This can happen
3643 # if, for instance, CONFIG_SHELL is bash and it inherits a
3644 # broken ls alias from the environment. This has actually
3645 # happened. Such a system could not be considered "sane".
3646 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3647 alias in your environment" "$LINENO" 5
3650 test "$2" = conftest.file
3656 as_fn_error $? "newly created file is older than distributed files!
3657 Check your system clock" "$LINENO" 5
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3662 am__api_version='1.11'
3664 # Find a good install program. We prefer a C program (faster),
3665 # so one script is as good as another. But avoid the broken or
3666 # incompatible versions:
3667 # SysV /etc/install, /usr/sbin/install
3668 # SunOS /usr/etc/install
3669 # IRIX /sbin/install
3671 # AmigaOS /C/install, which installs bootblocks on floppy discs
3672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3675 # OS/2's system install, which has a completely different semantic
3676 # ./install, which can be erroneously created by make from ./install.sh.
3677 # Reject install programs that cannot install multiple files.
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3679 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3680 if test -z "$INSTALL"; then
3681 if ${ac_cv_path_install+:} false; then :
3682 $as_echo_n "(cached) " >&6
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir=.
3689 # Account for people who put trailing slashes in PATH elements.
3690 case $as_dir/ in #((
3691 ./ | .// | /[cC]/* | \
3692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3696 # OSF1 and SCO ODT 3.0 have their own names for install.
3697 # Don't use installbsd from OSF since it installs stuff as root
3699 for ac_prog in ginstall scoinst install; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3702 if test $ac_prog = install &&
3703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # AIX install. It has an incompatible calling convention.
3706 elif test $ac_prog = install &&
3707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3708 # program-specific install script used by HP pwplus--don't use.
3711 rm -rf conftest.one conftest.two conftest.dir
3712 echo one > conftest.one
3713 echo two > conftest.two
3715 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3716 test -s conftest.one && test -s conftest.two &&
3717 test -s conftest.dir/conftest.one &&
3718 test -s conftest.dir/conftest.two
3720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3733 rm -rf conftest.one conftest.two conftest.dir
3736 if test "${ac_cv_path_install+set}" = set; then
3737 INSTALL=$ac_cv_path_install
3739 # As a last resort, use the slow shell script. Don't cache a
3740 # value for INSTALL within a source directory, because that will
3741 # break other packages using the cache if that directory is
3742 # removed, or if the value is a relative name.
3743 INSTALL=$ac_install_sh
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3747 $as_echo "$INSTALL" >&6; }
3749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3750 # It thinks the first close brace ends the variable substitution.
3751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3757 test "$program_prefix" != NONE &&
3758 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3759 # Use a double $ so make ignores it.
3760 test "$program_suffix" != NONE &&
3761 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3762 # Double any \ or $.
3763 # By default was `s,x,x', remove it if useless.
3764 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3765 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3767 # expand $ac_aux_dir to an absolute path
3768 am_aux_dir=`cd $ac_aux_dir && pwd`
3770 if test x"${MISSING+set}" != xset; then
3773 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3775 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3778 # Use eval to expand $SHELL
3779 if eval "$MISSING --run true"; then
3780 am_missing_run="$MISSING --run "
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3784 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3787 if test x"${install_sh}" != xset; then
3790 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3792 install_sh="\${SHELL} $am_aux_dir/install-sh"
3796 # Installed binaries are usually stripped using `strip' when the user
3797 # run `make install-strip'. However `strip' might not be the right
3798 # tool to use in cross-compilation environments, therefore Automake
3799 # will honor the `STRIP' environment variable to overrule this program.
3800 if test "$cross_compiling" != no; then
3801 if test -n "$ac_tool_prefix"; then
3802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3803 set dummy ${ac_tool_prefix}strip; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if ${ac_cv_prog_STRIP+:} false; then :
3807 $as_echo_n "(cached) " >&6
3809 if test -n "$STRIP"; then
3810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 STRIP=$ac_cv_prog_STRIP
3830 if test -n "$STRIP"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3832 $as_echo "$STRIP" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3840 if test -z "$ac_cv_prog_STRIP"; then
3842 # Extract the first word of "strip", so it can be a program name with args.
3843 set dummy strip; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 if test -n "$ac_ct_STRIP"; then
3850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 ac_cv_prog_ac_ct_STRIP="strip"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3870 if test -n "$ac_ct_STRIP"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3872 $as_echo "$ac_ct_STRIP" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3878 if test "x$ac_ct_STRIP" = x; then
3881 case $cross_compiling:$ac_tool_warned in
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885 ac_tool_warned=yes ;;
3890 STRIP="$ac_cv_prog_STRIP"
3894 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3897 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3898 if test -z "$MKDIR_P"; then
3899 if ${ac_cv_path_mkdir+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in mkdir gmkdir; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3910 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3911 'mkdir (GNU coreutils) '* | \
3912 'mkdir (coreutils) '* | \
3913 'mkdir (fileutils) '4.1*)
3914 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3924 test -d ./--version && rmdir ./--version
3925 if test "${ac_cv_path_mkdir+set}" = set; then
3926 MKDIR_P="$ac_cv_path_mkdir -p"
3928 # As a last resort, use the slow shell script. Don't cache a
3929 # value for MKDIR_P within a source directory, because that will
3930 # break other packages using the cache if that directory is
3931 # removed, or if the value is a relative name.
3932 MKDIR_P="$ac_install_sh -d"
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3936 $as_echo "$MKDIR_P" >&6; }
3940 [\\/$]* | ?:[\\/]*) ;;
3941 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3944 for ac_prog in gawk mawk nawk awk
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_AWK+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$AWK"; then
3954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_AWK="$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 if test -n "$AWK"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3976 $as_echo "$AWK" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$AWK" && break
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3989 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3990 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 cat >conftest.make <<\_ACEOF
3996 @echo '@@@%%%=$(MAKE)=@@@%%%'
3998 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4001 eval ac_cv_prog_make_${ac_make}_set=yes;;
4003 eval ac_cv_prog_make_${ac_make}_set=no;;
4007 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009 $as_echo "yes" >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4014 SET_MAKE="MAKE=${MAKE-make}"
4017 rm -rf .tst 2>/dev/null
4018 mkdir .tst 2>/dev/null
4019 if test -d .tst; then
4024 rmdir .tst 2>/dev/null
4026 # Check whether --enable-silent-rules was given.
4027 if test "${enable_silent_rules+set}" = set; then :
4028 enableval=$enable_silent_rules;
4031 case $enable_silent_rules in
4032 yes) AM_DEFAULT_VERBOSITY=0;;
4033 no) AM_DEFAULT_VERBOSITY=1;;
4034 *) AM_DEFAULT_VERBOSITY=1;;
4038 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4040 # is not polluted with repeated "-I."
4041 am__isrc=' -I$(srcdir)'
4042 # test to see if srcdir already configured
4043 if test -f $srcdir/config.status; then
4044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4048 # test whether we have cygpath
4049 if test -z "$CYGPATH_W"; then
4050 if (cygpath --version) >/dev/null 2>/dev/null; then
4051 CYGPATH_W='cygpath -w'
4058 # Define the identity of the package.
4059 PACKAGE='ImageMagick'
4063 cat >>confdefs.h <<_ACEOF
4064 #define PACKAGE "$PACKAGE"
4068 cat >>confdefs.h <<_ACEOF
4069 #define VERSION "$VERSION"
4072 # Some tools Automake needs.
4074 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4077 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4080 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4083 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4086 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4088 # We need awk for the "check" target. The system "awk" is bad on
4090 # Always define AMTAR for backward compatibility.
4092 AMTAR=${AMTAR-"${am_missing_run}tar"}
4094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4101 # Enable support for silent build rules
4102 # Check whether --enable-silent-rules was given.
4103 if test "${enable_silent_rules+set}" = set; then :
4104 enableval=$enable_silent_rules;
4107 case $enable_silent_rules in
4108 yes) AM_DEFAULT_VERBOSITY=0;;
4109 no) AM_DEFAULT_VERBOSITY=1;;
4110 *) AM_DEFAULT_VERBOSITY=0;;
4115 MAGICK_LIB_VERSION="0x"
4116 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4117 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4119 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4120 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4121 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4123 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4124 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4125 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4127 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4130 # Definition used to define MagickLibVersionText in version.h
4131 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4134 # Definition used to define MagickLibVersionNumber in version.h
4135 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4138 # Regenerate config.status if ChangeLog or version.sh is updated.
4139 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4145 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4146 MAGICK_PCFLAGS=$CPPFLAGS_USER
4152 # Evaluate shell variable equivalents to Makefile directory variables
4154 if test "x$prefix" = xNONE; then
4155 prefix=$ac_default_prefix
4157 # Let make expand exec_prefix.
4158 if test "x$exec_prefix" = xNONE; then
4159 exec_prefix='${prefix}'
4163 eval "eval PREFIX_DIR=${prefix}"
4165 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4167 eval "eval BIN_DIR=$bindir"
4169 eval "eval SBIN_DIR=$sbindir"
4171 eval "eval LIBEXEC_DIR=$libexecdir"
4173 eval "eval DATA_DIR=$datadir"
4175 eval "eval DOC_DIR=$docdir"
4177 eval "eval SYSCONF_DIR=$sysconfdir"
4179 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4181 eval "eval LOCALSTATE_DIR=$localstatedir"
4183 eval "eval LIB_DIR=$libdir"
4185 eval "eval INCLUDE_DIR=$includedir"
4187 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4189 eval "eval INFO_DIR=$infodir"
4191 eval "eval MAN_DIR=$mandir"
4194 # Get full paths to source and build directories
4195 srcdirfull="`cd $srcdir && pwd`"
4199 # Compute variables useful for running uninstalled software.
4201 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4202 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4203 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4204 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4206 case "${build_os}" in
4208 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4209 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4210 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4211 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4215 case "${host_os}" in
4228 # Enable OS features.
4230 DEPDIR="${am__leading_dot}deps"
4232 ac_config_commands="$ac_config_commands depfiles"
4235 am_make=${MAKE-make}
4236 cat > confinc << 'END'
4238 @echo this is the am__doit target
4241 # If we don't find an include directive, just comment out the code.
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4243 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4247 # First try GNU make style include.
4248 echo "include confinc" > confmf
4249 # Ignore all kinds of additional output from `make'.
4250 case `$am_make -s -f confmf 2> /dev/null` in #(
4251 *the\ am__doit\ target*)
4257 # Now try BSD make style include.
4258 if test "$am__include" = "#"; then
4259 echo '.include "confinc"' > confmf
4260 case `$am_make -s -f confmf 2> /dev/null` in #(
4261 *the\ am__doit\ target*)
4262 am__include=.include
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4271 $as_echo "$_am_result" >&6; }
4272 rm -f confinc confmf
4274 # Check whether --enable-dependency-tracking was given.
4275 if test "${enable_dependency_tracking+set}" = set; then :
4276 enableval=$enable_dependency_tracking;
4279 if test "x$enable_dependency_tracking" != xno; then
4280 am_depcomp="$ac_aux_dir/depcomp"
4283 if test "x$enable_dependency_tracking" != xno; then
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_CC+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC="$CC" # Let the user override the test.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$CC"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328 $as_echo "$CC" >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4336 if test -z "$ac_cv_prog_CC"; then
4338 # Extract the first word of "gcc", so it can be a program name with args.
4339 set dummy gcc; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4343 $as_echo_n "(cached) " >&6
4345 if test -n "$ac_ct_CC"; then
4346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_ac_ct_CC="gcc"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4366 if test -n "$ac_ct_CC"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4368 $as_echo "$ac_ct_CC" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4374 if test "x$ac_ct_CC" = x; then
4377 case $cross_compiling:$ac_tool_warned in
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381 ac_tool_warned=yes ;;
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4392 set dummy ${ac_tool_prefix}cc; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if ${ac_cv_prog_CC+:} false; then :
4396 $as_echo_n "(cached) " >&6
4398 if test -n "$CC"; then
4399 ac_cv_prog_CC="$CC" # Let the user override the test.
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_CC="${ac_tool_prefix}cc"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 if test -n "$CC"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4421 $as_echo "$CC" >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4430 if test -z "$CC"; then
4431 # Extract the first word of "cc", so it can be a program name with args.
4432 set dummy cc; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_CC+:} false; then :
4436 $as_echo_n "(cached) " >&6
4438 if test -n "$CC"; then
4439 ac_cv_prog_CC="$CC" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450 ac_prog_rejected=yes
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 if test $ac_prog_rejected = yes; then
4462 # We found a bogon in the path, so make sure we never use it.
4463 set dummy $ac_cv_prog_CC
4465 if test $# != 0; then
4466 # We chose a different compiler from the bogus one.
4467 # However, it has the same basename, so the bogon will be chosen
4468 # first if we set CC to just the basename; use the full file name.
4470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4476 if test -n "$CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4486 if test -z "$CC"; then
4487 if test -n "$ac_tool_prefix"; then
4488 for ac_prog in cl.exe
4490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if ${ac_cv_prog_CC+:} false; then :
4495 $as_echo_n "(cached) " >&6
4497 if test -n "$CC"; then
4498 ac_cv_prog_CC="$CC" # Let the user override the test.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 if test -n "$CC"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4520 $as_echo "$CC" >&6; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4527 test -n "$CC" && break
4530 if test -z "$CC"; then
4532 for ac_prog in cl.exe
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 if test -n "$ac_ct_CC"; then
4542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_CC="$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562 if test -n "$ac_ct_CC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4564 $as_echo "$ac_ct_CC" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 test -n "$ac_ct_CC" && break
4574 if test "x$ac_ct_CC" = x; then
4577 case $cross_compiling:$ac_tool_warned in
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581 ac_tool_warned=yes ;;
4590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error $? "no acceptable C compiler found in \$PATH
4593 See \`config.log' for more details" "$LINENO" 5; }
4595 # Provide some information about the compiler.
4596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4599 for ac_option in --version -v -V -qversion; do
4600 { { ac_try="$ac_compiler $ac_option >&5"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606 $as_echo "$ac_try_echo"; } >&5
4607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4609 if test -s conftest.err; then
4611 ... rest of stderr output deleted ...
4612 10q' conftest.err >conftest.er1
4613 cat conftest.er1 >&5
4615 rm -f conftest.er1 conftest.err
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 ac_clean_files_save=$ac_clean_files
4632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4633 # Try to create an executable without -o first, disregard a.out.
4634 # It will help us diagnose broken compilers, and finding out an intuition
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4637 $as_echo_n "checking whether the C compiler works... " >&6; }
4638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4640 # The possible output files:
4641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4644 for ac_file in $ac_files
4647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4653 if { { ac_try="$ac_link_default"
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_link_default") 2>&5
4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }; then :
4664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4666 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4667 # so that the user can short-circuit this test for compilers unknown to
4669 for ac_file in $ac_files ''
4671 test -f "$ac_file" || continue
4673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4676 # We found the default executable, but exeext='' is most
4680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4684 # We set ac_cv_exeext here because the later test for it is not
4685 # safe: cross compilers may not add the suffix if given an `-o'
4686 # argument, so we may need to know it at that point already.
4687 # Even if this section looks crufty: it has the advantage of
4694 test "$ac_cv_exeext" = no && ac_cv_exeext=
4699 if test -z "$ac_file"; then :
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 $as_echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4707 as_fn_error 77 "C compiler cannot create executables
4708 See \`config.log' for more details" "$LINENO" 5; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711 $as_echo "yes" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4714 $as_echo_n "checking for C compiler default output file name... " >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4716 $as_echo "$ac_file" >&6; }
4717 ac_exeext=$ac_cv_exeext
4719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4720 ac_clean_files=$ac_clean_files_save
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4722 $as_echo_n "checking for suffix of executables... " >&6; }
4723 if { { ac_try="$ac_link"
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4729 $as_echo "$ac_try_echo"; } >&5
4730 (eval "$ac_link") 2>&5
4732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4733 test $ac_status = 0; }; then :
4734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4736 # work properly (i.e., refer to `conftest.exe'), while it won't with
4738 for ac_file in conftest.exe conftest conftest.*; do
4739 test -f "$ac_file" || continue
4741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4751 See \`config.log' for more details" "$LINENO" 5; }
4753 rm -f conftest conftest$ac_cv_exeext
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4755 $as_echo "$ac_cv_exeext" >&6; }
4757 rm -f conftest.$ac_ext
4758 EXEEXT=$ac_cv_exeext
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4766 FILE *f = fopen ("conftest.out", "w");
4767 return ferror (f) || fclose (f) != 0;
4773 ac_clean_files="$ac_clean_files conftest.out"
4774 # Check that the compiler produces executables we can run. If not, either
4775 # the compiler is broken, or we cross compile.
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4777 $as_echo_n "checking whether we are cross compiling... " >&6; }
4778 if test "$cross_compiling" != yes; then
4779 { { ac_try="$ac_link"
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785 $as_echo "$ac_try_echo"; } >&5
4786 (eval "$ac_link") 2>&5
4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }
4790 if { ac_try='./conftest$ac_cv_exeext'
4791 { { case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796 $as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_try") 2>&5
4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; }; then
4803 if test "$cross_compiling" = maybe; then
4806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4808 as_fn_error $? "cannot run C compiled programs.
4809 If you meant to cross compile, use \`--host'.
4810 See \`config.log' for more details" "$LINENO" 5; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4815 $as_echo "$cross_compiling" >&6; }
4817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4818 ac_clean_files=$ac_clean_files_save
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4820 $as_echo_n "checking for suffix of object files... " >&6; }
4821 if ${ac_cv_objext+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4835 rm -f conftest.o conftest.obj
4836 if { { ac_try="$ac_compile"
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842 $as_echo "$ac_try_echo"; } >&5
4843 (eval "$ac_compile") 2>&5
4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }; then :
4847 for ac_file in conftest.o conftest.obj conftest.*; do
4848 test -f "$ac_file" || continue;
4850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4856 $as_echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4861 as_fn_error $? "cannot compute suffix of object files: cannot compile
4862 See \`config.log' for more details" "$LINENO" 5; }
4864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4867 $as_echo "$ac_cv_objext" >&6; }
4868 OBJEXT=$ac_cv_objext
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4872 if ${ac_cv_c_compiler_gnu+:} false; then :
4873 $as_echo_n "(cached) " >&6
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4889 if ac_fn_c_try_compile "$LINENO"; then :
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4900 if test $ac_compiler_gnu = yes; then
4905 ac_test_CFLAGS=${CFLAGS+set}
4906 ac_save_CFLAGS=$CFLAGS
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4909 if ${ac_cv_prog_cc_g+:} false; then :
4910 $as_echo_n "(cached) " >&6
4912 ac_save_c_werror_flag=$ac_c_werror_flag
4913 ac_c_werror_flag=yes
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4927 if ac_fn_c_try_compile "$LINENO"; then :
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4942 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_c_werror_flag=$ac_save_c_werror_flag
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4958 if ac_fn_c_try_compile "$LINENO"; then :
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4969 $as_echo "$ac_cv_prog_cc_g" >&6; }
4970 if test "$ac_test_CFLAGS" = set; then
4971 CFLAGS=$ac_save_CFLAGS
4972 elif test $ac_cv_prog_cc_g = yes; then
4973 if test "$GCC" = yes; then
4979 if test "$GCC" = yes; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4987 if ${ac_cv_prog_cc_c89+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 ac_cv_prog_cc_c89=no
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4996 #include <sys/types.h>
4997 #include <sys/stat.h>
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5012 s = g (p, va_arg (v,int));
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5018 function prototypes and stuff, but not '\xHH' hex character constants.
5019 These don't provoke an error unfortunately, instead are silently treated
5020 as 'x'. The following induces an error, until -std is added to get
5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5022 array size at least. It's necessary to write '\x00'==0 to get something
5023 that's true only with -std. */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027 inside strings and character constants. */
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048 CC="$ac_save_CC $ac_arg"
5049 if ac_fn_c_try_compile "$LINENO"; then :
5050 ac_cv_prog_cc_c89=$ac_arg
5052 rm -f core conftest.err conftest.$ac_objext
5053 test "x$ac_cv_prog_cc_c89" != "xno" && break
5055 rm -f conftest.$ac_ext
5060 case "x$ac_cv_prog_cc_c89" in
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5063 $as_echo "none needed" >&6; } ;;
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5066 $as_echo "unsupported" >&6; } ;;
5068 CC="$CC $ac_cv_prog_cc_c89"
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5072 if test "x$ac_cv_prog_cc_c89" != xno; then :
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082 depcc="$CC" am_compiler_list=
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5085 $as_echo_n "checking dependency style of $depcc... " >&6; }
5086 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5090 # We make a subdir and do the tests there. Otherwise we can end up
5091 # making bogus files that we don't know about and never remove. For
5092 # instance it was reported that on HP-UX the gcc test will end up
5093 # making a dummy file named `D' -- because `-MD' means `put the output
5096 # Copy depcomp to subdir because otherwise we won't find it if we're
5097 # using a relative directory.
5098 cp "$am_depcomp" conftest.dir
5100 # We will build objects and dependencies in a subdirectory because
5101 # it helps to detect inapplicable dependency modes. For instance
5102 # both Tru64's cc and ICC support -MD to output dependencies as a
5103 # side effect of compilation, but ICC will put the dependencies in
5104 # the current directory while Tru64 will put them in the object
5108 am_cv_CC_dependencies_compiler_type=none
5109 if test "$am_compiler_list" = ""; then
5110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5113 case " $depcc " in #(
5114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5117 for depmode in $am_compiler_list; do
5118 # Setup a source with many dependencies, because some compilers
5119 # like to wrap large dependency lists on column 80 (with \), and
5120 # we should not choose a depcomp mode which is confused by this.
5122 # We need to recreate these files for each test, as the compiler may
5123 # overwrite some of them when testing with obscure command lines.
5124 # This happens at least with the AIX C compiler.
5126 for i in 1 2 3 4 5 6; do
5127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5129 # Solaris 8's {/usr,}/bin/sh.
5130 touch sub/conftst$i.h
5132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5135 # mode. It turns out that the SunPro C++ compiler does not properly
5136 # handle `-M -o', and we need to detect this. Also, some Intel
5137 # versions had trouble with output in subdirs
5138 am__obj=sub/conftest.${OBJEXT-o}
5139 am__minus_obj="-o $am__obj"
5142 # This depmode causes a compiler race in universal mode.
5143 test "$am__universal" = false || continue
5146 # after this tag, mechanisms are not by side-effect, so they'll
5147 # only be used when explicitly requested
5148 if test "x$enable_dependency_tracking" = xyes; then
5154 msvisualcpp | msvcmsys)
5155 # This compiler won't grok `-c -o', but also, the minuso test has
5156 # not run yet. These depmodes are late enough in the game, and
5157 # so weak that their functioning should not be impacted.
5158 am__obj=conftest.${OBJEXT-o}
5163 if depmode=$depmode \
5164 source=sub/conftest.c object=$am__obj \
5165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5167 >/dev/null 2>conftest.err &&
5168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172 # icc doesn't choke on unknown options, it will just issue warnings
5173 # or remarks (even with -Werror). So we grep stderr for any message
5174 # that says an option was ignored or not supported.
5175 # When given -MP, icc 7.0 and 7.1 complain thusly:
5176 # icc: Command line warning: ignoring option '-M'; no argument required
5177 # The diagnosis changed in icc 8.0:
5178 # icc: Command line remark: option '-MP' not supported
5179 if (grep 'ignoring option' conftest.err ||
5180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181 am_cv_CC_dependencies_compiler_type=$depmode
5190 am_cv_CC_dependencies_compiler_type=none
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5199 test "x$enable_dependency_tracking" != xno \
5200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5202 am__fastdepCC_FALSE='#'
5204 am__fastdepCC_TRUE='#'
5205 am__fastdepCC_FALSE=
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5217 # On Suns, sometimes $CPP names a directory.
5218 if test -n "$CPP" && test -d "$CPP"; then
5221 if test -z "$CPP"; then
5222 if ${ac_cv_prog_CPP+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 # Double quotes because CPP needs to be expanded
5226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5229 for ac_c_preproc_warn_flag in '' yes
5231 # Use a header file that comes with gcc, so configuring glibc
5232 # with a fresh cross-compiler works.
5233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 # <limits.h> exists even on freestanding compilers.
5235 # On the NeXT, cc -E runs the code through the compiler's parser,
5236 # not just through cpp. "Syntax error" is here to catch this case.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5240 # include <limits.h>
5242 # include <assert.h>
5246 if ac_fn_c_try_cpp "$LINENO"; then :
5249 # Broken: fails on valid input.
5252 rm -f conftest.err conftest.i conftest.$ac_ext
5254 # OK, works on sane cases. Now check whether nonexistent headers
5255 # can be detected and how.
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5258 #include <ac_nonexistent.h>
5260 if ac_fn_c_try_cpp "$LINENO"; then :
5261 # Broken: success on invalid input.
5264 # Passes both tests.
5268 rm -f conftest.err conftest.i conftest.$ac_ext
5271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272 rm -f conftest.i conftest.err conftest.$ac_ext
5273 if $ac_preproc_ok; then :
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5286 $as_echo "$CPP" >&6; }
5288 for ac_c_preproc_warn_flag in '' yes
5290 # Use a header file that comes with gcc, so configuring glibc
5291 # with a fresh cross-compiler works.
5292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5293 # <limits.h> exists even on freestanding compilers.
5294 # On the NeXT, cc -E runs the code through the compiler's parser,
5295 # not just through cpp. "Syntax error" is here to catch this case.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5299 # include <limits.h>
5301 # include <assert.h>
5305 if ac_fn_c_try_cpp "$LINENO"; then :
5308 # Broken: fails on valid input.
5311 rm -f conftest.err conftest.i conftest.$ac_ext
5313 # OK, works on sane cases. Now check whether nonexistent headers
5314 # can be detected and how.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 #include <ac_nonexistent.h>
5319 if ac_fn_c_try_cpp "$LINENO"; then :
5320 # Broken: success on invalid input.
5323 # Passes both tests.
5327 rm -f conftest.err conftest.i conftest.$ac_ext
5330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5331 rm -f conftest.i conftest.err conftest.$ac_ext
5332 if $ac_preproc_ok; then :
5335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5337 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5338 See \`config.log' for more details" "$LINENO" 5; }
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5350 if ${ac_cv_path_GREP+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 if test -z "$GREP"; then
5354 ac_path_GREP_found=false
5355 # Loop through the user's path and test for each of PROGNAME-LIST
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5360 test -z "$as_dir" && as_dir=.
5361 for ac_prog in grep ggrep; do
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5364 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5365 # Check for GNU ac_path_GREP and select it if it is found.
5366 # Check for GNU $ac_path_GREP
5367 case `"$ac_path_GREP" --version 2>&1` in
5369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5372 $as_echo_n 0123456789 >"conftest.in"
5375 cat "conftest.in" "conftest.in" >"conftest.tmp"
5376 mv "conftest.tmp" "conftest.in"
5377 cp "conftest.in" "conftest.nl"
5378 $as_echo 'GREP' >> "conftest.nl"
5379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381 as_fn_arith $ac_count + 1 && ac_count=$as_val
5382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5383 # Best one so far, save it but keep looking for a better one
5384 ac_cv_path_GREP="$ac_path_GREP"
5385 ac_path_GREP_max=$ac_count
5387 # 10*(2^10) chars as input seems more than enough
5388 test $ac_count -gt 10 && break
5390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5393 $ac_path_GREP_found && break 3
5398 if test -z "$ac_cv_path_GREP"; then
5399 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5402 ac_cv_path_GREP=$GREP
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5407 $as_echo "$ac_cv_path_GREP" >&6; }
5408 GREP="$ac_cv_path_GREP"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5412 $as_echo_n "checking for egrep... " >&6; }
5413 if ${ac_cv_path_EGREP+:} false; then :
5414 $as_echo_n "(cached) " >&6
5416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5417 then ac_cv_path_EGREP="$GREP -E"
5419 if test -z "$EGREP"; then
5420 ac_path_EGREP_found=false
5421 # Loop through the user's path and test for each of PROGNAME-LIST
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5426 test -z "$as_dir" && as_dir=.
5427 for ac_prog in egrep; do
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5431 # Check for GNU ac_path_EGREP and select it if it is found.
5432 # Check for GNU $ac_path_EGREP
5433 case `"$ac_path_EGREP" --version 2>&1` in
5435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5438 $as_echo_n 0123456789 >"conftest.in"
5441 cat "conftest.in" "conftest.in" >"conftest.tmp"
5442 mv "conftest.tmp" "conftest.in"
5443 cp "conftest.in" "conftest.nl"
5444 $as_echo 'EGREP' >> "conftest.nl"
5445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447 as_fn_arith $ac_count + 1 && ac_count=$as_val
5448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5449 # Best one so far, save it but keep looking for a better one
5450 ac_cv_path_EGREP="$ac_path_EGREP"
5451 ac_path_EGREP_max=$ac_count
5453 # 10*(2^10) chars as input seems more than enough
5454 test $ac_count -gt 10 && break
5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5459 $ac_path_EGREP_found && break 3
5464 if test -z "$ac_cv_path_EGREP"; then
5465 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5468 ac_cv_path_EGREP=$EGREP
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5474 $as_echo "$ac_cv_path_EGREP" >&6; }
5475 EGREP="$ac_cv_path_EGREP"
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5479 $as_echo_n "checking for ANSI C header files... " >&6; }
5480 if ${ac_cv_header_stdc+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499 ac_cv_header_stdc=yes
5501 ac_cv_header_stdc=no
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 if test $ac_cv_header_stdc = yes; then
5506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "memchr" >/dev/null 2>&1; then :
5516 ac_cv_header_stdc=no
5522 if test $ac_cv_header_stdc = yes; then
5523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5530 $EGREP "free" >/dev/null 2>&1; then :
5533 ac_cv_header_stdc=no
5539 if test $ac_cv_header_stdc = yes; then
5540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5541 if test "$cross_compiling" = yes; then :
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5548 #if ((' ' & 0x0FF) == 0x020)
5549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5552 # define ISLOWER(c) \
5553 (('a' <= (c) && (c) <= 'i') \
5554 || ('j' <= (c) && (c) <= 'r') \
5555 || ('s' <= (c) && (c) <= 'z'))
5556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5564 for (i = 0; i < 256; i++)
5565 if (XOR (islower (i), ISLOWER (i))
5566 || toupper (i) != TOUPPER (i))
5571 if ac_fn_c_try_run "$LINENO"; then :
5574 ac_cv_header_stdc=no
5576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5577 conftest.$ac_objext conftest.beam conftest.$ac_ext
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5583 $as_echo "$ac_cv_header_stdc" >&6; }
5584 if test $ac_cv_header_stdc = yes; then
5586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5592 inttypes.h stdint.h unistd.h
5594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5598 cat >>confdefs.h <<_ACEOF
5599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5609 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5616 if test "$MINIX" = yes; then
5618 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5621 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5624 $as_echo "#define _MINIX 1" >>confdefs.h
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5630 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5631 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5632 $as_echo_n "(cached) " >&6
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5637 # define __EXTENSIONS__ 1
5638 $ac_includes_default
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_safe_to_define___extensions__=yes
5650 ac_cv_safe_to_define___extensions__=no
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5655 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5656 test $ac_cv_safe_to_define___extensions__ = yes &&
5657 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5659 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5661 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5663 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5665 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5669 # Check for programs
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675 if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_CC+:} false; then :
5681 $as_echo_n "(cached) " >&6
5683 if test -n "$CC"; then
5684 ac_cv_prog_CC="$CC" # Let the user override the test.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 if test -n "$CC"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706 $as_echo "$CC" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5714 if test -z "$ac_cv_prog_CC"; then
5716 # Extract the first word of "gcc", so it can be a program name with args.
5717 set dummy gcc; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5721 $as_echo_n "(cached) " >&6
5723 if test -n "$ac_ct_CC"; then
5724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_ac_ct_CC="gcc"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5744 if test -n "$ac_ct_CC"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5746 $as_echo "$ac_ct_CC" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5752 if test "x$ac_ct_CC" = x; then
5755 case $cross_compiling:$ac_tool_warned in
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5767 if test -z "$CC"; then
5768 if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5770 set dummy ${ac_tool_prefix}cc; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if ${ac_cv_prog_CC+:} false; then :
5774 $as_echo_n "(cached) " >&6
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC="$CC" # Let the user override the test.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_CC="${ac_tool_prefix}cc"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 if test -n "$CC"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5799 $as_echo "$CC" >&6; }
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5808 if test -z "$CC"; then
5809 # Extract the first word of "cc", so it can be a program name with args.
5810 set dummy cc; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_CC+:} false; then :
5814 $as_echo_n "(cached) " >&6
5816 if test -n "$CC"; then
5817 ac_cv_prog_CC="$CC" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5828 ac_prog_rejected=yes
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 if test $ac_prog_rejected = yes; then
5840 # We found a bogon in the path, so make sure we never use it.
5841 set dummy $ac_cv_prog_CC
5843 if test $# != 0; then
5844 # We chose a different compiler from the bogus one.
5845 # However, it has the same basename, so the bogon will be chosen
5846 # first if we set CC to just the basename; use the full file name.
5848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5854 if test -n "$CC"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856 $as_echo "$CC" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5864 if test -z "$CC"; then
5865 if test -n "$ac_tool_prefix"; then
5866 for ac_prog in cl.exe
5868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_CC+:} false; then :
5873 $as_echo_n "(cached) " >&6
5875 if test -n "$CC"; then
5876 ac_cv_prog_CC="$CC" # Let the user override the test.
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 if test -n "$CC"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5898 $as_echo "$CC" >&6; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5905 test -n "$CC" && break
5908 if test -z "$CC"; then
5910 for ac_prog in cl.exe
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5917 $as_echo_n "(cached) " >&6
5919 if test -n "$ac_ct_CC"; then
5920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_prog_ac_ct_CC="$ac_prog"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5940 if test -n "$ac_ct_CC"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5942 $as_echo "$ac_ct_CC" >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5949 test -n "$ac_ct_CC" && break
5952 if test "x$ac_ct_CC" = x; then
5955 case $cross_compiling:$ac_tool_warned in
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 as_fn_error $? "no acceptable C compiler found in \$PATH
5971 See \`config.log' for more details" "$LINENO" 5; }
5973 # Provide some information about the compiler.
5974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5977 for ac_option in --version -v -V -qversion; do
5978 { { ac_try="$ac_compiler $ac_option >&5"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5984 $as_echo "$ac_try_echo"; } >&5
5985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5987 if test -s conftest.err; then
5989 ... rest of stderr output deleted ...
5990 10q' conftest.err >conftest.er1
5991 cat conftest.er1 >&5
5993 rm -f conftest.er1 conftest.err
5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995 test $ac_status = 0; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6000 if ${ac_cv_c_compiler_gnu+:} false; then :
6001 $as_echo_n "(cached) " >&6
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6017 if ac_fn_c_try_compile "$LINENO"; then :
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6027 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6028 if test $ac_compiler_gnu = yes; then
6033 ac_test_CFLAGS=${CFLAGS+set}
6034 ac_save_CFLAGS=$CFLAGS
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6036 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6037 if ${ac_cv_prog_cc_g+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 ac_save_c_werror_flag=$ac_c_werror_flag
6041 ac_c_werror_flag=yes
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6055 if ac_fn_c_try_compile "$LINENO"; then :
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6070 if ac_fn_c_try_compile "$LINENO"; then :
6073 ac_c_werror_flag=$ac_save_c_werror_flag
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6086 if ac_fn_c_try_compile "$LINENO"; then :
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_c_werror_flag=$ac_save_c_werror_flag
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6097 $as_echo "$ac_cv_prog_cc_g" >&6; }
6098 if test "$ac_test_CFLAGS" = set; then
6099 CFLAGS=$ac_save_CFLAGS
6100 elif test $ac_cv_prog_cc_g = yes; then
6101 if test "$GCC" = yes; then
6107 if test "$GCC" = yes; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6115 if ${ac_cv_prog_cc_c89+:} false; then :
6116 $as_echo_n "(cached) " >&6
6118 ac_cv_prog_cc_c89=no
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6124 #include <sys/types.h>
6125 #include <sys/stat.h>
6126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6127 struct buf { int x; };
6128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6129 static char *e (p, i)
6135 static char *f (char * (*g) (char **, int), char **p, ...)
6140 s = g (p, va_arg (v,int));
6145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6146 function prototypes and stuff, but not '\xHH' hex character constants.
6147 These don't provoke an error unfortunately, instead are silently treated
6148 as 'x'. The following induces an error, until -std is added to get
6149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6150 array size at least. It's necessary to write '\x00'==0 to get something
6151 that's true only with -std. */
6152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6155 inside strings and character constants. */
6157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6159 int test (int i, double x);
6160 struct s1 {int (*f) (int a);};
6161 struct s2 {int (*f) (double a);};
6162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6168 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6176 CC="$ac_save_CC $ac_arg"
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 ac_cv_prog_cc_c89=$ac_arg
6180 rm -f core conftest.err conftest.$ac_objext
6181 test "x$ac_cv_prog_cc_c89" != "xno" && break
6183 rm -f conftest.$ac_ext
6188 case "x$ac_cv_prog_cc_c89" in
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6191 $as_echo "none needed" >&6; } ;;
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6194 $as_echo "unsupported" >&6; } ;;
6196 CC="$CC $ac_cv_prog_cc_c89"
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6200 if test "x$ac_cv_prog_cc_c89" != xno; then :
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210 depcc="$CC" am_compiler_list=
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6213 $as_echo_n "checking dependency style of $depcc... " >&6; }
6214 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6218 # We make a subdir and do the tests there. Otherwise we can end up
6219 # making bogus files that we don't know about and never remove. For
6220 # instance it was reported that on HP-UX the gcc test will end up
6221 # making a dummy file named `D' -- because `-MD' means `put the output
6224 # Copy depcomp to subdir because otherwise we won't find it if we're
6225 # using a relative directory.
6226 cp "$am_depcomp" conftest.dir
6228 # We will build objects and dependencies in a subdirectory because
6229 # it helps to detect inapplicable dependency modes. For instance
6230 # both Tru64's cc and ICC support -MD to output dependencies as a
6231 # side effect of compilation, but ICC will put the dependencies in
6232 # the current directory while Tru64 will put them in the object
6236 am_cv_CC_dependencies_compiler_type=none
6237 if test "$am_compiler_list" = ""; then
6238 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6241 case " $depcc " in #(
6242 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6245 for depmode in $am_compiler_list; do
6246 # Setup a source with many dependencies, because some compilers
6247 # like to wrap large dependency lists on column 80 (with \), and
6248 # we should not choose a depcomp mode which is confused by this.
6250 # We need to recreate these files for each test, as the compiler may
6251 # overwrite some of them when testing with obscure command lines.
6252 # This happens at least with the AIX C compiler.
6254 for i in 1 2 3 4 5 6; do
6255 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6256 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6257 # Solaris 8's {/usr,}/bin/sh.
6258 touch sub/conftst$i.h
6260 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6262 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6263 # mode. It turns out that the SunPro C++ compiler does not properly
6264 # handle `-M -o', and we need to detect this. Also, some Intel
6265 # versions had trouble with output in subdirs
6266 am__obj=sub/conftest.${OBJEXT-o}
6267 am__minus_obj="-o $am__obj"
6270 # This depmode causes a compiler race in universal mode.
6271 test "$am__universal" = false || continue
6274 # after this tag, mechanisms are not by side-effect, so they'll
6275 # only be used when explicitly requested
6276 if test "x$enable_dependency_tracking" = xyes; then
6282 msvisualcpp | msvcmsys)
6283 # This compiler won't grok `-c -o', but also, the minuso test has
6284 # not run yet. These depmodes are late enough in the game, and
6285 # so weak that their functioning should not be impacted.
6286 am__obj=conftest.${OBJEXT-o}
6291 if depmode=$depmode \
6292 source=sub/conftest.c object=$am__obj \
6293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6294 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6295 >/dev/null 2>conftest.err &&
6296 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6298 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6300 # icc doesn't choke on unknown options, it will just issue warnings
6301 # or remarks (even with -Werror). So we grep stderr for any message
6302 # that says an option was ignored or not supported.
6303 # When given -MP, icc 7.0 and 7.1 complain thusly:
6304 # icc: Command line warning: ignoring option '-M'; no argument required
6305 # The diagnosis changed in icc 8.0:
6306 # icc: Command line remark: option '-MP' not supported
6307 if (grep 'ignoring option' conftest.err ||
6308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6309 am_cv_CC_dependencies_compiler_type=$depmode
6318 am_cv_CC_dependencies_compiler_type=none
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6323 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6327 test "x$enable_dependency_tracking" != xno \
6328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6330 am__fastdepCC_FALSE='#'
6332 am__fastdepCC_TRUE='#'
6333 am__fastdepCC_FALSE=
6338 ac_cpp='$CXXCPP $CPPFLAGS'
6339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6342 if test -z "$CXX"; then
6343 if test -n "$CCC"; then
6346 if test -n "$ac_tool_prefix"; then
6347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_CXX+:} false; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$CXX"; then
6357 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 if test -n "$CXX"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6379 $as_echo "$CXX" >&6; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6386 test -n "$CXX" && break
6389 if test -z "$CXX"; then
6391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6393 # Extract the first word of "$ac_prog", so it can be a program name with args.
6394 set dummy $ac_prog; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$ac_ct_CXX"; then
6401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_CXX="$ac_prog"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6421 if test -n "$ac_ct_CXX"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6423 $as_echo "$ac_ct_CXX" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6430 test -n "$ac_ct_CXX" && break
6433 if test "x$ac_ct_CXX" = x; then
6436 case $cross_compiling:$ac_tool_warned in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6448 # Provide some information about the compiler.
6449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6452 for ac_option in --version -v -V -qversion; do
6453 { { ac_try="$ac_compiler $ac_option >&5"
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6459 $as_echo "$ac_try_echo"; } >&5
6460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6462 if test -s conftest.err; then
6464 ... rest of stderr output deleted ...
6465 10q' conftest.err >conftest.er1
6466 cat conftest.er1 >&5
6468 rm -f conftest.er1 conftest.err
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6474 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6475 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6492 if ac_fn_cxx_try_compile "$LINENO"; then :
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6502 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6503 if test $ac_compiler_gnu = yes; then
6508 ac_test_CXXFLAGS=${CXXFLAGS+set}
6509 ac_save_CXXFLAGS=$CXXFLAGS
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6511 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6512 if ${ac_cv_prog_cxx_g+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6516 ac_cxx_werror_flag=yes
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6530 if ac_fn_cxx_try_compile "$LINENO"; then :
6531 ac_cv_prog_cxx_g=yes
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6545 if ac_fn_cxx_try_compile "$LINENO"; then :
6548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6561 if ac_fn_cxx_try_compile "$LINENO"; then :
6562 ac_cv_prog_cxx_g=yes
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6572 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6573 if test "$ac_test_CXXFLAGS" = set; then
6574 CXXFLAGS=$ac_save_CXXFLAGS
6575 elif test $ac_cv_prog_cxx_g = yes; then
6576 if test "$GXX" = yes; then
6582 if test "$GXX" = yes; then
6589 ac_cpp='$CPP $CPPFLAGS'
6590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594 depcc="$CXX" am_compiler_list=
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6597 $as_echo_n "checking dependency style of $depcc... " >&6; }
6598 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6599 $as_echo_n "(cached) " >&6
6601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6602 # We make a subdir and do the tests there. Otherwise we can end up
6603 # making bogus files that we don't know about and never remove. For
6604 # instance it was reported that on HP-UX the gcc test will end up
6605 # making a dummy file named `D' -- because `-MD' means `put the output
6608 # Copy depcomp to subdir because otherwise we won't find it if we're
6609 # using a relative directory.
6610 cp "$am_depcomp" conftest.dir
6612 # We will build objects and dependencies in a subdirectory because
6613 # it helps to detect inapplicable dependency modes. For instance
6614 # both Tru64's cc and ICC support -MD to output dependencies as a
6615 # side effect of compilation, but ICC will put the dependencies in
6616 # the current directory while Tru64 will put them in the object
6620 am_cv_CXX_dependencies_compiler_type=none
6621 if test "$am_compiler_list" = ""; then
6622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6625 case " $depcc " in #(
6626 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6629 for depmode in $am_compiler_list; do
6630 # Setup a source with many dependencies, because some compilers
6631 # like to wrap large dependency lists on column 80 (with \), and
6632 # we should not choose a depcomp mode which is confused by this.
6634 # We need to recreate these files for each test, as the compiler may
6635 # overwrite some of them when testing with obscure command lines.
6636 # This happens at least with the AIX C compiler.
6638 for i in 1 2 3 4 5 6; do
6639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6641 # Solaris 8's {/usr,}/bin/sh.
6642 touch sub/conftst$i.h
6644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6646 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6647 # mode. It turns out that the SunPro C++ compiler does not properly
6648 # handle `-M -o', and we need to detect this. Also, some Intel
6649 # versions had trouble with output in subdirs
6650 am__obj=sub/conftest.${OBJEXT-o}
6651 am__minus_obj="-o $am__obj"
6654 # This depmode causes a compiler race in universal mode.
6655 test "$am__universal" = false || continue
6658 # after this tag, mechanisms are not by side-effect, so they'll
6659 # only be used when explicitly requested
6660 if test "x$enable_dependency_tracking" = xyes; then
6666 msvisualcpp | msvcmsys)
6667 # This compiler won't grok `-c -o', but also, the minuso test has
6668 # not run yet. These depmodes are late enough in the game, and
6669 # so weak that their functioning should not be impacted.
6670 am__obj=conftest.${OBJEXT-o}
6675 if depmode=$depmode \
6676 source=sub/conftest.c object=$am__obj \
6677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6679 >/dev/null 2>conftest.err &&
6680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6684 # icc doesn't choke on unknown options, it will just issue warnings
6685 # or remarks (even with -Werror). So we grep stderr for any message
6686 # that says an option was ignored or not supported.
6687 # When given -MP, icc 7.0 and 7.1 complain thusly:
6688 # icc: Command line warning: ignoring option '-M'; no argument required
6689 # The diagnosis changed in icc 8.0:
6690 # icc: Command line remark: option '-MP' not supported
6691 if (grep 'ignoring option' conftest.err ||
6692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6693 am_cv_CXX_dependencies_compiler_type=$depmode
6702 am_cv_CXX_dependencies_compiler_type=none
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6707 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6708 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6711 test "x$enable_dependency_tracking" != xno \
6712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6713 am__fastdepCXX_TRUE=
6714 am__fastdepCXX_FALSE='#'
6716 am__fastdepCXX_TRUE='#'
6717 am__fastdepCXX_FALSE=
6721 case $ac_cv_prog_cc_stdc in #(
6723 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6726 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6727 if ${ac_cv_prog_cc_c99+:} false; then :
6728 $as_echo_n "(cached) " >&6
6730 ac_cv_prog_cc_c99=no
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6735 #include <stdbool.h>
6740 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6741 #define debug(...) fprintf (stderr, __VA_ARGS__)
6742 #define showlist(...) puts (#__VA_ARGS__)
6743 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6745 test_varargs_macros (void)
6750 debug ("X = %d\n", x);
6751 showlist (The first, second, and third items.);
6752 report (x>y, "x is %d but y is %d", x, y);
6755 // Check long long types.
6756 #define BIG64 18446744073709551615ull
6757 #define BIG32 4294967295ul
6758 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6760 your preprocessor is broken;
6764 your preprocessor is broken;
6766 static long long int bignum = -9223372036854775807LL;
6767 static unsigned long long int ubignum = BIG64;
6769 struct incomplete_array
6777 const wchar_t *name;
6781 typedef const char *ccp;
6784 test_restrict (ccp restrict text)
6786 // See if C++-style comments work.
6787 // Iterate through items via the restricted pointer.
6788 // Also check for declarations in for loops.
6789 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6794 // Check varargs and va_copy.
6796 test_varargs (const char *format, ...)
6799 va_start (args, format);
6801 va_copy (args_copy, args);
6812 str = va_arg (args_copy, const char *);
6815 number = va_arg (args_copy, int);
6818 fnumber = va_arg (args_copy, double);
6833 _Bool success = false;
6836 if (test_restrict ("String literal") == 0)
6838 char *restrict newvar = "Another string";
6841 test_varargs ("s, d' f .", "string", 65, 34.234);
6842 test_varargs_macros ();
6844 // Check flexible array members.
6845 struct incomplete_array *ia =
6846 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6848 for (int i = 0; i < ia->datasize; ++i)
6849 ia->data[i] = i * 1.234;
6851 // Check named initializers.
6852 struct named_init ni = {
6854 .name = L"Test wide string",
6855 .average = 543.34343,
6860 int dynamic_array[ni.number];
6861 dynamic_array[ni.number - 1] = 543;
6863 // work around unused variable warnings
6864 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6865 || dynamic_array[ni.number - 1] != 543);
6871 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6873 CC="$ac_save_CC $ac_arg"
6874 if ac_fn_c_try_compile "$LINENO"; then :
6875 ac_cv_prog_cc_c99=$ac_arg
6877 rm -f core conftest.err conftest.$ac_objext
6878 test "x$ac_cv_prog_cc_c99" != "xno" && break
6880 rm -f conftest.$ac_ext
6885 case "x$ac_cv_prog_cc_c99" in
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6888 $as_echo "none needed" >&6; } ;;
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6891 $as_echo "unsupported" >&6; } ;;
6893 CC="$CC $ac_cv_prog_cc_c99"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6895 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6897 if test "x$ac_cv_prog_cc_c99" != xno; then :
6898 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6902 if ${ac_cv_prog_cc_c89+:} false; then :
6903 $as_echo_n "(cached) " >&6
6905 ac_cv_prog_cc_c89=no
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6911 #include <sys/types.h>
6912 #include <sys/stat.h>
6913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6914 struct buf { int x; };
6915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6916 static char *e (p, i)
6922 static char *f (char * (*g) (char **, int), char **p, ...)
6927 s = g (p, va_arg (v,int));
6932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6933 function prototypes and stuff, but not '\xHH' hex character constants.
6934 These don't provoke an error unfortunately, instead are silently treated
6935 as 'x'. The following induces an error, until -std is added to get
6936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6937 array size at least. It's necessary to write '\x00'==0 to get something
6938 that's true only with -std. */
6939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6942 inside strings and character constants. */
6944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6946 int test (int i, double x);
6947 struct s1 {int (*f) (int a);};
6948 struct s2 {int (*f) (double a);};
6949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6963 CC="$ac_save_CC $ac_arg"
6964 if ac_fn_c_try_compile "$LINENO"; then :
6965 ac_cv_prog_cc_c89=$ac_arg
6967 rm -f core conftest.err conftest.$ac_objext
6968 test "x$ac_cv_prog_cc_c89" != "xno" && break
6970 rm -f conftest.$ac_ext
6975 case "x$ac_cv_prog_cc_c89" in
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6978 $as_echo "none needed" >&6; } ;;
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6981 $as_echo "unsupported" >&6; } ;;
6983 CC="$CC $ac_cv_prog_cc_c89"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6985 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6987 if test "x$ac_cv_prog_cc_c89" != xno; then :
6988 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6990 ac_cv_prog_cc_stdc=no
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6997 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6998 if ${ac_cv_prog_cc_stdc+:} false; then :
6999 $as_echo_n "(cached) " >&6
7002 case $ac_cv_prog_cc_stdc in #(
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7005 $as_echo "unsupported" >&6; } ;; #(
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7008 $as_echo "none needed" >&6; } ;; #(
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7011 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7021 # On Suns, sometimes $CPP names a directory.
7022 if test -n "$CPP" && test -d "$CPP"; then
7025 if test -z "$CPP"; then
7026 if ${ac_cv_prog_CPP+:} false; then :
7027 $as_echo_n "(cached) " >&6
7029 # Double quotes because CPP needs to be expanded
7030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7033 for ac_c_preproc_warn_flag in '' yes
7035 # Use a header file that comes with gcc, so configuring glibc
7036 # with a fresh cross-compiler works.
7037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038 # <limits.h> exists even on freestanding compilers.
7039 # On the NeXT, cc -E runs the code through the compiler's parser,
7040 # not just through cpp. "Syntax error" is here to catch this case.
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7044 # include <limits.h>
7046 # include <assert.h>
7050 if ac_fn_c_try_cpp "$LINENO"; then :
7053 # Broken: fails on valid input.
7056 rm -f conftest.err conftest.i conftest.$ac_ext
7058 # OK, works on sane cases. Now check whether nonexistent headers
7059 # can be detected and how.
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 #include <ac_nonexistent.h>
7064 if ac_fn_c_try_cpp "$LINENO"; then :
7065 # Broken: success on invalid input.
7068 # Passes both tests.
7072 rm -f conftest.err conftest.i conftest.$ac_ext
7075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076 rm -f conftest.i conftest.err conftest.$ac_ext
7077 if $ac_preproc_ok; then :
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7090 $as_echo "$CPP" >&6; }
7092 for ac_c_preproc_warn_flag in '' yes
7094 # Use a header file that comes with gcc, so configuring glibc
7095 # with a fresh cross-compiler works.
7096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097 # <limits.h> exists even on freestanding compilers.
7098 # On the NeXT, cc -E runs the code through the compiler's parser,
7099 # not just through cpp. "Syntax error" is here to catch this case.
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7103 # include <limits.h>
7105 # include <assert.h>
7109 if ac_fn_c_try_cpp "$LINENO"; then :
7112 # Broken: fails on valid input.
7115 rm -f conftest.err conftest.i conftest.$ac_ext
7117 # OK, works on sane cases. Now check whether nonexistent headers
7118 # can be detected and how.
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 #include <ac_nonexistent.h>
7123 if ac_fn_c_try_cpp "$LINENO"; then :
7124 # Broken: success on invalid input.
7127 # Passes both tests.
7131 rm -f conftest.err conftest.i conftest.$ac_ext
7134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7135 rm -f conftest.i conftest.err conftest.$ac_ext
7136 if $ac_preproc_ok; then :
7139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7141 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7142 See \`config.log' for more details" "$LINENO" 5; }
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7153 if ${ac_cv_path_SED+:} false; then :
7154 $as_echo_n "(cached) " >&6
7156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7157 for ac_i in 1 2 3 4 5 6 7; do
7158 ac_script="$ac_script$as_nl$ac_script"
7160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7161 { ac_script=; unset ac_script;}
7162 if test -z "$SED"; then
7163 ac_path_SED_found=false
7164 # Loop through the user's path and test for each of PROGNAME-LIST
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_prog in sed gsed; do
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7174 # Check for GNU ac_path_SED and select it if it is found.
7175 # Check for GNU $ac_path_SED
7176 case `"$ac_path_SED" --version 2>&1` in
7178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7181 $as_echo_n 0123456789 >"conftest.in"
7184 cat "conftest.in" "conftest.in" >"conftest.tmp"
7185 mv "conftest.tmp" "conftest.in"
7186 cp "conftest.in" "conftest.nl"
7187 $as_echo '' >> "conftest.nl"
7188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7190 as_fn_arith $ac_count + 1 && ac_count=$as_val
7191 if test $ac_count -gt ${ac_path_SED_max-0}; then
7192 # Best one so far, save it but keep looking for a better one
7193 ac_cv_path_SED="$ac_path_SED"
7194 ac_path_SED_max=$ac_count
7196 # 10*(2^10) chars as input seems more than enough
7197 test $ac_count -gt 10 && break
7199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7202 $ac_path_SED_found && break 3
7207 if test -z "$ac_cv_path_SED"; then
7208 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7216 $as_echo "$ac_cv_path_SED" >&6; }
7217 SED="$ac_cv_path_SED"
7220 test -z "$SED" && SED=sed
7221 Xsed="$SED -e 1s/^X//"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7234 $as_echo_n "checking for fgrep... " >&6; }
7235 if ${ac_cv_path_FGREP+:} false; then :
7236 $as_echo_n "(cached) " >&6
7238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7239 then ac_cv_path_FGREP="$GREP -F"
7241 if test -z "$FGREP"; then
7242 ac_path_FGREP_found=false
7243 # Loop through the user's path and test for each of PROGNAME-LIST
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7248 test -z "$as_dir" && as_dir=.
7249 for ac_prog in fgrep; do
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7253 # Check for GNU ac_path_FGREP and select it if it is found.
7254 # Check for GNU $ac_path_FGREP
7255 case `"$ac_path_FGREP" --version 2>&1` in
7257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7260 $as_echo_n 0123456789 >"conftest.in"
7263 cat "conftest.in" "conftest.in" >"conftest.tmp"
7264 mv "conftest.tmp" "conftest.in"
7265 cp "conftest.in" "conftest.nl"
7266 $as_echo 'FGREP' >> "conftest.nl"
7267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7269 as_fn_arith $ac_count + 1 && ac_count=$as_val
7270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7271 # Best one so far, save it but keep looking for a better one
7272 ac_cv_path_FGREP="$ac_path_FGREP"
7273 ac_path_FGREP_max=$ac_count
7275 # 10*(2^10) chars as input seems more than enough
7276 test $ac_count -gt 10 && break
7278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7281 $ac_path_FGREP_found && break 3
7286 if test -z "$ac_cv_path_FGREP"; then
7287 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7290 ac_cv_path_FGREP=$FGREP
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7296 $as_echo "$ac_cv_path_FGREP" >&6; }
7297 FGREP="$ac_cv_path_FGREP"
7300 test -z "$GREP" && GREP=grep
7318 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7319 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7320 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7323 $as_echo_n "checking how to print strings... " >&6; }
7324 # Test print first, because it will be a builtin if present.
7325 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7326 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7328 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7331 # Use this function as a fallback that always works.
7332 func_fallback_echo ()
7334 eval 'cat <<_LTECHO_EOF
7338 ECHO='func_fallback_echo'
7341 # func_echo_all arg...
7342 # Invoke $ECHO with all args, space-separated.
7349 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7350 $as_echo "printf" >&6; } ;;
7351 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7352 $as_echo "print -r" >&6; } ;;
7353 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7354 $as_echo "cat" >&6; } ;;
7372 # Check whether --with-gnu-ld was given.
7373 if test "${with_gnu_ld+set}" = set; then :
7374 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7380 if test "$GCC" = yes; then
7381 # Check if gcc -print-prog-name=ld gives a path.
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7383 $as_echo_n "checking for ld used by $CC... " >&6; }
7386 # gcc leaves a trailing carriage return which upsets mingw
7387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7392 # Accept absolute paths.
7394 re_direlt='/[^/][^/]*/\.\./'
7395 # Canonicalize the pathname of ld
7396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7400 test -z "$LD" && LD="$ac_prog"
7403 # If it fails, then pretend we aren't using GCC.
7407 # If it is relative, then search for the first ld in PATH.
7411 elif test "$with_gnu_ld" = yes; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7413 $as_echo_n "checking for GNU ld... " >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7416 $as_echo_n "checking for non-GNU ld... " >&6; }
7418 if ${lt_cv_path_LD+:} false; then :
7419 $as_echo_n "(cached) " >&6
7421 if test -z "$LD"; then
7422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423 for ac_dir in $PATH; do
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7427 lt_cv_path_LD="$ac_dir/$ac_prog"
7428 # Check to see if the program is GNU ld. I'd rather use --version,
7429 # but apparently some variants of GNU ld only accept -v.
7430 # Break only if it was the GNU/non-GNU ld that we prefer.
7431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7432 *GNU* | *'with BFD'*)
7433 test "$with_gnu_ld" != no && break
7436 test "$with_gnu_ld" != yes && break
7443 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7448 if test -n "$LD"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7450 $as_echo "$LD" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7458 if ${lt_cv_prog_gnu_ld+:} false; then :
7459 $as_echo_n "(cached) " >&6
7461 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7462 case `$LD -v 2>&1 </dev/null` in
7463 *GNU* | *'with BFD'*)
7464 lt_cv_prog_gnu_ld=yes
7467 lt_cv_prog_gnu_ld=no
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7473 with_gnu_ld=$lt_cv_prog_gnu_ld
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7485 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7486 if ${ac_cv_prog_cc_c99+:} false; then :
7487 $as_echo_n "(cached) " >&6
7489 ac_cv_prog_cc_c99=no
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7494 #include <stdbool.h>
7499 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7500 #define debug(...) fprintf (stderr, __VA_ARGS__)
7501 #define showlist(...) puts (#__VA_ARGS__)
7502 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7504 test_varargs_macros (void)
7509 debug ("X = %d\n", x);
7510 showlist (The first, second, and third items.);
7511 report (x>y, "x is %d but y is %d", x, y);
7514 // Check long long types.
7515 #define BIG64 18446744073709551615ull
7516 #define BIG32 4294967295ul
7517 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7519 your preprocessor is broken;
7523 your preprocessor is broken;
7525 static long long int bignum = -9223372036854775807LL;
7526 static unsigned long long int ubignum = BIG64;
7528 struct incomplete_array
7536 const wchar_t *name;
7540 typedef const char *ccp;
7543 test_restrict (ccp restrict text)
7545 // See if C++-style comments work.
7546 // Iterate through items via the restricted pointer.
7547 // Also check for declarations in for loops.
7548 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7553 // Check varargs and va_copy.
7555 test_varargs (const char *format, ...)
7558 va_start (args, format);
7560 va_copy (args_copy, args);
7571 str = va_arg (args_copy, const char *);
7574 number = va_arg (args_copy, int);
7577 fnumber = va_arg (args_copy, double);
7592 _Bool success = false;
7595 if (test_restrict ("String literal") == 0)
7597 char *restrict newvar = "Another string";
7600 test_varargs ("s, d' f .", "string", 65, 34.234);
7601 test_varargs_macros ();
7603 // Check flexible array members.
7604 struct incomplete_array *ia =
7605 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7607 for (int i = 0; i < ia->datasize; ++i)
7608 ia->data[i] = i * 1.234;
7610 // Check named initializers.
7611 struct named_init ni = {
7613 .name = L"Test wide string",
7614 .average = 543.34343,
7619 int dynamic_array[ni.number];
7620 dynamic_array[ni.number - 1] = 543;
7622 // work around unused variable warnings
7623 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7624 || dynamic_array[ni.number - 1] != 543);
7630 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7632 CC="$ac_save_CC $ac_arg"
7633 if ac_fn_c_try_compile "$LINENO"; then :
7634 ac_cv_prog_cc_c99=$ac_arg
7636 rm -f core conftest.err conftest.$ac_objext
7637 test "x$ac_cv_prog_cc_c99" != "xno" && break
7639 rm -f conftest.$ac_ext
7644 case "x$ac_cv_prog_cc_c99" in
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7647 $as_echo "none needed" >&6; } ;;
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7650 $as_echo "unsupported" >&6; } ;;
7652 CC="$CC $ac_cv_prog_cc_c99"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7654 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7656 if test "x$ac_cv_prog_cc_c99" != xno; then :
7661 if test "x$CC" != xcc; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7663 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7666 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7668 set dummy $CC; ac_cc=`$as_echo "$2" |
7669 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7670 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7684 # Make sure it works both with $CC and with simple cc.
7685 # We do the test twice because some compilers refuse to overwrite an
7686 # existing .o file with -o, though they will create one.
7687 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7689 if { { case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7694 $as_echo "$ac_try_echo"; } >&5
7695 (eval "$ac_try") 2>&5
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; } &&
7699 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704 $as_echo "$ac_try_echo"; } >&5
7705 (eval "$ac_try") 2>&5
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; };
7710 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7711 if test "x$CC" != xcc; then
7712 # Test first that cc exists at all.
7713 if { ac_try='cc -c conftest.$ac_ext >&5'
7714 { { case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7719 $as_echo "$ac_try_echo"; } >&5
7720 (eval "$ac_try") 2>&5
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; }; then
7724 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7726 if { { case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7731 $as_echo "$ac_try_echo"; } >&5
7732 (eval "$ac_try") 2>&5
7734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; } &&
7736 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741 $as_echo "$ac_try_echo"; } >&5
7742 (eval "$ac_try") 2>&5
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; };
7750 # cc exists but doesn't like -o.
7751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7756 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7758 rm -f core conftest*
7761 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7763 $as_echo "yes" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7768 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7772 # FIXME: we rely on the cache variable name because
7773 # there is no other way.
7775 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7776 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7777 if test "$am_t" != yes; then
7778 # Losing compiler, so override with the script.
7779 # FIXME: It is wrong to rewrite CC.
7780 # But if we don't then we get into trouble of one sort or another.
7781 # A longer-term fix would be to have automake use am__CC in this case,
7782 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7783 CC="$am_aux_dir/compile $CC"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7788 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7789 if ${ac_cv_cflags_warn_all+:} false; then :
7790 $as_echo_n "(cached) " >&6
7792 ac_cv_cflags_warn_all="no, unknown"
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7799 ac_save_CFLAGS="$CFLAGS"
7800 for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7801 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7813 if ac_fn_c_try_compile "$LINENO"; then :
7814 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 CFLAGS="$ac_save_CFLAGS"
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7828 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7829 case ".$ac_cv_cflags_warn_all" in
7834 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7835 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7836 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }
7840 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7841 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }
7845 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7855 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7856 $as_echo_n "(cached) " >&6
7858 cat >conftest.make <<\_ACEOF
7861 @echo '@@@%%%=$(MAKE)=@@@%%%'
7863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7866 eval ac_cv_prog_make_${ac_make}_set=yes;;
7868 eval ac_cv_prog_make_${ac_make}_set=no;;
7872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7874 $as_echo "yes" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 SET_MAKE="MAKE=${MAKE-make}"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7883 $as_echo_n "checking whether ln -s works... " >&6; }
7885 if test "$LN_S" = "ln -s"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7887 $as_echo "yes" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7890 $as_echo "no, using $LN_S" >&6; }
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7894 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7896 # Check whether --with-dmalloc was given.
7897 if test "${with_dmalloc+set}" = set; then :
7898 withval=$with_dmalloc; if test "$withval" = yes; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7902 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7904 LIBS="$LIBS -ldmalloc"
7905 LDFLAGS="$LDFLAGS -g"
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7918 $as_echo_n "checking for __attribute__... " >&6; }
7919 if ${ax_cv___attribute__+:} false; then :
7920 $as_echo_n "(cached) " >&6
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7925 static void foo(void) __attribute__ ((unused));
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 ax_cv___attribute__=yes
7942 ax_cv___attribute__=no
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7949 $as_echo "$ax_cv___attribute__" >&6; }
7950 if test "$ax_cv___attribute__" = "yes"; then
7952 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7958 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7965 $as_echo_n "(cached) " >&6
7969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7991 if test -n "$PKG_CONFIG"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7993 $as_echo "$PKG_CONFIG" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8001 if test -z "$ac_cv_path_PKG_CONFIG"; then
8002 ac_pt_PKG_CONFIG=$PKG_CONFIG
8003 # Extract the first word of "pkg-config", so it can be a program name with args.
8004 set dummy pkg-config; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 case $ac_pt_PKG_CONFIG in
8012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8034 if test -n "$ac_pt_PKG_CONFIG"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8036 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8042 if test "x$ac_pt_PKG_CONFIG" = x; then
8045 case $cross_compiling:$ac_tool_warned in
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8051 PKG_CONFIG=$ac_pt_PKG_CONFIG
8054 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8058 if test -n "$PKG_CONFIG"; then
8059 _pkg_min_version=0.9.0
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8061 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8062 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064 $as_echo "yes" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8074 # Enable run-time checking.
8076 # Check whether --enable-bounds-checking was given.
8077 if test "${enable_bounds_checking+set}" = set; then :
8078 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8080 enable_bounds_checking='no'
8084 if test "$enable_bounds_checking" = yes; then
8086 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8096 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8097 if ${ax_cv_c_compiler_ms+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8114 if ac_fn_c_try_compile "$LINENO"; then :
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 ax_cv_c_compiler_ms=$ax_compiler_ms
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8124 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8127 native_win32_build='no'
8129 case "${host_os}" in
8132 GDI32_LIBS='-lgdi32'
8135 native_win32_build='yes'
8136 GDI32_LIBS='-lgdi32'
8139 if test "${GDI32_LIBS}x" != 'x'; then
8141 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8145 if test "${GDI32_LIBS}x" != 'x' ; then
8146 WINGDI32_DELEGATE_TRUE=
8147 WINGDI32_DELEGATE_FALSE='#'
8149 WINGDI32_DELEGATE_TRUE='#'
8150 WINGDI32_DELEGATE_FALSE=
8153 if test "${native_win32_build}" = 'yes' ; then
8154 WIN32_NATIVE_BUILD_TRUE=
8155 WIN32_NATIVE_BUILD_FALSE='#'
8157 WIN32_NATIVE_BUILD_TRUE='#'
8158 WIN32_NATIVE_BUILD_FALSE=
8161 if test "${cygwin_build}" = 'yes' ; then
8163 CYGWIN_BUILD_FALSE='#'
8165 CYGWIN_BUILD_TRUE='#'
8169 if test "x${CC}" = 'xcl.exe' ; then
8178 WinPathScript="${srcdirfull}/winpath.sh"
8182 # Compiler flags tweaks
8184 if test "${GCC}" != "yes"; then
8187 # aCC: HP ANSI C++ B3910B A.03.34
8188 CFLAGS="${CFLAGS} -Wp,-H30000"
8189 if test -n "${CXXFLAGS}"; then
8192 CXXFLAGS="${CXXFLAGS} -AA"
8196 # Compaq alphaev68-dec-osf5.1 compiler
8197 if test -n "${CXXFLAGS}"; then
8198 CXXFLAGS='-std strict_ansi -noimplicit_include'
8200 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8205 # Check for lazy-loading.
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8207 $as_echo_n "checking for linker lazyload option... " >&6; }
8208 if ${im_cv_ld_lazyload+:} false; then :
8209 $as_echo_n "(cached) " >&6
8212 im_cv_ld_lazyload='none'
8214 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8215 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8216 im_cv_ld_lazyload='-Wl,-zlazyload'
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8223 $as_echo "$im_cv_ld_lazyload" >&6; }
8224 if test "${im_cv_ld_lazyload}" != 'none' ; then
8225 if test -z "${LDFLAGS}" ; then
8226 LDFLAGS="${im_cv_ld_lazyload}"
8228 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8233 *darwin* | *-macos10*)
8234 # Check whether --enable-osx-universal-binary was given.
8235 if test "${enable_osx_universal_binary+set}" = set; then :
8236 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8238 build_osxuniversal=no
8242 if test "${build_osxuniversal}" != no ; then
8243 if test "$enable_dependency_tracking" != no ; then
8244 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8245 Please re-run configure with these options:
8246 --disable-dependency-tracking --enable-osx-universal-binary
8249 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8250 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8251 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8256 # Enable support for threads
8258 # Check whether --with-threads was given.
8259 if test "${with_threads+set}" = set; then :
8260 withval=$with_threads; with_threads=$withval
8267 if test "$with_threads" != 'no'; then
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8278 # We used to check for pthread.h first, but this fails if pthread.h
8279 # requires special compiler flags (e.g. on True64 or Sequent).
8280 # It gets checked for in the link test anyway.
8282 # First of all, check if the user has set any of the PTHREAD_LIBS,
8283 # etcetera environment variables, and if threads linking works using
8285 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8286 save_CFLAGS="$CFLAGS"
8287 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8289 LIBS="$PTHREAD_LIBS $LIBS"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8291 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8295 /* Override any GCC internal prototype to avoid an error.
8296 Use char because int might match the return type of a GCC
8297 builtin and then its argument prototype would still apply. */
8301 char pthread_join ();
8305 return pthread_join ();
8310 if ac_fn_c_try_link "$LINENO"; then :
8313 rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8316 $as_echo "$ax_pthread_ok" >&6; }
8317 if test x"$ax_pthread_ok" = xno; then
8322 CFLAGS="$save_CFLAGS"
8325 # We must check for the threads library under a number of different
8326 # names; the ordering is very important because some systems
8327 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8328 # libraries is broken (non-POSIX).
8330 # Create a list of thread flags to try. Items starting with a "-" are
8331 # C compiler flags, and other items are library names, except for "none"
8332 # which indicates that we try without any flags at all, and "pthread-config"
8333 # which is a program returning the flags for the Pth emulation library.
8335 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8337 # The ordering *is* (sometimes) important. Some notes on the
8338 # individual items follow:
8340 # pthreads: AIX (must check this before -lpthread)
8341 # none: in case threads are in libc; should be tried before -Kthread and
8342 # other compiler flags to prevent continual compiler warnings
8343 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8344 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8345 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8346 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8347 # -pthreads: Solaris/gcc
8348 # -mthreads: Mingw32/gcc, Lynx/gcc
8349 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8350 # doesn't hurt to check since this sometimes defines pthreads too;
8351 # also defines -D_REENTRANT)
8352 # ... -mt is also the pthreads flag for HP/aCC
8353 # pthread: Linux, etcetera
8354 # --thread-safe: KAI C++
8355 # pthread-config: use pthread-config program (for GNU Pth library)
8357 case "${host_cpu}-${host_os}" in
8360 # On Solaris (at least, for some versions), libc contains stubbed
8361 # (non-functional) versions of the pthreads routines, so link-based
8362 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8363 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8364 # a function called by this macro, so we could check for that, but
8365 # who knows whether they'll stub that too in a future libc.) So,
8366 # we'll just look for -pthreads and -lpthread first:
8368 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8372 ax_pthread_flags="-pthread $ax_pthread_flags"
8376 if test x"$ax_pthread_ok" = xno; then
8377 for flag in $ax_pthread_flags; do
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8382 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8387 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8388 PTHREAD_CFLAGS="$flag"
8392 # Extract the first word of "pthread-config", so it can be a program name with args.
8393 set dummy pthread-config; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8397 $as_echo_n "(cached) " >&6
8399 if test -n "$ax_pthread_config"; then
8400 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_ax_pthread_config="yes"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8420 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8421 if test -n "$ax_pthread_config"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8423 $as_echo "$ax_pthread_config" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8430 if test x"$ax_pthread_config" = xno; then continue; fi
8431 PTHREAD_CFLAGS="`pthread-config --cflags`"
8432 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8437 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8438 PTHREAD_LIBS="-l$flag"
8443 save_CFLAGS="$CFLAGS"
8444 LIBS="$PTHREAD_LIBS $LIBS"
8445 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8447 # Check for various functions. We must include pthread.h,
8448 # since some functions may be macros. (On the Sequent, we
8449 # need a special flag -Kthread to make this header compile.)
8450 # We check for pthread_join because it is in -lpthread on IRIX
8451 # while pthread_create is in libc. We check for pthread_attr_init
8452 # due to DEC craziness with -lpthreads. We check for
8453 # pthread_cleanup_push because it is one of the few pthread
8454 # functions on Solaris that doesn't have a non-functional libc stub.
8455 # We try pthread_create on general principles.
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8458 #include <pthread.h>
8459 static void routine(void *a) { a = 0; }
8460 static void *start_routine(void *a) { return a; }
8464 pthread_t th; pthread_attr_t attr;
8465 pthread_create(&th, 0, start_routine, 0);
8466 pthread_join(th, 0);
8467 pthread_attr_init(&attr);
8468 pthread_cleanup_push(routine, 0);
8469 pthread_cleanup_pop(0) /* ; */
8474 if ac_fn_c_try_link "$LINENO"; then :
8477 rm -f core conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8481 CFLAGS="$save_CFLAGS"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8484 $as_echo "$ax_pthread_ok" >&6; }
8485 if test "x$ax_pthread_ok" = xyes; then
8494 # Various other checks:
8495 if test "x$ax_pthread_ok" = xyes; then
8497 LIBS="$PTHREAD_LIBS $LIBS"
8498 save_CFLAGS="$CFLAGS"
8499 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8501 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8503 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8505 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <pthread.h>
8512 int attr = $attr; return attr /* ; */
8517 if ac_fn_c_try_link "$LINENO"; then :
8518 attr_name=$attr; break
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8524 $as_echo "$attr_name" >&6; }
8525 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8527 cat >>confdefs.h <<_ACEOF
8528 #define PTHREAD_CREATE_JOINABLE $attr_name
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8534 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8536 case "${host_cpu}-${host_os}" in
8537 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8538 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8541 $as_echo "${flag}" >&6; }
8542 if test "x$flag" != xno; then
8543 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8547 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8548 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8549 $as_echo_n "(cached) " >&6
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8555 #include <pthread.h>
8559 int i = PTHREAD_PRIO_INHERIT;
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 ax_cv_PTHREAD_PRIO_INHERIT=yes
8567 ax_cv_PTHREAD_PRIO_INHERIT=no
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8574 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8575 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8577 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8582 CFLAGS="$save_CFLAGS"
8584 # More AIX lossage: must compile with xlc_r or cc_r
8585 if test x"$GCC" != xyes; then
8586 for ac_prog in xlc_r cc_r
8588 # Extract the first word of "$ac_prog", so it can be a program name with args.
8589 set dummy $ac_prog; ac_word=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8593 $as_echo_n "(cached) " >&6
8595 if test -n "$PTHREAD_CC"; then
8596 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8605 ac_cv_prog_PTHREAD_CC="$ac_prog"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8616 if test -n "$PTHREAD_CC"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8618 $as_echo "$PTHREAD_CC" >&6; }
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8625 test -n "$PTHREAD_CC" && break
8627 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8640 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8641 if test x"$ax_pthread_ok" = xyes; then
8643 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8657 if test "$ax_pthread_ok" = yes; then
8659 DEF_THREAD="$PTHREAD_CFLAGS"
8660 CFLAGS="$CFLAGS $DEF_THREAD"
8661 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8662 if test "$CC" != "$PTHREAD_CC"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8664 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8668 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8673 # Enable support for OpenMP
8674 if test "$have_threads" != 'yes'; then
8675 ac_cv_prog_c_openmp=unsupported
8679 # Check whether --enable-openmp was given.
8680 if test "${enable_openmp+set}" = set; then :
8681 enableval=$enable_openmp;
8684 if test "$enable_openmp" != no; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8686 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8687 if ${ac_cv_prog_c_openmp+:} false; then :
8688 $as_echo_n "(cached) " >&6
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8697 int main () { return omp_get_num_threads (); }
8700 if ac_fn_c_try_link "$LINENO"; then :
8701 ac_cv_prog_c_openmp='none needed'
8703 ac_cv_prog_c_openmp='unsupported'
8704 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8705 ac_save_CFLAGS=$CFLAGS
8706 CFLAGS="$CFLAGS $ac_option"
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8714 int main () { return omp_get_num_threads (); }
8717 if ac_fn_c_try_link "$LINENO"; then :
8718 ac_cv_prog_c_openmp=$ac_option
8720 rm -f core conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
8722 CFLAGS=$ac_save_CFLAGS
8723 if test "$ac_cv_prog_c_openmp" != unsupported; then
8728 rm -f core conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8732 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8733 case $ac_cv_prog_c_openmp in #(
8734 "none needed" | unsupported)
8737 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8742 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8743 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8745 if test "$enable_openmp" != no; then
8746 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8747 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8751 # Enable support for OpenCL
8755 ac_cpp='$CPP $CPPFLAGS'
8756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8762 # We used to check for pthread.h first, but this fails if pthread.h
8763 # requires special compiler flags (e.g. on True64 or Sequent).
8764 # It gets checked for in the link test anyway.
8766 # First of all, check if the user has set any of the PTHREAD_LIBS,
8767 # etcetera environment variables, and if threads linking works using
8769 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8770 save_CFLAGS="$CFLAGS"
8771 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8773 LIBS="$PTHREAD_LIBS $LIBS"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8775 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8779 /* Override any GCC internal prototype to avoid an error.
8780 Use char because int might match the return type of a GCC
8781 builtin and then its argument prototype would still apply. */
8785 char pthread_join ();
8789 return pthread_join ();
8794 if ac_fn_c_try_link "$LINENO"; then :
8797 rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8800 $as_echo "$ax_pthread_ok" >&6; }
8801 if test x"$ax_pthread_ok" = xno; then
8806 CFLAGS="$save_CFLAGS"
8809 # We must check for the threads library under a number of different
8810 # names; the ordering is very important because some systems
8811 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8812 # libraries is broken (non-POSIX).
8814 # Create a list of thread flags to try. Items starting with a "-" are
8815 # C compiler flags, and other items are library names, except for "none"
8816 # which indicates that we try without any flags at all, and "pthread-config"
8817 # which is a program returning the flags for the Pth emulation library.
8819 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8821 # The ordering *is* (sometimes) important. Some notes on the
8822 # individual items follow:
8824 # pthreads: AIX (must check this before -lpthread)
8825 # none: in case threads are in libc; should be tried before -Kthread and
8826 # other compiler flags to prevent continual compiler warnings
8827 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8828 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8829 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8830 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8831 # -pthreads: Solaris/gcc
8832 # -mthreads: Mingw32/gcc, Lynx/gcc
8833 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8834 # doesn't hurt to check since this sometimes defines pthreads too;
8835 # also defines -D_REENTRANT)
8836 # ... -mt is also the pthreads flag for HP/aCC
8837 # pthread: Linux, etcetera
8838 # --thread-safe: KAI C++
8839 # pthread-config: use pthread-config program (for GNU Pth library)
8841 case "${host_cpu}-${host_os}" in
8844 # On Solaris (at least, for some versions), libc contains stubbed
8845 # (non-functional) versions of the pthreads routines, so link-based
8846 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8847 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8848 # a function called by this macro, so we could check for that, but
8849 # who knows whether they'll stub that too in a future libc.) So,
8850 # we'll just look for -pthreads and -lpthread first:
8852 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8856 ax_pthread_flags="-pthread $ax_pthread_flags"
8860 if test x"$ax_pthread_ok" = xno; then
8861 for flag in $ax_pthread_flags; do
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8866 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8871 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8872 PTHREAD_CFLAGS="$flag"
8876 # Extract the first word of "pthread-config", so it can be a program name with args.
8877 set dummy pthread-config; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8881 $as_echo_n "(cached) " >&6
8883 if test -n "$ax_pthread_config"; then
8884 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_ax_pthread_config="yes"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8904 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8905 if test -n "$ax_pthread_config"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8907 $as_echo "$ax_pthread_config" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8914 if test x"$ax_pthread_config" = xno; then continue; fi
8915 PTHREAD_CFLAGS="`pthread-config --cflags`"
8916 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8921 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8922 PTHREAD_LIBS="-l$flag"
8927 save_CFLAGS="$CFLAGS"
8928 LIBS="$PTHREAD_LIBS $LIBS"
8929 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8931 # Check for various functions. We must include pthread.h,
8932 # since some functions may be macros. (On the Sequent, we
8933 # need a special flag -Kthread to make this header compile.)
8934 # We check for pthread_join because it is in -lpthread on IRIX
8935 # while pthread_create is in libc. We check for pthread_attr_init
8936 # due to DEC craziness with -lpthreads. We check for
8937 # pthread_cleanup_push because it is one of the few pthread
8938 # functions on Solaris that doesn't have a non-functional libc stub.
8939 # We try pthread_create on general principles.
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include <pthread.h>
8943 static void routine(void *a) { a = 0; }
8944 static void *start_routine(void *a) { return a; }
8948 pthread_t th; pthread_attr_t attr;
8949 pthread_create(&th, 0, start_routine, 0);
8950 pthread_join(th, 0);
8951 pthread_attr_init(&attr);
8952 pthread_cleanup_push(routine, 0);
8953 pthread_cleanup_pop(0) /* ; */
8958 if ac_fn_c_try_link "$LINENO"; then :
8961 rm -f core conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8965 CFLAGS="$save_CFLAGS"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8968 $as_echo "$ax_pthread_ok" >&6; }
8969 if test "x$ax_pthread_ok" = xyes; then
8978 # Various other checks:
8979 if test "x$ax_pthread_ok" = xyes; then
8981 LIBS="$PTHREAD_LIBS $LIBS"
8982 save_CFLAGS="$CFLAGS"
8983 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8985 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8987 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8989 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 #include <pthread.h>
8996 int attr = $attr; return attr /* ; */
9001 if ac_fn_c_try_link "$LINENO"; then :
9002 attr_name=$attr; break
9004 rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9008 $as_echo "$attr_name" >&6; }
9009 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9011 cat >>confdefs.h <<_ACEOF
9012 #define PTHREAD_CREATE_JOINABLE $attr_name
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9018 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9020 case "${host_cpu}-${host_os}" in
9021 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9022 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9025 $as_echo "${flag}" >&6; }
9026 if test "x$flag" != xno; then
9027 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9031 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9032 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9033 $as_echo_n "(cached) " >&6
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9039 #include <pthread.h>
9043 int i = PTHREAD_PRIO_INHERIT;
9048 if ac_fn_c_try_link "$LINENO"; then :
9049 ax_cv_PTHREAD_PRIO_INHERIT=yes
9051 ax_cv_PTHREAD_PRIO_INHERIT=no
9053 rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9058 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9059 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9061 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9066 CFLAGS="$save_CFLAGS"
9068 # More AIX lossage: must compile with xlc_r or cc_r
9069 if test x"$GCC" != xyes; then
9070 for ac_prog in xlc_r cc_r
9072 # Extract the first word of "$ac_prog", so it can be a program name with args.
9073 set dummy $ac_prog; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9077 $as_echo_n "(cached) " >&6
9079 if test -n "$PTHREAD_CC"; then
9080 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089 ac_cv_prog_PTHREAD_CC="$ac_prog"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9100 if test -n "$PTHREAD_CC"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9102 $as_echo "$PTHREAD_CC" >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9109 test -n "$PTHREAD_CC" && break
9111 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9124 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9125 if test x"$ax_pthread_ok" = xyes; then
9127 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9135 ac_cpp='$CPP $CPPFLAGS'
9136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9142 # Check whether --enable-opencl was given.
9143 if test "${enable_opencl+set}" = set; then :
9144 enableval=$enable_opencl; disable_opencl=$enableval
9146 disable_opencl='yes'
9150 if test "$disable_opencl" = 'yes'; then
9152 ac_cpp='$CPP $CPPFLAGS'
9153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9158 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9159 if ${ax_cv_c_compiler_ms+:} false; then :
9160 $as_echo_n "(cached) " >&6
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9176 if ac_fn_c_try_compile "$LINENO"; then :
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 ax_cv_c_compiler_ms=$ax_compiler_ms
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9186 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9187 if test X$ax_compiler_ms = Xno; then :
9188 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9191 ax_save_CPPFLAGS=$CPPFLAGS
9192 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9193 for ac_header in CL/cl.h OpenCL/cl.h
9195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9198 cat >>confdefs.h <<_ACEOF
9199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206 CPPFLAGS=$ax_save_CPPFLAGS
9208 for ac_header in windows.h
9210 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9211 if test "x$ac_cv_header_windows_h" = xyes; then :
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_WINDOWS_H 1
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9224 $as_echo_n "checking for OpenCL library... " >&6; }
9225 if ${ax_cv_check_cl_libcl+:} false; then :
9226 $as_echo_n "(cached) " >&6
9228 ax_cv_check_cl_libcl=no
9230 x86_64) ax_check_cl_libdir=lib64 ;;
9231 *) ax_check_cl_libdir=lib ;;
9233 ax_save_CPPFLAGS=$CPPFLAGS
9234 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9237 ax_check_libs="-lOpenCL -lCL -lclparser"
9238 for ax_lib in $ax_check_libs; do
9239 if test X$ax_compiler_ms = Xyes; then :
9240 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9244 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9248 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9249 # include <windows.h>
9251 # ifdef HAVE_CL_CL_H
9253 # elif defined(HAVE_OPENCL_CL_H)
9254 # include <OpenCL/cl.h>
9261 clCreateContextFromType(0,0,0,0,0)
9266 if ac_fn_c_try_link "$LINENO"; then :
9267 ax_cv_check_cl_libcl=$ax_try_lib; break
9269 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9273 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9274 # include <windows.h>
9276 # ifdef HAVE_CL_CL_H
9278 # elif defined(HAVE_OPENCL_CL_H)
9279 # include <OpenCL/cl.h>
9286 clCreateContextFromType(0,0,0,0,0)
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9294 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9298 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9299 # include <windows.h>
9301 # ifdef HAVE_CL_CL_H
9303 # elif defined(HAVE_OPENCL_CL_H)
9304 # include <OpenCL/cl.h>
9311 clCreateContextFromType(0,0,0,0,0)
9316 if ac_fn_c_try_link "$LINENO"; then :
9317 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9319 rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9322 rm -f core conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext conftest.$ac_ext
9325 rm -f core conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9329 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9330 LIBS='-Wl,-framework,OpenCL'
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9334 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9335 # include <windows.h>
9337 # ifdef HAVE_CL_CL_H
9339 # elif defined(HAVE_OPENCL_CL_H)
9340 # include <OpenCL/cl.h>
9347 clCreateContextFromType(0,0,0,0,0)
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 ax_cv_check_cl_libcl=$LIBS
9355 rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9360 CPPFLAGS=$ax_save_CPPFLAGS
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9363 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9365 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9366 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9368 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9369 $as_echo "#define _OPENCL 1" >>confdefs.h
9373 ac_cpp='$CPP $CPPFLAGS'
9374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9383 CFLAGS="$CL_CFLAGS $CFLAGS"
9384 LIBS="$CL_LIBS $LIBS"
9386 if test "$enable_opencl" != no; then
9387 if test "X$ax_cv_check_cl_libcl" != Xno; then :
9388 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9394 # Check for large file support
9397 # Check whether --enable-largefile was given.
9398 if test "${enable_largefile+set}" = set; then :
9399 enableval=$enable_largefile;
9402 if test "$enable_largefile" != no; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9405 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9406 if ${ac_cv_sys_largefile_CC+:} false; then :
9407 $as_echo_n "(cached) " >&6
9409 ac_cv_sys_largefile_CC=no
9410 if test "$GCC" != yes; then
9413 # IRIX 6.2 and later do not support large files by default,
9414 # so use the C compiler's -n32 option if that helps.
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 #include <sys/types.h>
9418 /* Check that off_t can represent 2**63 - 1 correctly.
9419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9420 since some C++ compilers masquerading as C compilers
9421 incorrectly reject 9223372036854775807. */
9422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9424 && LARGE_OFF_T % 2147483647 == 1)
9434 if ac_fn_c_try_compile "$LINENO"; then :
9437 rm -f core conftest.err conftest.$ac_objext
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 ac_cv_sys_largefile_CC=' -n32'; break
9442 rm -f core conftest.err conftest.$ac_objext
9446 rm -f conftest.$ac_ext
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9450 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9451 if test "$ac_cv_sys_largefile_CC" != no; then
9452 CC=$CC$ac_cv_sys_largefile_CC
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9456 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9457 if ${ac_cv_sys_file_offset_bits+:} false; then :
9458 $as_echo_n "(cached) " >&6
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463 #include <sys/types.h>
9464 /* Check that off_t can represent 2**63 - 1 correctly.
9465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9466 since some C++ compilers masquerading as C compilers
9467 incorrectly reject 9223372036854775807. */
9468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9470 && LARGE_OFF_T % 2147483647 == 1)
9480 if ac_fn_c_try_compile "$LINENO"; then :
9481 ac_cv_sys_file_offset_bits=no; break
9483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 #define _FILE_OFFSET_BITS 64
9487 #include <sys/types.h>
9488 /* Check that off_t can represent 2**63 - 1 correctly.
9489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9490 since some C++ compilers masquerading as C compilers
9491 incorrectly reject 9223372036854775807. */
9492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9494 && LARGE_OFF_T % 2147483647 == 1)
9504 if ac_fn_c_try_compile "$LINENO"; then :
9505 ac_cv_sys_file_offset_bits=64; break
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508 ac_cv_sys_file_offset_bits=unknown
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9513 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9514 case $ac_cv_sys_file_offset_bits in #(
9517 cat >>confdefs.h <<_ACEOF
9518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9523 if test $ac_cv_sys_file_offset_bits = unknown; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9525 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9526 if ${ac_cv_sys_large_files+:} false; then :
9527 $as_echo_n "(cached) " >&6
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532 #include <sys/types.h>
9533 /* Check that off_t can represent 2**63 - 1 correctly.
9534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9535 since some C++ compilers masquerading as C compilers
9536 incorrectly reject 9223372036854775807. */
9537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9539 && LARGE_OFF_T % 2147483647 == 1)
9549 if ac_fn_c_try_compile "$LINENO"; then :
9550 ac_cv_sys_large_files=no; break
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9555 #define _LARGE_FILES 1
9556 #include <sys/types.h>
9557 /* Check that off_t can represent 2**63 - 1 correctly.
9558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9559 since some C++ compilers masquerading as C compilers
9560 incorrectly reject 9223372036854775807. */
9561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9563 && LARGE_OFF_T % 2147483647 == 1)
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574 ac_cv_sys_large_files=1; break
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577 ac_cv_sys_large_files=unknown
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9582 $as_echo "$ac_cv_sys_large_files" >&6; }
9583 case $ac_cv_sys_large_files in #(
9586 cat >>confdefs.h <<_ACEOF
9587 #define _LARGE_FILES $ac_cv_sys_large_files
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9596 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9597 if ${ac_cv_sys_largefile_source+:} false; then :
9598 $as_echo_n "(cached) " >&6
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603 #include <sys/types.h> /* for off_t */
9608 int (*fp) (FILE *, off_t, int) = fseeko;
9609 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 ac_cv_sys_largefile_source=no; break
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621 #define _LARGEFILE_SOURCE 1
9622 #include <sys/types.h> /* for off_t */
9627 int (*fp) (FILE *, off_t, int) = fseeko;
9628 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9633 if ac_fn_c_try_link "$LINENO"; then :
9634 ac_cv_sys_largefile_source=1; break
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 ac_cv_sys_largefile_source=unknown
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9643 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9644 case $ac_cv_sys_largefile_source in #(
9647 cat >>confdefs.h <<_ACEOF
9648 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9654 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9655 # in glibc 2.1.3, but that breaks too many other things.
9656 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9657 if test $ac_cv_sys_largefile_source != unknown; then
9659 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9664 if test "$enable_largefile" != no; then
9665 case $ac_cv_sys_file_offset_bits in
9667 # nothing to do here as the host supports LFS fine
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9671 $as_echo_n "checking for native large file support... " >&6; }
9672 if test "$cross_compiling" = yes; then :
9673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9675 as_fn_error $? "cannot run test program while cross compiling
9676 See \`config.log' for more details" "$LINENO" 5; }
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9682 exit(!(sizeof(off_t) == 8));
9692 if ac_fn_c_try_run "$LINENO"; then :
9693 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9696 $as_echo "$as_me: yes" >&6;}
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9699 $as_echo "$as_me: no" >&6;}
9701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9702 conftest.$ac_objext conftest.beam conftest.$ac_ext
9707 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9710 if test "$ac_cv_sys_large_files" != 'no'; then
9711 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9713 if test "$ac_cv_sys_largefile_source" != 'no'; then
9714 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9720 # ARCH specific include directory
9723 # Check whether --with-includedir-arch was given.
9724 if test "${with_includedir_arch+set}" = set; then :
9725 withval=$with_includedir_arch; includedir_arch=$withval
9727 includedir_arch=$INCLUDE_DIR
9732 cat >>confdefs.h <<_ACEOF
9733 #define INCLUDEDIR_ARCH "$includedir_arch"
9738 # ARCH specific configuration directory
9741 # Check whether --with-configdir-arch was given.
9742 if test "${with_configdir_arch+set}" = set; then :
9743 withval=$with_configdir_arch; configdir_arch=$withval
9745 configdir_arch="${LIB_DIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}"
9750 cat >>confdefs.h <<_ACEOF
9751 #define CONFIGDIR_ARCH "$configdir_arch"
9756 # Configure libtool & libltdl
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9766 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9772 macro_revision='1.3293'
9786 ltmain="$ac_aux_dir/ltmain.sh"
9788 # Backslashify metacharacters that are still active within
9789 # double-quoted strings.
9790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9792 # Same as above, but do not quote variable references.
9793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9795 # Sed substitution to delay expansion of an escaped shell variable in a
9796 # double_quote_subst'ed string.
9797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9799 # Sed substitution to delay expansion of an escaped single quote.
9800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9802 # Sed substitution to avoid accidental globbing in evaled expressions
9803 no_glob_subst='s/\*/\\\*/g'
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9806 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9807 if ${lt_cv_path_NM+:} false; then :
9808 $as_echo_n "(cached) " >&6
9810 if test -n "$NM"; then
9811 # Let the user override the test.
9814 lt_nm_to_check="${ac_tool_prefix}nm"
9815 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9816 lt_nm_to_check="$lt_nm_to_check nm"
9818 for lt_tmp_nm in $lt_nm_to_check; do
9819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9820 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9822 test -z "$ac_dir" && ac_dir=.
9823 tmp_nm="$ac_dir/$lt_tmp_nm"
9824 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9825 # Check to see if the nm accepts a BSD-compat flag.
9826 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9827 # nm: unknown option "B" ignored
9828 # Tru64's nm complains that /dev/null is an invalid object file
9829 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9830 */dev/null* | *'Invalid file or object type'*)
9831 lt_cv_path_NM="$tmp_nm -B"
9835 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9837 lt_cv_path_NM="$tmp_nm -p"
9841 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9842 continue # so that we can try to find one that supports BSD flags
9851 : ${lt_cv_path_NM=no}
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9855 $as_echo "$lt_cv_path_NM" >&6; }
9856 if test "$lt_cv_path_NM" != "no"; then
9859 # Didn't find any BSD compatible name lister, look for dumpbin.
9860 if test -n "$DUMPBIN"; then :
9861 # Let the user override the test.
9863 if test -n "$ac_tool_prefix"; then
9864 for ac_prog in dumpbin "link -dump"
9866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if ${ac_cv_prog_DUMPBIN+:} false; then :
9871 $as_echo_n "(cached) " >&6
9873 if test -n "$DUMPBIN"; then
9874 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9893 DUMPBIN=$ac_cv_prog_DUMPBIN
9894 if test -n "$DUMPBIN"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9896 $as_echo "$DUMPBIN" >&6; }
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9903 test -n "$DUMPBIN" && break
9906 if test -z "$DUMPBIN"; then
9907 ac_ct_DUMPBIN=$DUMPBIN
9908 for ac_prog in dumpbin "link -dump"
9910 # Extract the first word of "$ac_prog", so it can be a program name with args.
9911 set dummy $ac_prog; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9915 $as_echo_n "(cached) " >&6
9917 if test -n "$ac_ct_DUMPBIN"; then
9918 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9938 if test -n "$ac_ct_DUMPBIN"; then
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9940 $as_echo "$ac_ct_DUMPBIN" >&6; }
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; }
9947 test -n "$ac_ct_DUMPBIN" && break
9950 if test "x$ac_ct_DUMPBIN" = x; then
9953 case $cross_compiling:$ac_tool_warned in
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9957 ac_tool_warned=yes ;;
9959 DUMPBIN=$ac_ct_DUMPBIN
9963 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9965 DUMPBIN="$DUMPBIN -symbols"
9973 if test "$DUMPBIN" != ":"; then
9977 test -z "$NM" && NM=nm
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9985 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9986 if ${lt_cv_nm_interface+:} false; then :
9987 $as_echo_n "(cached) " >&6
9989 lt_cv_nm_interface="BSD nm"
9990 echo "int some_variable = 0;" > conftest.$ac_ext
9991 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9992 (eval "$ac_compile" 2>conftest.err)
9993 cat conftest.err >&5
9994 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9995 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9996 cat conftest.err >&5
9997 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9998 cat conftest.out >&5
9999 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10000 lt_cv_nm_interface="MS dumpbin"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10005 $as_echo "$lt_cv_nm_interface" >&6; }
10007 # find the maximum length of command line arguments
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10009 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10010 if ${lt_cv_sys_max_cmd_len+:} false; then :
10011 $as_echo_n "(cached) " >&6
10018 # On DJGPP, this test can blow up pretty badly due to problems in libc
10019 # (any single argument exceeding 2000 bytes causes a buffer overrun
10020 # during glob expansion). Even if it were fixed, the result of this
10021 # check would be larger than it should be.
10022 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10026 # Under GNU Hurd, this test is not required because there is
10027 # no limit to the length of command line arguments.
10028 # Libtool will interpret -1 as no limit whatsoever
10029 lt_cv_sys_max_cmd_len=-1;
10032 cygwin* | mingw* | cegcc*)
10033 # On Win9x/ME, this test blows up -- it succeeds, but takes
10034 # about 5 minutes as the teststring grows exponentially.
10035 # Worse, since 9x/ME are not pre-emptively multitasking,
10036 # you end up with a "frozen" computer, even though with patience
10037 # the test eventually succeeds (with a max line length of 256k).
10038 # Instead, let's just punt: use the minimum linelength reported by
10039 # all of the supported platforms: 8192 (on NT/2K/XP).
10040 lt_cv_sys_max_cmd_len=8192;
10044 # On MiNT this can take a long time and run out of memory.
10045 lt_cv_sys_max_cmd_len=8192;
10049 # On AmigaOS with pdksh, this test takes hours, literally.
10050 # So we just punt and use a minimum line length of 8192.
10051 lt_cv_sys_max_cmd_len=8192;
10054 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10055 # This has been around since 386BSD, at least. Likely further.
10056 if test -x /sbin/sysctl; then
10057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10058 elif test -x /usr/sbin/sysctl; then
10059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10063 # And add a safety zone
10064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10070 lt_cv_sys_max_cmd_len=196608
10074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10076 # nice to cause kernel panics so lets avoid the loop below.
10077 # First set a reasonable default.
10078 lt_cv_sys_max_cmd_len=16384
10080 if test -x /sbin/sysconfig; then
10081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10082 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10087 lt_cv_sys_max_cmd_len=102400
10089 sysv5* | sco5v6* | sysv4.2uw2*)
10090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10091 if test -n "$kargmax"; then
10092 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10094 lt_cv_sys_max_cmd_len=32768
10098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10099 if test -n "$lt_cv_sys_max_cmd_len"; then
10100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10103 # Make teststring a little bigger before we do anything with it.
10104 # a 1K string should be a reasonable start.
10105 for i in 1 2 3 4 5 6 7 8 ; do
10106 teststring=$teststring$teststring
10108 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10109 # If test is not a shell built-in, we'll probably end up computing a
10110 # maximum length that is only half of the actual maximum length, but
10112 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10113 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10114 test $i != 17 # 1/2 MB should be enough
10117 teststring=$teststring$teststring
10119 # Only check the string length outside the loop.
10120 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10122 # Add a significant safety factor because C++ compilers can tack on
10123 # massive amounts of additional arguments before passing them to the
10124 # linker. It appears as though 1/2 is a usable value.
10125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10132 if test -n $lt_cv_sys_max_cmd_len ; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10134 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10137 $as_echo "none" >&6; }
10139 max_cmd_len=$lt_cv_sys_max_cmd_len
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10151 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10152 # Try some XSI features
10154 ( _lt_dummy="a/b/c"
10155 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10157 && eval 'test $(( 1 + 1 )) -eq 2 \
10158 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10161 $as_echo "$xsi_shell" >&6; }
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10165 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10167 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10169 && lt_shell_append=yes
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10171 $as_echo "$lt_shell_append" >&6; }
10174 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10184 # test EBCDIC or ASCII
10185 case `echo X|tr X '\101'` in
10186 A) # ASCII based system
10187 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10188 lt_SP2NL='tr \040 \012'
10189 lt_NL2SP='tr \015\012 \040\040'
10191 *) # EBCDIC based system
10192 lt_SP2NL='tr \100 \n'
10193 lt_NL2SP='tr \r\n \100\100'
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10206 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10207 if ${lt_cv_to_host_file_cmd+:} false; then :
10208 $as_echo_n "(cached) " >&6
10213 *-*-mingw* ) # actually msys
10214 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10217 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10219 * ) # otherwise, assume *nix
10220 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10226 *-*-mingw* ) # actually msys
10227 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10230 lt_cv_to_host_file_cmd=func_convert_file_noop
10232 * ) # otherwise, assume *nix
10233 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10237 * ) # unhandled hosts (and "normal" native builds)
10238 lt_cv_to_host_file_cmd=func_convert_file_noop
10244 to_host_file_cmd=$lt_cv_to_host_file_cmd
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10246 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10253 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10254 if ${lt_cv_to_tool_file_cmd+:} false; then :
10255 $as_echo_n "(cached) " >&6
10257 #assume ordinary cross tools, or native build.
10258 lt_cv_to_tool_file_cmd=func_convert_file_noop
10262 *-*-mingw* ) # actually msys
10263 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10271 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10273 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10280 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10281 if ${lt_cv_ld_reload_flag+:} false; then :
10282 $as_echo_n "(cached) " >&6
10284 lt_cv_ld_reload_flag='-r'
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10287 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10288 reload_flag=$lt_cv_ld_reload_flag
10289 case $reload_flag in
10291 *) reload_flag=" $reload_flag" ;;
10293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10295 cygwin* | mingw* | pw32* | cegcc*)
10296 if test "$GCC" != yes; then
10301 if test "$GCC" = yes; then
10302 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10317 if test -n "$ac_tool_prefix"; then
10318 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10319 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_prog_OBJDUMP+:} false; then :
10323 $as_echo_n "(cached) " >&6
10325 if test -n "$OBJDUMP"; then
10326 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10335 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 OBJDUMP=$ac_cv_prog_OBJDUMP
10346 if test -n "$OBJDUMP"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10348 $as_echo "$OBJDUMP" >&6; }
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10356 if test -z "$ac_cv_prog_OBJDUMP"; then
10357 ac_ct_OBJDUMP=$OBJDUMP
10358 # Extract the first word of "objdump", so it can be a program name with args.
10359 set dummy objdump; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10363 $as_echo_n "(cached) " >&6
10365 if test -n "$ac_ct_OBJDUMP"; then
10366 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10375 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10386 if test -n "$ac_ct_OBJDUMP"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10388 $as_echo "$ac_ct_OBJDUMP" >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10394 if test "x$ac_ct_OBJDUMP" = x; then
10397 case $cross_compiling:$ac_tool_warned in
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10401 ac_tool_warned=yes ;;
10403 OBJDUMP=$ac_ct_OBJDUMP
10406 OBJDUMP="$ac_cv_prog_OBJDUMP"
10409 test -z "$OBJDUMP" && OBJDUMP=objdump
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10417 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10418 if ${lt_cv_deplibs_check_method+:} false; then :
10419 $as_echo_n "(cached) " >&6
10421 lt_cv_file_magic_cmd='$MAGIC_CMD'
10422 lt_cv_file_magic_test_file=
10423 lt_cv_deplibs_check_method='unknown'
10424 # Need to set the preceding variable on all platforms that support
10425 # interlibrary dependencies.
10426 # 'none' -- dependencies not supported.
10427 # `unknown' -- same as none, but documents that we really don't know.
10428 # 'pass_all' -- all dependencies passed with no checks.
10429 # 'test_compile' -- check by making test program.
10430 # 'file_magic [[regex]]' -- check by looking for files in library path
10431 # which responds to the $file_magic_cmd with a given extended regex.
10432 # If you have `file' or equivalent on your system and you're not sure
10433 # whether `pass_all' will *always* work, you probably want this one.
10437 lt_cv_deplibs_check_method=pass_all
10441 lt_cv_deplibs_check_method=pass_all
10445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10446 lt_cv_file_magic_cmd='/usr/bin/file -L'
10447 lt_cv_file_magic_test_file=/shlib/libc.so
10451 # func_win32_libid is a shell function defined in ltmain.sh
10452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10453 lt_cv_file_magic_cmd='func_win32_libid'
10457 # Base MSYS/MinGW do not provide the 'file' command needed by
10458 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10459 # unless we find 'file', for example because we are cross-compiling.
10460 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10461 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10463 lt_cv_file_magic_cmd='func_win32_libid'
10465 # Keep this pattern in sync with the one in func_win32_libid.
10466 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10467 lt_cv_file_magic_cmd='$OBJDUMP -f'
10472 # use the weaker test based on 'objdump'. See mingw*.
10473 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10474 lt_cv_file_magic_cmd='$OBJDUMP -f'
10477 darwin* | rhapsody*)
10478 lt_cv_deplibs_check_method=pass_all
10481 freebsd* | dragonfly*)
10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10485 # Not sure whether the presence of OpenBSD here was a mistake.
10486 # Let's accept both of them until this is cleared up.
10487 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10488 lt_cv_file_magic_cmd=/usr/bin/file
10489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10493 lt_cv_deplibs_check_method=pass_all
10498 lt_cv_deplibs_check_method=pass_all
10502 lt_cv_deplibs_check_method=pass_all
10505 hpux10.20* | hpux11*)
10506 lt_cv_file_magic_cmd=/usr/bin/file
10509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10510 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10513 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]'
10514 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10517 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10518 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10524 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10528 irix5* | irix6* | nonstopux*)
10530 *-32|*"-32 ") libmagic=32-bit;;
10531 *-n32|*"-n32 ") libmagic=N32;;
10532 *-64|*"-64 ") libmagic=64-bit;;
10533 *) libmagic=never-match;;
10535 lt_cv_deplibs_check_method=pass_all
10538 # This must be Linux ELF.
10539 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10540 lt_cv_deplibs_check_method=pass_all
10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10553 lt_cv_file_magic_cmd=/usr/bin/file
10554 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10558 lt_cv_deplibs_check_method=pass_all
10562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10569 osf3* | osf4* | osf5*)
10570 lt_cv_deplibs_check_method=pass_all
10574 lt_cv_deplibs_check_method=pass_all
10578 lt_cv_deplibs_check_method=pass_all
10581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10582 lt_cv_deplibs_check_method=pass_all
10586 case $host_vendor in
10588 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]'
10589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10592 lt_cv_deplibs_check_method=pass_all
10595 lt_cv_file_magic_cmd='/bin/file'
10596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10599 lt_cv_file_magic_cmd='/bin/file'
10600 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10601 lt_cv_file_magic_test_file=/lib/libc.so
10604 lt_cv_deplibs_check_method=pass_all
10607 lt_cv_deplibs_check_method=pass_all
10613 lt_cv_deplibs_check_method=pass_all
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10619 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10623 if test "$build" = "$host"; then
10626 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10627 want_nocaseglob=yes
10629 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10635 file_magic_cmd=$lt_cv_file_magic_cmd
10636 deplibs_check_method=$lt_cv_deplibs_check_method
10637 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10660 if test -n "$ac_tool_prefix"; then
10661 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10662 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if ${ac_cv_prog_DLLTOOL+:} false; then :
10666 $as_echo_n "(cached) " >&6
10668 if test -n "$DLLTOOL"; then
10669 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 DLLTOOL=$ac_cv_prog_DLLTOOL
10689 if test -n "$DLLTOOL"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10691 $as_echo "$DLLTOOL" >&6; }
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10699 if test -z "$ac_cv_prog_DLLTOOL"; then
10700 ac_ct_DLLTOOL=$DLLTOOL
10701 # Extract the first word of "dlltool", so it can be a program name with args.
10702 set dummy dlltool; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10706 $as_echo_n "(cached) " >&6
10708 if test -n "$ac_ct_DLLTOOL"; then
10709 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $PATH
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10729 if test -n "$ac_ct_DLLTOOL"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10731 $as_echo "$ac_ct_DLLTOOL" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10737 if test "x$ac_ct_DLLTOOL" = x; then
10740 case $cross_compiling:$ac_tool_warned in
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744 ac_tool_warned=yes ;;
10746 DLLTOOL=$ac_ct_DLLTOOL
10749 DLLTOOL="$ac_cv_prog_DLLTOOL"
10752 test -z "$DLLTOOL" && DLLTOOL=dlltool
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10761 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10762 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10763 $as_echo_n "(cached) " >&6
10765 lt_cv_sharedlib_from_linklib_cmd='unknown'
10768 cygwin* | mingw* | pw32* | cegcc*)
10769 # two different shell functions defined in ltmain.sh
10770 # decide which to use based on capabilities of $DLLTOOL
10771 case `$DLLTOOL --help 2>&1` in
10772 *--identify-strict*)
10773 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10776 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10781 # fallback: assume linklib IS sharedlib
10782 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10788 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10789 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10790 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10798 if test -n "$ac_tool_prefix"; then
10801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804 $as_echo_n "checking for $ac_word... " >&6; }
10805 if ${ac_cv_prog_AR+:} false; then :
10806 $as_echo_n "(cached) " >&6
10808 if test -n "$AR"; then
10809 ac_cv_prog_AR="$AR" # Let the user override the test.
10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10818 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10829 if test -n "$AR"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10831 $as_echo "$AR" >&6; }
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10838 test -n "$AR" && break
10841 if test -z "$AR"; then
10845 # Extract the first word of "$ac_prog", so it can be a program name with args.
10846 set dummy $ac_prog; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10850 $as_echo_n "(cached) " >&6
10852 if test -n "$ac_ct_AR"; then
10853 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862 ac_cv_prog_ac_ct_AR="$ac_prog"
10863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10873 if test -n "$ac_ct_AR"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10875 $as_echo "$ac_ct_AR" >&6; }
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10882 test -n "$ac_ct_AR" && break
10885 if test "x$ac_ct_AR" = x; then
10888 case $cross_compiling:$ac_tool_warned in
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10892 ac_tool_warned=yes ;;
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10912 $as_echo_n "checking for archiver @FILE support... " >&6; }
10913 if ${lt_cv_ar_at_file+:} false; then :
10914 $as_echo_n "(cached) " >&6
10916 lt_cv_ar_at_file=no
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929 echo conftest.$ac_objext > conftest.lst
10930 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10932 (eval $lt_ar_try) 2>&5
10934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10935 test $ac_status = 0; }
10936 if test "$ac_status" -eq 0; then
10937 # Ensure the archiver fails upon bogus file names.
10938 rm -f conftest.$ac_objext libconftest.a
10939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10940 (eval $lt_ar_try) 2>&5
10942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; }
10944 if test "$ac_status" -ne 0; then
10948 rm -f conftest.* libconftest.a
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10955 $as_echo "$lt_cv_ar_at_file" >&6; }
10957 if test "x$lt_cv_ar_at_file" = xno; then
10958 archiver_list_spec=
10960 archiver_list_spec=$lt_cv_ar_at_file
10969 if test -n "$ac_tool_prefix"; then
10970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10971 set dummy ${ac_tool_prefix}strip; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_prog_STRIP+:} false; then :
10975 $as_echo_n "(cached) " >&6
10977 if test -n "$STRIP"; then
10978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 STRIP=$ac_cv_prog_STRIP
10998 if test -n "$STRIP"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11000 $as_echo "$STRIP" >&6; }
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11008 if test -z "$ac_cv_prog_STRIP"; then
11010 # Extract the first word of "strip", so it can be a program name with args.
11011 set dummy strip; ac_word=$2
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013 $as_echo_n "checking for $ac_word... " >&6; }
11014 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11015 $as_echo_n "(cached) " >&6
11017 if test -n "$ac_ct_STRIP"; then
11018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11024 test -z "$as_dir" && as_dir=.
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11027 ac_cv_prog_ac_ct_STRIP="strip"
11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11038 if test -n "$ac_ct_STRIP"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11040 $as_echo "$ac_ct_STRIP" >&6; }
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11046 if test "x$ac_ct_STRIP" = x; then
11049 case $cross_compiling:$ac_tool_warned in
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11053 ac_tool_warned=yes ;;
11058 STRIP="$ac_cv_prog_STRIP"
11061 test -z "$STRIP" && STRIP=:
11068 if test -n "$ac_tool_prefix"; then
11069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_prog_RANLIB+:} false; then :
11074 $as_echo_n "(cached) " >&6
11076 if test -n "$RANLIB"; then
11077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 RANLIB=$ac_cv_prog_RANLIB
11097 if test -n "$RANLIB"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11099 $as_echo "$RANLIB" >&6; }
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11107 if test -z "$ac_cv_prog_RANLIB"; then
11108 ac_ct_RANLIB=$RANLIB
11109 # Extract the first word of "ranlib", so it can be a program name with args.
11110 set dummy ranlib; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11114 $as_echo_n "(cached) " >&6
11116 if test -n "$ac_ct_RANLIB"; then
11117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11123 test -z "$as_dir" && as_dir=.
11124 for ac_exec_ext in '' $ac_executable_extensions; do
11125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126 ac_cv_prog_ac_ct_RANLIB="ranlib"
11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11137 if test -n "$ac_ct_RANLIB"; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11139 $as_echo "$ac_ct_RANLIB" >&6; }
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11145 if test "x$ac_ct_RANLIB" = x; then
11148 case $cross_compiling:$ac_tool_warned in
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11152 ac_tool_warned=yes ;;
11154 RANLIB=$ac_ct_RANLIB
11157 RANLIB="$ac_cv_prog_RANLIB"
11160 test -z "$RANLIB" && RANLIB=:
11167 # Determine commands to create old-style static archives.
11168 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11169 old_postinstall_cmds='chmod 644 $oldlib'
11170 old_postuninstall_cmds=
11172 if test -n "$RANLIB"; then
11175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11178 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11181 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11186 lock_old_archive_extraction=yes ;;
11188 lock_old_archive_extraction=no ;;
11229 # If no C compiler was specified, use CC.
11232 # If no C compiler flags were specified, use CFLAGS.
11233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11235 # Allow CC to be a program name with arguments.
11239 # Check for command to grab the raw symbol name followed by C symbol from nm.
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11241 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11242 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11243 $as_echo_n "(cached) " >&6
11246 # These are sane defaults that work on at least a few old systems.
11247 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11249 # Character class describing NM global symbol codes.
11250 symcode='[BCDEGRST]'
11252 # Regexp to match symbols that can be accessed directly from C.
11253 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11255 # Define system-specific variables.
11260 cygwin* | mingw* | pw32* | cegcc*)
11261 symcode='[ABCDGISTW]'
11264 if test "$host_cpu" = ia64; then
11265 symcode='[ABCDEGRST]'
11268 irix* | nonstopux*)
11269 symcode='[BCDEGRST]'
11272 symcode='[BCDEGQRST]'
11283 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11291 # If we're using GNU nm, then use its standard symbol codes.
11292 case `$NM -V 2>&1` in
11293 *GNU* | *'with BFD'*)
11294 symcode='[ABCDGIRSTW]' ;;
11297 # Transform an extracted symbol line into a proper C declaration.
11298 # Some systems (esp. on ia64) link data and code symbols differently,
11299 # so use this general approach.
11300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11302 # Transform an extracted symbol line into symbol name and symbol address
11303 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11304 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'"
11306 # Handle CRLF in mingw tool chain
11310 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11314 # Try without a prefix underscore, then with it.
11315 for ac_symprfx in "" "_"; do
11317 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11318 symxfrm="\\1 $ac_symprfx\\2 \\2"
11320 # Write the raw and C identifiers.
11321 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11322 # Fake it for dumpbin and say T for any non-static function
11323 # and D for any global variable.
11324 # Also find C++ and __fastcall symbols from MSVC++,
11325 # which start with @ or ?.
11326 lt_cv_sys_global_symbol_pipe="$AWK '"\
11327 " {last_section=section; section=\$ 3};"\
11328 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11329 " \$ 0!~/External *\|/{next};"\
11330 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11331 " {if(hide[section]) next};"\
11332 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11333 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11334 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11335 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11336 " ' prfx=^$ac_symprfx"
11338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11340 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11342 # Check to see that the pipe works correctly.
11346 cat > conftest.$ac_ext <<_LT_EOF
11351 void nm_test_func(void);
11352 void nm_test_func(void){}
11356 int main(){nm_test_var='a';nm_test_func();return(0);}
11359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11360 (eval $ac_compile) 2>&5
11362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11363 test $ac_status = 0; }; then
11364 # Now try to grab the symbols.
11366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11367 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11370 test $ac_status = 0; } && test -s "$nlist"; then
11371 # Try sorting and uniquifying the output.
11372 if sort "$nlist" | uniq > "$nlist"T; then
11373 mv -f "$nlist"T "$nlist"
11378 # Make sure that we snagged all the symbols we need.
11379 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11380 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11381 cat <<_LT_EOF > conftest.$ac_ext
11382 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11383 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11384 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11385 relocations are performed -- see ld's documentation on pseudo-relocs. */
11386 # define LT_DLSYM_CONST
11387 #elif defined(__osf__)
11388 /* This system does not cope well with relocations in const data. */
11389 # define LT_DLSYM_CONST
11391 # define LT_DLSYM_CONST const
11399 # Now generate the symbol file.
11400 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11402 cat <<_LT_EOF >> conftest.$ac_ext
11404 /* The mapping between symbol names and symbols. */
11405 LT_DLSYM_CONST struct {
11409 lt__PROGRAM__LTX_preloaded_symbols[] =
11411 { "@PROGRAM@", (void *) 0 },
11413 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11414 cat <<\_LT_EOF >> conftest.$ac_ext
11418 /* This works around a problem in FreeBSD linker */
11419 #ifdef FREEBSD_WORKAROUND
11420 static const void *lt_preloaded_setup() {
11421 return lt__PROGRAM__LTX_preloaded_symbols;
11429 # Now try linking the two files.
11430 mv conftest.$ac_objext conftstm.$ac_objext
11431 lt_globsym_save_LIBS=$LIBS
11432 lt_globsym_save_CFLAGS=$CFLAGS
11433 LIBS="conftstm.$ac_objext"
11434 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11436 (eval $ac_link) 2>&5
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11442 LIBS=$lt_globsym_save_LIBS
11443 CFLAGS=$lt_globsym_save_CFLAGS
11445 echo "cannot find nm_test_func in $nlist" >&5
11448 echo "cannot find nm_test_var in $nlist" >&5
11451 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11454 echo "$progname: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11457 rm -rf conftest* conftst*
11459 # Do not use the global_symbol_pipe unless it works.
11460 if test "$pipe_works" = yes; then
11463 lt_cv_sys_global_symbol_pipe=
11469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11470 lt_cv_sys_global_symbol_to_cdecl=
11472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11474 $as_echo "failed" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11477 $as_echo "ok" >&6; }
11480 # Response file support.
11481 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11482 nm_file_list_spec='@'
11483 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11484 nm_file_list_spec='@'
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11514 $as_echo_n "checking for sysroot... " >&6; }
11516 # Check whether --with-sysroot was given.
11517 if test "${with_sysroot+set}" = set; then :
11518 withval=$with_sysroot;
11525 case ${with_sysroot} in #(
11527 if test "$GCC" = yes; then
11528 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11532 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11538 $as_echo "${with_sysroot}" >&6; }
11539 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11544 $as_echo "${lt_sysroot:-no}" >&6; }
11550 # Check whether --enable-libtool-lock was given.
11551 if test "${enable_libtool_lock+set}" = set; then :
11552 enableval=$enable_libtool_lock;
11555 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11557 # Some flags need to be propagated to the compiler or linker for good
11561 # Find out which ABI we are using.
11562 echo 'int i;' > conftest.$ac_ext
11563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11564 (eval $ac_compile) 2>&5
11566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567 test $ac_status = 0; }; then
11568 case `/usr/bin/file conftest.$ac_objext` in
11570 HPUX_IA64_MODE="32"
11573 HPUX_IA64_MODE="64"
11580 # Find out which ABI we are using.
11581 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11583 (eval $ac_compile) 2>&5
11585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586 test $ac_status = 0; }; then
11587 if test "$lt_cv_prog_gnu_ld" = yes; then
11588 case `/usr/bin/file conftest.$ac_objext` in
11590 LD="${LD-ld} -melf32bsmip"
11593 LD="${LD-ld} -melf32bmipn32"
11596 LD="${LD-ld} -melf64bmip"
11600 case `/usr/bin/file conftest.$ac_objext` in
11616 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11617 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11618 # Find out which ABI we are using.
11619 echo 'int i;' > conftest.$ac_ext
11620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11621 (eval $ac_compile) 2>&5
11623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624 test $ac_status = 0; }; then
11625 case `/usr/bin/file conftest.o` in
11628 x86_64-*kfreebsd*-gnu)
11629 LD="${LD-ld} -m elf_i386_fbsd"
11632 LD="${LD-ld} -m elf_i386"
11634 ppc64-*linux*|powerpc64-*linux*)
11635 LD="${LD-ld} -m elf32ppclinux"
11638 LD="${LD-ld} -m elf_s390"
11641 LD="${LD-ld} -m elf32_sparc"
11647 x86_64-*kfreebsd*-gnu)
11648 LD="${LD-ld} -m elf_x86_64_fbsd"
11651 LD="${LD-ld} -m elf_x86_64"
11653 ppc*-*linux*|powerpc*-*linux*)
11654 LD="${LD-ld} -m elf64ppc"
11656 s390*-*linux*|s390*-*tpf*)
11657 LD="${LD-ld} -m elf64_s390"
11660 LD="${LD-ld} -m elf64_sparc"
11670 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11671 SAVE_CFLAGS="$CFLAGS"
11672 CFLAGS="$CFLAGS -belf"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11674 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11675 if ${lt_cv_cc_needs_belf+:} false; then :
11676 $as_echo_n "(cached) " >&6
11679 ac_cpp='$CPP $CPPFLAGS'
11680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11695 if ac_fn_c_try_link "$LINENO"; then :
11696 lt_cv_cc_needs_belf=yes
11698 lt_cv_cc_needs_belf=no
11700 rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11703 ac_cpp='$CPP $CPPFLAGS'
11704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11710 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11711 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11712 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11713 CFLAGS="$SAVE_CFLAGS"
11717 # Find out which ABI we are using.
11718 echo 'int i;' > conftest.$ac_ext
11719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11720 (eval $ac_compile) 2>&5
11722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11723 test $ac_status = 0; }; then
11724 case `/usr/bin/file conftest.o` in
11726 case $lt_cv_prog_gnu_ld in
11727 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11729 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11741 need_locks="$enable_libtool_lock"
11743 if test -n "$ac_tool_prefix"; then
11744 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11745 set dummy ${ac_tool_prefix}mt; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11749 $as_echo_n "(cached) " >&6
11751 if test -n "$MANIFEST_TOOL"; then
11752 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $PATH
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11761 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11772 if test -n "$MANIFEST_TOOL"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11774 $as_echo "$MANIFEST_TOOL" >&6; }
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11782 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11783 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11784 # Extract the first word of "mt", so it can be a program name with args.
11785 set dummy mt; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11789 $as_echo_n "(cached) " >&6
11791 if test -n "$ac_ct_MANIFEST_TOOL"; then
11792 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11812 if test -n "$ac_ct_MANIFEST_TOOL"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11814 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11820 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11823 case $cross_compiling:$ac_tool_warned in
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11827 ac_tool_warned=yes ;;
11829 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11832 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11835 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11837 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11838 if ${lt_cv_path_mainfest_tool+:} false; then :
11839 $as_echo_n "(cached) " >&6
11841 lt_cv_path_mainfest_tool=no
11842 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11843 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11844 cat conftest.err >&5
11845 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11846 lt_cv_path_mainfest_tool=yes
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11851 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11852 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11862 rhapsody* | darwin*)
11863 if test -n "$ac_tool_prefix"; then
11864 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11865 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11869 $as_echo_n "(cached) " >&6
11871 if test -n "$DSYMUTIL"; then
11872 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11892 if test -n "$DSYMUTIL"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11894 $as_echo "$DSYMUTIL" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11902 if test -z "$ac_cv_prog_DSYMUTIL"; then
11903 ac_ct_DSYMUTIL=$DSYMUTIL
11904 # Extract the first word of "dsymutil", so it can be a program name with args.
11905 set dummy dsymutil; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907 $as_echo_n "checking for $ac_word... " >&6; }
11908 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11909 $as_echo_n "(cached) " >&6
11911 if test -n "$ac_ct_DSYMUTIL"; then
11912 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915 for as_dir in $PATH
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11921 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11932 if test -n "$ac_ct_DSYMUTIL"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11934 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11940 if test "x$ac_ct_DSYMUTIL" = x; then
11943 case $cross_compiling:$ac_tool_warned in
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11947 ac_tool_warned=yes ;;
11949 DSYMUTIL=$ac_ct_DSYMUTIL
11952 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11955 if test -n "$ac_tool_prefix"; then
11956 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11957 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_prog_NMEDIT+:} false; then :
11961 $as_echo_n "(cached) " >&6
11963 if test -n "$NMEDIT"; then
11964 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983 NMEDIT=$ac_cv_prog_NMEDIT
11984 if test -n "$NMEDIT"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11986 $as_echo "$NMEDIT" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11994 if test -z "$ac_cv_prog_NMEDIT"; then
11995 ac_ct_NMEDIT=$NMEDIT
11996 # Extract the first word of "nmedit", so it can be a program name with args.
11997 set dummy nmedit; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12001 $as_echo_n "(cached) " >&6
12003 if test -n "$ac_ct_NMEDIT"; then
12004 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12024 if test -n "$ac_ct_NMEDIT"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12026 $as_echo "$ac_ct_NMEDIT" >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12032 if test "x$ac_ct_NMEDIT" = x; then
12035 case $cross_compiling:$ac_tool_warned in
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12039 ac_tool_warned=yes ;;
12041 NMEDIT=$ac_ct_NMEDIT
12044 NMEDIT="$ac_cv_prog_NMEDIT"
12047 if test -n "$ac_tool_prefix"; then
12048 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12049 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_prog_LIPO+:} false; then :
12053 $as_echo_n "(cached) " >&6
12055 if test -n "$LIPO"; then
12056 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 LIPO=$ac_cv_prog_LIPO
12076 if test -n "$LIPO"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12078 $as_echo "$LIPO" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12086 if test -z "$ac_cv_prog_LIPO"; then
12088 # Extract the first word of "lipo", so it can be a program name with args.
12089 set dummy lipo; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12093 $as_echo_n "(cached) " >&6
12095 if test -n "$ac_ct_LIPO"; then
12096 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105 ac_cv_prog_ac_ct_LIPO="lipo"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12116 if test -n "$ac_ct_LIPO"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12118 $as_echo "$ac_ct_LIPO" >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12124 if test "x$ac_ct_LIPO" = x; then
12127 case $cross_compiling:$ac_tool_warned in
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12131 ac_tool_warned=yes ;;
12136 LIPO="$ac_cv_prog_LIPO"
12139 if test -n "$ac_tool_prefix"; then
12140 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12141 set dummy ${ac_tool_prefix}otool; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_prog_OTOOL+:} false; then :
12145 $as_echo_n "(cached) " >&6
12147 if test -n "$OTOOL"; then
12148 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12157 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 OTOOL=$ac_cv_prog_OTOOL
12168 if test -n "$OTOOL"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12170 $as_echo "$OTOOL" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12178 if test -z "$ac_cv_prog_OTOOL"; then
12180 # Extract the first word of "otool", so it can be a program name with args.
12181 set dummy otool; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12185 $as_echo_n "(cached) " >&6
12187 if test -n "$ac_ct_OTOOL"; then
12188 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197 ac_cv_prog_ac_ct_OTOOL="otool"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12208 if test -n "$ac_ct_OTOOL"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12210 $as_echo "$ac_ct_OTOOL" >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12216 if test "x$ac_ct_OTOOL" = x; then
12219 case $cross_compiling:$ac_tool_warned in
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12223 ac_tool_warned=yes ;;
12228 OTOOL="$ac_cv_prog_OTOOL"
12231 if test -n "$ac_tool_prefix"; then
12232 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12233 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_prog_OTOOL64+:} false; then :
12237 $as_echo_n "(cached) " >&6
12239 if test -n "$OTOOL64"; then
12240 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $PATH
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12249 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 OTOOL64=$ac_cv_prog_OTOOL64
12260 if test -n "$OTOOL64"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12262 $as_echo "$OTOOL64" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12270 if test -z "$ac_cv_prog_OTOOL64"; then
12271 ac_ct_OTOOL64=$OTOOL64
12272 # Extract the first word of "otool64", so it can be a program name with args.
12273 set dummy otool64; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12277 $as_echo_n "(cached) " >&6
12279 if test -n "$ac_ct_OTOOL64"; then
12280 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289 ac_cv_prog_ac_ct_OTOOL64="otool64"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12300 if test -n "$ac_ct_OTOOL64"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12302 $as_echo "$ac_ct_OTOOL64" >&6; }
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12308 if test "x$ac_ct_OTOOL64" = x; then
12311 case $cross_compiling:$ac_tool_warned in
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12315 ac_tool_warned=yes ;;
12317 OTOOL64=$ac_ct_OTOOL64
12320 OTOOL64="$ac_cv_prog_OTOOL64"
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12350 $as_echo_n "checking for -single_module linker flag... " >&6; }
12351 if ${lt_cv_apple_cc_single_mod+:} false; then :
12352 $as_echo_n "(cached) " >&6
12354 lt_cv_apple_cc_single_mod=no
12355 if test -z "${LT_MULTI_MODULE}"; then
12356 # By default we will add the -single_module flag. You can override
12357 # by either setting the environment variable LT_MULTI_MODULE
12358 # non-empty at configure time, or by adding -multi_module to the
12360 rm -rf libconftest.dylib*
12361 echo "int foo(void){return 1;}" > conftest.c
12362 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12363 -dynamiclib -Wl,-single_module conftest.c" >&5
12364 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12365 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12367 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12368 lt_cv_apple_cc_single_mod=yes
12370 cat conftest.err >&5
12372 rm -rf libconftest.dylib*
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12377 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12379 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12380 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 lt_cv_ld_exported_symbols_list=no
12384 save_LDFLAGS=$LDFLAGS
12385 echo "_main" > conftest.sym
12386 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 lt_cv_ld_exported_symbols_list=yes
12401 lt_cv_ld_exported_symbols_list=no
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 LDFLAGS="$save_LDFLAGS"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12409 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12411 $as_echo_n "checking for -force_load linker flag... " >&6; }
12412 if ${lt_cv_ld_force_load+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 lt_cv_ld_force_load=no
12416 cat > conftest.c << _LT_EOF
12417 int forced_loaded() { return 2;}
12419 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12420 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12421 echo "$AR cru libconftest.a conftest.o" >&5
12422 $AR cru libconftest.a conftest.o 2>&5
12423 echo "$RANLIB libconftest.a" >&5
12424 $RANLIB libconftest.a 2>&5
12425 cat > conftest.c << _LT_EOF
12426 int main() { return 0;}
12428 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12429 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12431 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12432 lt_cv_ld_force_load=yes
12434 cat conftest.err >&5
12436 rm -f conftest.err libconftest.a conftest conftest.c
12437 rm -rf conftest.dSYM
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12441 $as_echo "$lt_cv_ld_force_load" >&6; }
12443 rhapsody* | darwin1.[012])
12444 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12447 darwin*) # darwin 5.x on
12448 # if running on 10.5 or later, the deployment target defaults
12449 # to the OS version, if on x86, and 10.4, the deployment
12450 # target defaults to 10.4. Don't you love it?
12451 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12452 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12453 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12461 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12462 _lt_dar_single_mod='$single_module'
12464 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12465 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12467 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12469 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12470 _lt_dsymutil='~$DSYMUTIL $lib || :'
12477 for ac_header in dlfcn.h
12479 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12481 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12482 cat >>confdefs.h <<_ACEOF
12483 #define HAVE_DLFCN_H 1
12493 func_stripname_cnf ()
12496 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12497 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12499 } # func_stripname_cnf
12506 enable_win32_dll=yes
12509 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12510 if test -n "$ac_tool_prefix"; then
12511 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12512 set dummy ${ac_tool_prefix}as; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if ${ac_cv_prog_AS+:} false; then :
12516 $as_echo_n "(cached) " >&6
12518 if test -n "$AS"; then
12519 ac_cv_prog_AS="$AS" # Let the user override the test.
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528 ac_cv_prog_AS="${ac_tool_prefix}as"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539 if test -n "$AS"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12541 $as_echo "$AS" >&6; }
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12549 if test -z "$ac_cv_prog_AS"; then
12551 # Extract the first word of "as", so it can be a program name with args.
12552 set dummy as; ac_word=$2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12556 $as_echo_n "(cached) " >&6
12558 if test -n "$ac_ct_AS"; then
12559 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in $PATH
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12568 ac_cv_prog_ac_ct_AS="as"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12579 if test -n "$ac_ct_AS"; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12581 $as_echo "$ac_ct_AS" >&6; }
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12587 if test "x$ac_ct_AS" = x; then
12590 case $cross_compiling:$ac_tool_warned in
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12594 ac_tool_warned=yes ;;
12599 AS="$ac_cv_prog_AS"
12602 if test -n "$ac_tool_prefix"; then
12603 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12604 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if ${ac_cv_prog_DLLTOOL+:} false; then :
12608 $as_echo_n "(cached) " >&6
12610 if test -n "$DLLTOOL"; then
12611 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in $PATH
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 DLLTOOL=$ac_cv_prog_DLLTOOL
12631 if test -n "$DLLTOOL"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12633 $as_echo "$DLLTOOL" >&6; }
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12641 if test -z "$ac_cv_prog_DLLTOOL"; then
12642 ac_ct_DLLTOOL=$DLLTOOL
12643 # Extract the first word of "dlltool", so it can be a program name with args.
12644 set dummy dlltool; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12648 $as_echo_n "(cached) " >&6
12650 if test -n "$ac_ct_DLLTOOL"; then
12651 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12670 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12671 if test -n "$ac_ct_DLLTOOL"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12673 $as_echo "$ac_ct_DLLTOOL" >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12679 if test "x$ac_ct_DLLTOOL" = x; then
12682 case $cross_compiling:$ac_tool_warned in
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686 ac_tool_warned=yes ;;
12688 DLLTOOL=$ac_ct_DLLTOOL
12691 DLLTOOL="$ac_cv_prog_DLLTOOL"
12694 if test -n "$ac_tool_prefix"; then
12695 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12696 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698 $as_echo_n "checking for $ac_word... " >&6; }
12699 if ${ac_cv_prog_OBJDUMP+:} false; then :
12700 $as_echo_n "(cached) " >&6
12702 if test -n "$OBJDUMP"; then
12703 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722 OBJDUMP=$ac_cv_prog_OBJDUMP
12723 if test -n "$OBJDUMP"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12725 $as_echo "$OBJDUMP" >&6; }
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12733 if test -z "$ac_cv_prog_OBJDUMP"; then
12734 ac_ct_OBJDUMP=$OBJDUMP
12735 # Extract the first word of "objdump", so it can be a program name with args.
12736 set dummy objdump; ac_word=$2
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738 $as_echo_n "checking for $ac_word... " >&6; }
12739 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12740 $as_echo_n "(cached) " >&6
12742 if test -n "$ac_ct_OBJDUMP"; then
12743 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12752 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12763 if test -n "$ac_ct_OBJDUMP"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12765 $as_echo "$ac_ct_OBJDUMP" >&6; }
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12771 if test "x$ac_ct_OBJDUMP" = x; then
12774 case $cross_compiling:$ac_tool_warned in
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778 ac_tool_warned=yes ;;
12780 OBJDUMP=$ac_ct_OBJDUMP
12783 OBJDUMP="$ac_cv_prog_OBJDUMP"
12789 test -z "$AS" && AS=as
12795 test -z "$DLLTOOL" && DLLTOOL=dlltool
12801 test -z "$OBJDUMP" && OBJDUMP=objdump
12811 # Check whether --enable-shared was given.
12812 if test "${enable_shared+set}" = set; then :
12813 enableval=$enable_shared; p=${PACKAGE-default}
12815 yes) enable_shared=yes ;;
12816 no) enable_shared=no ;;
12819 # Look at the argument we got. We use all the common list separators.
12820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12821 for pkg in $enableval; do
12823 if test "X$pkg" = "X$p"; then
12842 # Check whether --enable-static was given.
12843 if test "${enable_static+set}" = set; then :
12844 enableval=$enable_static; p=${PACKAGE-default}
12846 yes) enable_static=yes ;;
12847 no) enable_static=no ;;
12850 # Look at the argument we got. We use all the common list separators.
12851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12852 for pkg in $enableval; do
12854 if test "X$pkg" = "X$p"; then
12874 # Check whether --with-pic was given.
12875 if test "${with_pic+set}" = set; then :
12876 withval=$with_pic; pic_mode="$withval"
12882 test -z "$pic_mode" && pic_mode=default
12890 # Check whether --enable-fast-install was given.
12891 if test "${enable_fast_install+set}" = set; then :
12892 enableval=$enable_fast_install; p=${PACKAGE-default}
12894 yes) enable_fast_install=yes ;;
12895 no) enable_fast_install=no ;;
12897 enable_fast_install=no
12898 # Look at the argument we got. We use all the common list separators.
12899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12900 for pkg in $enableval; do
12902 if test "X$pkg" = "X$p"; then
12903 enable_fast_install=yes
12910 enable_fast_install=yes
12923 # This can be used to rebuild libtool when needed
12924 LIBTOOL_DEPS="$ltmain"
12926 # Always use our own libtool.
12927 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12954 test -z "$LN_S" && LN_S="ln -s"
12969 if test -n "${ZSH_VERSION+set}" ; then
12970 setopt NO_GLOB_SUBST
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12974 $as_echo_n "checking for objdir... " >&6; }
12975 if ${lt_cv_objdir+:} false; then :
12976 $as_echo_n "(cached) " >&6
12978 rm -f .libs 2>/dev/null
12979 mkdir .libs 2>/dev/null
12980 if test -d .libs; then
12983 # MS-DOS does not allow filenames that begin with a dot.
12986 rmdir .libs 2>/dev/null
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12989 $as_echo "$lt_cv_objdir" >&6; }
12990 objdir=$lt_cv_objdir
12996 cat >>confdefs.h <<_ACEOF
12997 #define LT_OBJDIR "$lt_cv_objdir/"
13005 # AIX sometimes has problems with the GCC collect2 program. For some
13006 # reason, if we set the COLLECT_NAMES environment variable, the problems
13007 # vanish in a puff of smoke.
13008 if test "X${COLLECT_NAMES+set}" != Xset; then
13010 export COLLECT_NAMES
13015 # Global variables:
13017 can_build_shared=yes
13019 # All known linkers require a `.a' archive for static linking (except MSVC,
13020 # which needs '.lib').
13023 with_gnu_ld="$lt_cv_prog_gnu_ld"
13026 old_CFLAGS="$CFLAGS"
13028 # Set sane defaults for various variables
13029 test -z "$CC" && CC=cc
13030 test -z "$LTCC" && LTCC=$CC
13031 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13032 test -z "$LD" && LD=ld
13033 test -z "$ac_objext" && ac_objext=o
13035 for cc_temp in $compiler""; do
13037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13043 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13046 # Only perform the check for file, if the check method requires it
13047 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13048 case $deplibs_check_method in
13050 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13052 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13053 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13054 $as_echo_n "(cached) " >&6
13058 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13061 lt_save_MAGIC_CMD="$MAGIC_CMD"
13062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13064 for ac_dir in $ac_dummy; do
13066 test -z "$ac_dir" && ac_dir=.
13067 if test -f $ac_dir/${ac_tool_prefix}file; then
13068 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13069 if test -n "$file_magic_test_file"; then
13070 case $deplibs_check_method in
13072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13075 $EGREP "$file_magic_regex" > /dev/null; then
13080 *** Warning: the command libtool uses to detect shared libraries,
13081 *** $file_magic_cmd, produces output that libtool cannot recognize.
13082 *** The result is that libtool may fail to recognize shared libraries
13083 *** as such. This will affect the creation of libtool libraries that
13084 *** depend on shared libraries, but programs linked with such libtool
13085 *** libraries will work regardless of this problem. Nevertheless, you
13086 *** may want to report the problem to your system manager and/or to
13087 *** bug-libtool@gnu.org
13097 MAGIC_CMD="$lt_save_MAGIC_CMD"
13102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13103 if test -n "$MAGIC_CMD"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13105 $as_echo "$MAGIC_CMD" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13115 if test -z "$lt_cv_path_MAGIC_CMD"; then
13116 if test -n "$ac_tool_prefix"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13118 $as_echo_n "checking for file... " >&6; }
13119 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13120 $as_echo_n "(cached) " >&6
13124 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13127 lt_save_MAGIC_CMD="$MAGIC_CMD"
13128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13130 for ac_dir in $ac_dummy; do
13132 test -z "$ac_dir" && ac_dir=.
13133 if test -f $ac_dir/file; then
13134 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13135 if test -n "$file_magic_test_file"; then
13136 case $deplibs_check_method in
13138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13141 $EGREP "$file_magic_regex" > /dev/null; then
13146 *** Warning: the command libtool uses to detect shared libraries,
13147 *** $file_magic_cmd, produces output that libtool cannot recognize.
13148 *** The result is that libtool may fail to recognize shared libraries
13149 *** as such. This will affect the creation of libtool libraries that
13150 *** depend on shared libraries, but programs linked with such libtool
13151 *** libraries will work regardless of this problem. Nevertheless, you
13152 *** may want to report the problem to your system manager and/or to
13153 *** bug-libtool@gnu.org
13163 MAGIC_CMD="$lt_save_MAGIC_CMD"
13168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13169 if test -n "$MAGIC_CMD"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13171 $as_echo "$MAGIC_CMD" >&6; }
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13187 # Use C for the default configuration in the libtool script
13191 ac_cpp='$CPP $CPPFLAGS'
13192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13197 # Source file extension for C test sources.
13200 # Object file extension for compiled C test sources.
13204 # Code to be used in simple compile tests
13205 lt_simple_compile_test_code="int some_variable = 0;"
13207 # Code to be used in simple link tests
13208 lt_simple_link_test_code='int main(){return(0);}'
13216 # If no C compiler was specified, use CC.
13219 # If no C compiler flags were specified, use CFLAGS.
13220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13222 # Allow CC to be a program name with arguments.
13225 # Save the default compiler, since it gets overwritten when the other
13226 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13227 compiler_DEFAULT=$CC
13229 # save warnings/boilerplate of simple test code
13230 ac_outfile=conftest.$ac_objext
13231 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13233 _lt_compiler_boilerplate=`cat conftest.err`
13236 ac_outfile=conftest.$ac_objext
13237 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13239 _lt_linker_boilerplate=`cat conftest.err`
13244 ## There is no encapsulation within the following macros, do not change
13245 ## the running order or otherwise move them around unless you know exactly
13246 ## what you are doing...
13247 if test -n "$compiler"; then
13249 lt_prog_compiler_no_builtin_flag=
13251 if test "$GCC" = yes; then
13252 case $cc_basename in
13254 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13256 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13260 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13261 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13262 $as_echo_n "(cached) " >&6
13264 lt_cv_prog_compiler_rtti_exceptions=no
13265 ac_outfile=conftest.$ac_objext
13266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13267 lt_compiler_flag="-fno-rtti -fno-exceptions"
13268 # Insert the option either (1) after the last *FLAGS variable, or
13269 # (2) before a word containing "conftest.", or (3) at the end.
13270 # Note that $ac_compile itself does not contain backslashes and begins
13271 # with a dollar sign (not a hyphen), so the echo should work correctly.
13272 # The option is referenced via a variable to avoid confusing sed.
13273 lt_compile=`echo "$ac_compile" | $SED \
13274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13276 -e 's:$: $lt_compiler_flag:'`
13277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13278 (eval "$lt_compile" 2>conftest.err)
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 if (exit $ac_status) && test -s "$ac_outfile"; then
13283 # The compiler can only warn and ignore the option if not recognized
13284 # So say no if there are warnings other than the usual output.
13285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13288 lt_cv_prog_compiler_rtti_exceptions=yes
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13295 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13310 lt_prog_compiler_wl=
13311 lt_prog_compiler_pic=
13312 lt_prog_compiler_static=
13315 if test "$GCC" = yes; then
13316 lt_prog_compiler_wl='-Wl,'
13317 lt_prog_compiler_static='-static'
13321 # All AIX code is PIC.
13322 if test "$host_cpu" = ia64; then
13323 # AIX 5 now supports IA64 processor
13324 lt_prog_compiler_static='-Bstatic'
13331 # see comment about AmigaOS4 .so support
13332 lt_prog_compiler_pic='-fPIC'
13335 # FIXME: we need at least 68020 code to build shared libraries, but
13336 # adding the `-m68020' flag to GCC prevents building anything better,
13338 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13344 # PIC is the default for these OSes.
13347 mingw* | cygwin* | pw32* | os2* | cegcc*)
13348 # This hack is so that the source file can tell whether it is being
13349 # built for inclusion in a dll (and should export symbols for example).
13350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13351 # (--disable-auto-import) libraries
13352 lt_prog_compiler_pic='-DDLL_EXPORT'
13355 darwin* | rhapsody*)
13356 # PIC is the default on this platform
13357 # Common symbols not allowed in MH_DYLIB files
13358 lt_prog_compiler_pic='-fno-common'
13362 # PIC is the default for Haiku.
13363 # The "-static" flag exists, but is broken.
13364 lt_prog_compiler_static=
13368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13370 # sets the default TLS model and affects inlining.
13376 lt_prog_compiler_pic='-fPIC'
13382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13383 # Instead, we relocate shared libraries at runtime.
13387 # Just because we use GCC doesn't mean we suddenly get shared libraries
13388 # on systems that don't support them.
13389 lt_prog_compiler_can_build_shared=no
13394 # QNX uses GNU C++, but need to define -shared option too, otherwise
13395 # it will coredump.
13396 lt_prog_compiler_pic='-fPIC -shared'
13400 if test -d /usr/nec; then
13401 lt_prog_compiler_pic=-Kconform_pic
13406 lt_prog_compiler_pic='-fPIC'
13410 case $cc_basename in
13411 nvcc*) # Cuda Compiler Driver 2.2
13412 lt_prog_compiler_wl='-Xlinker '
13413 lt_prog_compiler_pic='-Xcompiler -fPIC'
13417 # PORTME Check for flag to pass linker flags through the system compiler.
13420 lt_prog_compiler_wl='-Wl,'
13421 if test "$host_cpu" = ia64; then
13422 # AIX 5 now supports IA64 processor
13423 lt_prog_compiler_static='-Bstatic'
13425 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13429 mingw* | cygwin* | pw32* | os2* | cegcc*)
13430 # This hack is so that the source file can tell whether it is being
13431 # built for inclusion in a dll (and should export symbols for example).
13432 lt_prog_compiler_pic='-DDLL_EXPORT'
13435 hpux9* | hpux10* | hpux11*)
13436 lt_prog_compiler_wl='-Wl,'
13437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13438 # not for PA HP-UX.
13444 lt_prog_compiler_pic='+Z'
13447 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13448 lt_prog_compiler_static='${wl}-a ${wl}archive'
13451 irix5* | irix6* | nonstopux*)
13452 lt_prog_compiler_wl='-Wl,'
13453 # PIC (with -KPIC) is the default.
13454 lt_prog_compiler_static='-non_shared'
13457 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13458 case $cc_basename in
13459 # old Intel for x86_64 which still supported -KPIC.
13461 lt_prog_compiler_wl='-Wl,'
13462 lt_prog_compiler_pic='-KPIC'
13463 lt_prog_compiler_static='-static'
13465 # icc used to be incompatible with GCC.
13466 # ICC 10 doesn't accept -KPIC any more.
13468 lt_prog_compiler_wl='-Wl,'
13469 lt_prog_compiler_pic='-fPIC'
13470 lt_prog_compiler_static='-static'
13472 # Lahey Fortran 8.1.
13474 lt_prog_compiler_wl='-Wl,'
13475 lt_prog_compiler_pic='--shared'
13476 lt_prog_compiler_static='--static'
13479 # NAG Fortran compiler
13480 lt_prog_compiler_wl='-Wl,-Wl,,'
13481 lt_prog_compiler_pic='-PIC'
13482 lt_prog_compiler_static='-Bstatic'
13484 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13485 # Portland Group compilers (*not* the Pentium gcc compiler,
13486 # which looks to be a dead project)
13487 lt_prog_compiler_wl='-Wl,'
13488 lt_prog_compiler_pic='-fpic'
13489 lt_prog_compiler_static='-Bstatic'
13492 lt_prog_compiler_wl='-Wl,'
13493 # All Alpha code is PIC.
13494 lt_prog_compiler_static='-non_shared'
13496 xl* | bgxl* | bgf* | mpixl*)
13497 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13498 lt_prog_compiler_wl='-Wl,'
13499 lt_prog_compiler_pic='-qpic'
13500 lt_prog_compiler_static='-qstaticlink'
13503 case `$CC -V 2>&1 | sed 5q` in
13504 *Sun\ F* | *Sun*Fortran*)
13505 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13506 lt_prog_compiler_pic='-KPIC'
13507 lt_prog_compiler_static='-Bstatic'
13508 lt_prog_compiler_wl=''
13512 lt_prog_compiler_pic='-KPIC'
13513 lt_prog_compiler_static='-Bstatic'
13514 lt_prog_compiler_wl='-Wl,'
13522 lt_prog_compiler_pic='-KPIC'
13523 lt_prog_compiler_static='-Bstatic'
13527 # QNX uses GNU C++, but need to define -shared option too, otherwise
13528 # it will coredump.
13529 lt_prog_compiler_pic='-fPIC -shared'
13532 osf3* | osf4* | osf5*)
13533 lt_prog_compiler_wl='-Wl,'
13534 # All OSF/1 code is PIC.
13535 lt_prog_compiler_static='-non_shared'
13539 lt_prog_compiler_static='-non_shared'
13543 lt_prog_compiler_pic='-KPIC'
13544 lt_prog_compiler_static='-Bstatic'
13545 case $cc_basename in
13546 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13547 lt_prog_compiler_wl='-Qoption ld ';;
13549 lt_prog_compiler_wl='-Wl,';;
13554 lt_prog_compiler_wl='-Qoption ld '
13555 lt_prog_compiler_pic='-PIC'
13556 lt_prog_compiler_static='-Bstatic'
13559 sysv4 | sysv4.2uw2* | sysv4.3*)
13560 lt_prog_compiler_wl='-Wl,'
13561 lt_prog_compiler_pic='-KPIC'
13562 lt_prog_compiler_static='-Bstatic'
13566 if test -d /usr/nec ;then
13567 lt_prog_compiler_pic='-Kconform_pic'
13568 lt_prog_compiler_static='-Bstatic'
13572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13573 lt_prog_compiler_wl='-Wl,'
13574 lt_prog_compiler_pic='-KPIC'
13575 lt_prog_compiler_static='-Bstatic'
13579 lt_prog_compiler_wl='-Wl,'
13580 lt_prog_compiler_can_build_shared=no
13584 lt_prog_compiler_pic='-pic'
13585 lt_prog_compiler_static='-Bstatic'
13589 lt_prog_compiler_can_build_shared=no
13595 # For platforms which do not support PIC, -DPIC is meaningless:
13597 lt_prog_compiler_pic=
13600 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13606 if ${lt_cv_prog_compiler_pic+:} false; then :
13607 $as_echo_n "(cached) " >&6
13609 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13612 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13613 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13616 # Check to make sure the PIC flag actually works.
13618 if test -n "$lt_prog_compiler_pic"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13620 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13621 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13622 $as_echo_n "(cached) " >&6
13624 lt_cv_prog_compiler_pic_works=no
13625 ac_outfile=conftest.$ac_objext
13626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13627 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13628 # Insert the option either (1) after the last *FLAGS variable, or
13629 # (2) before a word containing "conftest.", or (3) at the end.
13630 # Note that $ac_compile itself does not contain backslashes and begins
13631 # with a dollar sign (not a hyphen), so the echo should work correctly.
13632 # The option is referenced via a variable to avoid confusing sed.
13633 lt_compile=`echo "$ac_compile" | $SED \
13634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13636 -e 's:$: $lt_compiler_flag:'`
13637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13638 (eval "$lt_compile" 2>conftest.err)
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 if (exit $ac_status) && test -s "$ac_outfile"; then
13643 # The compiler can only warn and ignore the option if not recognized
13644 # So say no if there are warnings other than the usual output.
13645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_pic_works=yes
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13655 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13657 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13658 case $lt_prog_compiler_pic in
13660 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13663 lt_prog_compiler_pic=
13664 lt_prog_compiler_can_build_shared=no
13680 # Check to make sure the static flag actually works.
13682 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13684 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13685 if ${lt_cv_prog_compiler_static_works+:} false; then :
13686 $as_echo_n "(cached) " >&6
13688 lt_cv_prog_compiler_static_works=no
13689 save_LDFLAGS="$LDFLAGS"
13690 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13693 # The linker can only warn and ignore the option if not recognized
13694 # So say no if there are warnings
13695 if test -s conftest.err; then
13696 # Append any errors to the config.log.
13697 cat conftest.err 1>&5
13698 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13700 if diff conftest.exp conftest.er2 >/dev/null; then
13701 lt_cv_prog_compiler_static_works=yes
13704 lt_cv_prog_compiler_static_works=yes
13708 LDFLAGS="$save_LDFLAGS"
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13712 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13714 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13717 lt_prog_compiler_static=
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13727 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13728 if ${lt_cv_prog_compiler_c_o+:} false; then :
13729 $as_echo_n "(cached) " >&6
13731 lt_cv_prog_compiler_c_o=no
13732 $RM -r conftest 2>/dev/null
13736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13738 lt_compiler_flag="-o out/conftest2.$ac_objext"
13739 # Insert the option either (1) after the last *FLAGS variable, or
13740 # (2) before a word containing "conftest.", or (3) at the end.
13741 # Note that $ac_compile itself does not contain backslashes and begins
13742 # with a dollar sign (not a hyphen), so the echo should work correctly.
13743 lt_compile=`echo "$ac_compile" | $SED \
13744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13746 -e 's:$: $lt_compiler_flag:'`
13747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13748 (eval "$lt_compile" 2>out/conftest.err)
13750 cat out/conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13754 # The compiler can only warn and ignore the option if not recognized
13755 # So say no if there are warnings
13756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13759 lt_cv_prog_compiler_c_o=yes
13764 # SGI C++ compiler will create directory out/ii_files/ for
13765 # template instantiation
13766 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13767 $RM out/* && rmdir out
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13774 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13783 if ${lt_cv_prog_compiler_c_o+:} false; then :
13784 $as_echo_n "(cached) " >&6
13786 lt_cv_prog_compiler_c_o=no
13787 $RM -r conftest 2>/dev/null
13791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13793 lt_compiler_flag="-o out/conftest2.$ac_objext"
13794 # Insert the option either (1) after the last *FLAGS variable, or
13795 # (2) before a word containing "conftest.", or (3) at the end.
13796 # Note that $ac_compile itself does not contain backslashes and begins
13797 # with a dollar sign (not a hyphen), so the echo should work correctly.
13798 lt_compile=`echo "$ac_compile" | $SED \
13799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13801 -e 's:$: $lt_compiler_flag:'`
13802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13803 (eval "$lt_compile" 2>out/conftest.err)
13805 cat out/conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13809 # The compiler can only warn and ignore the option if not recognized
13810 # So say no if there are warnings
13811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13814 lt_cv_prog_compiler_c_o=yes
13819 # SGI C++ compiler will create directory out/ii_files/ for
13820 # template instantiation
13821 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13822 $RM out/* && rmdir out
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13829 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13834 hard_links="nottested"
13835 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13836 # do not overwrite the value of need_locks provided by the user
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13838 $as_echo_n "checking if we can lock with hard links... " >&6; }
13841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13843 ln conftest.a conftest.b 2>&5 || hard_links=no
13844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13846 $as_echo "$hard_links" >&6; }
13847 if test "$hard_links" = no; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13849 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13862 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13865 allow_undefined_flag=
13866 always_export_symbols=no
13868 archive_expsym_cmds=
13869 compiler_needs_object=no
13870 enable_shared_with_static_runtimes=no
13871 export_dynamic_flag_spec=
13872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13873 hardcode_automatic=no
13875 hardcode_direct_absolute=no
13876 hardcode_libdir_flag_spec=
13877 hardcode_libdir_flag_spec_ld=
13878 hardcode_libdir_separator=
13879 hardcode_minus_L=no
13880 hardcode_shlibpath_var=unsupported
13882 link_all_deplibs=unknown
13884 module_expsym_cmds=
13885 old_archive_from_new_cmds=
13886 old_archive_from_expsyms_cmds=
13887 thread_safe_flag_spec=
13888 whole_archive_flag_spec=
13889 # include_expsyms should be a list of space-separated symbols to be *always*
13890 # included in the symbol list
13892 # exclude_expsyms can be an extended regexp of symbols to exclude
13893 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13894 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13895 # as well as any symbol that contains `d'.
13896 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13897 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13898 # platforms (ab)use it in PIC code, but their linkers get confused if
13899 # the symbol is explicitly referenced. Since portable code cannot
13900 # rely on this symbol name, it's probably fine to never include it in
13901 # preloaded symbol tables.
13902 # Exclude shared library initialization/finalization symbols.
13903 extract_expsyms_cmds=
13906 cygwin* | mingw* | pw32* | cegcc*)
13907 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13908 # When not using gcc, we currently assume that we are using
13909 # Microsoft Visual C++.
13910 if test "$GCC" != yes; then
13915 # we just hope/assume this is gcc and not c89 (= MSVC++)
13925 # On some targets, GNU ld is compatible enough with the native linker
13926 # that we're better off using the native interface for both.
13927 lt_use_gnu_ld_interface=no
13928 if test "$with_gnu_ld" = yes; then
13931 # The AIX port of GNU ld has always aspired to compatibility
13932 # with the native linker. However, as the warning in the GNU ld
13933 # block says, versions before 2.19.5* couldn't really create working
13934 # shared libraries, regardless of the interface used.
13935 case `$LD -v 2>&1` in
13936 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13937 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13938 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13940 lt_use_gnu_ld_interface=yes
13945 lt_use_gnu_ld_interface=yes
13950 if test "$lt_use_gnu_ld_interface" = yes; then
13951 # If archive_cmds runs LD, not CC, wlarc should be empty
13954 # Set some defaults for GNU ld with shared library support. These
13955 # are reset later if shared libraries are not supported. Putting them
13956 # here allows them to be overridden if necessary.
13957 runpath_var=LD_RUN_PATH
13958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13959 export_dynamic_flag_spec='${wl}--export-dynamic'
13960 # ancient GNU ld didn't support --whole-archive et. al.
13961 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13962 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13964 whole_archive_flag_spec=
13966 supports_anon_versioning=no
13967 case `$LD -v 2>&1` in
13968 *GNU\ gold*) supports_anon_versioning=yes ;;
13969 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13970 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13971 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13972 *\ 2.11.*) ;; # other 2.11 versions
13973 *) supports_anon_versioning=yes ;;
13976 # See if GNU ld supports shared libraries.
13979 # On AIX/PPC, the GNU linker is very broken
13980 if test "$host_cpu" != ia64; then
13984 *** Warning: the GNU linker, at least up to release 2.19, is reported
13985 *** to be unable to reliably create shared libraries on AIX.
13986 *** Therefore, libtool is disabling shared libraries support. If you
13987 *** really care for shared libraries, you may want to install binutils
13988 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13989 *** You will then need to restart the configuration process.
13998 # see comment about AmigaOS4 .so support
13999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000 archive_expsym_cmds=''
14003 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)'
14004 hardcode_libdir_flag_spec='-L$libdir'
14005 hardcode_minus_L=yes
14011 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14012 allow_undefined_flag=unsupported
14013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14014 # support --undefined. This deserves some investigation. FIXME
14015 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14021 cygwin* | mingw* | pw32* | cegcc*)
14022 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14023 # as there is no search path for DLLs.
14024 hardcode_libdir_flag_spec='-L$libdir'
14025 export_dynamic_flag_spec='${wl}--export-all-symbols'
14026 allow_undefined_flag=unsupported
14027 always_export_symbols=no
14028 enable_shared_with_static_runtimes=yes
14029 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'
14030 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14032 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14034 # If the export-symbols file already is a .def file (1st line
14035 # is EXPORTS), use it as is; otherwise, prepend...
14036 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14037 cp $export_symbols $output_objdir/$soname.def;
14039 echo EXPORTS > $output_objdir/$soname.def;
14040 cat $export_symbols >> $output_objdir/$soname.def;
14042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050 link_all_deplibs=yes
14055 hardcode_shlibpath_var=no
14056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14057 export_dynamic_flag_spec='${wl}-E'
14058 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14059 # Instead, shared libraries are loaded at an image base (0x10000000 by
14060 # default) and relocated if they conflict, which is a slow very memory
14061 # consuming and fragmenting process. To avoid this, we pick a random,
14062 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14063 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14065 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'
14068 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14070 if test "$host_os" = linux-dietlibc; then
14071 case $cc_basename in
14072 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14075 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14076 && test "$tmp_diet" = no
14078 tmp_addflag=' $pic_flag'
14079 tmp_sharedflag='-shared'
14080 case $cc_basename,$host_cpu in
14081 pgcc*) # Portland Group C compiler
14082 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'
14083 tmp_addflag=' $pic_flag'
14085 pgf77* | pgf90* | pgf95* | pgfortran*)
14086 # Portland Group f77 and f90 compilers
14087 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'
14088 tmp_addflag=' $pic_flag -Mnomain' ;;
14089 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14090 tmp_addflag=' -i_dynamic' ;;
14091 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14092 tmp_addflag=' -i_dynamic -nofor_main' ;;
14093 ifc* | ifort*) # Intel Fortran compiler
14094 tmp_addflag=' -nofor_main' ;;
14095 lf95*) # Lahey Fortran 8.1
14096 whole_archive_flag_spec=
14097 tmp_sharedflag='--shared' ;;
14098 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14099 tmp_sharedflag='-qmkshrobj'
14101 nvcc*) # Cuda Compiler Driver 2.2
14102 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'
14103 compiler_needs_object=yes
14106 case `$CC -V 2>&1 | sed 5q` in
14107 *Sun\ C*) # Sun C 5.9
14108 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'
14109 compiler_needs_object=yes
14110 tmp_sharedflag='-G' ;;
14111 *Sun\ F*) # Sun Fortran 8.3
14112 tmp_sharedflag='-G' ;;
14114 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14116 if test "x$supports_anon_versioning" = xyes; then
14117 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14119 echo "local: *; };" >> $output_objdir/$libname.ver~
14120 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14123 case $cc_basename in
14124 xlf* | bgf* | bgxlf* | mpixlf*)
14125 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14126 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14127 hardcode_libdir_flag_spec=
14128 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14129 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14130 if test "x$supports_anon_versioning" = xyes; then
14131 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14133 echo "local: *; };" >> $output_objdir/$libname.ver~
14134 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14154 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14159 *** create shared libraries on Solaris systems. Therefore, libtool
14160 *** is disabling shared libraries support. We urge you to upgrade GNU
14161 *** binutils to release 2.9.1 or newer. Another option is to modify
14162 *** your PATH or compiler configuration so that the native linker is
14163 *** used, and then restart.
14166 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14175 case `$LD -v 2>&1` in
14176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14181 *** reliably create shared libraries on SCO systems. Therefore, libtool
14182 *** is disabling shared libraries support. We urge you to upgrade GNU
14183 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14184 *** your PATH or compiler configuration so that the native linker is
14185 *** used, and then restart.
14190 # For security reasons, it is highly recommended that you always
14191 # use absolute paths for naming shared libraries, and exclude the
14192 # DT_RUNPATH tag from executables and libraries. But doing so
14193 # requires that you compile everything twice, which is a pain.
14194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14206 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14208 hardcode_direct=yes
14209 hardcode_shlibpath_var=no
14213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14215 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14222 if test "$ld_shlibs" = no; then
14224 hardcode_libdir_flag_spec=
14225 export_dynamic_flag_spec=
14226 whole_archive_flag_spec=
14229 # PORTME fill in a description of your system's linker (not GNU ld)
14232 allow_undefined_flag=unsupported
14233 always_export_symbols=yes
14234 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'
14235 # Note: this linker hardcodes the directories in LIBPATH if there
14236 # are no directories specified by -L.
14237 hardcode_minus_L=yes
14238 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14239 # Neither direct hardcoding nor static linking is supported with a
14241 hardcode_direct=unsupported
14246 if test "$host_cpu" = ia64; then
14247 # On IA64, the linker does run time linking by default, so we don't
14248 # have to do anything special.
14249 aix_use_runtimelinking=no
14250 exp_sym_flag='-Bexport'
14253 # If we're using GNU nm, then we don't want the "-C" option.
14254 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14255 # Also, AIX nm treats weak defined symbols like other global
14256 # defined symbols, whereas GNU nm marks them as "W".
14257 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14258 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'
14260 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'
14262 aix_use_runtimelinking=no
14264 # Test if we are trying to use run time linking or normal
14265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14266 # need to do runtime linking.
14267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14268 for ld_flag in $LDFLAGS; do
14269 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14270 aix_use_runtimelinking=yes
14277 exp_sym_flag='-bexport'
14278 no_entry_flag='-bnoentry'
14281 # When large executables or shared objects are built, AIX ld can
14282 # have problems creating the table of contents. If linking a library
14283 # or program results in "error TOC overflow" add -mminimal-toc to
14284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14288 hardcode_direct=yes
14289 hardcode_direct_absolute=yes
14290 hardcode_libdir_separator=':'
14291 link_all_deplibs=yes
14292 file_list_spec='${wl}-f,'
14294 if test "$GCC" = yes; then
14295 case $host_os in aix4.[012]|aix4.[012].*)
14296 # We only want to do this on AIX 4.2 and lower, the check
14297 # below for broken collect2 doesn't work under 4.3+
14298 collect2name=`${CC} -print-prog-name=collect2`
14299 if test -f "$collect2name" &&
14300 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14302 # We have reworked collect2
14305 # We have old collect2
14306 hardcode_direct=unsupported
14307 # It fails to find uninstalled libraries when the uninstalled
14308 # path is not listed in the libpath. Setting hardcode_minus_L
14309 # to unsupported forces relinking
14310 hardcode_minus_L=yes
14311 hardcode_libdir_flag_spec='-L$libdir'
14312 hardcode_libdir_separator=
14316 shared_flag='-shared'
14317 if test "$aix_use_runtimelinking" = yes; then
14318 shared_flag="$shared_flag "'${wl}-G'
14322 if test "$host_cpu" = ia64; then
14323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14324 # chokes on -Wl,-G. The following line is correct:
14327 if test "$aix_use_runtimelinking" = yes; then
14328 shared_flag='${wl}-G'
14330 shared_flag='${wl}-bM:SRE'
14335 export_dynamic_flag_spec='${wl}-bexpall'
14336 # It seems that -bexpall does not export symbols beginning with
14337 # underscore (_), so it is better to generate a list of symbols to export.
14338 always_export_symbols=yes
14339 if test "$aix_use_runtimelinking" = yes; then
14340 # Warning - without using the other runtime loading flags (-brtl),
14341 # -berok will link without error, but may produce a broken library.
14342 allow_undefined_flag='-berok'
14343 # Determine the default libpath from the value encoded in an
14344 # empty executable.
14345 if test "${lt_cv_aix_libpath+set}" = set; then
14346 aix_libpath=$lt_cv_aix_libpath
14348 if ${lt_cv_aix_libpath_+:} false; then :
14349 $as_echo_n "(cached) " >&6
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14362 if ac_fn_c_try_link "$LINENO"; then :
14364 lt_aix_libpath_sed='
14365 /Import File Strings/,/^$/ {
14367 s/^0 *\([^ ]*\) *$/\1/
14371 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14372 # Check for a 64-bit object if we didn't find anything.
14373 if test -z "$lt_cv_aix_libpath_"; then
14374 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 if test -z "$lt_cv_aix_libpath_"; then
14380 lt_cv_aix_libpath_="/usr/lib:/lib"
14385 aix_libpath=$lt_cv_aix_libpath_
14388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14389 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"
14391 if test "$host_cpu" = ia64; then
14392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14393 allow_undefined_flag="-z nodefs"
14394 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"
14396 # Determine the default libpath from the value encoded in an
14397 # empty executable.
14398 if test "${lt_cv_aix_libpath+set}" = set; then
14399 aix_libpath=$lt_cv_aix_libpath
14401 if ${lt_cv_aix_libpath_+:} false; then :
14402 $as_echo_n "(cached) " >&6
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14415 if ac_fn_c_try_link "$LINENO"; then :
14417 lt_aix_libpath_sed='
14418 /Import File Strings/,/^$/ {
14420 s/^0 *\([^ ]*\) *$/\1/
14424 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14425 # Check for a 64-bit object if we didn't find anything.
14426 if test -z "$lt_cv_aix_libpath_"; then
14427 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14430 rm -f core conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
14432 if test -z "$lt_cv_aix_libpath_"; then
14433 lt_cv_aix_libpath_="/usr/lib:/lib"
14438 aix_libpath=$lt_cv_aix_libpath_
14441 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14442 # Warning - without using the other run time loading flags,
14443 # -berok will link without error, but may produce a broken library.
14444 no_undefined_flag=' ${wl}-bernotok'
14445 allow_undefined_flag=' ${wl}-berok'
14446 if test "$with_gnu_ld" = yes; then
14447 # We only use this code for GNU lds that support --whole-archive.
14448 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14450 # Exported symbols can be pulled into shared objects from archives
14451 whole_archive_flag_spec='$convenience'
14453 archive_cmds_need_lc=yes
14454 # This is similar to how AIX traditionally builds its shared libraries.
14455 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'
14463 # see comment about AmigaOS4 .so support
14464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14465 archive_expsym_cmds=''
14468 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)'
14469 hardcode_libdir_flag_spec='-L$libdir'
14470 hardcode_minus_L=yes
14476 export_dynamic_flag_spec=-rdynamic
14479 cygwin* | mingw* | pw32* | cegcc*)
14480 # When not using gcc, we currently assume that we are using
14481 # Microsoft Visual C++.
14482 # hardcode_libdir_flag_spec is actually meaningless, as there is
14483 # no search path for DLLs.
14484 case $cc_basename in
14487 hardcode_libdir_flag_spec=' '
14488 allow_undefined_flag=unsupported
14489 always_export_symbols=yes
14491 # Tell ltmain to make .lib files, not .a files.
14493 # Tell ltmain to make .dll files, not .so files.
14495 # FIXME: Setting linknames here is a bad hack.
14496 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14497 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14498 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14500 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14502 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14504 # The linker will not automatically build a static lib if we build a DLL.
14505 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14506 enable_shared_with_static_runtimes=yes
14507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14509 old_postinstall_cmds='chmod 644 $oldlib'
14510 postlink_cmds='lt_outputfile="@OUTPUT@"~
14511 lt_tool_outputfile="@TOOL_OUTPUT@"~
14512 case $lt_outputfile in
14515 lt_outputfile="$lt_outputfile.exe"
14516 lt_tool_outputfile="$lt_tool_outputfile.exe"
14519 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14520 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14521 $RM "$lt_outputfile.manifest";
14525 # Assume MSVC wrapper
14526 hardcode_libdir_flag_spec=' '
14527 allow_undefined_flag=unsupported
14528 # Tell ltmain to make .lib files, not .a files.
14530 # Tell ltmain to make .dll files, not .so files.
14532 # FIXME: Setting linknames here is a bad hack.
14533 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14534 # The linker will automatically build a .lib file if we build a DLL.
14535 old_archive_from_new_cmds='true'
14536 # FIXME: Should let the user specify the lib program.
14537 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14538 enable_shared_with_static_runtimes=yes
14543 darwin* | rhapsody*)
14546 archive_cmds_need_lc=no
14548 hardcode_automatic=yes
14549 hardcode_shlibpath_var=unsupported
14550 if test "$lt_cv_ld_force_load" = "yes"; then
14551 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\"`'
14553 whole_archive_flag_spec=''
14555 link_all_deplibs=yes
14556 allow_undefined_flag="$_lt_dar_allow_undefined"
14557 case $cc_basename in
14558 ifort*) _lt_dar_can_shared=yes ;;
14559 *) _lt_dar_can_shared=$GCC ;;
14561 if test "$_lt_dar_can_shared" = "yes"; then
14562 output_verbose_link_cmd=func_echo_all
14563 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14564 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14565 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}"
14566 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}"
14575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14576 hardcode_libdir_flag_spec='-L$libdir'
14577 hardcode_shlibpath_var=no
14584 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14585 # support. Future versions do this automatically, but an explicit c++rt0.o
14586 # does not break anything, and helps significantly (at the cost of a little
14589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14590 hardcode_libdir_flag_spec='-R$libdir'
14591 hardcode_direct=yes
14592 hardcode_shlibpath_var=no
14595 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14598 hardcode_direct=yes
14599 hardcode_minus_L=yes
14600 hardcode_shlibpath_var=no
14603 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14604 freebsd* | dragonfly*)
14605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14606 hardcode_libdir_flag_spec='-R$libdir'
14607 hardcode_direct=yes
14608 hardcode_shlibpath_var=no
14612 if test "$GCC" = yes; then
14613 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'
14615 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'
14617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14618 hardcode_libdir_separator=:
14619 hardcode_direct=yes
14621 # hardcode_minus_L: Not really in the search PATH,
14622 # but as the default location of the library.
14623 hardcode_minus_L=yes
14624 export_dynamic_flag_spec='${wl}-E'
14628 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14629 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14633 if test "$with_gnu_ld" = no; then
14634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14635 hardcode_libdir_flag_spec_ld='+b $libdir'
14636 hardcode_libdir_separator=:
14637 hardcode_direct=yes
14638 hardcode_direct_absolute=yes
14639 export_dynamic_flag_spec='${wl}-E'
14640 # hardcode_minus_L: Not really in the search PATH,
14641 # but as the default location of the library.
14642 hardcode_minus_L=yes
14647 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14650 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14656 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14662 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14669 # Older versions of the 11.00 compiler do not understand -b yet
14670 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14672 $as_echo_n "checking if $CC understands -b... " >&6; }
14673 if ${lt_cv_prog_compiler__b+:} false; then :
14674 $as_echo_n "(cached) " >&6
14676 lt_cv_prog_compiler__b=no
14677 save_LDFLAGS="$LDFLAGS"
14678 LDFLAGS="$LDFLAGS -b"
14679 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14681 # The linker can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 if test -s conftest.err; then
14684 # Append any errors to the config.log.
14685 cat conftest.err 1>&5
14686 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688 if diff conftest.exp conftest.er2 >/dev/null; then
14689 lt_cv_prog_compiler__b=yes
14692 lt_cv_prog_compiler__b=yes
14696 LDFLAGS="$save_LDFLAGS"
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14700 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14702 if test x"$lt_cv_prog_compiler__b" = xyes; then
14703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14711 if test "$with_gnu_ld" = no; then
14712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14713 hardcode_libdir_separator=:
14718 hardcode_shlibpath_var=no
14721 hardcode_direct=yes
14722 hardcode_direct_absolute=yes
14723 export_dynamic_flag_spec='${wl}-E'
14725 # hardcode_minus_L: Not really in the search PATH,
14726 # but as the default location of the library.
14727 hardcode_minus_L=yes
14733 irix5* | irix6* | nonstopux*)
14734 if test "$GCC" = yes; then
14735 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'
14736 # Try to use the -exported_symbol ld option, if it does not
14737 # work, assume that -exports_file does not work either and
14738 # implicitly export all symbols.
14739 # This should be the same for all languages, so no per-tag cache variable.
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14741 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14742 if ${lt_cv_irix_exported_symbol+:} false; then :
14743 $as_echo_n "(cached) " >&6
14745 save_LDFLAGS="$LDFLAGS"
14746 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14749 int foo (void) { return 0; }
14751 if ac_fn_c_try_link "$LINENO"; then :
14752 lt_cv_irix_exported_symbol=yes
14754 lt_cv_irix_exported_symbol=no
14756 rm -f core conftest.err conftest.$ac_objext \
14757 conftest$ac_exeext conftest.$ac_ext
14758 LDFLAGS="$save_LDFLAGS"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14761 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14762 if test "$lt_cv_irix_exported_symbol" = yes; then
14763 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'
14766 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'
14767 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'
14769 archive_cmds_need_lc='no'
14770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14771 hardcode_libdir_separator=:
14773 link_all_deplibs=yes
14777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14780 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14782 hardcode_libdir_flag_spec='-R$libdir'
14783 hardcode_direct=yes
14784 hardcode_shlibpath_var=no
14788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14789 hardcode_direct=yes
14790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14791 hardcode_libdir_separator=:
14792 hardcode_shlibpath_var=no
14799 if test -f /usr/libexec/ld.so; then
14800 hardcode_direct=yes
14801 hardcode_shlibpath_var=no
14802 hardcode_direct_absolute=yes
14803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14805 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14807 export_dynamic_flag_spec='${wl}-E'
14810 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14812 hardcode_libdir_flag_spec='-R$libdir'
14815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14826 hardcode_libdir_flag_spec='-L$libdir'
14827 hardcode_minus_L=yes
14828 allow_undefined_flag=unsupported
14829 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'
14830 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14834 if test "$GCC" = yes; then
14835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14836 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'
14838 allow_undefined_flag=' -expect_unresolved \*'
14839 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'
14841 archive_cmds_need_lc='no'
14842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14843 hardcode_libdir_separator=:
14846 osf4* | osf5*) # as osf3* with the addition of -msym flag
14847 if test "$GCC" = yes; then
14848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14849 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'
14850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14852 allow_undefined_flag=' -expect_unresolved \*'
14853 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'
14854 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~
14855 $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'
14857 # Both c and cxx compiler support -rpath directly
14858 hardcode_libdir_flag_spec='-rpath $libdir'
14860 archive_cmds_need_lc='no'
14861 hardcode_libdir_separator=:
14865 no_undefined_flag=' -z defs'
14866 if test "$GCC" = yes; then
14868 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14870 $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'
14872 case `$CC -V 2>&1` in
14875 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14881 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14883 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14887 hardcode_libdir_flag_spec='-R$libdir'
14888 hardcode_shlibpath_var=no
14890 solaris2.[0-5] | solaris2.[0-5].*) ;;
14892 # The compiler driver will combine and reorder linker options,
14893 # but understands `-z linker_flag'. GCC discards it without `$wl',
14894 # but is careful enough not to reorder.
14895 # Supported since Solaris 2.6 (maybe 2.5.1?)
14896 if test "$GCC" = yes; then
14897 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14899 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14903 link_all_deplibs=yes
14907 if test "x$host_vendor" = xsequent; then
14908 # Use $CC to link under sequent, because it throws in some extra .o
14909 # files that make .init and .fini sections work.
14910 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14914 hardcode_libdir_flag_spec='-L$libdir'
14915 hardcode_direct=yes
14916 hardcode_minus_L=yes
14917 hardcode_shlibpath_var=no
14921 case $host_vendor in
14923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924 hardcode_direct=yes # is this really true???
14927 ## LD is ld it makes a PLAMLIB
14928 ## CC just makes a GrossModule.
14929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14930 reload_cmds='$CC -r -o $output$reload_objs'
14934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14938 runpath_var='LD_RUN_PATH'
14939 hardcode_shlibpath_var=no
14943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14944 hardcode_shlibpath_var=no
14945 export_dynamic_flag_spec='-Bexport'
14949 if test -d /usr/nec; then
14950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_shlibpath_var=no
14952 runpath_var=LD_RUN_PATH
14953 hardcode_runpath_var=yes
14958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14959 no_undefined_flag='${wl}-z,text'
14960 archive_cmds_need_lc=no
14961 hardcode_shlibpath_var=no
14962 runpath_var='LD_RUN_PATH'
14964 if test "$GCC" = yes; then
14965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14973 sysv5* | sco3.2v5* | sco5v6*)
14974 # Note: We can NOT use -z defs as we might desire, because we do not
14975 # link with -lc, and that would cause any symbols used from libc to
14976 # always be unresolved, which means just about no library would
14977 # ever link correctly. If we're not using GNU ld we use -z text
14978 # though, which does catch some bad symbols but isn't as heavy-handed
14980 no_undefined_flag='${wl}-z,text'
14981 allow_undefined_flag='${wl}-z,nodefs'
14982 archive_cmds_need_lc=no
14983 hardcode_shlibpath_var=no
14984 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14985 hardcode_libdir_separator=':'
14986 link_all_deplibs=yes
14987 export_dynamic_flag_spec='${wl}-Bexport'
14988 runpath_var='LD_RUN_PATH'
14990 if test "$GCC" = yes; then
14991 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15001 hardcode_libdir_flag_spec='-L$libdir'
15002 hardcode_shlibpath_var=no
15010 if test x$host_vendor = xsni; then
15012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15013 export_dynamic_flag_spec='${wl}-Blargedynsym'
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15020 $as_echo "$ld_shlibs" >&6; }
15021 test "$ld_shlibs" = no && can_build_shared=no
15023 with_gnu_ld=$with_gnu_ld
15040 # Do we need to explicitly link libc?
15042 case "x$archive_cmds_need_lc" in
15044 # Assume -lc should be added
15045 archive_cmds_need_lc=yes
15047 if test "$enable_shared" = yes && test "$GCC" = yes; then
15048 case $archive_cmds in
15050 # FIXME: we may have to deal with multi-command sequences.
15053 # Test whether the compiler implicitly links with -lc since on some
15054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15055 # to ld, don't add -lc before -lgcc.
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15057 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15058 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15059 $as_echo_n "(cached) " >&6
15062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15065 (eval $ac_compile) 2>&5
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; } 2>conftest.err; then
15071 libobjs=conftest.$ac_objext
15073 wl=$lt_prog_compiler_wl
15074 pic_flag=$lt_prog_compiler_pic
15080 lt_save_allow_undefined_flag=$allow_undefined_flag
15081 allow_undefined_flag=
15082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15083 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086 test $ac_status = 0; }
15088 lt_cv_archive_cmds_need_lc=no
15090 lt_cv_archive_cmds_need_lc=yes
15092 allow_undefined_flag=$lt_save_allow_undefined_flag
15094 cat conftest.err 1>&5
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15100 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15101 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15265 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15267 if test "$GCC" = yes; then
15269 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15270 *) lt_awk_arg="/^libraries:/" ;;
15273 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15274 *) lt_sed_strip_eq="s,=/,/,g" ;;
15276 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15277 case $lt_search_path_spec in
15279 # if the path contains ";" then we assume it to be the separator
15280 # otherwise default to the standard path separator (i.e. ":") - it is
15281 # assumed that no part of a normal pathname contains ";" but that should
15282 # okay in the real world where ";" in dirpaths is itself problematic.
15283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15289 # Ok, now we have the path, separated by spaces, we can step through it
15290 # and add multilib dir if necessary.
15291 lt_tmp_lt_search_path_spec=
15292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15293 for lt_sys_path in $lt_search_path_spec; do
15294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15297 test -d "$lt_sys_path" && \
15298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15302 BEGIN {RS=" "; FS="/|\n";} {
15305 for (lt_i = NF; lt_i > 0; lt_i--) {
15306 if ($lt_i != "" && $lt_i != ".") {
15307 if ($lt_i == "..") {
15310 if (lt_count == 0) {
15311 lt_foo="/" $lt_i lt_foo;
15318 if (lt_foo != "") { lt_freq[lt_foo]++; }
15319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15321 # AWK program above erroneously prepends '/' to C:/dos/paths
15324 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15325 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15331 library_names_spec=
15332 libname_spec='lib$name'
15336 postuninstall_cmds=
15340 shlibpath_overrides_runpath=unknown
15342 dynamic_linker="$host_os ld.so"
15343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15344 need_lib_prefix=unknown
15345 hardcode_into_libs=no
15347 # when you set need_version to no, make sure it does not cause -set_version
15348 # flags to be left without arguments
15349 need_version=unknown
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15355 shlibpath_var=LIBPATH
15357 # AIX 3 has no versioning support, so we append a major version to the name.
15358 soname_spec='${libname}${release}${shared_ext}$major'
15365 hardcode_into_libs=yes
15366 if test "$host_cpu" = ia64; then
15367 # AIX 5 supports IA64
15368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15369 shlibpath_var=LD_LIBRARY_PATH
15371 # With GCC up to 2.95.x, collect2 would create an import file
15372 # for dependence libraries. The import file would start with
15373 # the line `#! .'. This would cause the generated library to
15374 # depend on `.', always an invalid library. This was fixed in
15375 # development snapshots of GCC prior to 3.0.
15377 aix4 | aix4.[01] | aix4.[01].*)
15378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15383 can_build_shared=no
15387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15388 # soname into executable. Probably we can add versioning support to
15389 # collect2, so additional links can be useful in future.
15390 if test "$aix_use_runtimelinking" = yes; then
15391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15392 # instead of lib<name>.a to let people know that these are not
15393 # typical AIX shared libraries.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 # We preserve .a as extension for shared libraries through AIX4.2
15397 # and later when we are not doing run time linking.
15398 library_names_spec='${libname}${release}.a $libname.a'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15401 shlibpath_var=LIBPATH
15408 # Since July 2007 AmigaOS4 officially supports .so libraries.
15409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413 library_names_spec='$libname.ixlibrary $libname.a'
15414 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15415 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'
15421 library_names_spec='${libname}${shared_ext}'
15422 dynamic_linker="$host_os ld.so"
15423 shlibpath_var=LIBRARY_PATH
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15435 # the default ld.so.conf also contains /usr/contrib/lib and
15436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15437 # libtool to hard-code these into programs
15440 cygwin* | mingw* | pw32* | cegcc*)
15441 version_type=windows
15446 case $GCC,$cc_basename in
15449 library_names_spec='$libname.dll.a'
15450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15451 postinstall_cmds='base_file=`basename \${file}`~
15452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15453 dldir=$destdir/`dirname \$dlpath`~
15454 test -d \$dldir || mkdir -p \$dldir~
15455 $install_prog $dir/$dlname \$dldir/$dlname~
15456 chmod a+x \$dldir/$dlname~
15457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15461 dlpath=$dir/\$dldll~
15463 shlibpath_overrides_runpath=yes
15467 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15473 # MinGW DLLs use traditional 'lib' prefix
15474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15477 # pw32 DLLs use 'pw' prefix rather than 'lib'
15478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15481 dynamic_linker='Win32 ld.exe'
15486 libname_spec='$name'
15487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488 library_names_spec='${libname}.dll.lib'
15492 sys_lib_search_path_spec=
15495 for lt_path in $LIB
15498 # Let DOS variable expansion print the short 8.3 style file name.
15499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15503 # Convert to MSYS style.
15504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15507 # Convert to unix form, then to dos form, then back to unix form
15508 # but this time dos style (no spaces!) so that the unix form looks
15509 # like /cygdrive/c/PROGRA~1:/cygdr...
15510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15515 sys_lib_search_path_spec="$LIB"
15516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15517 # It is most probably a Windows format PATH.
15518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15522 # FIXME: find the short name or the path components, as spaces are
15523 # common. (e.g. "Program Files" -> "PROGRA~1")
15527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15528 postinstall_cmds='base_file=`basename \${file}`~
15529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15530 dldir=$destdir/`dirname \$dlpath`~
15531 test -d \$dldir || mkdir -p \$dldir~
15532 $install_prog $dir/$dlname \$dldir/$dlname'
15533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15534 dlpath=$dir/\$dldll~
15536 shlibpath_overrides_runpath=yes
15537 dynamic_linker='Win32 link.exe'
15541 # Assume MSVC wrapper
15542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15543 dynamic_linker='Win32 ld.exe'
15546 # FIXME: first we should search . and the directory the executable is in
15550 darwin* | rhapsody*)
15551 dynamic_linker="$host_os dyld"
15552 version_type=darwin
15555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15556 soname_spec='${libname}${release}${major}$shared_ext'
15557 shlibpath_overrides_runpath=yes
15558 shlibpath_var=DYLD_LIBRARY_PATH
15559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15578 freebsd* | dragonfly*)
15579 # DragonFly does not have aout. When/if they implement a new
15580 # versioning mechanism, adjust this.
15581 if test -x /usr/bin/objformat; then
15582 objformat=`/usr/bin/objformat`
15585 freebsd[123]*) objformat=aout ;;
15586 *) objformat=elf ;;
15589 version_type=freebsd-$objformat
15590 case $version_type in
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15601 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15606 freebsd3.[01]* | freebsdelf3.[01]*)
15607 shlibpath_overrides_runpath=yes
15608 hardcode_into_libs=yes
15610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15612 shlibpath_overrides_runpath=no
15613 hardcode_into_libs=yes
15615 *) # from 4.6 on, and DragonFly
15616 shlibpath_overrides_runpath=yes
15617 hardcode_into_libs=yes
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 hardcode_into_libs=yes
15636 dynamic_linker="$host_os runtime_loader"
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LIBRARY_PATH
15640 shlibpath_overrides_runpath=yes
15641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15642 hardcode_into_libs=yes
15645 hpux9* | hpux10* | hpux11*)
15646 # Give a soname corresponding to the major version so that dld.sl refuses to
15647 # link against other versions.
15654 hardcode_into_libs=yes
15655 dynamic_linker="$host_os dld.so"
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 if test "X$HPUX_IA64_MODE" = X32; then
15661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15669 hardcode_into_libs=yes
15670 dynamic_linker="$host_os dld.sl"
15671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15680 dynamic_linker="$host_os dld.sl"
15681 shlibpath_var=SHLIB_PATH
15682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15688 postinstall_cmds='chmod 555 $lib'
15689 # or fails outright, so override atomically:
15690 install_override_mode=555
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 shlibpath_overrides_runpath=no
15702 hardcode_into_libs=yes
15705 irix5* | irix6* | nonstopux*)
15707 nonstopux*) version_type=nonstopux ;;
15709 if test "$lt_cv_prog_gnu_ld" = yes; then
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15720 irix5* | nonstopux*)
15721 libsuff= shlibsuff=
15724 case $LD in # libtool.m4 will add one of these switches to LD
15725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15726 libsuff= shlibsuff= libmagic=32-bit;;
15727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15728 libsuff=32 shlibsuff=N32 libmagic=N32;;
15729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15731 *) libsuff= shlibsuff= libmagic=never-match;;
15735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15736 shlibpath_overrides_runpath=no
15737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15739 hardcode_into_libs=yes
15742 # No shared lib support for Linux oldld, aout, or coff.
15743 linux*oldld* | linux*aout* | linux*coff*)
15747 # This must be Linux ELF.
15748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=no
15758 # Some binutils ld are patched to set DT_RUNPATH
15759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15760 $as_echo_n "(cached) " >&6
15762 lt_cv_shlibpath_overrides_runpath=no
15763 save_LDFLAGS=$LDFLAGS
15764 save_libdir=$libdir
15765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15778 if ac_fn_c_try_link "$LINENO"; then :
15779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15780 lt_cv_shlibpath_overrides_runpath=yes
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LDFLAGS=$save_LDFLAGS
15786 libdir=$save_libdir
15790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15792 # This implies no fast_install, which is unacceptable.
15793 # Some rework will be needed to allow for fast_install
15794 # before this can be enabled.
15795 hardcode_into_libs=yes
15797 # Add ABI-specific directories to the system library path.
15798 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15800 # Append ld.so.conf contents to the search path
15801 if test -f /etc/ld.so.conf; then
15802 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' ' '`
15803 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15807 # We used to test for /lib/ld.so.1 and disable shared libraries on
15808 # powerpc, because MkLinux only supported shared libraries with the
15809 # GNU dynamic linker. Since this was broken with cross compilers,
15810 # most powerpc-linux boxes support dynamic linking these days and
15811 # people can always --disable-shared, the test was removed, and we
15812 # assume the GNU/Linux dynamic linker is in use.
15813 dynamic_linker='GNU/Linux ld.so'
15820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15823 dynamic_linker='NetBSD (a.out) ld.so'
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 dynamic_linker='NetBSD ld.elf_so'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 shlibpath_overrides_runpath=yes
15831 hardcode_into_libs=yes
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 shlibpath_overrides_runpath=yes
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 shlibpath_var=LD_LIBRARY_PATH
15848 shlibpath_overrides_runpath=no
15849 hardcode_into_libs=yes
15850 dynamic_linker='ldqnx.so'
15855 sys_lib_dlsearch_path_spec="/usr/lib"
15857 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15859 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15860 *) need_version=no ;;
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15864 shlibpath_var=LD_LIBRARY_PATH
15865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15867 openbsd2.[89] | openbsd2.[89].*)
15868 shlibpath_overrides_runpath=no
15871 shlibpath_overrides_runpath=yes
15875 shlibpath_overrides_runpath=yes
15880 libname_spec='$name'
15883 library_names_spec='$libname${shared_ext} $libname.a'
15884 dynamic_linker='OS/2 ld.exe'
15885 shlibpath_var=LIBPATH
15888 osf3* | osf4* | osf5*)
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes
15911 hardcode_into_libs=yes
15912 # ldd complains unless libraries are executable
15913 postinstall_cmds='chmod +x $lib'
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 shlibpath_overrides_runpath=yes
15922 if test "$with_gnu_ld" = yes; then
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 case $host_vendor in
15935 shlibpath_overrides_runpath=no
15937 runpath_var=LD_RUN_PATH
15945 shlibpath_overrides_runpath=no
15946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15952 if test -d /usr/nec ;then
15954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15955 soname_spec='$libname${shared_ext}.$major'
15956 shlibpath_var=LD_LIBRARY_PATH
15960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15961 version_type=freebsd-elf
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=yes
15968 hardcode_into_libs=yes
15969 if test "$with_gnu_ld" = yes; then
15970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15979 sys_lib_dlsearch_path_spec='/usr/lib'
15983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=no
15990 hardcode_into_libs=yes
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 shlibpath_var=LD_LIBRARY_PATH
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16005 $as_echo "$dynamic_linker" >&6; }
16006 test "$dynamic_linker" = no && can_build_shared=no
16008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16009 if test "$GCC" = yes; then
16010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16013 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16014 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16016 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16017 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16112 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16114 if test -n "$hardcode_libdir_flag_spec" ||
16115 test -n "$runpath_var" ||
16116 test "X$hardcode_automatic" = "Xyes" ; then
16118 # We can hardcode non-existent directories.
16119 if test "$hardcode_direct" != no &&
16120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16121 # have to relink, otherwise we might link with an installed library
16122 # when we should be linking with a yet-to-be-installed one
16123 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16124 test "$hardcode_minus_L" != no; then
16125 # Linking always hardcodes the temporary library directory.
16126 hardcode_action=relink
16128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16129 hardcode_action=immediate
16132 # We cannot hardcode anything, or else we can only hardcode existing
16134 hardcode_action=unsupported
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16137 $as_echo "$hardcode_action" >&6; }
16139 if test "$hardcode_action" = relink ||
16140 test "$inherit_rpath" = yes; then
16141 # Fast installation is not supported
16142 enable_fast_install=no
16143 elif test "$shlibpath_overrides_runpath" = yes ||
16144 test "$enable_shared" = no; then
16145 # Fast installation is not necessary
16146 enable_fast_install=needless
16154 if test "x$enable_dlopen" != xyes; then
16155 enable_dlopen=unknown
16156 enable_dlopen_self=unknown
16157 enable_dlopen_self_static=unknown
16164 lt_cv_dlopen="load_add_on"
16166 lt_cv_dlopen_self=yes
16169 mingw* | pw32* | cegcc*)
16170 lt_cv_dlopen="LoadLibrary"
16175 lt_cv_dlopen="dlopen"
16180 # if libdl is installed we need to link against it
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16182 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16183 if ${ac_cv_lib_dl_dlopen+:} false; then :
16184 $as_echo_n "(cached) " >&6
16186 ac_check_lib_save_LIBS=$LIBS
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16191 /* Override any GCC internal prototype to avoid an error.
16192 Use char because int might match the return type of a GCC
16193 builtin and then its argument prototype would still apply. */
16206 if ac_fn_c_try_link "$LINENO"; then :
16207 ac_cv_lib_dl_dlopen=yes
16209 ac_cv_lib_dl_dlopen=no
16211 rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213 LIBS=$ac_check_lib_save_LIBS
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16216 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16217 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16221 lt_cv_dlopen="dyld"
16223 lt_cv_dlopen_self=yes
16230 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16231 if test "x$ac_cv_func_shl_load" = xyes; then :
16232 lt_cv_dlopen="shl_load"
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16235 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16236 if ${ac_cv_lib_dld_shl_load+:} false; then :
16237 $as_echo_n "(cached) " >&6
16239 ac_check_lib_save_LIBS=$LIBS
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16244 /* Override any GCC internal prototype to avoid an error.
16245 Use char because int might match the return type of a GCC
16246 builtin and then its argument prototype would still apply. */
16254 return shl_load ();
16259 if ac_fn_c_try_link "$LINENO"; then :
16260 ac_cv_lib_dld_shl_load=yes
16262 ac_cv_lib_dld_shl_load=no
16264 rm -f core conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16266 LIBS=$ac_check_lib_save_LIBS
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16269 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16270 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16271 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16273 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16274 if test "x$ac_cv_func_dlopen" = xyes; then :
16275 lt_cv_dlopen="dlopen"
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16279 if ${ac_cv_lib_dl_dlopen+:} false; then :
16280 $as_echo_n "(cached) " >&6
16282 ac_check_lib_save_LIBS=$LIBS
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16287 /* Override any GCC internal prototype to avoid an error.
16288 Use char because int might match the return type of a GCC
16289 builtin and then its argument prototype would still apply. */
16302 if ac_fn_c_try_link "$LINENO"; then :
16303 ac_cv_lib_dl_dlopen=yes
16305 ac_cv_lib_dl_dlopen=no
16307 rm -f core conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16309 LIBS=$ac_check_lib_save_LIBS
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16317 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16318 if ${ac_cv_lib_svld_dlopen+:} false; then :
16319 $as_echo_n "(cached) " >&6
16321 ac_check_lib_save_LIBS=$LIBS
16322 LIBS="-lsvld $LIBS"
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16326 /* Override any GCC internal prototype to avoid an error.
16327 Use char because int might match the return type of a GCC
16328 builtin and then its argument prototype would still apply. */
16341 if ac_fn_c_try_link "$LINENO"; then :
16342 ac_cv_lib_svld_dlopen=yes
16344 ac_cv_lib_svld_dlopen=no
16346 rm -f core conftest.err conftest.$ac_objext \
16347 conftest$ac_exeext conftest.$ac_ext
16348 LIBS=$ac_check_lib_save_LIBS
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16351 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16352 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16356 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16357 if ${ac_cv_lib_dld_dld_link+:} false; then :
16358 $as_echo_n "(cached) " >&6
16360 ac_check_lib_save_LIBS=$LIBS
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16365 /* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16375 return dld_link ();
16380 if ac_fn_c_try_link "$LINENO"; then :
16381 ac_cv_lib_dld_dld_link=yes
16383 ac_cv_lib_dld_dld_link=no
16385 rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387 LIBS=$ac_check_lib_save_LIBS
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16390 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16391 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16392 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16413 if test "x$lt_cv_dlopen" != xno; then
16419 case $lt_cv_dlopen in
16421 save_CPPFLAGS="$CPPFLAGS"
16422 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16424 save_LDFLAGS="$LDFLAGS"
16425 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16428 LIBS="$lt_cv_dlopen_libs $LIBS"
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16431 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16432 if ${lt_cv_dlopen_self+:} false; then :
16433 $as_echo_n "(cached) " >&6
16435 if test "$cross_compiling" = yes; then :
16436 lt_cv_dlopen_self=cross
16438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16439 lt_status=$lt_dlunknown
16440 cat > conftest.$ac_ext <<_LT_EOF
16441 #line $LINENO "configure"
16442 #include "confdefs.h"
16451 # define LT_DLGLOBAL RTLD_GLOBAL
16454 # define LT_DLGLOBAL DL_GLOBAL
16456 # define LT_DLGLOBAL 0
16460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16461 find out it does not work in some platform. */
16462 #ifndef LT_DLLAZY_OR_NOW
16464 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16467 # define LT_DLLAZY_OR_NOW DL_LAZY
16470 # define LT_DLLAZY_OR_NOW RTLD_NOW
16473 # define LT_DLLAZY_OR_NOW DL_NOW
16475 # define LT_DLLAZY_OR_NOW 0
16482 /* When -fvisbility=hidden is used, assume the code has been annotated
16483 correspondingly for the symbols needed. */
16484 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16485 int fnord () __attribute__((visibility("default")));
16488 int fnord () { return 42; }
16491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16492 int status = $lt_dlunknown;
16496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16499 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16500 else puts (dlerror ());
16502 /* dlclose (self); */
16510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16511 (eval $ac_link) 2>&5
16513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16514 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16515 (./conftest; exit; ) >&5 2>/dev/null
16517 case x$lt_status in
16518 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16519 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16520 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16523 # compilation failed
16524 lt_cv_dlopen_self=no
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16532 $as_echo "$lt_cv_dlopen_self" >&6; }
16534 if test "x$lt_cv_dlopen_self" = xyes; then
16535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16537 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16538 if ${lt_cv_dlopen_self_static+:} false; then :
16539 $as_echo_n "(cached) " >&6
16541 if test "$cross_compiling" = yes; then :
16542 lt_cv_dlopen_self_static=cross
16544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16545 lt_status=$lt_dlunknown
16546 cat > conftest.$ac_ext <<_LT_EOF
16547 #line $LINENO "configure"
16548 #include "confdefs.h"
16557 # define LT_DLGLOBAL RTLD_GLOBAL
16560 # define LT_DLGLOBAL DL_GLOBAL
16562 # define LT_DLGLOBAL 0
16566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16567 find out it does not work in some platform. */
16568 #ifndef LT_DLLAZY_OR_NOW
16570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16573 # define LT_DLLAZY_OR_NOW DL_LAZY
16576 # define LT_DLLAZY_OR_NOW RTLD_NOW
16579 # define LT_DLLAZY_OR_NOW DL_NOW
16581 # define LT_DLLAZY_OR_NOW 0
16588 /* When -fvisbility=hidden is used, assume the code has been annotated
16589 correspondingly for the symbols needed. */
16590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16591 int fnord () __attribute__((visibility("default")));
16594 int fnord () { return 42; }
16597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16598 int status = $lt_dlunknown;
16602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16606 else puts (dlerror ());
16608 /* dlclose (self); */
16616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16617 (eval $ac_link) 2>&5
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16621 (./conftest; exit; ) >&5 2>/dev/null
16623 case x$lt_status in
16624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16626 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16629 # compilation failed
16630 lt_cv_dlopen_self_static=no
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16638 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16641 CPPFLAGS="$save_CPPFLAGS"
16642 LDFLAGS="$save_LDFLAGS"
16647 case $lt_cv_dlopen_self in
16648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16649 *) enable_dlopen_self=unknown ;;
16652 case $lt_cv_dlopen_self_static in
16653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16654 *) enable_dlopen_self_static=unknown ;;
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16677 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16678 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16679 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16680 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16682 $as_echo "yes" >&6; }
16684 # FIXME - insert some real tests, host_os isn't really good enough
16687 if test -n "$STRIP" ; then
16688 striplib="$STRIP -x"
16689 old_striplib="$STRIP -S"
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16691 $as_echo "yes" >&6; }
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16699 $as_echo "no" >&6; }
16715 # Report which library types will actually be built
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16717 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16719 $as_echo "$can_build_shared" >&6; }
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16722 $as_echo_n "checking whether to build shared libraries... " >&6; }
16723 test "$can_build_shared" = "no" && enable_shared=no
16725 # On AIX, shared libraries and static libraries use the same namespace, and
16726 # are all built from PIC.
16729 test "$enable_shared" = yes && enable_static=no
16730 if test -n "$RANLIB"; then
16731 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16732 postinstall_cmds='$RANLIB $lib'
16737 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16738 test "$enable_shared" = yes && enable_static=no
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16743 $as_echo "$enable_shared" >&6; }
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16746 $as_echo_n "checking whether to build static libraries... " >&6; }
16747 # Make sure either enable_shared or enable_static is yes.
16748 test "$enable_shared" = yes || enable_static=yes
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16750 $as_echo "$enable_static" >&6; }
16757 ac_cpp='$CPP $CPPFLAGS'
16758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16764 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16765 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16766 (test "X$CXX" != "Xg++"))) ; then
16768 ac_cpp='$CXXCPP $CPPFLAGS'
16769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16773 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16774 if test -z "$CXXCPP"; then
16775 if ${ac_cv_prog_CXXCPP+:} false; then :
16776 $as_echo_n "(cached) " >&6
16778 # Double quotes because CXXCPP needs to be expanded
16779 for CXXCPP in "$CXX -E" "/lib/cpp"
16781 ac_preproc_ok=false
16782 for ac_cxx_preproc_warn_flag in '' yes
16784 # Use a header file that comes with gcc, so configuring glibc
16785 # with a fresh cross-compiler works.
16786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 # <limits.h> exists even on freestanding compilers.
16788 # On the NeXT, cc -E runs the code through the compiler's parser,
16789 # not just through cpp. "Syntax error" is here to catch this case.
16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791 /* end confdefs.h. */
16793 # include <limits.h>
16795 # include <assert.h>
16799 if ac_fn_cxx_try_cpp "$LINENO"; then :
16802 # Broken: fails on valid input.
16805 rm -f conftest.err conftest.i conftest.$ac_ext
16807 # OK, works on sane cases. Now check whether nonexistent headers
16808 # can be detected and how.
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 #include <ac_nonexistent.h>
16813 if ac_fn_cxx_try_cpp "$LINENO"; then :
16814 # Broken: success on invalid input.
16817 # Passes both tests.
16821 rm -f conftest.err conftest.i conftest.$ac_ext
16824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16825 rm -f conftest.i conftest.err conftest.$ac_ext
16826 if $ac_preproc_ok; then :
16831 ac_cv_prog_CXXCPP=$CXXCPP
16834 CXXCPP=$ac_cv_prog_CXXCPP
16836 ac_cv_prog_CXXCPP=$CXXCPP
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16839 $as_echo "$CXXCPP" >&6; }
16840 ac_preproc_ok=false
16841 for ac_cxx_preproc_warn_flag in '' yes
16843 # Use a header file that comes with gcc, so configuring glibc
16844 # with a fresh cross-compiler works.
16845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 # <limits.h> exists even on freestanding compilers.
16847 # On the NeXT, cc -E runs the code through the compiler's parser,
16848 # not just through cpp. "Syntax error" is here to catch this case.
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16852 # include <limits.h>
16854 # include <assert.h>
16858 if ac_fn_cxx_try_cpp "$LINENO"; then :
16861 # Broken: fails on valid input.
16864 rm -f conftest.err conftest.i conftest.$ac_ext
16866 # OK, works on sane cases. Now check whether nonexistent headers
16867 # can be detected and how.
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 #include <ac_nonexistent.h>
16872 if ac_fn_cxx_try_cpp "$LINENO"; then :
16873 # Broken: success on invalid input.
16876 # Passes both tests.
16880 rm -f conftest.err conftest.i conftest.$ac_ext
16883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16884 rm -f conftest.i conftest.err conftest.$ac_ext
16885 if $ac_preproc_ok; then :
16888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16890 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16891 See \`config.log' for more details" "$LINENO" 5; }
16895 ac_cpp='$CPP $CPPFLAGS'
16896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16901 _lt_caught_CXX_error=yes
16905 ac_cpp='$CXXCPP $CPPFLAGS'
16906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16910 archive_cmds_need_lc_CXX=no
16911 allow_undefined_flag_CXX=
16912 always_export_symbols_CXX=no
16913 archive_expsym_cmds_CXX=
16914 compiler_needs_object_CXX=no
16915 export_dynamic_flag_spec_CXX=
16916 hardcode_direct_CXX=no
16917 hardcode_direct_absolute_CXX=no
16918 hardcode_libdir_flag_spec_CXX=
16919 hardcode_libdir_flag_spec_ld_CXX=
16920 hardcode_libdir_separator_CXX=
16921 hardcode_minus_L_CXX=no
16922 hardcode_shlibpath_var_CXX=unsupported
16923 hardcode_automatic_CXX=no
16924 inherit_rpath_CXX=no
16926 module_expsym_cmds_CXX=
16927 link_all_deplibs_CXX=unknown
16928 old_archive_cmds_CXX=$old_archive_cmds
16929 reload_flag_CXX=$reload_flag
16930 reload_cmds_CXX=$reload_cmds
16931 no_undefined_flag_CXX=
16932 whole_archive_flag_spec_CXX=
16933 enable_shared_with_static_runtimes_CXX=no
16935 # Source file extension for C++ test sources.
16938 # Object file extension for compiled C++ test sources.
16942 # No sense in running all these tests if we already determined that
16943 # the CXX compiler isn't working. Some variables (like enable_shared)
16944 # are currently assumed to apply to all compilers on this platform,
16945 # and will be corrupted by setting them based on a non-working compiler.
16946 if test "$_lt_caught_CXX_error" != yes; then
16947 # Code to be used in simple compile tests
16948 lt_simple_compile_test_code="int some_variable = 0;"
16950 # Code to be used in simple link tests
16951 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16960 # If no C compiler was specified, use CC.
16963 # If no C compiler flags were specified, use CFLAGS.
16964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16966 # Allow CC to be a program name with arguments.
16970 # save warnings/boilerplate of simple test code
16971 ac_outfile=conftest.$ac_objext
16972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16974 _lt_compiler_boilerplate=`cat conftest.err`
16977 ac_outfile=conftest.$ac_objext
16978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16980 _lt_linker_boilerplate=`cat conftest.err`
16984 # Allow CC to be a program name with arguments.
16986 lt_save_CFLAGS=$CFLAGS
16990 lt_save_with_gnu_ld=$with_gnu_ld
16991 lt_save_path_LD=$lt_cv_path_LD
16992 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16993 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16995 $as_unset lt_cv_prog_gnu_ld
16997 if test -n "${lt_cv_path_LDCXX+set}"; then
16998 lt_cv_path_LD=$lt_cv_path_LDCXX
17000 $as_unset lt_cv_path_LD
17002 test -z "${LDCXX+set}" || LD=$LDCXX
17007 for cc_temp in $compiler""; do
17009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17015 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17018 if test -n "$compiler"; then
17019 # We don't want -fno-exception when compiling C++ code, so set the
17020 # no_builtin_flag separately
17021 if test "$GXX" = yes; then
17022 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17024 lt_prog_compiler_no_builtin_flag_CXX=
17027 if test "$GXX" = yes; then
17028 # Set up default GNU C++ configuration
17032 # Check whether --with-gnu-ld was given.
17033 if test "${with_gnu_ld+set}" = set; then :
17034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17040 if test "$GCC" = yes; then
17041 # Check if gcc -print-prog-name=ld gives a path.
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17043 $as_echo_n "checking for ld used by $CC... " >&6; }
17046 # gcc leaves a trailing carriage return which upsets mingw
17047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17052 # Accept absolute paths.
17054 re_direlt='/[^/][^/]*/\.\./'
17055 # Canonicalize the pathname of ld
17056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17060 test -z "$LD" && LD="$ac_prog"
17063 # If it fails, then pretend we aren't using GCC.
17067 # If it is relative, then search for the first ld in PATH.
17068 with_gnu_ld=unknown
17071 elif test "$with_gnu_ld" = yes; then
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17073 $as_echo_n "checking for GNU ld... " >&6; }
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17076 $as_echo_n "checking for non-GNU ld... " >&6; }
17078 if ${lt_cv_path_LD+:} false; then :
17079 $as_echo_n "(cached) " >&6
17081 if test -z "$LD"; then
17082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17083 for ac_dir in $PATH; do
17085 test -z "$ac_dir" && ac_dir=.
17086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17087 lt_cv_path_LD="$ac_dir/$ac_prog"
17088 # Check to see if the program is GNU ld. I'd rather use --version,
17089 # but apparently some variants of GNU ld only accept -v.
17090 # Break only if it was the GNU/non-GNU ld that we prefer.
17091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17092 *GNU* | *'with BFD'*)
17093 test "$with_gnu_ld" != no && break
17096 test "$with_gnu_ld" != yes && break
17103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17107 LD="$lt_cv_path_LD"
17108 if test -n "$LD"; then
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17110 $as_echo "$LD" >&6; }
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17113 $as_echo "no" >&6; }
17115 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17118 if ${lt_cv_prog_gnu_ld+:} false; then :
17119 $as_echo_n "(cached) " >&6
17121 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17122 case `$LD -v 2>&1 </dev/null` in
17123 *GNU* | *'with BFD'*)
17124 lt_cv_prog_gnu_ld=yes
17127 lt_cv_prog_gnu_ld=no
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17132 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17133 with_gnu_ld=$lt_cv_prog_gnu_ld
17141 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17142 # archiving commands below assume that GNU ld is being used.
17143 if test "$with_gnu_ld" = yes; then
17144 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17145 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'
17147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17150 # If archive_cmds runs LD, not CC, wlarc should be empty
17151 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17152 # investigate it a little bit more. (MM)
17155 # ancient GNU ld didn't support --whole-archive et. al.
17156 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17157 $GREP 'no-whole-archive' > /dev/null; then
17158 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17160 whole_archive_flag_spec_CXX=
17166 # A generic and very simple default shared library creation
17167 # command for GNU C++ for the case where it uses the native
17168 # linker, instead of GNU ld. If possible, this setting should
17169 # overridden to take advantage of the native linker features on
17170 # the platform it is being used on.
17171 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17174 # Commands to make compiler produce verbose output that lists
17175 # what "hidden" libraries, object files and flags are used when
17176 # linking a shared library.
17177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17185 # PORTME: fill in a description of your system's C++ link characteristics
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17187 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17191 # FIXME: insert proper C++ library support
17195 if test "$host_cpu" = ia64; then
17196 # On IA64, the linker does run time linking by default, so we don't
17197 # have to do anything special.
17198 aix_use_runtimelinking=no
17199 exp_sym_flag='-Bexport'
17202 aix_use_runtimelinking=no
17204 # Test if we are trying to use run time linking or normal
17205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17206 # need to do runtime linking.
17207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17208 for ld_flag in $LDFLAGS; do
17211 aix_use_runtimelinking=yes
17219 exp_sym_flag='-bexport'
17220 no_entry_flag='-bnoentry'
17223 # When large executables or shared objects are built, AIX ld can
17224 # have problems creating the table of contents. If linking a library
17225 # or program results in "error TOC overflow" add -mminimal-toc to
17226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17229 archive_cmds_CXX=''
17230 hardcode_direct_CXX=yes
17231 hardcode_direct_absolute_CXX=yes
17232 hardcode_libdir_separator_CXX=':'
17233 link_all_deplibs_CXX=yes
17234 file_list_spec_CXX='${wl}-f,'
17236 if test "$GXX" = yes; then
17237 case $host_os in aix4.[012]|aix4.[012].*)
17238 # We only want to do this on AIX 4.2 and lower, the check
17239 # below for broken collect2 doesn't work under 4.3+
17240 collect2name=`${CC} -print-prog-name=collect2`
17241 if test -f "$collect2name" &&
17242 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17244 # We have reworked collect2
17247 # We have old collect2
17248 hardcode_direct_CXX=unsupported
17249 # It fails to find uninstalled libraries when the uninstalled
17250 # path is not listed in the libpath. Setting hardcode_minus_L
17251 # to unsupported forces relinking
17252 hardcode_minus_L_CXX=yes
17253 hardcode_libdir_flag_spec_CXX='-L$libdir'
17254 hardcode_libdir_separator_CXX=
17257 shared_flag='-shared'
17258 if test "$aix_use_runtimelinking" = yes; then
17259 shared_flag="$shared_flag "'${wl}-G'
17263 if test "$host_cpu" = ia64; then
17264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265 # chokes on -Wl,-G. The following line is correct:
17268 if test "$aix_use_runtimelinking" = yes; then
17269 shared_flag='${wl}-G'
17271 shared_flag='${wl}-bM:SRE'
17276 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17277 # It seems that -bexpall does not export symbols beginning with
17278 # underscore (_), so it is better to generate a list of symbols to
17280 always_export_symbols_CXX=yes
17281 if test "$aix_use_runtimelinking" = yes; then
17282 # Warning - without using the other runtime loading flags (-brtl),
17283 # -berok will link without error, but may produce a broken library.
17284 allow_undefined_flag_CXX='-berok'
17285 # Determine the default libpath from the value encoded in an empty
17287 if test "${lt_cv_aix_libpath+set}" = set; then
17288 aix_libpath=$lt_cv_aix_libpath
17290 if ${lt_cv_aix_libpath__CXX+:} false; then :
17291 $as_echo_n "(cached) " >&6
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17304 if ac_fn_cxx_try_link "$LINENO"; then :
17306 lt_aix_libpath_sed='
17307 /Import File Strings/,/^$/ {
17309 s/^0 *\([^ ]*\) *$/\1/
17313 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17314 # Check for a 64-bit object if we didn't find anything.
17315 if test -z "$lt_cv_aix_libpath__CXX"; then
17316 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17319 rm -f core conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17321 if test -z "$lt_cv_aix_libpath__CXX"; then
17322 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17327 aix_libpath=$lt_cv_aix_libpath__CXX
17330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17332 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"
17334 if test "$host_cpu" = ia64; then
17335 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17336 allow_undefined_flag_CXX="-z nodefs"
17337 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"
17339 # Determine the default libpath from the value encoded in an
17340 # empty executable.
17341 if test "${lt_cv_aix_libpath+set}" = set; then
17342 aix_libpath=$lt_cv_aix_libpath
17344 if ${lt_cv_aix_libpath__CXX+:} false; then :
17345 $as_echo_n "(cached) " >&6
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348 /* end confdefs.h. */
17358 if ac_fn_cxx_try_link "$LINENO"; then :
17360 lt_aix_libpath_sed='
17361 /Import File Strings/,/^$/ {
17363 s/^0 *\([^ ]*\) *$/\1/
17367 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17368 # Check for a 64-bit object if we didn't find anything.
17369 if test -z "$lt_cv_aix_libpath__CXX"; then
17370 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17373 rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
17375 if test -z "$lt_cv_aix_libpath__CXX"; then
17376 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17381 aix_libpath=$lt_cv_aix_libpath__CXX
17384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17385 # Warning - without using the other run time loading flags,
17386 # -berok will link without error, but may produce a broken library.
17387 no_undefined_flag_CXX=' ${wl}-bernotok'
17388 allow_undefined_flag_CXX=' ${wl}-berok'
17389 if test "$with_gnu_ld" = yes; then
17390 # We only use this code for GNU lds that support --whole-archive.
17391 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17393 # Exported symbols can be pulled into shared objects from archives
17394 whole_archive_flag_spec_CXX='$convenience'
17396 archive_cmds_need_lc_CXX=yes
17397 # This is similar to how AIX traditionally builds its shared
17399 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'
17405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17406 allow_undefined_flag_CXX=unsupported
17407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17408 # support --undefined. This deserves some investigation. FIXME
17409 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17416 case $cc_basename in
17418 # FIXME: insert proper C++ library support
17424 cygwin* | mingw* | pw32* | cegcc*)
17425 case $GXX,$cc_basename in
17428 # hardcode_libdir_flag_spec is actually meaningless, as there is
17429 # no search path for DLLs.
17430 hardcode_libdir_flag_spec_CXX=' '
17431 allow_undefined_flag_CXX=unsupported
17432 always_export_symbols_CXX=yes
17433 file_list_spec_CXX='@'
17434 # Tell ltmain to make .lib files, not .a files.
17436 # Tell ltmain to make .dll files, not .so files.
17438 # FIXME: Setting linknames here is a bad hack.
17439 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17440 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17443 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17445 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17447 # The linker will not automatically build a static lib if we build a DLL.
17448 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17449 enable_shared_with_static_runtimes_CXX=yes
17451 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17452 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17453 lt_tool_outputfile="@TOOL_OUTPUT@"~
17454 case $lt_outputfile in
17457 lt_outputfile="$lt_outputfile.exe"
17458 lt_tool_outputfile="$lt_tool_outputfile.exe"
17461 func_to_tool_file "$lt_outputfile"~
17462 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17463 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17464 $RM "$lt_outputfile.manifest";
17469 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17470 # as there is no search path for DLLs.
17471 hardcode_libdir_flag_spec_CXX='-L$libdir'
17472 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17473 allow_undefined_flag_CXX=unsupported
17474 always_export_symbols_CXX=no
17475 enable_shared_with_static_runtimes_CXX=yes
17477 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17478 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'
17479 # If the export-symbols file already is a .def file (1st line
17480 # is EXPORTS), use it as is; otherwise, prepend...
17481 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17482 cp $export_symbols $output_objdir/$soname.def;
17484 echo EXPORTS > $output_objdir/$soname.def;
17485 cat $export_symbols >> $output_objdir/$soname.def;
17487 $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'
17494 darwin* | rhapsody*)
17497 archive_cmds_need_lc_CXX=no
17498 hardcode_direct_CXX=no
17499 hardcode_automatic_CXX=yes
17500 hardcode_shlibpath_var_CXX=unsupported
17501 if test "$lt_cv_ld_force_load" = "yes"; then
17502 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\"`'
17504 whole_archive_flag_spec_CXX=''
17506 link_all_deplibs_CXX=yes
17507 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17508 case $cc_basename in
17509 ifort*) _lt_dar_can_shared=yes ;;
17510 *) _lt_dar_can_shared=$GCC ;;
17512 if test "$_lt_dar_can_shared" = "yes"; then
17513 output_verbose_link_cmd=func_echo_all
17514 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}"
17515 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17516 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}"
17517 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}"
17518 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17519 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}"
17520 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}"
17530 case $cc_basename in
17532 # FIXME: insert proper C++ library support
17536 # Green Hills C++ Compiler
17537 # FIXME: insert proper C++ library support
17541 # FIXME: insert proper C++ library support
17548 # C++ shared libraries reported to be fairly broken before
17554 archive_cmds_need_lc_CXX=no
17557 freebsd* | dragonfly*)
17558 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17567 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17568 link_all_deplibs_CXX=yes
17572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17573 hardcode_libdir_separator_CXX=:
17574 export_dynamic_flag_spec_CXX='${wl}-E'
17575 hardcode_direct_CXX=yes
17576 hardcode_minus_L_CXX=yes # Not in the search PATH,
17577 # but as the default
17578 # location of the library.
17580 case $cc_basename in
17582 # FIXME: insert proper C++ library support
17586 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'
17587 # Commands to make compiler produce verbose output that lists
17588 # what "hidden" libraries, object files and flags are used when
17589 # linking a shared library.
17591 # There doesn't appear to be a way to prevent this compiler from
17592 # explicitly linking system object files so we need to strip them
17593 # from the output so that they don't get included in the library
17595 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"'
17598 if test "$GXX" = yes; then
17599 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'
17601 # FIXME: insert proper C++ library support
17609 if test $with_gnu_ld = no; then
17610 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17611 hardcode_libdir_separator_CXX=:
17617 export_dynamic_flag_spec_CXX='${wl}-E'
17623 hardcode_direct_CXX=no
17624 hardcode_shlibpath_var_CXX=no
17627 hardcode_direct_CXX=yes
17628 hardcode_direct_absolute_CXX=yes
17629 hardcode_minus_L_CXX=yes # Not in the search PATH,
17630 # but as the default
17631 # location of the library.
17635 case $cc_basename in
17637 # FIXME: insert proper C++ library support
17643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17649 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17652 # Commands to make compiler produce verbose output that lists
17653 # what "hidden" libraries, object files and flags are used when
17654 # linking a shared library.
17656 # There doesn't appear to be a way to prevent this compiler from
17657 # explicitly linking system object files so we need to strip them
17658 # from the output so that they don't get included in the library
17660 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"'
17663 if test "$GXX" = yes; then
17664 if test $with_gnu_ld = no; then
17667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17670 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17673 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'
17678 # FIXME: insert proper C++ library support
17686 hardcode_direct_CXX=no
17687 hardcode_shlibpath_var_CXX=no
17688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17689 export_dynamic_flag_spec_CXX='${wl}-E'
17690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17691 # Instead, shared libraries are loaded at an image base (0x10000000 by
17692 # default) and relocated if they conflict, which is a slow very memory
17693 # consuming and fragmenting process. To avoid this, we pick a random,
17694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17696 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'
17697 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'
17700 case $cc_basename in
17703 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'
17705 # Archives containing C++ object files must be created using
17706 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17707 # necessary to make sure instantiated templates are included
17709 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17712 if test "$GXX" = yes; then
17713 if test "$with_gnu_ld" = no; then
17714 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'
17716 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'
17719 link_all_deplibs_CXX=yes
17722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17723 hardcode_libdir_separator_CXX=:
17724 inherit_rpath_CXX=yes
17727 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17728 case $cc_basename in
17730 # Kuck and Associates, Inc. (KAI) C++ Compiler
17732 # KCC will only create a shared library if the output file
17733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17734 # to its proper name (with version) after linking.
17735 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'
17736 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'
17737 # Commands to make compiler produce verbose output that lists
17738 # what "hidden" libraries, object files and flags are used when
17739 # linking a shared library.
17741 # There doesn't appear to be a way to prevent this compiler from
17742 # explicitly linking system object files so we need to strip them
17743 # from the output so that they don't get included in the library
17745 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"'
17747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17750 # Archives containing C++ object files must be created using
17751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17752 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17757 # version 8.0 and above of icpc choke on multiply defined symbols
17758 # if we add $predep_objects and $postdep_objects, however 7.1 and
17759 # earlier do not add the objects themselves.
17760 case `$CC -V 2>&1` in
17762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17763 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'
17765 *) # Version 8.0 or newer
17768 ia64*) tmp_idyn=' -i_dynamic';;
17770 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17771 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'
17774 archive_cmds_need_lc_CXX=no
17775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17777 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17780 # Portland Group C++ compiler
17782 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17783 prelink_cmds_CXX='tpldir=Template.dir~
17785 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17786 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17787 old_archive_cmds_CXX='tpldir=Template.dir~
17789 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17790 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17792 archive_cmds_CXX='tpldir=Template.dir~
17794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17795 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17796 archive_expsym_cmds_CXX='tpldir=Template.dir~
17798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17799 $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'
17801 *) # Version 6 and above use weak symbols
17802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17803 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'
17807 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17809 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'
17813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17814 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'
17816 runpath_var=LD_RUN_PATH
17817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17818 hardcode_libdir_separator_CXX=:
17820 # Commands to make compiler produce verbose output that lists
17821 # what "hidden" libraries, object files and flags are used when
17822 # linking a shared library.
17824 # There doesn't appear to be a way to prevent this compiler from
17825 # explicitly linking system object files so we need to strip them
17826 # from the output so that they don't get included in the library
17828 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'
17830 xl* | mpixl* | bgxl*)
17831 # IBM XL 8.0 on PPC, with GNU ld
17832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17834 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17835 if test "x$supports_anon_versioning" = xyes; then
17836 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17838 echo "local: *; };" >> $output_objdir/$libname.ver~
17839 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17843 case `$CC -V 2>&1 | sed 5q` in
17846 no_undefined_flag_CXX=' -zdefs'
17847 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17848 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'
17849 hardcode_libdir_flag_spec_CXX='-R$libdir'
17850 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'
17851 compiler_needs_object_CXX=yes
17853 # Not sure whether something based on
17854 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17856 output_verbose_link_cmd='func_echo_all'
17858 # Archives containing C++ object files must be created using
17859 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17860 # necessary to make sure instantiated templates are included
17862 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17870 # FIXME: insert proper C++ library support
17875 # FIXME: insert proper C++ library support
17880 case $cc_basename in
17882 # FIXME: insert proper C++ library support
17886 # FIXME: insert proper C++ library support
17893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17894 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17896 hardcode_libdir_flag_spec_CXX='-R$libdir'
17897 hardcode_direct_CXX=yes
17898 hardcode_shlibpath_var_CXX=no
17900 # Workaround some broken pre-1.5 toolchains
17901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17909 # C++ shared libraries are fairly broken
17914 if test -f /usr/libexec/ld.so; then
17915 hardcode_direct_CXX=yes
17916 hardcode_shlibpath_var_CXX=no
17917 hardcode_direct_absolute_CXX=yes
17918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17922 export_dynamic_flag_spec_CXX='${wl}-E'
17923 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17925 output_verbose_link_cmd=func_echo_all
17931 osf3* | osf4* | osf5*)
17932 case $cc_basename in
17934 # Kuck and Associates, Inc. (KAI) C++ Compiler
17936 # KCC will only create a shared library if the output file
17937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17938 # to its proper name (with version) after linking.
17939 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'
17941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17942 hardcode_libdir_separator_CXX=:
17944 # Archives containing C++ object files must be created using
17945 # the KAI C++ compiler.
17947 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17948 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17952 # Rational C++ 2.4.1
17953 # FIXME: insert proper C++ library support
17959 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17960 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'
17961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17964 allow_undefined_flag_CXX=' -expect_unresolved \*'
17965 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'
17966 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17967 echo "-hidden">> $lib.exp~
17968 $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~
17970 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17974 hardcode_libdir_separator_CXX=:
17976 # Commands to make compiler produce verbose output that lists
17977 # what "hidden" libraries, object files and flags are used when
17978 # linking a shared library.
17980 # There doesn't appear to be a way to prevent this compiler from
17981 # explicitly linking system object files so we need to strip them
17982 # from the output so that they don't get included in the library
17984 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"'
17987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17991 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'
17994 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'
17998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17999 hardcode_libdir_separator_CXX=:
18001 # Commands to make compiler produce verbose output that lists
18002 # what "hidden" libraries, object files and flags are used when
18003 # linking a shared library.
18004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18007 # FIXME: insert proper C++ library support
18015 # FIXME: insert proper C++ library support
18020 case $cc_basename in
18023 # FIXME: insert proper C++ library support
18028 # FIXME: insert proper C++ library support
18032 # FIXME: insert proper C++ library support
18039 case $cc_basename in
18041 # Sun C++ 4.2, 5.x and Centerline C++
18042 archive_cmds_need_lc_CXX=yes
18043 no_undefined_flag_CXX=' -zdefs'
18044 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18046 $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'
18048 hardcode_libdir_flag_spec_CXX='-R$libdir'
18049 hardcode_shlibpath_var_CXX=no
18051 solaris2.[0-5] | solaris2.[0-5].*) ;;
18053 # The compiler driver will combine and reorder linker options,
18054 # but understands `-z linker_flag'.
18055 # Supported since Solaris 2.6 (maybe 2.5.1?)
18056 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18059 link_all_deplibs_CXX=yes
18061 output_verbose_link_cmd='func_echo_all'
18063 # Archives containing C++ object files must be created using
18064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18065 # necessary to make sure instantiated templates are included
18067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18070 # Green Hills C++ Compiler
18071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18073 # The C++ compiler must be used to create the archive.
18074 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18077 # GNU C++ compiler with Solaris linker
18078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18079 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18080 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18081 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18082 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18083 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18085 # Commands to make compiler produce verbose output that lists
18086 # what "hidden" libraries, object files and flags are used when
18087 # linking a shared library.
18088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18090 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18092 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18094 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18096 # Commands to make compiler produce verbose output that lists
18097 # what "hidden" libraries, object files and flags are used when
18098 # linking a shared library.
18099 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18102 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18104 solaris2.[0-5] | solaris2.[0-5].*) ;;
18106 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18115 no_undefined_flag_CXX='${wl}-z,text'
18116 archive_cmds_need_lc_CXX=no
18117 hardcode_shlibpath_var_CXX=no
18118 runpath_var='LD_RUN_PATH'
18120 case $cc_basename in
18122 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18126 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18127 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 sysv5* | sco3.2v5* | sco5v6*)
18133 # Note: We can NOT use -z defs as we might desire, because we do not
18134 # link with -lc, and that would cause any symbols used from libc to
18135 # always be unresolved, which means just about no library would
18136 # ever link correctly. If we're not using GNU ld we use -z text
18137 # though, which does catch some bad symbols but isn't as heavy-handed
18139 no_undefined_flag_CXX='${wl}-z,text'
18140 allow_undefined_flag_CXX='${wl}-z,nodefs'
18141 archive_cmds_need_lc_CXX=no
18142 hardcode_shlibpath_var_CXX=no
18143 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18144 hardcode_libdir_separator_CXX=':'
18145 link_all_deplibs_CXX=yes
18146 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18147 runpath_var='LD_RUN_PATH'
18149 case $cc_basename in
18151 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18152 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18153 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18154 '"$old_archive_cmds_CXX"
18155 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18156 '"$reload_cmds_CXX"
18159 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18160 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18166 case $cc_basename in
18168 # NonStop-UX NCC 3.20
18169 # FIXME: insert proper C++ library support
18173 # FIXME: insert proper C++ library support
18180 # FIXME: insert proper C++ library support
18185 # FIXME: insert proper C++ library support
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18191 $as_echo "$ld_shlibs_CXX" >&6; }
18192 test "$ld_shlibs_CXX" = no && can_build_shared=no
18198 ## There is no encapsulation within the following macros, do not change
18199 ## the running order or otherwise move them around unless you know exactly
18200 ## what you are doing...
18201 # Dependencies to place before and after the object being linked:
18202 predep_objects_CXX=
18203 postdep_objects_CXX=
18206 compiler_lib_search_path_CXX=
18208 cat > conftest.$ac_ext <<_LT_EOF
18212 Foo (void) { a = 0; }
18219 _lt_libdeps_save_CFLAGS=$CFLAGS
18220 case "$CC $CFLAGS " in #(
18221 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18222 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18226 (eval $ac_compile) 2>&5
18228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18229 test $ac_status = 0; }; then
18230 # Parse the compiler output and extract the necessary
18231 # objects, libraries and library flags.
18233 # Sentinel used to keep track of whether or not we are before
18234 # the conftest object file.
18235 pre_test_object_deps_done=no
18237 for p in `eval "$output_verbose_link_cmd"`; do
18238 case ${prev}${p} in
18241 # Some compilers place space between "-{L,R}" and the path.
18242 # Remove the space.
18243 if test $p = "-L" ||
18244 test $p = "-R"; then
18249 # Expand the sysroot to ease extracting the directories later.
18250 if test -z "$prev"; then
18252 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18253 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18254 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18258 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18260 if test "$pre_test_object_deps_done" = no; then
18263 # Internal compiler library paths should come after those
18264 # provided the user. The postdeps already come after the
18265 # user supplied libs so there is no need to process them.
18266 if test -z "$compiler_lib_search_path_CXX"; then
18267 compiler_lib_search_path_CXX="${prev}${p}"
18269 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18272 # The "-l" case would never come before the object being
18273 # linked, so don't bother handling this case.
18276 if test -z "$postdeps_CXX"; then
18277 postdeps_CXX="${prev}${p}"
18279 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18285 *.lto.$objext) ;; # Ignore GCC LTO objects
18287 # This assumes that the test object file only shows up
18288 # once in the compiler output.
18289 if test "$p" = "conftest.$objext"; then
18290 pre_test_object_deps_done=yes
18294 if test "$pre_test_object_deps_done" = no; then
18295 if test -z "$predep_objects_CXX"; then
18296 predep_objects_CXX="$p"
18298 predep_objects_CXX="$predep_objects_CXX $p"
18301 if test -z "$postdep_objects_CXX"; then
18302 postdep_objects_CXX="$p"
18304 postdep_objects_CXX="$postdep_objects_CXX $p"
18309 *) ;; # Ignore the rest.
18317 echo "libtool.m4: error: problem compiling CXX test program"
18320 $RM -f confest.$objext
18321 CFLAGS=$_lt_libdeps_save_CFLAGS
18323 # PORTME: override above test on systems where it is broken
18326 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18327 # hack all around it, let's just trust "g++" to DTRT.
18328 predep_objects_CXX=
18329 postdep_objects_CXX=
18334 case `$CC -V 2>&1 | sed 5q` in
18338 # The more standards-conforming stlport4 library is
18339 # incompatible with the Cstd library. Avoid specifying
18340 # it if it's in CXXFLAGS. Ignore libCrun as
18341 # -library=stlport4 depends on it.
18342 case " $CXX $CXXFLAGS " in
18343 *" -library=stlport4 "*)
18344 solaris_use_stlport4=yes
18348 if test "$solaris_use_stlport4" != yes; then
18349 postdeps_CXX='-library=Cstd -library=Crun'
18356 case $cc_basename in
18358 # The more standards-conforming stlport4 library is
18359 # incompatible with the Cstd library. Avoid specifying
18360 # it if it's in CXXFLAGS. Ignore libCrun as
18361 # -library=stlport4 depends on it.
18362 case " $CXX $CXXFLAGS " in
18363 *" -library=stlport4 "*)
18364 solaris_use_stlport4=yes
18368 # Adding this requires a known-good setup of shared libraries for
18369 # Sun compiler versions before 5.6, else PIC objects from an old
18370 # archive will be linked into the output, leading to subtle bugs.
18371 if test "$solaris_use_stlport4" != yes; then
18372 postdeps_CXX='-library=Cstd -library=Crun'
18380 case " $postdeps_CXX " in
18381 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18383 compiler_lib_search_dirs_CXX=
18384 if test -n "${compiler_lib_search_path_CXX}"; then
18385 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18418 lt_prog_compiler_wl_CXX=
18419 lt_prog_compiler_pic_CXX=
18420 lt_prog_compiler_static_CXX=
18423 # C++ specific cases for pic, static, wl, etc.
18424 if test "$GXX" = yes; then
18425 lt_prog_compiler_wl_CXX='-Wl,'
18426 lt_prog_compiler_static_CXX='-static'
18430 # All AIX code is PIC.
18431 if test "$host_cpu" = ia64; then
18432 # AIX 5 now supports IA64 processor
18433 lt_prog_compiler_static_CXX='-Bstatic'
18440 # see comment about AmigaOS4 .so support
18441 lt_prog_compiler_pic_CXX='-fPIC'
18444 # FIXME: we need at least 68020 code to build shared libraries, but
18445 # adding the `-m68020' flag to GCC prevents building anything better,
18447 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18452 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18453 # PIC is the default for these OSes.
18455 mingw* | cygwin* | os2* | pw32* | cegcc*)
18456 # This hack is so that the source file can tell whether it is being
18457 # built for inclusion in a dll (and should export symbols for example).
18458 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18459 # (--disable-auto-import) libraries
18460 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18462 darwin* | rhapsody*)
18463 # PIC is the default on this platform
18464 # Common symbols not allowed in MH_DYLIB files
18465 lt_prog_compiler_pic_CXX='-fno-common'
18468 # DJGPP does not support shared libraries at all
18469 lt_prog_compiler_pic_CXX=
18472 # PIC is the default for Haiku.
18473 # The "-static" flag exists, but is broken.
18474 lt_prog_compiler_static_CXX=
18477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18478 # Instead, we relocate shared libraries at runtime.
18481 if test -d /usr/nec; then
18482 lt_prog_compiler_pic_CXX=-Kconform_pic
18486 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18487 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18488 # sets the default TLS model and affects inlining.
18493 lt_prog_compiler_pic_CXX='-fPIC'
18498 # QNX uses GNU C++, but need to define -shared option too, otherwise
18499 # it will coredump.
18500 lt_prog_compiler_pic_CXX='-fPIC -shared'
18503 lt_prog_compiler_pic_CXX='-fPIC'
18509 # All AIX code is PIC.
18510 if test "$host_cpu" = ia64; then
18511 # AIX 5 now supports IA64 processor
18512 lt_prog_compiler_static_CXX='-Bstatic'
18514 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18518 case $cc_basename in
18520 # Green Hills C++ Compiler
18521 # _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"
18525 mingw* | cygwin* | os2* | pw32* | cegcc*)
18526 # This hack is so that the source file can tell whether it is being
18527 # built for inclusion in a dll (and should export symbols for example).
18528 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18531 case $cc_basename in
18533 lt_prog_compiler_pic_CXX='-KPIC'
18536 # Green Hills C++ Compiler
18537 lt_prog_compiler_pic_CXX='-pic'
18543 freebsd* | dragonfly*)
18544 # FreeBSD uses GNU C++
18546 hpux9* | hpux10* | hpux11*)
18547 case $cc_basename in
18549 lt_prog_compiler_wl_CXX='-Wl,'
18550 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18551 if test "$host_cpu" != ia64; then
18552 lt_prog_compiler_pic_CXX='+Z'
18556 lt_prog_compiler_wl_CXX='-Wl,'
18557 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18563 lt_prog_compiler_pic_CXX='+Z'
18572 # This is c89, which is MS Visual C++ (no shared libs)
18573 # Anyone wants to do a port?
18575 irix5* | irix6* | nonstopux*)
18576 case $cc_basename in
18578 lt_prog_compiler_wl_CXX='-Wl,'
18579 lt_prog_compiler_static_CXX='-non_shared'
18580 # CC pic flag -KPIC is the default.
18586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18587 case $cc_basename in
18590 lt_prog_compiler_wl_CXX='--backend -Wl,'
18591 lt_prog_compiler_pic_CXX='-fPIC'
18594 # old Intel C++ for x86_64 which still supported -KPIC.
18595 lt_prog_compiler_wl_CXX='-Wl,'
18596 lt_prog_compiler_pic_CXX='-KPIC'
18597 lt_prog_compiler_static_CXX='-static'
18600 # Intel C++, used to be incompatible with GCC.
18601 # ICC 10 doesn't accept -KPIC any more.
18602 lt_prog_compiler_wl_CXX='-Wl,'
18603 lt_prog_compiler_pic_CXX='-fPIC'
18604 lt_prog_compiler_static_CXX='-static'
18607 # Portland Group C++ compiler
18608 lt_prog_compiler_wl_CXX='-Wl,'
18609 lt_prog_compiler_pic_CXX='-fpic'
18610 lt_prog_compiler_static_CXX='-Bstatic'
18614 # Make sure the PIC flag is empty. It appears that all Alpha
18615 # Linux and Compaq Tru64 Unix objects are PIC.
18616 lt_prog_compiler_pic_CXX=
18617 lt_prog_compiler_static_CXX='-non_shared'
18619 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18620 # IBM XL 8.0, 9.0 on PPC and BlueGene
18621 lt_prog_compiler_wl_CXX='-Wl,'
18622 lt_prog_compiler_pic_CXX='-qpic'
18623 lt_prog_compiler_static_CXX='-qstaticlink'
18626 case `$CC -V 2>&1 | sed 5q` in
18629 lt_prog_compiler_pic_CXX='-KPIC'
18630 lt_prog_compiler_static_CXX='-Bstatic'
18631 lt_prog_compiler_wl_CXX='-Qoption ld '
18642 case $cc_basename in
18644 lt_prog_compiler_pic_CXX='-W c,exportall'
18653 # QNX uses GNU C++, but need to define -shared option too, otherwise
18654 # it will coredump.
18655 lt_prog_compiler_pic_CXX='-fPIC -shared'
18657 osf3* | osf4* | osf5*)
18658 case $cc_basename in
18660 lt_prog_compiler_wl_CXX='--backend -Wl,'
18663 # Rational C++ 2.4.1
18664 lt_prog_compiler_pic_CXX='-pic'
18667 # Digital/Compaq C++
18668 lt_prog_compiler_wl_CXX='-Wl,'
18669 # Make sure the PIC flag is empty. It appears that all Alpha
18670 # Linux and Compaq Tru64 Unix objects are PIC.
18671 lt_prog_compiler_pic_CXX=
18672 lt_prog_compiler_static_CXX='-non_shared'
18681 case $cc_basename in
18683 # Sun C++ 4.2, 5.x and Centerline C++
18684 lt_prog_compiler_pic_CXX='-KPIC'
18685 lt_prog_compiler_static_CXX='-Bstatic'
18686 lt_prog_compiler_wl_CXX='-Qoption ld '
18689 # Green Hills C++ Compiler
18690 lt_prog_compiler_pic_CXX='-PIC'
18697 case $cc_basename in
18700 lt_prog_compiler_pic_CXX='-pic'
18701 lt_prog_compiler_static_CXX='-Bstatic'
18705 lt_prog_compiler_pic_CXX='-pic'
18711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18712 case $cc_basename in
18714 lt_prog_compiler_wl_CXX='-Wl,'
18715 lt_prog_compiler_pic_CXX='-KPIC'
18716 lt_prog_compiler_static_CXX='-Bstatic'
18721 case $cc_basename in
18723 # NonStop-UX NCC 3.20
18724 lt_prog_compiler_pic_CXX='-KPIC'
18733 lt_prog_compiler_can_build_shared_CXX=no
18739 # For platforms which do not support PIC, -DPIC is meaningless:
18741 lt_prog_compiler_pic_CXX=
18744 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18749 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18750 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18751 $as_echo_n "(cached) " >&6
18753 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18756 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18757 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18760 # Check to make sure the PIC flag actually works.
18762 if test -n "$lt_prog_compiler_pic_CXX"; then
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18764 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18765 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18766 $as_echo_n "(cached) " >&6
18768 lt_cv_prog_compiler_pic_works_CXX=no
18769 ac_outfile=conftest.$ac_objext
18770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18771 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18772 # Insert the option either (1) after the last *FLAGS variable, or
18773 # (2) before a word containing "conftest.", or (3) at the end.
18774 # Note that $ac_compile itself does not contain backslashes and begins
18775 # with a dollar sign (not a hyphen), so the echo should work correctly.
18776 # The option is referenced via a variable to avoid confusing sed.
18777 lt_compile=`echo "$ac_compile" | $SED \
18778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18780 -e 's:$: $lt_compiler_flag:'`
18781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18782 (eval "$lt_compile" 2>conftest.err)
18784 cat conftest.err >&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 if (exit $ac_status) && test -s "$ac_outfile"; then
18787 # The compiler can only warn and ignore the option if not recognized
18788 # So say no if there are warnings other than the usual output.
18789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18792 lt_cv_prog_compiler_pic_works_CXX=yes
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18799 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18801 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18802 case $lt_prog_compiler_pic_CXX in
18804 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18807 lt_prog_compiler_pic_CXX=
18808 lt_prog_compiler_can_build_shared_CXX=no
18818 # Check to make sure the static flag actually works.
18820 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18823 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18824 $as_echo_n "(cached) " >&6
18826 lt_cv_prog_compiler_static_works_CXX=no
18827 save_LDFLAGS="$LDFLAGS"
18828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18831 # The linker can only warn and ignore the option if not recognized
18832 # So say no if there are warnings
18833 if test -s conftest.err; then
18834 # Append any errors to the config.log.
18835 cat conftest.err 1>&5
18836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18838 if diff conftest.exp conftest.er2 >/dev/null; then
18839 lt_cv_prog_compiler_static_works_CXX=yes
18842 lt_cv_prog_compiler_static_works_CXX=yes
18846 LDFLAGS="$save_LDFLAGS"
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18850 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18852 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18855 lt_prog_compiler_static_CXX=
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18863 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18864 $as_echo_n "(cached) " >&6
18866 lt_cv_prog_compiler_c_o_CXX=no
18867 $RM -r conftest 2>/dev/null
18871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18873 lt_compiler_flag="-o out/conftest2.$ac_objext"
18874 # Insert the option either (1) after the last *FLAGS variable, or
18875 # (2) before a word containing "conftest.", or (3) at the end.
18876 # Note that $ac_compile itself does not contain backslashes and begins
18877 # with a dollar sign (not a hyphen), so the echo should work correctly.
18878 lt_compile=`echo "$ac_compile" | $SED \
18879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18881 -e 's:$: $lt_compiler_flag:'`
18882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18883 (eval "$lt_compile" 2>out/conftest.err)
18885 cat out/conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18889 # The compiler can only warn and ignore the option if not recognized
18890 # So say no if there are warnings
18891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18894 lt_cv_prog_compiler_c_o_CXX=yes
18899 # SGI C++ compiler will create directory out/ii_files/ for
18900 # template instantiation
18901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18902 $RM out/* && rmdir out
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18909 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18914 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18915 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18916 $as_echo_n "(cached) " >&6
18918 lt_cv_prog_compiler_c_o_CXX=no
18919 $RM -r conftest 2>/dev/null
18923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18925 lt_compiler_flag="-o out/conftest2.$ac_objext"
18926 # Insert the option either (1) after the last *FLAGS variable, or
18927 # (2) before a word containing "conftest.", or (3) at the end.
18928 # Note that $ac_compile itself does not contain backslashes and begins
18929 # with a dollar sign (not a hyphen), so the echo should work correctly.
18930 lt_compile=`echo "$ac_compile" | $SED \
18931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18933 -e 's:$: $lt_compiler_flag:'`
18934 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18935 (eval "$lt_compile" 2>out/conftest.err)
18937 cat out/conftest.err >&5
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18941 # The compiler can only warn and ignore the option if not recognized
18942 # So say no if there are warnings
18943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18946 lt_cv_prog_compiler_c_o_CXX=yes
18951 # SGI C++ compiler will create directory out/ii_files/ for
18952 # template instantiation
18953 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18954 $RM out/* && rmdir out
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18961 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18966 hard_links="nottested"
18967 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18968 # do not overwrite the value of need_locks provided by the user
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18970 $as_echo_n "checking if we can lock with hard links... " >&6; }
18973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18975 ln conftest.a conftest.b 2>&5 || hard_links=no
18976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18978 $as_echo "$hard_links" >&6; }
18979 if test "$hard_links" = no; then
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18981 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18994 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18997 # If we're using GNU nm, then we don't want the "-C" option.
18998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18999 # Also, AIX nm treats weak defined symbols like other global defined
19000 # symbols, whereas GNU nm marks them as "W".
19001 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19002 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'
19004 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'
19008 export_symbols_cmds_CXX="$ltdll_cmds"
19010 cygwin* | mingw* | cegcc*)
19011 case $cc_basename in
19014 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'
19015 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19020 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19025 $as_echo "$ld_shlibs_CXX" >&6; }
19026 test "$ld_shlibs_CXX" = no && can_build_shared=no
19028 with_gnu_ld_CXX=$with_gnu_ld
19036 # Do we need to explicitly link libc?
19038 case "x$archive_cmds_need_lc_CXX" in
19040 # Assume -lc should be added
19041 archive_cmds_need_lc_CXX=yes
19043 if test "$enable_shared" = yes && test "$GCC" = yes; then
19044 case $archive_cmds_CXX in
19046 # FIXME: we may have to deal with multi-command sequences.
19049 # Test whether the compiler implicitly links with -lc since on some
19050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19051 # to ld, don't add -lc before -lgcc.
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19053 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19054 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19055 $as_echo_n "(cached) " >&6
19058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19061 (eval $ac_compile) 2>&5
19063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19064 test $ac_status = 0; } 2>conftest.err; then
19067 libobjs=conftest.$ac_objext
19069 wl=$lt_prog_compiler_wl_CXX
19070 pic_flag=$lt_prog_compiler_pic_CXX
19076 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19077 allow_undefined_flag_CXX=
19078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19079 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19082 test $ac_status = 0; }
19084 lt_cv_archive_cmds_need_lc_CXX=no
19086 lt_cv_archive_cmds_need_lc_CXX=yes
19088 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19090 cat conftest.err 1>&5
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19096 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19097 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19168 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19170 library_names_spec=
19171 libname_spec='lib$name'
19175 postuninstall_cmds=
19179 shlibpath_overrides_runpath=unknown
19181 dynamic_linker="$host_os ld.so"
19182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19183 need_lib_prefix=unknown
19184 hardcode_into_libs=no
19186 # when you set need_version to no, make sure it does not cause -set_version
19187 # flags to be left without arguments
19188 need_version=unknown
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19194 shlibpath_var=LIBPATH
19196 # AIX 3 has no versioning support, so we append a major version to the name.
19197 soname_spec='${libname}${release}${shared_ext}$major'
19204 hardcode_into_libs=yes
19205 if test "$host_cpu" = ia64; then
19206 # AIX 5 supports IA64
19207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19208 shlibpath_var=LD_LIBRARY_PATH
19210 # With GCC up to 2.95.x, collect2 would create an import file
19211 # for dependence libraries. The import file would start with
19212 # the line `#! .'. This would cause the generated library to
19213 # depend on `.', always an invalid library. This was fixed in
19214 # development snapshots of GCC prior to 3.0.
19216 aix4 | aix4.[01] | aix4.[01].*)
19217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19219 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19222 can_build_shared=no
19226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19227 # soname into executable. Probably we can add versioning support to
19228 # collect2, so additional links can be useful in future.
19229 if test "$aix_use_runtimelinking" = yes; then
19230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19231 # instead of lib<name>.a to let people know that these are not
19232 # typical AIX shared libraries.
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19235 # We preserve .a as extension for shared libraries through AIX4.2
19236 # and later when we are not doing run time linking.
19237 library_names_spec='${libname}${release}.a $libname.a'
19238 soname_spec='${libname}${release}${shared_ext}$major'
19240 shlibpath_var=LIBPATH
19247 # Since July 2007 AmigaOS4 officially supports .so libraries.
19248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19252 library_names_spec='$libname.ixlibrary $libname.a'
19253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19254 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'
19260 library_names_spec='${libname}${shared_ext}'
19261 dynamic_linker="$host_os ld.so"
19262 shlibpath_var=LIBRARY_PATH
19268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19269 soname_spec='${libname}${release}${shared_ext}$major'
19270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19271 shlibpath_var=LD_LIBRARY_PATH
19272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19274 # the default ld.so.conf also contains /usr/contrib/lib and
19275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19276 # libtool to hard-code these into programs
19279 cygwin* | mingw* | pw32* | cegcc*)
19280 version_type=windows
19285 case $GCC,$cc_basename in
19288 library_names_spec='$libname.dll.a'
19289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19290 postinstall_cmds='base_file=`basename \${file}`~
19291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19292 dldir=$destdir/`dirname \$dlpath`~
19293 test -d \$dldir || mkdir -p \$dldir~
19294 $install_prog $dir/$dlname \$dldir/$dlname~
19295 chmod a+x \$dldir/$dlname~
19296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19300 dlpath=$dir/\$dldll~
19302 shlibpath_overrides_runpath=yes
19306 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19307 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19311 # MinGW DLLs use traditional 'lib' prefix
19312 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19315 # pw32 DLLs use 'pw' prefix rather than 'lib'
19316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19319 dynamic_linker='Win32 ld.exe'
19324 libname_spec='$name'
19325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19326 library_names_spec='${libname}.dll.lib'
19330 sys_lib_search_path_spec=
19333 for lt_path in $LIB
19336 # Let DOS variable expansion print the short 8.3 style file name.
19337 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19338 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19341 # Convert to MSYS style.
19342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19345 # Convert to unix form, then to dos form, then back to unix form
19346 # but this time dos style (no spaces!) so that the unix form looks
19347 # like /cygdrive/c/PROGRA~1:/cygdr...
19348 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19349 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19350 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19353 sys_lib_search_path_spec="$LIB"
19354 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19355 # It is most probably a Windows format PATH.
19356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19360 # FIXME: find the short name or the path components, as spaces are
19361 # common. (e.g. "Program Files" -> "PROGRA~1")
19365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19366 postinstall_cmds='base_file=`basename \${file}`~
19367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19368 dldir=$destdir/`dirname \$dlpath`~
19369 test -d \$dldir || mkdir -p \$dldir~
19370 $install_prog $dir/$dlname \$dldir/$dlname'
19371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19372 dlpath=$dir/\$dldll~
19374 shlibpath_overrides_runpath=yes
19375 dynamic_linker='Win32 link.exe'
19379 # Assume MSVC wrapper
19380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19381 dynamic_linker='Win32 ld.exe'
19384 # FIXME: first we should search . and the directory the executable is in
19388 darwin* | rhapsody*)
19389 dynamic_linker="$host_os dyld"
19390 version_type=darwin
19393 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19394 soname_spec='${libname}${release}${major}$shared_ext'
19395 shlibpath_overrides_runpath=yes
19396 shlibpath_var=DYLD_LIBRARY_PATH
19397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19407 soname_spec='${libname}${release}${shared_ext}$major'
19408 shlibpath_var=LD_LIBRARY_PATH
19415 freebsd* | dragonfly*)
19416 # DragonFly does not have aout. When/if they implement a new
19417 # versioning mechanism, adjust this.
19418 if test -x /usr/bin/objformat; then
19419 objformat=`/usr/bin/objformat`
19422 freebsd[123]*) objformat=aout ;;
19423 *) objformat=elf ;;
19426 version_type=freebsd-$objformat
19427 case $version_type in
19429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19438 shlibpath_var=LD_LIBRARY_PATH
19441 shlibpath_overrides_runpath=yes
19443 freebsd3.[01]* | freebsdelf3.[01]*)
19444 shlibpath_overrides_runpath=yes
19445 hardcode_into_libs=yes
19447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19449 shlibpath_overrides_runpath=no
19450 hardcode_into_libs=yes
19452 *) # from 4.6 on, and DragonFly
19453 shlibpath_overrides_runpath=yes
19454 hardcode_into_libs=yes
19463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19464 soname_spec='${libname}${release}${shared_ext}$major'
19465 shlibpath_var=LD_LIBRARY_PATH
19466 hardcode_into_libs=yes
19473 dynamic_linker="$host_os runtime_loader"
19474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19475 soname_spec='${libname}${release}${shared_ext}$major'
19476 shlibpath_var=LIBRARY_PATH
19477 shlibpath_overrides_runpath=yes
19478 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19479 hardcode_into_libs=yes
19482 hpux9* | hpux10* | hpux11*)
19483 # Give a soname corresponding to the major version so that dld.sl refuses to
19484 # link against other versions.
19491 hardcode_into_libs=yes
19492 dynamic_linker="$host_os dld.so"
19493 shlibpath_var=LD_LIBRARY_PATH
19494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19496 soname_spec='${libname}${release}${shared_ext}$major'
19497 if test "X$HPUX_IA64_MODE" = X32; then
19498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19506 hardcode_into_libs=yes
19507 dynamic_linker="$host_os dld.sl"
19508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19517 dynamic_linker="$host_os dld.sl"
19518 shlibpath_var=SHLIB_PATH
19519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19521 soname_spec='${libname}${release}${shared_ext}$major'
19524 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19525 postinstall_cmds='chmod 555 $lib'
19526 # or fails outright, so override atomically:
19527 install_override_mode=555
19534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19535 soname_spec='${libname}${release}${shared_ext}$major'
19536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19537 shlibpath_var=LD_LIBRARY_PATH
19538 shlibpath_overrides_runpath=no
19539 hardcode_into_libs=yes
19542 irix5* | irix6* | nonstopux*)
19544 nonstopux*) version_type=nonstopux ;;
19546 if test "$lt_cv_prog_gnu_ld" = yes; then
19554 soname_spec='${libname}${release}${shared_ext}$major'
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19557 irix5* | nonstopux*)
19558 libsuff= shlibsuff=
19561 case $LD in # libtool.m4 will add one of these switches to LD
19562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19563 libsuff= shlibsuff= libmagic=32-bit;;
19564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19565 libsuff=32 shlibsuff=N32 libmagic=N32;;
19566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19568 *) libsuff= shlibsuff= libmagic=never-match;;
19572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19573 shlibpath_overrides_runpath=no
19574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19576 hardcode_into_libs=yes
19579 # No shared lib support for Linux oldld, aout, or coff.
19580 linux*oldld* | linux*aout* | linux*coff*)
19584 # This must be Linux ELF.
19585 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 soname_spec='${libname}${release}${shared_ext}$major'
19591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19592 shlibpath_var=LD_LIBRARY_PATH
19593 shlibpath_overrides_runpath=no
19595 # Some binutils ld are patched to set DT_RUNPATH
19596 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19597 $as_echo_n "(cached) " >&6
19599 lt_cv_shlibpath_overrides_runpath=no
19600 save_LDFLAGS=$LDFLAGS
19601 save_libdir=$libdir
19602 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19603 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h. */
19615 if ac_fn_cxx_try_link "$LINENO"; then :
19616 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19617 lt_cv_shlibpath_overrides_runpath=yes
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19622 LDFLAGS=$save_LDFLAGS
19623 libdir=$save_libdir
19627 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19629 # This implies no fast_install, which is unacceptable.
19630 # Some rework will be needed to allow for fast_install
19631 # before this can be enabled.
19632 hardcode_into_libs=yes
19634 # Add ABI-specific directories to the system library path.
19635 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19637 # Append ld.so.conf contents to the search path
19638 if test -f /etc/ld.so.conf; then
19639 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' ' '`
19640 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19644 # We used to test for /lib/ld.so.1 and disable shared libraries on
19645 # powerpc, because MkLinux only supported shared libraries with the
19646 # GNU dynamic linker. Since this was broken with cross compilers,
19647 # most powerpc-linux boxes support dynamic linking these days and
19648 # people can always --disable-shared, the test was removed, and we
19649 # assume the GNU/Linux dynamic linker is in use.
19650 dynamic_linker='GNU/Linux ld.so'
19657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19660 dynamic_linker='NetBSD (a.out) ld.so'
19662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19663 soname_spec='${libname}${release}${shared_ext}$major'
19664 dynamic_linker='NetBSD ld.elf_so'
19666 shlibpath_var=LD_LIBRARY_PATH
19667 shlibpath_overrides_runpath=yes
19668 hardcode_into_libs=yes
19673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19674 shlibpath_var=LD_LIBRARY_PATH
19675 shlibpath_overrides_runpath=yes
19682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19683 soname_spec='${libname}${release}${shared_ext}$major'
19684 shlibpath_var=LD_LIBRARY_PATH
19685 shlibpath_overrides_runpath=no
19686 hardcode_into_libs=yes
19687 dynamic_linker='ldqnx.so'
19692 sys_lib_dlsearch_path_spec="/usr/lib"
19694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19697 *) need_version=no ;;
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19701 shlibpath_var=LD_LIBRARY_PATH
19702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19704 openbsd2.[89] | openbsd2.[89].*)
19705 shlibpath_overrides_runpath=no
19708 shlibpath_overrides_runpath=yes
19712 shlibpath_overrides_runpath=yes
19717 libname_spec='$name'
19720 library_names_spec='$libname${shared_ext} $libname.a'
19721 dynamic_linker='OS/2 ld.exe'
19722 shlibpath_var=LIBPATH
19725 osf3* | osf4* | osf5*)
19729 soname_spec='${libname}${release}${shared_ext}$major'
19730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19731 shlibpath_var=LD_LIBRARY_PATH
19732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745 soname_spec='${libname}${release}${shared_ext}$major'
19746 shlibpath_var=LD_LIBRARY_PATH
19747 shlibpath_overrides_runpath=yes
19748 hardcode_into_libs=yes
19749 # ldd complains unless libraries are executable
19750 postinstall_cmds='chmod +x $lib'
19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19757 shlibpath_var=LD_LIBRARY_PATH
19758 shlibpath_overrides_runpath=yes
19759 if test "$with_gnu_ld" = yes; then
19767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19768 soname_spec='${libname}${release}${shared_ext}$major'
19769 shlibpath_var=LD_LIBRARY_PATH
19770 case $host_vendor in
19772 shlibpath_overrides_runpath=no
19774 runpath_var=LD_RUN_PATH
19782 shlibpath_overrides_runpath=no
19783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19789 if test -d /usr/nec ;then
19791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19792 soname_spec='$libname${shared_ext}.$major'
19793 shlibpath_var=LD_LIBRARY_PATH
19797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19798 version_type=freebsd-elf
19801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19802 soname_spec='${libname}${release}${shared_ext}$major'
19803 shlibpath_var=LD_LIBRARY_PATH
19804 shlibpath_overrides_runpath=yes
19805 hardcode_into_libs=yes
19806 if test "$with_gnu_ld" = yes; then
19807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19816 sys_lib_dlsearch_path_spec='/usr/lib'
19820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 shlibpath_var=LD_LIBRARY_PATH
19826 shlibpath_overrides_runpath=no
19827 hardcode_into_libs=yes
19832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833 soname_spec='${libname}${release}${shared_ext}$major'
19834 shlibpath_var=LD_LIBRARY_PATH
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19842 $as_echo "$dynamic_linker" >&6; }
19843 test "$dynamic_linker" = no && can_build_shared=no
19845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19846 if test "$GCC" = yes; then
19847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19850 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19851 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19854 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19895 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19896 hardcode_action_CXX=
19897 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19898 test -n "$runpath_var_CXX" ||
19899 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19901 # We can hardcode non-existent directories.
19902 if test "$hardcode_direct_CXX" != no &&
19903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19904 # have to relink, otherwise we might link with an installed library
19905 # when we should be linking with a yet-to-be-installed one
19906 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19907 test "$hardcode_minus_L_CXX" != no; then
19908 # Linking always hardcodes the temporary library directory.
19909 hardcode_action_CXX=relink
19911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19912 hardcode_action_CXX=immediate
19915 # We cannot hardcode anything, or else we can only hardcode existing
19917 hardcode_action_CXX=unsupported
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19920 $as_echo "$hardcode_action_CXX" >&6; }
19922 if test "$hardcode_action_CXX" = relink ||
19923 test "$inherit_rpath_CXX" = yes; then
19924 # Fast installation is not supported
19925 enable_fast_install=no
19926 elif test "$shlibpath_overrides_runpath" = yes ||
19927 test "$enable_shared" = no; then
19928 # Fast installation is not necessary
19929 enable_fast_install=needless
19938 fi # test -n "$compiler"
19941 CFLAGS=$lt_save_CFLAGS
19945 with_gnu_ld=$lt_save_with_gnu_ld
19946 lt_cv_path_LDCXX=$lt_cv_path_LD
19947 lt_cv_path_LD=$lt_save_path_LD
19948 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19949 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19950 fi # test "$_lt_caught_CXX_error" != yes
19953 ac_cpp='$CPP $CPPFLAGS'
19954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19970 ac_config_commands="$ac_config_commands libtool"
19975 # Only expand once:
19981 # Configure libltdl
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19990 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19991 if ${libltdl_cv_shlibext+:} false; then :
19992 $as_echo_n "(cached) " >&6
19996 eval libltdl_cv_shlibext=$shrext_cmds
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20000 $as_echo "$libltdl_cv_shlibext" >&6; }
20001 if test -n "$libltdl_cv_shlibext"; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20010 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
20011 if ${lt_cv_module_path_var+:} false; then :
20012 $as_echo_n "(cached) " >&6
20014 lt_cv_module_path_var="$shlibpath_var"
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20017 $as_echo "$lt_cv_module_path_var" >&6; }
20018 if test -n "$lt_cv_module_path_var"; then
20020 cat >>confdefs.h <<_ACEOF
20021 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20027 $as_echo_n "checking for the default library search path... " >&6; }
20028 if ${lt_cv_sys_dlsearch_path+:} false; then :
20029 $as_echo_n "(cached) " >&6
20031 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20034 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20035 if test -n "$lt_cv_sys_dlsearch_path"; then
20037 for dir in $lt_cv_sys_dlsearch_path; do
20038 if test -z "$sys_dlsearch_path"; then
20039 sys_dlsearch_path="$dir"
20041 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20045 cat >>confdefs.h <<_ACEOF
20046 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20056 ac_cpp='$CPP $CPPFLAGS'
20057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20064 $as_echo_n "checking for library containing dlopen... " >&6; }
20065 if ${ac_cv_search_dlopen+:} false; then :
20066 $as_echo_n "(cached) " >&6
20068 ac_func_search_save_LIBS=$LIBS
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20072 /* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20087 for ac_lib in '' dl; do
20088 if test -z "$ac_lib"; then
20089 ac_res="none required"
20092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20094 if ac_fn_c_try_link "$LINENO"; then :
20095 ac_cv_search_dlopen=$ac_res
20097 rm -f core conftest.err conftest.$ac_objext \
20099 if ${ac_cv_search_dlopen+:} false; then :
20103 if ${ac_cv_search_dlopen+:} false; then :
20106 ac_cv_search_dlopen=no
20108 rm conftest.$ac_ext
20109 LIBS=$ac_func_search_save_LIBS
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20112 $as_echo "$ac_cv_search_dlopen" >&6; }
20113 ac_res=$ac_cv_search_dlopen
20114 if test "$ac_res" != no; then :
20115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20117 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20119 if test "$ac_cv_search_dlopen" != "none required" ; then
20120 LIBADD_DLOPEN="-ldl"
20122 libltdl_cv_lib_dl_dlopen="yes"
20123 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20128 # include <dlfcn.h>
20139 if ac_fn_c_try_link "$LINENO"; then :
20141 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20143 libltdl_cv_func_dlopen="yes"
20144 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20147 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20148 if ${ac_cv_lib_svld_dlopen+:} false; then :
20149 $as_echo_n "(cached) " >&6
20151 ac_check_lib_save_LIBS=$LIBS
20152 LIBS="-lsvld $LIBS"
20153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h. */
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20171 if ac_fn_c_try_link "$LINENO"; then :
20172 ac_cv_lib_svld_dlopen=yes
20174 ac_cv_lib_svld_dlopen=no
20176 rm -f core conftest.err conftest.$ac_objext \
20177 conftest$ac_exeext conftest.$ac_ext
20178 LIBS=$ac_check_lib_save_LIBS
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20181 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20182 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20184 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20186 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20191 rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20195 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20197 lt_save_LIBS="$LIBS"
20198 LIBS="$LIBS $LIBADD_DLOPEN"
20199 for ac_func in dlerror
20201 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20202 if test "x$ac_cv_func_dlerror" = xyes; then :
20203 cat >>confdefs.h <<_ACEOF
20204 #define HAVE_DLERROR 1
20210 LIBS="$lt_save_LIBS"
20215 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20216 if test "x$ac_cv_func_shl_load" = xyes; then :
20218 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20220 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20223 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20224 if ${ac_cv_lib_dld_shl_load+:} false; then :
20225 $as_echo_n "(cached) " >&6
20227 ac_check_lib_save_LIBS=$LIBS
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h. */
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20242 return shl_load ();
20247 if ac_fn_c_try_link "$LINENO"; then :
20248 ac_cv_lib_dld_shl_load=yes
20250 ac_cv_lib_dld_shl_load=no
20252 rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20257 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20258 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20260 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20262 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20263 LIBADD_SHL_LOAD="-ldld"
20272 # We only want this for pre-Mac OS X 10.4.
20273 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20274 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20276 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20278 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20283 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20285 cygwin* | mingw* | os2* | pw32*)
20286 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20288 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20294 cat >>confdefs.h <<_ACEOF
20295 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20298 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20303 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20304 if ${ac_cv_lib_dld_dld_link+:} false; then :
20305 $as_echo_n "(cached) " >&6
20307 ac_check_lib_save_LIBS=$LIBS
20309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20310 /* end confdefs.h. */
20312 /* Override any GCC internal prototype to avoid an error.
20313 Use char because int might match the return type of a GCC
20314 builtin and then its argument prototype would still apply. */
20322 return dld_link ();
20327 if ac_fn_c_try_link "$LINENO"; then :
20328 ac_cv_lib_dld_dld_link=yes
20330 ac_cv_lib_dld_dld_link=no
20332 rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20334 LIBS=$ac_check_lib_save_LIBS
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20337 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20338 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20340 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20349 if test -n "$LT_DLLOADERS"
20351 for lt_loader in $LT_DLLOADERS; do
20352 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20355 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20360 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20364 ac_cpp='$CPP $CPPFLAGS'
20365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20371 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20372 if ${lt_cv_sys_symbol_underscore+:} false; then :
20373 $as_echo_n "(cached) " >&6
20375 lt_cv_sys_symbol_underscore=no
20376 cat > conftest.$ac_ext <<_LT_EOF
20377 void nm_test_func(){}
20378 int main(){nm_test_func;return 0;}
20380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20381 (eval $ac_compile) 2>&5
20383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20384 test $ac_status = 0; }; then
20385 # Now try to grab the symbols.
20386 ac_nlist=conftest.nm
20387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20388 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20391 test $ac_status = 0; } && test -s "$ac_nlist"; then
20392 # See whether the symbols have a leading underscore.
20393 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20394 lt_cv_sys_symbol_underscore=yes
20396 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20399 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20403 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20406 echo "configure: failed program was:" >&5
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20413 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20414 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20417 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20418 if test x"$libltdl_cv_func_dlopen" = xyes ||
20419 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20421 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20422 if ${libltdl_cv_need_uscore+:} false; then :
20423 $as_echo_n "(cached) " >&6
20425 libltdl_cv_need_uscore=unknown
20427 LIBS="$LIBS $LIBADD_DLOPEN"
20428 if test "$cross_compiling" = yes; then :
20429 libltdl_cv_need_uscore=cross
20431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20432 lt_status=$lt_dlunknown
20433 cat > conftest.$ac_ext <<_LT_EOF
20434 #line $LINENO "configure"
20435 #include "confdefs.h"
20444 # define LT_DLGLOBAL RTLD_GLOBAL
20447 # define LT_DLGLOBAL DL_GLOBAL
20449 # define LT_DLGLOBAL 0
20453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20454 find out it does not work in some platform. */
20455 #ifndef LT_DLLAZY_OR_NOW
20457 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20460 # define LT_DLLAZY_OR_NOW DL_LAZY
20463 # define LT_DLLAZY_OR_NOW RTLD_NOW
20466 # define LT_DLLAZY_OR_NOW DL_NOW
20468 # define LT_DLLAZY_OR_NOW 0
20475 /* When -fvisbility=hidden is used, assume the code has been annotated
20476 correspondingly for the symbols needed. */
20477 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20478 int fnord () __attribute__((visibility("default")));
20481 int fnord () { return 42; }
20484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20485 int status = $lt_dlunknown;
20489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20492 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20493 else puts (dlerror ());
20495 /* dlclose (self); */
20503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20504 (eval $ac_link) 2>&5
20506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20508 (./conftest; exit; ) >&5 2>/dev/null
20510 case x$lt_status in
20511 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20512 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20513 x$lt_dlunknown|x*) ;;
20516 # compilation failed
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20526 $as_echo "$libltdl_cv_need_uscore" >&6; }
20530 if test x"$libltdl_cv_need_uscore" = xyes; then
20532 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20537 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20538 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20539 $as_echo_n "(cached) " >&6
20541 # PORTME does your system automatically load deplibs for dlopen?
20542 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20543 # For now, we just catch OSes we know something about -- in the
20544 # future, we'll try test this programmatically.
20545 lt_cv_sys_dlopen_deplibs=unknown
20547 aix3*|aix4.1.*|aix4.2.*)
20548 # Unknown whether this is true for these versions of AIX, but
20549 # we want this `case' here to explicitly catch those versions.
20550 lt_cv_sys_dlopen_deplibs=unknown
20553 lt_cv_sys_dlopen_deplibs=yes
20558 lt_cv_sys_dlopen_deplibs=no
20563 # Assuming the user has installed a libdl from somewhere, this is true
20564 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20565 lt_cv_sys_dlopen_deplibs=yes
20567 freebsd* | dragonfly*)
20568 lt_cv_sys_dlopen_deplibs=yes
20570 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20571 # GNU and its variants, using gnu ld.so (Glibc)
20572 lt_cv_sys_dlopen_deplibs=yes
20575 lt_cv_sys_dlopen_deplibs=yes
20578 lt_cv_sys_dlopen_deplibs=yes
20580 irix[12345]*|irix6.[01]*)
20581 # Catch all versions of IRIX before 6.2, and indicate that we don't
20582 # know how it worked for any of those versions.
20583 lt_cv_sys_dlopen_deplibs=unknown
20586 # The case above catches anything before 6.2, and it's known that
20587 # at 6.2 and later dlopen does load deplibs.
20588 lt_cv_sys_dlopen_deplibs=yes
20591 lt_cv_sys_dlopen_deplibs=yes
20594 lt_cv_sys_dlopen_deplibs=yes
20597 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20598 # it did *not* use an RPATH in a shared library to find objects the
20599 # library depends on, so we explicitly say `no'.
20600 lt_cv_sys_dlopen_deplibs=no
20602 osf5.0|osf5.0a|osf5.1)
20603 # dlopen *does* load deplibs and with the right loader patch applied
20604 # it even uses RPATH in a shared library to search for shared objects
20605 # that the library depends on, but there's no easy way to know if that
20606 # patch is installed. Since this is the case, all we can really
20607 # say is unknown -- it depends on the patch being installed. If
20608 # it is, this changes to `yes'. Without it, it would be `no'.
20609 lt_cv_sys_dlopen_deplibs=unknown
20612 # the two cases above should catch all versions of osf <= 5.1. Read
20613 # the comments above for what we know about them.
20614 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20615 # is used to find them so we can finally say `yes'.
20616 lt_cv_sys_dlopen_deplibs=yes
20619 lt_cv_sys_dlopen_deplibs=yes
20622 lt_cv_sys_dlopen_deplibs=yes
20624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20625 libltdl_cv_sys_dlopen_deplibs=yes
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20631 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20632 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20634 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20640 for ac_header in argz.h
20642 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20644 if test "x$ac_cv_header_argz_h" = xyes; then :
20645 cat >>confdefs.h <<_ACEOF
20646 #define HAVE_ARGZ_H 1
20654 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20658 if test "x$ac_cv_type_error_t" = xyes; then :
20660 cat >>confdefs.h <<_ACEOF
20661 #define HAVE_ERROR_T 1
20667 $as_echo "#define error_t int" >>confdefs.h
20670 $as_echo "#define __error_t_defined 1" >>confdefs.h
20676 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20677 argz_next argz_stringify
20679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20681 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20682 cat >>confdefs.h <<_ACEOF
20683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20689 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20695 if test -z "$ARGZ_H"; then :
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20697 $as_echo_n "checking if argz actually works... " >&6; }
20698 if ${lt_cv_sys_argz_works+:} false; then :
20699 $as_echo_n "(cached) " >&6
20701 case $host_os in #(
20703 lt_cv_sys_argz_works=no
20704 if test "$cross_compiling" != no; then
20705 lt_cv_sys_argz_works="guessing no"
20707 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20710 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20715 if test "$lt_os_major" -gt 1 \
20716 || { test "$lt_os_major" -eq 1 \
20717 && { test "$lt_os_minor" -gt 5 \
20718 || { test "$lt_os_minor" -eq 5 \
20719 && test "$lt_os_micro" -gt 24; }; }; }; then
20720 lt_cv_sys_argz_works=yes
20724 *) lt_cv_sys_argz_works=yes ;;
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20728 $as_echo "$lt_cv_sys_argz_works" >&6; }
20729 if test "$lt_cv_sys_argz_works" = yes; then :
20731 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20737 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20745 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20746 if ${libltdl_cv_preloaded_symbols+:} false; then :
20747 $as_echo_n "(cached) " >&6
20749 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20750 libltdl_cv_preloaded_symbols=yes
20752 libltdl_cv_preloaded_symbols=no
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20757 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20758 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20760 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20776 # Check whether --with-included_ltdl was given.
20777 if test "${with_included_ltdl+set}" = set; then :
20778 withval=$with_included_ltdl;
20782 if test "x$with_included_ltdl" != xyes; then
20783 # We are not being forced to use the included libltdl sources, so
20784 # decide whether there is a useful installed version we can use.
20785 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20788 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20789 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20792 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20794 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20795 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20796 $as_echo_n "(cached) " >&6
20798 ac_check_lib_save_LIBS=$LIBS
20799 LIBS="-lltdl $LIBS"
20800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20801 /* end confdefs.h. */
20803 /* Override any GCC internal prototype to avoid an error.
20804 Use char because int might match the return type of a GCC
20805 builtin and then its argument prototype would still apply. */
20809 char lt_dladvise_preload ();
20813 return lt_dladvise_preload ();
20818 if ac_fn_c_try_link "$LINENO"; then :
20819 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20821 ac_cv_lib_ltdl_lt_dladvise_preload=no
20823 rm -f core conftest.err conftest.$ac_objext \
20824 conftest$ac_exeext conftest.$ac_ext
20825 LIBS=$ac_check_lib_save_LIBS
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20828 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20829 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20830 with_included_ltdl=no
20832 with_included_ltdl=yes
20836 with_included_ltdl=yes
20840 with_included_ltdl=yes
20849 # Check whether --with-ltdl_include was given.
20850 if test "${with_ltdl_include+set}" = set; then :
20851 withval=$with_ltdl_include;
20855 if test -n "$with_ltdl_include"; then
20856 if test -f "$with_ltdl_include/ltdl.h"; then :
20858 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20861 with_ltdl_include=no
20865 # Check whether --with-ltdl_lib was given.
20866 if test "${with_ltdl_lib+set}" = set; then :
20867 withval=$with_ltdl_lib;
20871 if test -n "$with_ltdl_lib"; then
20872 if test -f "$with_ltdl_lib/libltdl.la"; then :
20874 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20880 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20882 case $enable_ltdl_convenience in
20883 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20884 "") enable_ltdl_convenience=yes
20885 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20887 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20889 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20895 # For backwards non-gettext consistent compatibility...
20896 INCLTDL="$LTDLINCL"
20901 # If the included ltdl is not to be used, then use the
20902 # preinstalled libltdl we found.
20904 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20911 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20913 *) with_included_ltdl=no
20914 LIBLTDL="-L$with_ltdl_lib -lltdl"
20916 LTDLINCL="-I$with_ltdl_include"
20919 INCLTDL="$LTDLINCL"
20921 # Report our decision...
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20923 $as_echo_n "checking where to find libltdl headers... " >&6; }
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20925 $as_echo "$LTDLINCL" >&6; }
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20927 $as_echo_n "checking where to find libltdl library... " >&6; }
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20929 $as_echo "$LIBLTDL" >&6; }
20933 # Check whether --enable-ltdl-install was given.
20934 if test "${enable_ltdl_install+set}" = set; then :
20935 enableval=$enable_ltdl_install;
20939 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20941 *) enable_ltdl_convenience=yes ;;
20944 if test x"${enable_ltdl_install-no}" != xno; then
20946 INSTALL_LTDL_FALSE='#'
20948 INSTALL_LTDL_TRUE='#'
20949 INSTALL_LTDL_FALSE=
20952 if test x"${enable_ltdl_convenience-no}" != xno; then
20953 CONVENIENCE_LTDL_TRUE=
20954 CONVENIENCE_LTDL_FALSE='#'
20956 CONVENIENCE_LTDL_TRUE='#'
20957 CONVENIENCE_LTDL_FALSE=
20965 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20966 # the user used. This is so that ltdl.h can pick up the parent projects
20967 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20968 # definitions required by ltdl.c.
20969 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20973 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20979 cat >>confdefs.h <<_ACEOF
20980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20988 for ac_func in closedir opendir readdir
20990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20991 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20992 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20993 cat >>confdefs.h <<_ACEOF
20994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21000 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21005 for ac_func in strlcat strlcpy
21007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21010 cat >>confdefs.h <<_ACEOF
21011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21017 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21024 cat >>confdefs.h <<_ACEOF
21025 #define LT_LIBEXT "$libext"
21030 eval "lt_libprefix=\"$libname_spec\""
21032 cat >>confdefs.h <<_ACEOF
21033 #define LT_LIBPREFIX "$lt_libprefix"
21038 eval "LTDLOPEN=\"$libname_spec\""
21047 # Only expand once:
21051 # Check to see if building shared libraries
21052 libtool_build_shared_libs='no'
21053 if test "$enable_shared" = 'yes'; then
21054 libtool_build_shared_libs='yes'
21057 # Check to see if building static libraries
21058 libtool_build_static_libs='no'
21059 if test "$enable_static" = 'yes'; then
21060 libtool_build_static_libs='yes'
21063 if test "${libtool_build_shared_libs}" = 'yes'; then
21064 WITH_SHARED_LIBS_TRUE=
21065 WITH_SHARED_LIBS_FALSE='#'
21067 WITH_SHARED_LIBS_TRUE='#'
21068 WITH_SHARED_LIBS_FALSE=
21072 # Enable support for building loadable modules
21075 # Check whether --with-modules was given.
21076 if test "${with_modules+set}" = set; then :
21077 withval=$with_modules; with_modules=$withval
21083 # Only allow building loadable modules if we are building shared libraries
21084 if test "$with_modules" != 'no' ; then
21085 if test "$libtool_build_shared_libs" = 'no'; then
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21087 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21091 if test "$with_modules" != 'no'; then
21093 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
21096 if test "$with_modules" != 'no'; then
21098 WITH_MODULES_FALSE='#'
21100 WITH_MODULES_TRUE='#'
21101 WITH_MODULES_FALSE=
21105 # Enable building/use of libltdl if we are building shared libraries regardless
21106 # of whether modules are built or not.
21108 if test "$libtool_build_shared_libs" != 'no'; then
21112 if test "$with_ltdl" != 'no'; then
21114 WITH_LTDL_FALSE='#'
21120 if test "$with_ltdl" != 'no'; then
21122 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
21126 if test X"$enable_shared" = Xyes; then
21127 DLLDFLAGS=-export-dynamic
21132 # Enable build using delegate libraries built in subdirectories rather than installed
21133 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
21134 # Check whether --enable-delegate-build was given.
21135 if test "${enable_delegate_build+set}" = set; then :
21136 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21138 enable_delegate_build='no'
21142 # Check whether --enable-deprecated was given.
21143 if test "${enable_deprecated+set}" = set; then :
21144 enableval=$enable_deprecated; enable_deprecated=$enableval
21146 enable_deprecated='no'
21150 if test "$enable_deprecated" = 'yes'; then
21152 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21158 # Build a version of ImageMagick which operates uninstalled.
21159 # Used to build distributions located via MAGICK_HOME / executable path
21160 # Check whether --enable-installed was given.
21161 if test "${enable_installed+set}" = set; then :
21162 enableval=$enable_installed; enable_installed=$enableval
21164 enable_installed='yes'
21168 if test "$enable_installed" = 'yes'; then
21170 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21176 # Permit enciphering and deciphering image pixels.
21177 # Check whether --enable-cipher was given.
21178 if test "${enable_cipher+set}" = set; then :
21179 enableval=$enable_cipher; enable_cipher=$enableval
21181 enable_cipher='yes'
21185 if test "$enable_cipher" = 'yes'; then
21187 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21191 # Build a zero-configuration version of ImageMagick.
21192 # Check whether --enable-zero-configuration was given.
21193 if test "${enable_zero_configuration+set}" = set; then :
21194 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
21196 enable_zero_configuration='no'
21200 if test "$enable_zero_configuration" = 'yes'; then
21202 $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
21204 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
21207 # Build a high dynamic range version of ImageMagick.
21208 # Check whether --enable-hdri was given.
21209 if test "${enable_hdri+set}" = set; then :
21210 enableval=$enable_hdri; enable_hdri=$enableval
21217 if test "$enable_hdri" = 'yes'; then
21220 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21222 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21225 # Build a version of ImageMagick with assert statements.
21226 # Check whether --enable-assert was given.
21227 if test "${enable_assert+set}" = set; then :
21228 enableval=$enable_assert; enable_assert=$enableval
21230 enable_assert='yes'
21234 if test "$enable_assert" = 'no'; then
21236 $as_echo "#define NDEBUG 1" >>confdefs.h
21240 # Don't emit "rebuild rules" for configure, Makefile.ins, etc.
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21243 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21244 # Check whether --enable-maintainer-mode was given.
21245 if test "${enable_maintainer_mode+set}" = set; then :
21246 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21248 USE_MAINTAINER_MODE=no
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21252 $as_echo "$USE_MAINTAINER_MODE" >&6; }
21253 if test $USE_MAINTAINER_MODE = yes; then
21254 MAINTAINER_MODE_TRUE=
21255 MAINTAINER_MODE_FALSE='#'
21257 MAINTAINER_MODE_TRUE='#'
21258 MAINTAINER_MODE_FALSE=
21261 MAINT=$MAINTAINER_MODE_TRUE
21265 # Enable ccmalloc memory debugging support
21266 # Check whether --enable-ccmalloc was given.
21267 if test "${enable_ccmalloc+set}" = set; then :
21268 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21270 enable_ccmalloc='no'
21274 # Enable Electric Fence memory debugging support
21275 # Check whether --enable-efence was given.
21276 if test "${enable_efence+set}" = set; then :
21277 enableval=$enable_efence; enable_efence=$enableval
21283 # Enable prof-based profiling support
21284 # Check whether --enable-prof was given.
21285 if test "${enable_prof+set}" = set; then :
21286 enableval=$enable_prof; enable_prof=$enableval
21292 # Enable gprof-based profiling support
21293 # Check whether --enable-gprof was given.
21294 if test "${enable_gprof+set}" = set; then :
21295 enableval=$enable_gprof; enable_gprof=$enableval
21301 # Enable gcov-based profiling support
21302 # Check whether --enable-gcov was given.
21303 if test "${enable_gcov+set}" = set; then :
21304 enableval=$enable_gcov; enable_gcov=$enableval
21310 enable_profiling='no'
21311 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21312 enable_profiling='yes'
21313 if test "$libtool_build_shared_libs" = 'yes'; then
21314 echo "Warning: Can not profile code using shared libraries"
21318 # Magick API method prefix
21320 # Check whether --with-method-prefix was given.
21321 if test "${with_method_prefix+set}" = set; then :
21322 withval=$with_method_prefix; with_method_prefix=$enableval
21324 with_method_prefix=''
21328 if test "$with_method_prefix" != ''; then
21330 cat >>confdefs.h <<_ACEOF
21331 #define NAMESPACE_PREFIX $with_method_prefix
21336 # Number of bits in a Quantum
21338 # Check whether --with-quantum-depth was given.
21339 if test "${with_quantum_depth+set}" = set; then :
21340 withval=$with_quantum_depth; with_quantum_depth=$withval
21342 with_quantum_depth=16
21346 if test "$with_quantum_depth" != '8'; then
21347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21350 case "${with_quantum_depth}" in
21355 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21357 QUANTUM_DEPTH="$with_quantum_depth"
21359 cat >>confdefs.h <<_ACEOF
21360 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21364 # Set pixel cache threshold
21366 # Check whether --with-cache was given.
21367 if test "${with_cache+set}" = set; then :
21368 withval=$with_cache; with_cache=$withval
21374 if test "$with_cache" != ''; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define PixelCacheThreshold $with_cache
21380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21383 # Disable/Enable support for full delegate paths
21385 # Check whether --with-frozenpaths was given.
21386 if test "${with_frozenpaths+set}" = set; then :
21387 withval=$with_frozenpaths; with_frozenpaths=$withval
21389 with_frozenpaths='no'
21393 # Enable build/install of Magick++
21395 # Check whether --with-magick-plus-plus was given.
21396 if test "${with_magick_plus_plus+set}" = set; then :
21397 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21399 with_magick_plus_plus='yes'
21403 # Disable build/install of PerlMagick.
21405 # Check whether --with-perl was given.
21406 if test "${with_perl+set}" = set; then :
21407 withval=$with_perl; with_perl=$withval
21413 # Options to pass when configuring PerlMagick
21415 # Check whether --with-perl-options was given.
21416 if test "${with_perl_options+set}" = set; then :
21417 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21422 # Enable umem, object-caching memory allocation library.
21424 # Check whether --with-umem was given.
21425 if test "${with_umem+set}" = set; then :
21426 withval=$with_umem; with_umem=$withval
21431 if test "$with_umem" != 'yes' ; then
21432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21436 # Specify path to shared libstdc++ if not in normal location
21439 # Check whether --with-libstdc was given.
21440 if test "${with_libstdc+set}" = set; then :
21441 withval=$with_libstdc; with_libstdc=$withval
21447 if test "$with_libstdc" != ''; then
21448 if test -d "$with_libstdc"; then
21449 LIBSTDCLDFLAGS="-L$with_libstdc"
21454 # Does gcc required -traditional?
21455 if test $ac_cv_c_compiler_gnu = yes; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21457 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21458 if ${ac_cv_prog_gcc_traditional+:} false; then :
21459 $as_echo_n "(cached) " >&6
21461 ac_pattern="Autoconf.*'x'"
21462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21468 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21469 ac_cv_prog_gcc_traditional=yes
21471 ac_cv_prog_gcc_traditional=no
21476 if test $ac_cv_prog_gcc_traditional = no; then
21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h. */
21479 #include <termio.h>
21482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21483 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21484 ac_cv_prog_gcc_traditional=yes
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21491 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21492 if test $ac_cv_prog_gcc_traditional = yes; then
21493 CC="$CC -traditional"
21500 # Set defines required to build DLLs and modules using MinGW
21503 # These options are set for multi-thread DLL module build
21504 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21506 # executable/Magick++: _DLL _MAGICKMOD_
21507 MODULE_EXTRA_CPPFLAGS=''
21508 LIBRARY_EXTRA_CPPFLAGS=''
21509 if test "${native_win32_build}" = 'yes'; then
21510 if test "${libtool_build_shared_libs}" = 'yes'; then
21511 CPPFLAGS="$CPPFLAGS -D_DLL"
21512 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21513 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21514 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21515 if test "$with_modules" = 'yes'; then
21516 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21518 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21521 CPPFLAGS="$CPPFLAGS -D_LIB"
21522 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21523 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21525 if test "$with_threads" = 'yes'; then
21526 CPPFLAGS="$CPPFLAGS -D_MT"
21527 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21528 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21534 # Check standard headers
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21536 $as_echo_n "checking for ANSI C header files... " >&6; }
21537 if ${ac_cv_header_stdc+:} false; then :
21538 $as_echo_n "(cached) " >&6
21540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541 /* end confdefs.h. */
21542 #include <stdlib.h>
21543 #include <stdarg.h>
21544 #include <string.h>
21555 if ac_fn_c_try_compile "$LINENO"; then :
21556 ac_cv_header_stdc=yes
21558 ac_cv_header_stdc=no
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562 if test $ac_cv_header_stdc = yes; then
21563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565 /* end confdefs.h. */
21566 #include <string.h>
21569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21570 $EGREP "memchr" >/dev/null 2>&1; then :
21573 ac_cv_header_stdc=no
21579 if test $ac_cv_header_stdc = yes; then
21580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h. */
21583 #include <stdlib.h>
21586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21587 $EGREP "free" >/dev/null 2>&1; then :
21590 ac_cv_header_stdc=no
21596 if test $ac_cv_header_stdc = yes; then
21597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21598 if test "$cross_compiling" = yes; then :
21601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21602 /* end confdefs.h. */
21604 #include <stdlib.h>
21605 #if ((' ' & 0x0FF) == 0x020)
21606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21609 # define ISLOWER(c) \
21610 (('a' <= (c) && (c) <= 'i') \
21611 || ('j' <= (c) && (c) <= 'r') \
21612 || ('s' <= (c) && (c) <= 'z'))
21613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21621 for (i = 0; i < 256; i++)
21622 if (XOR (islower (i), ISLOWER (i))
21623 || toupper (i) != TOUPPER (i))
21628 if ac_fn_c_try_run "$LINENO"; then :
21631 ac_cv_header_stdc=no
21633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21634 conftest.$ac_objext conftest.beam conftest.$ac_ext
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21640 $as_echo "$ac_cv_header_stdc" >&6; }
21641 if test $ac_cv_header_stdc = yes; then
21643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21647 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21649 header files. Compilation cannot proceed. Please install the ANSI C
21650 headers and rerun this script." >&5
21651 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21652 header files. Compilation cannot proceed. Please install the ANSI C
21653 headers and rerun this script." >&2;};
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21657 $as_echo_n "checking whether to enable assertions... " >&6; }
21658 # Check whether --enable-assert was given.
21659 if test "${enable_assert+set}" = set; then :
21660 enableval=$enable_assert; ac_enable_assert=$enableval
21661 if test "x$enableval" = xno; then :
21663 $as_echo "#define NDEBUG 1" >>confdefs.h
21665 elif test "x$enableval" != xyes; then :
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21667 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21668 ac_enable_assert=yes
21671 ac_enable_assert=yes
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21675 $as_echo "$ac_enable_assert" >&6; }
21677 ac_header_dirent=no
21678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21679 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21681 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21682 if eval \${$as_ac_Header+:} false; then :
21683 $as_echo_n "(cached) " >&6
21685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h. */
21687 #include <sys/types.h>
21699 if ac_fn_c_try_compile "$LINENO"; then :
21700 eval "$as_ac_Header=yes"
21702 eval "$as_ac_Header=no"
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 eval ac_res=\$$as_ac_Header
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21708 $as_echo "$ac_res" >&6; }
21709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21710 cat >>confdefs.h <<_ACEOF
21711 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21714 ac_header_dirent=$ac_hdr; break
21718 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21719 if test $ac_header_dirent = dirent.h; then
21720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21721 $as_echo_n "checking for library containing opendir... " >&6; }
21722 if ${ac_cv_search_opendir+:} false; then :
21723 $as_echo_n "(cached) " >&6
21725 ac_func_search_save_LIBS=$LIBS
21726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h. */
21729 /* Override any GCC internal prototype to avoid an error.
21730 Use char because int might match the return type of a GCC
21731 builtin and then its argument prototype would still apply. */
21744 for ac_lib in '' dir; do
21745 if test -z "$ac_lib"; then
21746 ac_res="none required"
21749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21751 if ac_fn_c_try_link "$LINENO"; then :
21752 ac_cv_search_opendir=$ac_res
21754 rm -f core conftest.err conftest.$ac_objext \
21756 if ${ac_cv_search_opendir+:} false; then :
21760 if ${ac_cv_search_opendir+:} false; then :
21763 ac_cv_search_opendir=no
21765 rm conftest.$ac_ext
21766 LIBS=$ac_func_search_save_LIBS
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21769 $as_echo "$ac_cv_search_opendir" >&6; }
21770 ac_res=$ac_cv_search_opendir
21771 if test "$ac_res" != no; then :
21772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21778 $as_echo_n "checking for library containing opendir... " >&6; }
21779 if ${ac_cv_search_opendir+:} false; then :
21780 $as_echo_n "(cached) " >&6
21782 ac_func_search_save_LIBS=$LIBS
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21786 /* Override any GCC internal prototype to avoid an error.
21787 Use char because int might match the return type of a GCC
21788 builtin and then its argument prototype would still apply. */
21801 for ac_lib in '' x; do
21802 if test -z "$ac_lib"; then
21803 ac_res="none required"
21806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21808 if ac_fn_c_try_link "$LINENO"; then :
21809 ac_cv_search_opendir=$ac_res
21811 rm -f core conftest.err conftest.$ac_objext \
21813 if ${ac_cv_search_opendir+:} false; then :
21817 if ${ac_cv_search_opendir+:} false; then :
21820 ac_cv_search_opendir=no
21822 rm conftest.$ac_ext
21823 LIBS=$ac_func_search_save_LIBS
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21826 $as_echo "$ac_cv_search_opendir" >&6; }
21827 ac_res=$ac_cv_search_opendir
21828 if test "$ac_res" != no; then :
21829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21836 # Check additional headers
21837 for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
21839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21840 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21841 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21842 cat >>confdefs.h <<_ACEOF
21843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21853 # Checks for typedefs, structures, and compiler characteristics.
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21858 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21859 if ${ac_cv_header_stdbool_h+:} false; then :
21860 $as_echo_n "(cached) " >&6
21862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21863 /* end confdefs.h. */
21865 #include <stdbool.h>
21867 "error: bool is not defined"
21870 "error: false is not defined"
21873 "error: false is not 0"
21876 "error: true is not defined"
21879 "error: true is not 1"
21881 #ifndef __bool_true_false_are_defined
21882 "error: __bool_true_false_are_defined is not defined"
21885 struct s { _Bool s: 1; _Bool t; } s;
21887 char a[true == 1 ? 1 : -1];
21888 char b[false == 0 ? 1 : -1];
21889 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21890 char d[(bool) 0.5 == true ? 1 : -1];
21891 /* See body of main program for 'e'. */
21892 char f[(_Bool) 0.0 == false ? 1 : -1];
21894 char h[sizeof (_Bool)];
21895 char i[sizeof s.t];
21896 enum { j = false, k = true, l = false * true, m = true * 256 };
21897 /* The following fails for
21898 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21900 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21901 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21902 /* Catch a bug in an HP-UX C compiler. See
21903 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21904 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21916 /* Refer to every declared value, to avoid compiler optimizations. */
21917 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21918 + !m + !n + !o + !p + !q + !pq);
21924 if ac_fn_c_try_compile "$LINENO"; then :
21925 ac_cv_header_stdbool_h=yes
21927 ac_cv_header_stdbool_h=no
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21932 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21933 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21934 if test "x$ac_cv_type__Bool" = xyes; then :
21936 cat >>confdefs.h <<_ACEOF
21937 #define HAVE__BOOL 1
21943 if test $ac_cv_header_stdbool_h = yes; then
21945 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21950 $as_echo_n "checking for working volatile... " >&6; }
21951 if ${ac_cv_c_volatile+:} false; then :
21952 $as_echo_n "(cached) " >&6
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21962 int * volatile y = (int *) 0;
21968 if ac_fn_c_try_compile "$LINENO"; then :
21969 ac_cv_c_volatile=yes
21971 ac_cv_c_volatile=no
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21976 $as_echo "$ac_cv_c_volatile" >&6; }
21977 if test $ac_cv_c_volatile = no; then
21979 $as_echo "#define volatile /**/" >>confdefs.h
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21984 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21985 if ${ac_cv_c_stringize+:} false; then :
21986 $as_echo_n "(cached) " >&6
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21992 char *s = x(teststring);
21994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21995 $EGREP "#teststring" >/dev/null 2>&1; then :
21996 ac_cv_c_stringize=no
21998 ac_cv_c_stringize=yes
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
22004 $as_echo "$ac_cv_c_stringize" >&6; }
22005 if test $ac_cv_c_stringize = yes; then
22007 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22012 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22013 if ${ac_cv_header_stat_broken+:} false; then :
22014 $as_echo_n "(cached) " >&6
22016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h. */
22018 #include <sys/types.h>
22019 #include <sys/stat.h>
22021 #if defined S_ISBLK && defined S_IFDIR
22022 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22025 #if defined S_ISBLK && defined S_IFCHR
22026 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22029 #if defined S_ISLNK && defined S_IFREG
22030 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22033 #if defined S_ISSOCK && defined S_IFREG
22034 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22038 if ac_fn_c_try_compile "$LINENO"; then :
22039 ac_cv_header_stat_broken=no
22041 ac_cv_header_stat_broken=yes
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22046 $as_echo "$ac_cv_header_stat_broken" >&6; }
22047 if test $ac_cv_header_stat_broken = yes; then
22049 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22054 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22055 if ${ac_cv_header_time+:} false; then :
22056 $as_echo_n "(cached) " >&6
22058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22059 /* end confdefs.h. */
22060 #include <sys/types.h>
22061 #include <sys/time.h>
22067 if ((struct tm *) 0)
22073 if ac_fn_c_try_compile "$LINENO"; then :
22074 ac_cv_header_time=yes
22076 ac_cv_header_time=no
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22081 $as_echo "$ac_cv_header_time" >&6; }
22082 if test $ac_cv_header_time = yes; then
22084 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22089 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22090 if ${ac_cv_struct_tm+:} false; then :
22091 $as_echo_n "(cached) " >&6
22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h. */
22095 #include <sys/types.h>
22102 int *p = &tm.tm_sec;
22108 if ac_fn_c_try_compile "$LINENO"; then :
22109 ac_cv_struct_tm=time.h
22111 ac_cv_struct_tm=sys/time.h
22113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22116 $as_echo "$ac_cv_struct_tm" >&6; }
22117 if test $ac_cv_struct_tm = sys/time.h; then
22119 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22123 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22124 #include <$ac_cv_struct_tm>
22127 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22129 cat >>confdefs.h <<_ACEOF
22130 #define HAVE_STRUCT_TM_TM_ZONE 1
22136 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22138 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22141 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22143 if test "x$ac_cv_have_decl_tzname" = xyes; then :
22149 cat >>confdefs.h <<_ACEOF
22150 #define HAVE_DECL_TZNAME $ac_have_decl
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22154 $as_echo_n "checking for tzname... " >&6; }
22155 if ${ac_cv_var_tzname+:} false; then :
22156 $as_echo_n "(cached) " >&6
22158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h. */
22161 #if !HAVE_DECL_TZNAME
22162 extern char *tzname[];
22168 return tzname[0][0];
22173 if ac_fn_c_try_link "$LINENO"; then :
22174 ac_cv_var_tzname=yes
22176 ac_cv_var_tzname=no
22178 rm -f core conftest.err conftest.$ac_objext \
22179 conftest$ac_exeext conftest.$ac_ext
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22182 $as_echo "$ac_cv_var_tzname" >&6; }
22183 if test $ac_cv_var_tzname = yes; then
22185 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22191 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
22192 if ${ac_cv_sys_interpreter+:} false; then :
22193 $as_echo_n "(cached) " >&6
22199 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22200 if test $? -ne 69; then
22201 ac_cv_sys_interpreter=yes
22203 ac_cv_sys_interpreter=no
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22208 $as_echo "$ac_cv_sys_interpreter" >&6; }
22209 interpval=$ac_cv_sys_interpreter
22212 # If the C compiler supports the keyword inline, do nothing. Otherwise
22213 # define inline to __inline__ or __inline if it accepts one of those,
22214 # otherwise define inline to be empty.
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22216 $as_echo_n "checking for inline... " >&6; }
22217 if ${ac_cv_c_inline+:} false; then :
22218 $as_echo_n "(cached) " >&6
22221 for ac_kw in inline __inline__ __inline; do
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22224 #ifndef __cplusplus
22226 static $ac_kw foo_t static_foo () {return 0; }
22227 $ac_kw foo_t foo () {return 0; }
22231 if ac_fn_c_try_compile "$LINENO"; then :
22232 ac_cv_c_inline=$ac_kw
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 test "$ac_cv_c_inline" != no && break
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22240 $as_echo "$ac_cv_c_inline" >&6; }
22242 case $ac_cv_c_inline in
22245 case $ac_cv_c_inline in
22247 *) ac_val=$ac_cv_c_inline;;
22249 cat >>confdefs.h <<_ACEOF
22250 #ifndef __cplusplus
22251 #define inline $ac_val
22258 # If the C compiler supports the keyword restrict, do nothing. Otherwise
22259 # define restrict to __restrict__ or __restrict if it accepts one of those,
22260 # otherwise define restrict to be empty.
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22262 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22263 if ${ac_cv_c_restrict+:} false; then :
22264 $as_echo_n "(cached) " >&6
22266 ac_cv_c_restrict=no
22267 # The order here caters to the fact that C++ does not require restrict.
22268 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h. */
22271 typedef int * int_ptr;
22272 int foo (int_ptr $ac_kw ip) {
22279 int * $ac_kw t = s;
22286 if ac_fn_c_try_compile "$LINENO"; then :
22287 ac_cv_c_restrict=$ac_kw
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 test "$ac_cv_c_restrict" != no && break
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22295 $as_echo "$ac_cv_c_restrict" >&6; }
22297 case $ac_cv_c_restrict in
22299 no) $as_echo "#define restrict /**/" >>confdefs.h
22301 *) cat >>confdefs.h <<_ACEOF
22302 #define restrict $ac_cv_c_restrict
22308 # If words are stored with the most significant byte first (like
22309 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22311 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22312 if ${ac_cv_c_bigendian+:} false; then :
22313 $as_echo_n "(cached) " >&6
22315 ac_cv_c_bigendian=unknown
22316 # See if we're dealing with a universal compiler.
22317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h. */
22319 #ifndef __APPLE_CC__
22320 not a universal capable compiler
22325 if ac_fn_c_try_compile "$LINENO"; then :
22327 # Check for potential -arch flags. It is not universal unless
22328 # there are at least two -arch flags with different values.
22331 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22332 if test -n "$ac_prev"; then
22334 i?86 | x86_64 | ppc | ppc64)
22335 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22338 ac_cv_c_bigendian=universal
22344 elif test "x$ac_word" = "x-arch"; then
22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350 if test $ac_cv_c_bigendian = unknown; then
22351 # See if sys/param.h defines the BYTE_ORDER macro.
22352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h. */
22354 #include <sys/types.h>
22355 #include <sys/param.h>
22360 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22361 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22363 bogus endian macros
22370 if ac_fn_c_try_compile "$LINENO"; then :
22371 # It does; now see whether it defined to BIG_ENDIAN or not.
22372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22373 /* end confdefs.h. */
22374 #include <sys/types.h>
22375 #include <sys/param.h>
22380 #if BYTE_ORDER != BIG_ENDIAN
22388 if ac_fn_c_try_compile "$LINENO"; then :
22389 ac_cv_c_bigendian=yes
22391 ac_cv_c_bigendian=no
22393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397 if test $ac_cv_c_bigendian = unknown; then
22398 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22401 #include <limits.h>
22406 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22407 bogus endian macros
22414 if ac_fn_c_try_compile "$LINENO"; then :
22415 # It does; now see whether it defined to _BIG_ENDIAN or not.
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22418 #include <limits.h>
22423 #ifndef _BIG_ENDIAN
22431 if ac_fn_c_try_compile "$LINENO"; then :
22432 ac_cv_c_bigendian=yes
22434 ac_cv_c_bigendian=no
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22440 if test $ac_cv_c_bigendian = unknown; then
22441 # Compile a test program.
22442 if test "$cross_compiling" = yes; then :
22443 # Try to guess by grepping values from an object file.
22444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h. */
22446 short int ascii_mm[] =
22447 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22448 short int ascii_ii[] =
22449 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22450 int use_ascii (int i) {
22451 return ascii_mm[i] + ascii_ii[i];
22453 short int ebcdic_ii[] =
22454 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22455 short int ebcdic_mm[] =
22456 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22457 int use_ebcdic (int i) {
22458 return ebcdic_mm[i] + ebcdic_ii[i];
22465 return use_ascii (foo) == use_ebcdic (foo);
22470 if ac_fn_c_try_compile "$LINENO"; then :
22471 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22472 ac_cv_c_bigendian=yes
22474 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22475 if test "$ac_cv_c_bigendian" = unknown; then
22476 ac_cv_c_bigendian=no
22478 # finding both strings is unlikely to happen, but who knows?
22479 ac_cv_c_bigendian=unknown
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h. */
22487 $ac_includes_default
22492 /* Are we little or big endian? From Harbison&Steele. */
22496 char c[sizeof (long int)];
22499 return u.c[sizeof (long int) - 1] == 1;
22505 if ac_fn_c_try_run "$LINENO"; then :
22506 ac_cv_c_bigendian=no
22508 ac_cv_c_bigendian=yes
22510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22511 conftest.$ac_objext conftest.beam conftest.$ac_ext
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22517 $as_echo "$ac_cv_c_bigendian" >&6; }
22518 case $ac_cv_c_bigendian in #(
22520 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22526 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22530 as_fn_error $? "unknown endianness
22531 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22535 # Define to a suitable type, if standard headers do not define it.
22536 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22537 case $ac_cv_c_int8_t in #(
22541 cat >>confdefs.h <<_ACEOF
22542 #define int8_t $ac_cv_c_int8_t
22547 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22548 case $ac_cv_c_int16_t in #(
22552 cat >>confdefs.h <<_ACEOF
22553 #define int16_t $ac_cv_c_int16_t
22558 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22559 case $ac_cv_c_int32_t in #(
22563 cat >>confdefs.h <<_ACEOF
22564 #define int32_t $ac_cv_c_int32_t
22569 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22570 case $ac_cv_c_int64_t in #(
22574 cat >>confdefs.h <<_ACEOF
22575 #define int64_t $ac_cv_c_int64_t
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22582 $as_echo_n "checking for long long int... " >&6; }
22583 if ${ac_cv_type_long_long_int+:} false; then :
22584 $as_echo_n "(cached) " >&6
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h. */
22589 /* For now, do not test the preprocessor; as of 2007 there are too many
22590 implementations with broken preprocessors. Perhaps this can
22591 be revisited in 2012. In the meantime, code should not expect
22592 #if to work with literals wider than 32 bits. */
22593 /* Test literals. */
22594 long long int ll = 9223372036854775807ll;
22595 long long int nll = -9223372036854775807LL;
22596 unsigned long long int ull = 18446744073709551615ULL;
22597 /* Test constant expressions. */
22598 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22600 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22606 /* Test availability of runtime routines for shift and division. */
22607 long long int llmax = 9223372036854775807ll;
22608 unsigned long long int ullmax = 18446744073709551615ull;
22609 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22610 | (llmax / ll) | (llmax % ll)
22611 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22612 | (ullmax / ull) | (ullmax % ull));
22618 if ac_fn_c_try_link "$LINENO"; then :
22619 if test "$cross_compiling" = yes; then :
22620 ac_cv_type_long_long_int=yes
22622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h. */
22624 #include <limits.h>
22627 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22628 # define LLONG_MAX (HALF - 1 + HALF)
22633 long long int n = 1;
22637 long long int m = n << i;
22640 if (LLONG_MAX / 2 < m)
22648 if ac_fn_c_try_run "$LINENO"; then :
22649 ac_cv_type_long_long_int=yes
22651 ac_cv_type_long_long_int=no
22653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22654 conftest.$ac_objext conftest.beam conftest.$ac_ext
22658 ac_cv_type_long_long_int=no
22660 rm -f core conftest.err conftest.$ac_objext \
22661 conftest$ac_exeext conftest.$ac_ext
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22664 $as_echo "$ac_cv_type_long_long_int" >&6; }
22665 if test $ac_cv_type_long_long_int = yes; then
22667 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22673 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22674 if test "x$ac_cv_type_intmax_t" = xyes; then :
22676 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22679 test $ac_cv_type_long_long_int = yes \
22680 && ac_type='long long int' \
22681 || ac_type='long int'
22683 cat >>confdefs.h <<_ACEOF
22684 #define intmax_t $ac_type
22691 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22692 if test "x$ac_cv_type_intptr_t" = xyes; then :
22694 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22697 for ac_type in 'int' 'long int' 'long long int'; do
22698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699 /* end confdefs.h. */
22700 $ac_includes_default
22704 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22711 if ac_fn_c_try_compile "$LINENO"; then :
22713 cat >>confdefs.h <<_ACEOF
22714 #define intptr_t $ac_type
22719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720 test -z "$ac_type" && break
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22727 $as_echo_n "checking for long double... " >&6; }
22728 if ${ac_cv_type_long_double+:} false; then :
22729 $as_echo_n "(cached) " >&6
22731 if test "$GCC" = yes; then
22732 ac_cv_type_long_double=yes
22734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22735 /* end confdefs.h. */
22736 /* The Stardent Vistra knows sizeof (long double), but does
22738 long double foo = 0.0L;
22742 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22743 sizeof (double) <= sizeof (long double))];
22750 if ac_fn_c_try_compile "$LINENO"; then :
22751 ac_cv_type_long_double=yes
22753 ac_cv_type_long_double=no
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22759 $as_echo "$ac_cv_type_long_double" >&6; }
22760 if test $ac_cv_type_long_double = yes; then
22762 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22768 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22769 if ${ac_cv_type_long_double_wider+:} false; then :
22770 $as_echo_n "(cached) " >&6
22772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h. */
22775 long double const a[] =
22777 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22778 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22783 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22784 + (x ? f (x) : 'c'));
22790 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22791 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22792 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22793 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22794 && (int) LDBL_EPSILON == 0
22802 if ac_fn_c_try_compile "$LINENO"; then :
22803 ac_cv_type_long_double_wider=yes
22805 ac_cv_type_long_double_wider=no
22807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22810 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22811 if test $ac_cv_type_long_double_wider = yes; then
22813 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22819 $as_echo_n "checking for long long int... " >&6; }
22820 if ${ac_cv_type_long_long_int+:} false; then :
22821 $as_echo_n "(cached) " >&6
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22826 /* For now, do not test the preprocessor; as of 2007 there are too many
22827 implementations with broken preprocessors. Perhaps this can
22828 be revisited in 2012. In the meantime, code should not expect
22829 #if to work with literals wider than 32 bits. */
22830 /* Test literals. */
22831 long long int ll = 9223372036854775807ll;
22832 long long int nll = -9223372036854775807LL;
22833 unsigned long long int ull = 18446744073709551615ULL;
22834 /* Test constant expressions. */
22835 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22837 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22843 /* Test availability of runtime routines for shift and division. */
22844 long long int llmax = 9223372036854775807ll;
22845 unsigned long long int ullmax = 18446744073709551615ull;
22846 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22847 | (llmax / ll) | (llmax % ll)
22848 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22849 | (ullmax / ull) | (ullmax % ull));
22855 if ac_fn_c_try_link "$LINENO"; then :
22856 if test "$cross_compiling" = yes; then :
22857 ac_cv_type_long_long_int=yes
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22861 #include <limits.h>
22864 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22865 # define LLONG_MAX (HALF - 1 + HALF)
22870 long long int n = 1;
22874 long long int m = n << i;
22877 if (LLONG_MAX / 2 < m)
22885 if ac_fn_c_try_run "$LINENO"; then :
22886 ac_cv_type_long_long_int=yes
22888 ac_cv_type_long_long_int=no
22890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22891 conftest.$ac_objext conftest.beam conftest.$ac_ext
22895 ac_cv_type_long_long_int=no
22897 rm -f core conftest.err conftest.$ac_objext \
22898 conftest$ac_exeext conftest.$ac_ext
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22901 $as_echo "$ac_cv_type_long_long_int" >&6; }
22902 if test $ac_cv_type_long_long_int = yes; then
22904 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22909 $as_echo_n "checking for mbstate_t... " >&6; }
22910 if ${ac_cv_type_mbstate_t+:} false; then :
22911 $as_echo_n "(cached) " >&6
22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h. */
22915 $ac_includes_default
22916 # include <wchar.h>
22920 mbstate_t x; return sizeof x;
22925 if ac_fn_c_try_compile "$LINENO"; then :
22926 ac_cv_type_mbstate_t=yes
22928 ac_cv_type_mbstate_t=no
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22933 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22934 if test $ac_cv_type_mbstate_t = yes; then
22936 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22940 $as_echo "#define mbstate_t int" >>confdefs.h
22943 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22944 if test "x$ac_cv_type_mode_t" = xyes; then :
22948 cat >>confdefs.h <<_ACEOF
22954 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22955 if test "x$ac_cv_type_off_t" = xyes; then :
22959 cat >>confdefs.h <<_ACEOF
22960 #define off_t long int
22965 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22966 if test "x$ac_cv_type_pid_t" = xyes; then :
22970 cat >>confdefs.h <<_ACEOF
22976 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22977 if test "x$ac_cv_type_size_t" = xyes; then :
22981 cat >>confdefs.h <<_ACEOF
22982 #define size_t unsigned int
22987 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22988 if test "x$ac_cv_type_ssize_t" = xyes; then :
22992 cat >>confdefs.h <<_ACEOF
22993 #define ssize_t int
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22999 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23000 if ${ac_cv_type_uid_t+:} false; then :
23001 $as_echo_n "(cached) " >&6
23003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23004 /* end confdefs.h. */
23005 #include <sys/types.h>
23008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23009 $EGREP "uid_t" >/dev/null 2>&1; then :
23010 ac_cv_type_uid_t=yes
23012 ac_cv_type_uid_t=no
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23018 $as_echo "$ac_cv_type_uid_t" >&6; }
23019 if test $ac_cv_type_uid_t = no; then
23021 $as_echo "#define uid_t int" >>confdefs.h
23024 $as_echo "#define gid_t int" >>confdefs.h
23028 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23029 case $ac_cv_c_uint8_t in #(
23033 $as_echo "#define _UINT8_T 1" >>confdefs.h
23036 cat >>confdefs.h <<_ACEOF
23037 #define uint8_t $ac_cv_c_uint8_t
23042 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23043 case $ac_cv_c_uint16_t in #(
23048 cat >>confdefs.h <<_ACEOF
23049 #define uint16_t $ac_cv_c_uint16_t
23054 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23055 case $ac_cv_c_uint32_t in #(
23059 $as_echo "#define _UINT32_T 1" >>confdefs.h
23062 cat >>confdefs.h <<_ACEOF
23063 #define uint32_t $ac_cv_c_uint32_t
23068 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23069 case $ac_cv_c_uint64_t in #(
23073 $as_echo "#define _UINT64_T 1" >>confdefs.h
23076 cat >>confdefs.h <<_ACEOF
23077 #define uint64_t $ac_cv_c_uint64_t
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23084 $as_echo_n "checking for unsigned long long int... " >&6; }
23085 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23086 $as_echo_n "(cached) " >&6
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23091 /* For now, do not test the preprocessor; as of 2007 there are too many
23092 implementations with broken preprocessors. Perhaps this can
23093 be revisited in 2012. In the meantime, code should not expect
23094 #if to work with literals wider than 32 bits. */
23095 /* Test literals. */
23096 long long int ll = 9223372036854775807ll;
23097 long long int nll = -9223372036854775807LL;
23098 unsigned long long int ull = 18446744073709551615ULL;
23099 /* Test constant expressions. */
23100 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23102 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23108 /* Test availability of runtime routines for shift and division. */
23109 long long int llmax = 9223372036854775807ll;
23110 unsigned long long int ullmax = 18446744073709551615ull;
23111 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23112 | (llmax / ll) | (llmax % ll)
23113 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23114 | (ullmax / ull) | (ullmax % ull));
23120 if ac_fn_c_try_link "$LINENO"; then :
23121 ac_cv_type_unsigned_long_long_int=yes
23123 ac_cv_type_unsigned_long_long_int=no
23125 rm -f core conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23129 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23130 if test $ac_cv_type_unsigned_long_long_int = yes; then
23132 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23138 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23139 if test "x$ac_cv_type_uintmax_t" = xyes; then :
23141 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23144 test $ac_cv_type_unsigned_long_long_int = yes \
23145 && ac_type='unsigned long long int' \
23146 || ac_type='unsigned long int'
23148 cat >>confdefs.h <<_ACEOF
23149 #define uintmax_t $ac_type
23156 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23157 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23159 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23162 for ac_type in 'unsigned int' 'unsigned long int' \
23163 'unsigned long long int'; do
23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h. */
23166 $ac_includes_default
23170 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23177 if ac_fn_c_try_compile "$LINENO"; then :
23179 cat >>confdefs.h <<_ACEOF
23180 #define uintptr_t $ac_type
23185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 test -z "$ac_type" && break
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23193 $as_echo_n "checking for unsigned long long int... " >&6; }
23194 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23195 $as_echo_n "(cached) " >&6
23197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23198 /* end confdefs.h. */
23200 /* For now, do not test the preprocessor; as of 2007 there are too many
23201 implementations with broken preprocessors. Perhaps this can
23202 be revisited in 2012. In the meantime, code should not expect
23203 #if to work with literals wider than 32 bits. */
23204 /* Test literals. */
23205 long long int ll = 9223372036854775807ll;
23206 long long int nll = -9223372036854775807LL;
23207 unsigned long long int ull = 18446744073709551615ULL;
23208 /* Test constant expressions. */
23209 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23211 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23217 /* Test availability of runtime routines for shift and division. */
23218 long long int llmax = 9223372036854775807ll;
23219 unsigned long long int ullmax = 18446744073709551615ull;
23220 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23221 | (llmax / ll) | (llmax % ll)
23222 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23223 | (ullmax / ull) | (ullmax % ull));
23229 if ac_fn_c_try_link "$LINENO"; then :
23230 ac_cv_type_unsigned_long_long_int=yes
23232 ac_cv_type_unsigned_long_long_int=no
23234 rm -f core conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23238 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23239 if test $ac_cv_type_unsigned_long_long_int = yes; then
23241 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23246 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23247 # C compiler predefines it.
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23249 $as_echo_n "checking whether char is unsigned... " >&6; }
23250 if ${ac_cv_c_char_unsigned+:} false; then :
23251 $as_echo_n "(cached) " >&6
23253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23254 /* end confdefs.h. */
23255 $ac_includes_default
23259 static int test_array [1 - 2 * !(((char) -1) < 0)];
23266 if ac_fn_c_try_compile "$LINENO"; then :
23267 ac_cv_c_char_unsigned=no
23269 ac_cv_c_char_unsigned=yes
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23274 $as_echo "$ac_cv_c_char_unsigned" >&6; }
23275 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23276 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23281 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23282 # The cast to long int works around a bug in the HP C Compiler
23283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23285 # This bug is HP SR number 8606223364.
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23287 $as_echo_n "checking size of signed short... " >&6; }
23288 if ${ac_cv_sizeof_signed_short+:} false; then :
23289 $as_echo_n "(cached) " >&6
23291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
23294 if test "$ac_cv_type_signed_short" = yes; then
23295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23297 as_fn_error 77 "cannot compute sizeof (signed short)
23298 See \`config.log' for more details" "$LINENO" 5; }
23300 ac_cv_sizeof_signed_short=0
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23306 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
23310 cat >>confdefs.h <<_ACEOF
23311 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23316 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23317 # The cast to long int works around a bug in the HP C Compiler
23318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23320 # This bug is HP SR number 8606223364.
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23322 $as_echo_n "checking size of unsigned short... " >&6; }
23323 if ${ac_cv_sizeof_unsigned_short+:} false; then :
23324 $as_echo_n "(cached) " >&6
23326 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
23329 if test "$ac_cv_type_unsigned_short" = yes; then
23330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23332 as_fn_error 77 "cannot compute sizeof (unsigned short)
23333 See \`config.log' for more details" "$LINENO" 5; }
23335 ac_cv_sizeof_unsigned_short=0
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23341 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23345 cat >>confdefs.h <<_ACEOF
23346 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23351 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23352 # The cast to long int works around a bug in the HP C Compiler
23353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23355 # This bug is HP SR number 8606223364.
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23357 $as_echo_n "checking size of signed int... " >&6; }
23358 if ${ac_cv_sizeof_signed_int+:} false; then :
23359 $as_echo_n "(cached) " >&6
23361 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
23364 if test "$ac_cv_type_signed_int" = yes; then
23365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23367 as_fn_error 77 "cannot compute sizeof (signed int)
23368 See \`config.log' for more details" "$LINENO" 5; }
23370 ac_cv_sizeof_signed_int=0
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23376 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
23380 cat >>confdefs.h <<_ACEOF
23381 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23386 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23387 # The cast to long int works around a bug in the HP C Compiler
23388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23390 # This bug is HP SR number 8606223364.
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23392 $as_echo_n "checking size of unsigned int... " >&6; }
23393 if ${ac_cv_sizeof_unsigned_int+:} false; then :
23394 $as_echo_n "(cached) " >&6
23396 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
23399 if test "$ac_cv_type_unsigned_int" = yes; then
23400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23402 as_fn_error 77 "cannot compute sizeof (unsigned int)
23403 See \`config.log' for more details" "$LINENO" 5; }
23405 ac_cv_sizeof_unsigned_int=0
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23411 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23415 cat >>confdefs.h <<_ACEOF
23416 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23421 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23422 # The cast to long int works around a bug in the HP C Compiler
23423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23425 # This bug is HP SR number 8606223364.
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23427 $as_echo_n "checking size of signed long... " >&6; }
23428 if ${ac_cv_sizeof_signed_long+:} false; then :
23429 $as_echo_n "(cached) " >&6
23431 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
23434 if test "$ac_cv_type_signed_long" = yes; then
23435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23437 as_fn_error 77 "cannot compute sizeof (signed long)
23438 See \`config.log' for more details" "$LINENO" 5; }
23440 ac_cv_sizeof_signed_long=0
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23446 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
23450 cat >>confdefs.h <<_ACEOF
23451 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23456 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23457 # The cast to long int works around a bug in the HP C Compiler
23458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23460 # This bug is HP SR number 8606223364.
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23462 $as_echo_n "checking size of unsigned long... " >&6; }
23463 if ${ac_cv_sizeof_unsigned_long+:} false; then :
23464 $as_echo_n "(cached) " >&6
23466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
23469 if test "$ac_cv_type_unsigned_long" = yes; then
23470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23472 as_fn_error 77 "cannot compute sizeof (unsigned long)
23473 See \`config.log' for more details" "$LINENO" 5; }
23475 ac_cv_sizeof_unsigned_long=0
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23481 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23485 cat >>confdefs.h <<_ACEOF
23486 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23491 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23492 # 'signed long long' is not supported then the value defined is zero.
23493 # The cast to long int works around a bug in the HP C Compiler
23494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23496 # This bug is HP SR number 8606223364.
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23498 $as_echo_n "checking size of signed long long... " >&6; }
23499 if ${ac_cv_sizeof_signed_long_long+:} false; then :
23500 $as_echo_n "(cached) " >&6
23502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
23505 if test "$ac_cv_type_signed_long_long" = yes; then
23506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23508 as_fn_error 77 "cannot compute sizeof (signed long long)
23509 See \`config.log' for more details" "$LINENO" 5; }
23511 ac_cv_sizeof_signed_long_long=0
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23517 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23521 cat >>confdefs.h <<_ACEOF
23522 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23527 # Obtain size of a 'unsigned long long' and define as
23528 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23529 # supported then the value defined is zero.
23530 # The cast to long int works around a bug in the HP C Compiler
23531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23533 # This bug is HP SR number 8606223364.
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23535 $as_echo_n "checking size of unsigned long long... " >&6; }
23536 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23537 $as_echo_n "(cached) " >&6
23539 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
23542 if test "$ac_cv_type_unsigned_long_long" = yes; then
23543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23545 as_fn_error 77 "cannot compute sizeof (unsigned long long)
23546 See \`config.log' for more details" "$LINENO" 5; }
23548 ac_cv_sizeof_unsigned_long_long=0
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23554 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23558 cat >>confdefs.h <<_ACEOF
23559 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23564 # Obtain size of off_t and define as SIZEOF_OFF_T
23565 # The cast to long int works around a bug in the HP C Compiler
23566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23568 # This bug is HP SR number 8606223364.
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23570 $as_echo_n "checking size of off_t... " >&6; }
23571 if ${ac_cv_sizeof_off_t+:} false; then :
23572 $as_echo_n "(cached) " >&6
23574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23577 if test "$ac_cv_type_off_t" = yes; then
23578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23580 as_fn_error 77 "cannot compute sizeof (off_t)
23581 See \`config.log' for more details" "$LINENO" 5; }
23583 ac_cv_sizeof_off_t=0
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23589 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23593 cat >>confdefs.h <<_ACEOF
23594 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23599 # Obtain size of size_t and define as SIZEOF_SIZE_T
23600 # The cast to long int works around a bug in the HP C Compiler
23601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23603 # This bug is HP SR number 8606223364.
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23605 $as_echo_n "checking size of size_t... " >&6; }
23606 if ${ac_cv_sizeof_size_t+:} false; then :
23607 $as_echo_n "(cached) " >&6
23609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23612 if test "$ac_cv_type_size_t" = yes; then
23613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23615 as_fn_error 77 "cannot compute sizeof (size_t)
23616 See \`config.log' for more details" "$LINENO" 5; }
23618 ac_cv_sizeof_size_t=0
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23624 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23628 cat >>confdefs.h <<_ACEOF
23629 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23634 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23635 # The cast to long int works around a bug in the HP C Compiler
23636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23638 # This bug is HP SR number 8606223364.
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23640 $as_echo_n "checking size of ssize_t... " >&6; }
23641 if ${ac_cv_sizeof_ssize_t+:} false; then :
23642 $as_echo_n "(cached) " >&6
23644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23647 if test "$ac_cv_type_ssize_t" = yes; then
23648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23650 as_fn_error 77 "cannot compute sizeof (ssize_t)
23651 See \`config.log' for more details" "$LINENO" 5; }
23653 ac_cv_sizeof_ssize_t=0
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23659 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23663 cat >>confdefs.h <<_ACEOF
23664 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23669 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23670 # The cast to long int works around a bug in the HP C Compiler
23671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23673 # This bug is HP SR number 8606223364.
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23675 $as_echo_n "checking size of unsigned int*... " >&6; }
23676 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23677 $as_echo_n "(cached) " >&6
23679 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
23682 if test "$ac_cv_type_unsigned_intp" = yes; then
23683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23685 as_fn_error 77 "cannot compute sizeof (unsigned int*)
23686 See \`config.log' for more details" "$LINENO" 5; }
23688 ac_cv_sizeof_unsigned_intp=0
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23694 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23698 cat >>confdefs.h <<_ACEOF
23699 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23705 # Compute sized types for current CPU and compiler options.
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23709 $as_echo_n "checking for signed 8-bit type... " >&6; }
23710 INT8_T='signed char'
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23712 $as_echo "$as_me: $INT8_T" >&6;}
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23716 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
23717 UINT8_T='unsigned char'
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23719 $as_echo "$as_me: $UINT8_T" >&6;}
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23723 $as_echo_n "checking for signed 16-bit type... " >&6; }
23724 INT16_T='signed short'
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23726 $as_echo "$as_me: $INT16_T" >&6;}
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23730 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
23731 UINT16_T='unsigned short'
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23733 $as_echo "$as_me: $UINT16_T" >&6;}
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23737 $as_echo_n "checking for signed 32-bit type... " >&6; }
23740 if test $ac_cv_sizeof_signed_int -eq 4; then
23741 INT32_T='signed int'
23743 elif test $ac_cv_sizeof_signed_long -eq 4; then
23744 INT32_T='signed long'
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23748 $as_echo "$as_me: $INT32_T" >&6;}
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23753 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
23756 if test $ac_cv_sizeof_unsigned_int -eq 4; then
23757 UINT32_T='unsigned int'
23759 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23760 UINT32_T='unsigned long'
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23764 $as_echo "$as_me: $UINT32_T" >&6;}
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23769 $as_echo_n "checking for signed 64-bit type... " >&6; }
23772 if test $ac_cv_sizeof_signed_long -eq 8; then
23773 INT64_T='signed long'
23775 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23776 INT64_T='signed long long'
23779 case "${build_os}" in
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23785 $as_echo "$as_me: $INT64_T" >&6;}
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23790 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
23793 if test $ac_cv_sizeof_unsigned_long -eq 8; then
23794 UINT64_T='unsigned long'
23796 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23797 UINT64_T='unsigned long long'
23800 case "${build_os}" in
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23806 $as_echo "$as_me: $UINT64_T" >&6;}
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23811 $as_echo_n "checking for unsigned maximum type... " >&6; }
23814 if test "$UINT64_T" != 'none'; then
23815 UINTMAX_T=$UINT64_T
23816 UINTMAX_F=$UINT64_F
23817 elif test "$UINT32_T" != 'none'; then
23818 UINTMAX_T=$UINT32_T
23819 UINTMAX_F=$UINT32_F
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23822 $as_echo "$as_me: $UINTMAX_T" >&6;}
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23827 $as_echo_n "checking for pointer difference type... " >&6; }
23830 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23831 UINTPTR_T='unsigned long'
23833 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23834 UINTPTR_T='unsigned long long'
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23838 $as_echo "$as_me: $UINTPTR_T" >&6;}
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23843 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
23844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23845 /* end confdefs.h. */
23850 { const char *func = __func__; return(func != 0 ? 0 : 1); }
23855 if ac_fn_c_try_compile "$LINENO"; then :
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23857 $as_echo "$as_me: yes" >&6;}
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23860 $as_echo "$as_me: no" >&6;}
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
23862 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h. */
23869 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23874 if ac_fn_c_try_compile "$LINENO"; then :
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23876 $as_echo "$as_me: yes" >&6;}
23878 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23882 $as_echo "$as_me: no" >&6;}
23884 $as_echo "#define __func__ __FILE__" >>confdefs.h
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893 # Check for functions
23896 for ac_header in stdlib.h unistd.h
23898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23901 cat >>confdefs.h <<_ACEOF
23902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23909 for ac_func in getpagesize
23911 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23912 if test "x$ac_cv_func_getpagesize" = xyes; then :
23913 cat >>confdefs.h <<_ACEOF
23914 #define HAVE_GETPAGESIZE 1
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23921 $as_echo_n "checking for working mmap file i/o... " >&6; }
23922 if ${magick_cv_func_mmap_fileio+:} false; then :
23923 $as_echo_n "(cached) " >&6
23925 if test "$cross_compiling" = yes; then :
23926 magick_cv_func_mmap_fileio=no
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h. */
23930 $ac_includes_default
23931 /* malloc might have been renamed as rpl_malloc. */
23935 This test is derived from GNU Autoconf's similar macro.
23936 The purpose of this test is to verify that files may be memory
23937 mapped, and that memory mapping and file I/O are coherent.
23939 The test creates a test file, memory maps the file, updates
23940 the file using the memory map, and then reads the file using
23941 file I/O to verify that the file contains the updates.
23945 #include <sys/mman.h>
23947 #if !STDC_HEADERS && !HAVE_STDLIB_H
23951 /* This mess was copied from the GNU getpagesize.h. */
23952 #if !HAVE_GETPAGESIZE
23953 /* Assume that all systems that can run configure have sys/param.h. */
23954 # if !HAVE_SYS_PARAM_H
23955 # define HAVE_SYS_PARAM_H 1
23958 # ifdef _SC_PAGESIZE
23959 # define getpagesize() sysconf(_SC_PAGESIZE)
23960 # else /* no _SC_PAGESIZE */
23961 # if HAVE_SYS_PARAM_H
23962 # include <sys/param.h>
23963 # ifdef EXEC_PAGESIZE
23964 # define getpagesize() EXEC_PAGESIZE
23965 # else /* no EXEC_PAGESIZE */
23967 # define getpagesize() NBPG * CLSIZE
23970 # endif /* no CLSIZE */
23971 # else /* no NBPG */
23973 # define getpagesize() NBPC
23974 # else /* no NBPC */
23976 # define getpagesize() PAGESIZE
23977 # endif /* PAGESIZE */
23978 # endif /* no NBPC */
23979 # endif /* no NBPG */
23980 # endif /* no EXEC_PAGESIZE */
23981 # else /* no HAVE_SYS_PARAM_H */
23982 # define getpagesize() 8192 /* punt totally */
23983 # endif /* no HAVE_SYS_PARAM_H */
23984 # endif /* no _SC_PAGESIZE */
23986 #endif /* no HAVE_GETPAGESIZE */
23991 char *data, *data2, *data3;
23995 pagesize = getpagesize ();
23997 /* First, make a file with some known garbage in it. */
23998 data = (char *) malloc (pagesize);
24001 for (i = 0; i < pagesize; ++i)
24002 *(data + i) = rand ();
24004 fd = creat ("conftest.mmap", 0600);
24007 if (write (fd, data, pagesize) != pagesize)
24011 /* Mmap the file as read/write/shared and verify that we see the
24013 fd = open ("conftest.mmap", O_RDWR);
24016 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24019 for (i = 0; i < pagesize; ++i)
24020 if (*(data + i) != *(data2 + i))
24023 /* Finally, make sure that changes to the mapped area
24024 percolate back to the file as seen by read(). */
24025 for (i = 0; i < pagesize; ++i)
24026 *(data2 + i) = *(data2 + i) + 1;
24027 data3 = (char *) malloc (pagesize);
24030 if (read (fd, data3, pagesize) != pagesize)
24032 for (i = 0; i < pagesize; ++i)
24033 if (*(data2 + i) != *(data3 + i))
24039 if ac_fn_c_try_run "$LINENO"; then :
24040 magick_cv_func_mmap_fileio=yes
24042 magick_cv_func_mmap_fileio=no
24044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24045 conftest.$ac_objext conftest.beam conftest.$ac_ext
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24050 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
24051 if test $magick_cv_func_mmap_fileio = yes; then
24053 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24056 rm -f conftest.mmap
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24059 $as_echo_n "checking whether closedir returns void... " >&6; }
24060 if ${ac_cv_func_closedir_void+:} false; then :
24061 $as_echo_n "(cached) " >&6
24063 if test "$cross_compiling" = yes; then :
24064 ac_cv_func_closedir_void=yes
24066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067 /* end confdefs.h. */
24068 $ac_includes_default
24069 #include <$ac_header_dirent>
24070 #ifndef __cplusplus
24077 return closedir (opendir (".")) != 0;
24082 if ac_fn_c_try_run "$LINENO"; then :
24083 ac_cv_func_closedir_void=no
24085 ac_cv_func_closedir_void=yes
24087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24088 conftest.$ac_objext conftest.beam conftest.$ac_ext
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24093 $as_echo "$ac_cv_func_closedir_void" >&6; }
24094 if test $ac_cv_func_closedir_void = yes; then
24096 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24103 for ac_header in $ac_header_list
24105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24109 cat >>confdefs.h <<_ACEOF
24110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24124 for ac_func in getpagesize
24126 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24127 if test "x$ac_cv_func_getpagesize" = xyes; then :
24128 cat >>confdefs.h <<_ACEOF
24129 #define HAVE_GETPAGESIZE 1
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24136 $as_echo_n "checking for working mmap... " >&6; }
24137 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24138 $as_echo_n "(cached) " >&6
24140 if test "$cross_compiling" = yes; then :
24141 ac_cv_func_mmap_fixed_mapped=no
24143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24144 /* end confdefs.h. */
24145 $ac_includes_default
24146 /* malloc might have been renamed as rpl_malloc. */
24149 /* Thanks to Mike Haertel and Jim Avera for this test.
24150 Here is a matrix of mmap possibilities:
24151 mmap private not fixed
24152 mmap private fixed at somewhere currently unmapped
24153 mmap private fixed at somewhere already mapped
24154 mmap shared not fixed
24155 mmap shared fixed at somewhere currently unmapped
24156 mmap shared fixed at somewhere already mapped
24157 For private mappings, we should verify that changes cannot be read()
24158 back from the file, nor mmap's back from the file at a different
24159 address. (There have been systems where private was not correctly
24160 implemented like the infamous i386 svr4.0, and systems where the
24161 VM page cache was not coherent with the file system buffer cache
24162 like early versions of FreeBSD and possibly contemporary NetBSD.)
24163 For shared mappings, we should conversely verify that changes get
24164 propagated back to all the places they're supposed to be.
24166 Grep wants private fixed already mapped.
24167 The main things grep needs to know about mmap are:
24168 * does it exist and is it safe to write into the mmap'd area
24169 * how to use it (BSD variants) */
24172 #include <sys/mman.h>
24174 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24178 /* This mess was copied from the GNU getpagesize.h. */
24179 #ifndef HAVE_GETPAGESIZE
24180 # ifdef _SC_PAGESIZE
24181 # define getpagesize() sysconf(_SC_PAGESIZE)
24182 # else /* no _SC_PAGESIZE */
24183 # ifdef HAVE_SYS_PARAM_H
24184 # include <sys/param.h>
24185 # ifdef EXEC_PAGESIZE
24186 # define getpagesize() EXEC_PAGESIZE
24187 # else /* no EXEC_PAGESIZE */
24189 # define getpagesize() NBPG * CLSIZE
24192 # endif /* no CLSIZE */
24193 # else /* no NBPG */
24195 # define getpagesize() NBPC
24196 # else /* no NBPC */
24198 # define getpagesize() PAGESIZE
24199 # endif /* PAGESIZE */
24200 # endif /* no NBPC */
24201 # endif /* no NBPG */
24202 # endif /* no EXEC_PAGESIZE */
24203 # else /* no HAVE_SYS_PARAM_H */
24204 # define getpagesize() 8192 /* punt totally */
24205 # endif /* no HAVE_SYS_PARAM_H */
24206 # endif /* no _SC_PAGESIZE */
24208 #endif /* no HAVE_GETPAGESIZE */
24213 char *data, *data2, *data3;
24214 const char *cdata2;
24218 pagesize = getpagesize ();
24220 /* First, make a file with some known garbage in it. */
24221 data = (char *) malloc (pagesize);
24224 for (i = 0; i < pagesize; ++i)
24225 *(data + i) = rand ();
24227 fd = creat ("conftest.mmap", 0600);
24230 if (write (fd, data, pagesize) != pagesize)
24234 /* Next, check that the tail of a page is zero-filled. File must have
24235 non-zero length, otherwise we risk SIGBUS for entire page. */
24236 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24240 if (write (fd2, cdata2, 1) != 1)
24242 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24243 if (data2 == MAP_FAILED)
24245 for (i = 0; i < pagesize; ++i)
24249 if (munmap (data2, pagesize))
24252 /* Next, try to mmap the file at a fixed address which already has
24253 something else allocated at it. If we can, also make sure that
24254 we see the same garbage. */
24255 fd = open ("conftest.mmap", O_RDWR);
24258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24259 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24261 for (i = 0; i < pagesize; ++i)
24262 if (*(data + i) != *(data2 + i))
24265 /* Finally, make sure that changes to the mapped area do not
24266 percolate back to the file as seen by read(). (This is a bug on
24267 some variants of i386 svr4.0.) */
24268 for (i = 0; i < pagesize; ++i)
24269 *(data2 + i) = *(data2 + i) + 1;
24270 data3 = (char *) malloc (pagesize);
24273 if (read (fd, data3, pagesize) != pagesize)
24275 for (i = 0; i < pagesize; ++i)
24276 if (*(data + i) != *(data3 + i))
24282 if ac_fn_c_try_run "$LINENO"; then :
24283 ac_cv_func_mmap_fixed_mapped=yes
24285 ac_cv_func_mmap_fixed_mapped=no
24287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24288 conftest.$ac_objext conftest.beam conftest.$ac_ext
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24293 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24296 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24299 rm -f conftest.mmap conftest.txt
24301 for ac_header in vfork.h
24303 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24304 if test "x$ac_cv_header_vfork_h" = xyes; then :
24305 cat >>confdefs.h <<_ACEOF
24306 #define HAVE_VFORK_H 1
24313 for ac_func in fork vfork
24315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24317 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24318 cat >>confdefs.h <<_ACEOF
24319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24325 if test "x$ac_cv_func_fork" = xyes; then
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24327 $as_echo_n "checking for working fork... " >&6; }
24328 if ${ac_cv_func_fork_works+:} false; then :
24329 $as_echo_n "(cached) " >&6
24331 if test "$cross_compiling" = yes; then :
24332 ac_cv_func_fork_works=cross
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h. */
24336 $ac_includes_default
24341 /* By Ruediger Kuhlmann. */
24342 return fork () < 0;
24348 if ac_fn_c_try_run "$LINENO"; then :
24349 ac_cv_func_fork_works=yes
24351 ac_cv_func_fork_works=no
24353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24354 conftest.$ac_objext conftest.beam conftest.$ac_ext
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24359 $as_echo "$ac_cv_func_fork_works" >&6; }
24362 ac_cv_func_fork_works=$ac_cv_func_fork
24364 if test "x$ac_cv_func_fork_works" = xcross; then
24366 *-*-amigaos* | *-*-msdosdjgpp*)
24367 # Override, as these systems have only a dummy fork() stub
24368 ac_cv_func_fork_works=no
24371 ac_cv_func_fork_works=yes
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24375 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24377 ac_cv_func_vfork_works=$ac_cv_func_vfork
24378 if test "x$ac_cv_func_vfork" = xyes; then
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24380 $as_echo_n "checking for working vfork... " >&6; }
24381 if ${ac_cv_func_vfork_works+:} false; then :
24382 $as_echo_n "(cached) " >&6
24384 if test "$cross_compiling" = yes; then :
24385 ac_cv_func_vfork_works=cross
24387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24388 /* end confdefs.h. */
24389 /* Thanks to Paul Eggert for this test. */
24390 $ac_includes_default
24391 #include <sys/wait.h>
24392 #ifdef HAVE_VFORK_H
24393 # include <vfork.h>
24395 /* On some sparc systems, changes by the child to local and incoming
24396 argument registers are propagated back to the parent. The compiler
24397 is told about this with #include <vfork.h>, but some compilers
24398 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24399 static variable whose address is put into a register that is
24400 clobbered by the vfork. */
24403 sparc_address_test (int arg)
24405 sparc_address_test (arg) int arg;
24408 static pid_t child;
24426 pid_t parent = getpid ();
24429 sparc_address_test (0);
24434 /* Here is another test for sparc vfork register problems. This
24435 test uses lots of local variables, at least as many local
24436 variables as main has allocated so far including compiler
24437 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24438 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24439 reuse the register of parent for one of the local variables,
24440 since it will think that parent can't possibly be used any more
24441 in this routine. Assigning to the local variable will thus
24442 munge parent in the parent process. */
24444 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24445 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24446 /* Convince the compiler that p..p7 are live; otherwise, it might
24447 use the same hardware register for all 8 local variables. */
24448 if (p != p1 || p != p2 || p != p3 || p != p4
24449 || p != p5 || p != p6 || p != p7)
24452 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24453 from child file descriptors. If the child closes a descriptor
24454 before it execs or exits, this munges the parent's descriptor
24455 as well. Test for this by closing stdout in the child. */
24456 _exit(close(fileno(stdout)) != 0);
24461 while (wait(&status) != child)
24464 /* Was there some problem with vforking? */
24467 /* Did the child fail? (This shouldn't happen.) */
24470 /* Did the vfork/compiler bug occur? */
24471 || parent != getpid()
24473 /* Did the file descriptor bug occur? */
24474 || fstat(fileno(stdout), &st) != 0
24479 if ac_fn_c_try_run "$LINENO"; then :
24480 ac_cv_func_vfork_works=yes
24482 ac_cv_func_vfork_works=no
24484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24485 conftest.$ac_objext conftest.beam conftest.$ac_ext
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24490 $as_echo "$ac_cv_func_vfork_works" >&6; }
24493 if test "x$ac_cv_func_fork_works" = xcross; then
24494 ac_cv_func_vfork_works=$ac_cv_func_vfork
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24496 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24499 if test "x$ac_cv_func_vfork_works" = xyes; then
24501 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24505 $as_echo "#define vfork fork" >>confdefs.h
24508 if test "x$ac_cv_func_fork_works" = xyes; then
24510 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24515 $as_echo_n "checking for working memcmp... " >&6; }
24516 if ${ac_cv_func_memcmp_working+:} false; then :
24517 $as_echo_n "(cached) " >&6
24519 if test "$cross_compiling" = yes; then :
24520 ac_cv_func_memcmp_working=no
24522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24523 /* end confdefs.h. */
24524 $ac_includes_default
24529 /* Some versions of memcmp are not 8-bit clean. */
24530 char c0 = '\100', c1 = '\200', c2 = '\201';
24531 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24534 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24535 or more and with at least one buffer not starting on a 4-byte boundary.
24536 William Lewis provided this test program. */
24541 for (i = 0; i < 4; i++)
24545 strcpy (a, "--------01111111");
24546 strcpy (b, "--------10000000");
24547 if (memcmp (a, b, 16) >= 0)
24557 if ac_fn_c_try_run "$LINENO"; then :
24558 ac_cv_func_memcmp_working=yes
24560 ac_cv_func_memcmp_working=no
24562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24563 conftest.$ac_objext conftest.beam conftest.$ac_ext
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24568 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24569 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24570 *" memcmp.$ac_objext "* ) ;;
24571 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24576 for ac_header in sys/select.h sys/socket.h
24578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24579 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24581 cat >>confdefs.h <<_ACEOF
24582 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24590 $as_echo_n "checking types of arguments for select... " >&6; }
24591 if ${ac_cv_func_select_args+:} false; then :
24592 $as_echo_n "(cached) " >&6
24594 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24595 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24596 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h. */
24599 $ac_includes_default
24600 #ifdef HAVE_SYS_SELECT_H
24601 # include <sys/select.h>
24603 #ifdef HAVE_SYS_SOCKET_H
24604 # include <sys/socket.h>
24610 extern int select ($ac_arg1,
24611 $ac_arg234, $ac_arg234, $ac_arg234,
24617 if ac_fn_c_try_compile "$LINENO"; then :
24618 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624 # Provide a safe default value.
24625 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24629 $as_echo "$ac_cv_func_select_args" >&6; }
24630 ac_save_IFS=$IFS; IFS=','
24631 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24635 cat >>confdefs.h <<_ACEOF
24636 #define SELECT_TYPE_ARG1 $1
24640 cat >>confdefs.h <<_ACEOF
24641 #define SELECT_TYPE_ARG234 ($2)
24645 cat >>confdefs.h <<_ACEOF
24646 #define SELECT_TYPE_ARG5 ($3)
24651 if ${ac_cv_func_setvbuf_reversed+:} false; then :
24652 $as_echo_n "(cached) " >&6
24654 ac_cv_func_setvbuf_reversed=no
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24659 $as_echo_n "checking return type of signal handlers... " >&6; }
24660 if ${ac_cv_type_signal+:} false; then :
24661 $as_echo_n "(cached) " >&6
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24665 #include <sys/types.h>
24666 #include <signal.h>
24671 return *(signal (0, 0)) (0) == 1;
24676 if ac_fn_c_try_compile "$LINENO"; then :
24677 ac_cv_type_signal=int
24679 ac_cv_type_signal=void
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24684 $as_echo "$ac_cv_type_signal" >&6; }
24686 cat >>confdefs.h <<_ACEOF
24687 #define RETSIGTYPE $ac_cv_type_signal
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24692 $as_echo_n "checking for working strtod... " >&6; }
24693 if ${ac_cv_func_strtod+:} false; then :
24694 $as_echo_n "(cached) " >&6
24696 if test "$cross_compiling" = yes; then :
24697 ac_cv_func_strtod=no
24699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24700 /* end confdefs.h. */
24702 $ac_includes_default
24710 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24711 char *string = " +69";
24714 value = strtod (string, &term);
24715 if (value != 69 || term != (string + 4))
24720 /* Under Solaris 2.4, strtod returns the wrong value for the
24721 terminating character under some conditions. */
24722 char *string = "NaN";
24724 strtod (string, &term);
24725 if (term != string && *(term - 1) == 0)
24732 if ac_fn_c_try_run "$LINENO"; then :
24733 ac_cv_func_strtod=yes
24735 ac_cv_func_strtod=no
24737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24738 conftest.$ac_objext conftest.beam conftest.$ac_ext
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24743 $as_echo "$ac_cv_func_strtod" >&6; }
24744 if test $ac_cv_func_strtod = no; then
24745 case " $LIBOBJS " in
24746 *" strtod.$ac_objext "* ) ;;
24747 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24751 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24752 if test "x$ac_cv_func_pow" = xyes; then :
24756 if test $ac_cv_func_pow = no; then
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24758 $as_echo_n "checking for pow in -lm... " >&6; }
24759 if ${ac_cv_lib_m_pow+:} false; then :
24760 $as_echo_n "(cached) " >&6
24762 ac_check_lib_save_LIBS=$LIBS
24764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h. */
24767 /* Override any GCC internal prototype to avoid an error.
24768 Use char because int might match the return type of a GCC
24769 builtin and then its argument prototype would still apply. */
24782 if ac_fn_c_try_link "$LINENO"; then :
24783 ac_cv_lib_m_pow=yes
24787 rm -f core conftest.err conftest.$ac_objext \
24788 conftest$ac_exeext conftest.$ac_ext
24789 LIBS=$ac_check_lib_save_LIBS
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24792 $as_echo "$ac_cv_lib_m_pow" >&6; }
24793 if test "x$ac_cv_lib_m_pow" = xyes; then :
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24797 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24804 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24805 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24811 cat >>confdefs.h <<_ACEOF
24812 #define HAVE_DECL_STRERROR_R $ac_have_decl
24815 for ac_func in strerror_r
24817 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24818 if test "x$ac_cv_func_strerror_r" = xyes; then :
24819 cat >>confdefs.h <<_ACEOF
24820 #define HAVE_STRERROR_R 1
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24827 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
24828 if ${ac_cv_func_strerror_r_char_p+:} false; then :
24829 $as_echo_n "(cached) " >&6
24832 ac_cv_func_strerror_r_char_p=no
24833 if test $ac_cv_have_decl_strerror_r = yes; then
24834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835 /* end confdefs.h. */
24836 $ac_includes_default
24842 char x = *strerror_r (0, buf, sizeof buf);
24843 char *p = strerror_r (0, buf, sizeof buf);
24850 if ac_fn_c_try_compile "$LINENO"; then :
24851 ac_cv_func_strerror_r_char_p=yes
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24855 # strerror_r is not declared. Choose between
24856 # systems that have relatively inaccessible declarations for the
24857 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24858 # former has a strerror_r that returns char*, while the latter
24859 # has a strerror_r that returns `int'.
24860 # This test should segfault on the DEC system.
24861 if test "$cross_compiling" = yes; then :
24864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24865 /* end confdefs.h. */
24866 $ac_includes_default
24867 extern char *strerror_r ();
24872 char x = *strerror_r (0, buf, sizeof buf);
24873 return ! isalpha (x);
24878 if ac_fn_c_try_run "$LINENO"; then :
24879 ac_cv_func_strerror_r_char_p=yes
24881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24882 conftest.$ac_objext conftest.beam conftest.$ac_ext
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24889 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24890 if test $ac_cv_func_strerror_r_char_p = yes; then
24892 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24896 for ac_func in vprintf
24898 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24899 if test "x$ac_cv_func_vprintf" = xyes; then :
24900 cat >>confdefs.h <<_ACEOF
24901 #define HAVE_VPRINTF 1
24904 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24905 if test "x$ac_cv_func__doprnt" = xyes; then :
24907 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24917 # Find math library
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24921 $as_echo_n "checking for sqrt in -lm... " >&6; }
24922 if ${ac_cv_lib_m_sqrt+:} false; then :
24923 $as_echo_n "(cached) " >&6
24925 ac_check_lib_save_LIBS=$LIBS
24927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24928 /* end confdefs.h. */
24930 /* Override any GCC internal prototype to avoid an error.
24931 Use char because int might match the return type of a GCC
24932 builtin and then its argument prototype would still apply. */
24945 if ac_fn_c_try_link "$LINENO"; then :
24946 ac_cv_lib_m_sqrt=yes
24948 ac_cv_lib_m_sqrt=no
24950 rm -f core conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
24952 LIBS=$ac_check_lib_save_LIBS
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24955 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
24956 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
24960 LIBS="$MATH_LIBS $LIBS"
24963 for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
24965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24967 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24968 cat >>confdefs.h <<_ACEOF
24969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24977 # Check for clock_gettime().
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24980 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24981 if ${ac_cv_search_clock_gettime+:} false; then :
24982 $as_echo_n "(cached) " >&6
24984 ac_func_search_save_LIBS=$LIBS
24985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24986 /* end confdefs.h. */
24988 /* Override any GCC internal prototype to avoid an error.
24989 Use char because int might match the return type of a GCC
24990 builtin and then its argument prototype would still apply. */
24994 char clock_gettime ();
24998 return clock_gettime ();
25003 for ac_lib in '' rt; do
25004 if test -z "$ac_lib"; then
25005 ac_res="none required"
25008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25010 if ac_fn_c_try_link "$LINENO"; then :
25011 ac_cv_search_clock_gettime=$ac_res
25013 rm -f core conftest.err conftest.$ac_objext \
25015 if ${ac_cv_search_clock_gettime+:} false; then :
25019 if ${ac_cv_search_clock_gettime+:} false; then :
25022 ac_cv_search_clock_gettime=no
25024 rm conftest.$ac_ext
25025 LIBS=$ac_func_search_save_LIBS
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25028 $as_echo "$ac_cv_search_clock_gettime" >&6; }
25029 ac_res=$ac_cv_search_clock_gettime
25030 if test "$ac_res" != no; then :
25031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25034 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25037 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h. */
25045 clockid_t clockType = CLOCK_REALTIME;
25050 if ac_fn_c_try_compile "$LINENO"; then :
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25053 $as_echo "$as_me: yes" >&6;}
25055 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25060 $as_echo "$as_me: no" >&6;}
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25067 for ac_func in gettimeofday ftime
25069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25071 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25072 cat >>confdefs.h <<_ACEOF
25073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25086 # Check for function prototypes
25090 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25091 #include <unistd.h>
25093 if test "x$ac_cv_have_decl_pread" = xyes; then :
25099 cat >>confdefs.h <<_ACEOF
25100 #define HAVE_DECL_PREAD $ac_have_decl
25102 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25103 #include <unistd.h>
25105 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25111 cat >>confdefs.h <<_ACEOF
25112 #define HAVE_DECL_PWRITE $ac_have_decl
25116 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25117 #include <strings.h>
25119 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25125 cat >>confdefs.h <<_ACEOF
25126 #define HAVE_DECL_STRLCPY $ac_have_decl
25130 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25132 #include <stdarg.h>
25134 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25140 cat >>confdefs.h <<_ACEOF
25141 #define HAVE_DECL_VSNPRINTF $ac_have_decl
25147 # C++ Support Tests (For Magick++)
25150 have_magick_plus_plus='no'
25151 if test "$with_magick_plus_plus" = 'yes'; then
25155 ac_cpp='$CXXCPP $CPPFLAGS'
25156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25161 # Full set of headers used...
25162 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25163 # functional iomanip iosfwd iostream iterator list string strstream utility
25165 ac_cpp='$CXXCPP $CPPFLAGS'
25166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25171 ac_cpp='$CXXCPP $CPPFLAGS'
25172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25175 if test -z "$CXX"; then
25176 if test -n "$CCC"; then
25179 if test -n "$ac_tool_prefix"; then
25180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25185 $as_echo_n "checking for $ac_word... " >&6; }
25186 if ${ac_cv_prog_CXX+:} false; then :
25187 $as_echo_n "(cached) " >&6
25189 if test -n "$CXX"; then
25190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25193 for as_dir in $PATH
25196 test -z "$as_dir" && as_dir=.
25197 for ac_exec_ext in '' $ac_executable_extensions; do
25198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25209 CXX=$ac_cv_prog_CXX
25210 if test -n "$CXX"; then
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25212 $as_echo "$CXX" >&6; }
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25215 $as_echo "no" >&6; }
25219 test -n "$CXX" && break
25222 if test -z "$CXX"; then
25224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25226 # Extract the first word of "$ac_prog", so it can be a program name with args.
25227 set dummy $ac_prog; ac_word=$2
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25229 $as_echo_n "checking for $ac_word... " >&6; }
25230 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25231 $as_echo_n "(cached) " >&6
25233 if test -n "$ac_ct_CXX"; then
25234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25237 for as_dir in $PATH
25240 test -z "$as_dir" && as_dir=.
25241 for ac_exec_ext in '' $ac_executable_extensions; do
25242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25243 ac_cv_prog_ac_ct_CXX="$ac_prog"
25244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25253 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25254 if test -n "$ac_ct_CXX"; then
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25256 $as_echo "$ac_ct_CXX" >&6; }
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25259 $as_echo "no" >&6; }
25263 test -n "$ac_ct_CXX" && break
25266 if test "x$ac_ct_CXX" = x; then
25269 case $cross_compiling:$ac_tool_warned in
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25273 ac_tool_warned=yes ;;
25281 # Provide some information about the compiler.
25282 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25285 for ac_option in --version -v -V -qversion; do
25286 { { ac_try="$ac_compiler $ac_option >&5"
25287 case "(($ac_try" in
25288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289 *) ac_try_echo=$ac_try;;
25291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25292 $as_echo "$ac_try_echo"; } >&5
25293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25295 if test -s conftest.err; then
25297 ... rest of stderr output deleted ...
25298 10q' conftest.err >conftest.er1
25299 cat conftest.er1 >&5
25301 rm -f conftest.er1 conftest.err
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25307 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25308 if ${ac_cv_cxx_compiler_gnu+:} false; then :
25309 $as_echo_n "(cached) " >&6
25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h. */
25325 if ac_fn_cxx_try_compile "$LINENO"; then :
25326 ac_compiler_gnu=yes
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25336 if test $ac_compiler_gnu = yes; then
25341 ac_test_CXXFLAGS=${CXXFLAGS+set}
25342 ac_save_CXXFLAGS=$CXXFLAGS
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
25345 if ${ac_cv_prog_cxx_g+:} false; then :
25346 $as_echo_n "(cached) " >&6
25348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25349 ac_cxx_werror_flag=yes
25350 ac_cv_prog_cxx_g=no
25352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25353 /* end confdefs.h. */
25363 if ac_fn_cxx_try_compile "$LINENO"; then :
25364 ac_cv_prog_cxx_g=yes
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h. */
25378 if ac_fn_cxx_try_compile "$LINENO"; then :
25381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25384 /* end confdefs.h. */
25394 if ac_fn_cxx_try_compile "$LINENO"; then :
25395 ac_cv_prog_cxx_g=yes
25397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25405 $as_echo "$ac_cv_prog_cxx_g" >&6; }
25406 if test "$ac_test_CXXFLAGS" = set; then
25407 CXXFLAGS=$ac_save_CXXFLAGS
25408 elif test $ac_cv_prog_cxx_g = yes; then
25409 if test "$GXX" = yes; then
25415 if test "$GXX" = yes; then
25422 ac_cpp='$CXXCPP $CPPFLAGS'
25423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25427 depcc="$CXX" am_compiler_list=
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25430 $as_echo_n "checking dependency style of $depcc... " >&6; }
25431 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25432 $as_echo_n "(cached) " >&6
25434 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25435 # We make a subdir and do the tests there. Otherwise we can end up
25436 # making bogus files that we don't know about and never remove. For
25437 # instance it was reported that on HP-UX the gcc test will end up
25438 # making a dummy file named `D' -- because `-MD' means `put the output
25441 # Copy depcomp to subdir because otherwise we won't find it if we're
25442 # using a relative directory.
25443 cp "$am_depcomp" conftest.dir
25445 # We will build objects and dependencies in a subdirectory because
25446 # it helps to detect inapplicable dependency modes. For instance
25447 # both Tru64's cc and ICC support -MD to output dependencies as a
25448 # side effect of compilation, but ICC will put the dependencies in
25449 # the current directory while Tru64 will put them in the object
25453 am_cv_CXX_dependencies_compiler_type=none
25454 if test "$am_compiler_list" = ""; then
25455 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25457 am__universal=false
25458 case " $depcc " in #(
25459 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25462 for depmode in $am_compiler_list; do
25463 # Setup a source with many dependencies, because some compilers
25464 # like to wrap large dependency lists on column 80 (with \), and
25465 # we should not choose a depcomp mode which is confused by this.
25467 # We need to recreate these files for each test, as the compiler may
25468 # overwrite some of them when testing with obscure command lines.
25469 # This happens at least with the AIX C compiler.
25471 for i in 1 2 3 4 5 6; do
25472 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25473 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25474 # Solaris 8's {/usr,}/bin/sh.
25475 touch sub/conftst$i.h
25477 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25479 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25480 # mode. It turns out that the SunPro C++ compiler does not properly
25481 # handle `-M -o', and we need to detect this. Also, some Intel
25482 # versions had trouble with output in subdirs
25483 am__obj=sub/conftest.${OBJEXT-o}
25484 am__minus_obj="-o $am__obj"
25487 # This depmode causes a compiler race in universal mode.
25488 test "$am__universal" = false || continue
25491 # after this tag, mechanisms are not by side-effect, so they'll
25492 # only be used when explicitly requested
25493 if test "x$enable_dependency_tracking" = xyes; then
25499 msvisualcpp | msvcmsys)
25500 # This compiler won't grok `-c -o', but also, the minuso test has
25501 # not run yet. These depmodes are late enough in the game, and
25502 # so weak that their functioning should not be impacted.
25503 am__obj=conftest.${OBJEXT-o}
25508 if depmode=$depmode \
25509 source=sub/conftest.c object=$am__obj \
25510 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25511 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25512 >/dev/null 2>conftest.err &&
25513 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25514 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25515 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25516 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25517 # icc doesn't choke on unknown options, it will just issue warnings
25518 # or remarks (even with -Werror). So we grep stderr for any message
25519 # that says an option was ignored or not supported.
25520 # When given -MP, icc 7.0 and 7.1 complain thusly:
25521 # icc: Command line warning: ignoring option '-M'; no argument required
25522 # The diagnosis changed in icc 8.0:
25523 # icc: Command line remark: option '-MP' not supported
25524 if (grep 'ignoring option' conftest.err ||
25525 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25526 am_cv_CXX_dependencies_compiler_type=$depmode
25533 rm -rf conftest.dir
25535 am_cv_CXX_dependencies_compiler_type=none
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25540 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25541 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25544 test "x$enable_dependency_tracking" != xno \
25545 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25546 am__fastdepCXX_TRUE=
25547 am__fastdepCXX_FALSE='#'
25549 am__fastdepCXX_TRUE='#'
25550 am__fastdepCXX_FALSE=
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25555 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25556 if ${ax_cv_cxx_bool+:} false; then :
25557 $as_echo_n "(cached) " >&6
25561 ac_cpp='$CXXCPP $CPPFLAGS'
25562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h. */
25569 int f(int x){return 1;}
25570 int f(char x){return 1;}
25571 int f(bool x){return 1;}
25576 bool b = true; return f(b);
25581 if ac_fn_cxx_try_compile "$LINENO"; then :
25586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25588 ac_cpp='$CXXCPP $CPPFLAGS'
25589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25596 $as_echo "$ax_cv_cxx_bool" >&6; }
25597 if test "$ax_cv_cxx_bool" = yes; then
25599 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25604 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25605 if ${ax_cv_cxx_namespaces+:} false; then :
25606 $as_echo_n "(cached) " >&6
25610 ac_cpp='$CXXCPP $CPPFLAGS'
25611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616 /* end confdefs.h. */
25617 namespace Outer { namespace Inner { int i = 0; }}
25621 using namespace Outer::Inner; return i;
25626 if ac_fn_cxx_try_compile "$LINENO"; then :
25627 ax_cv_cxx_namespaces=yes
25629 ax_cv_cxx_namespaces=no
25631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25633 ac_cpp='$CXXCPP $CPPFLAGS'
25634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25641 $as_echo "$ax_cv_cxx_namespaces" >&6; }
25642 if test "$ax_cv_cxx_namespaces" = yes; then
25644 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25650 $as_echo_n "checking if g++ supports namespace std... " >&6; }
25651 if ${ax_cv_cxx_have_std_namespace+:} false; then :
25652 $as_echo_n "(cached) " >&6
25656 ac_cpp='$CXXCPP $CPPFLAGS'
25657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662 /* end confdefs.h. */
25663 #include <iostream>
25664 std::istream& is = std::cin;
25673 if ac_fn_cxx_try_compile "$LINENO"; then :
25674 ax_cv_cxx_have_std_namespace=yes
25676 ax_cv_cxx_have_std_namespace=no
25678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25680 ac_cpp='$CXXCPP $CPPFLAGS'
25681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25688 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25689 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25691 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25696 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25697 if ${ac_cv_cxx_have_std_libs+:} false; then :
25698 $as_echo_n "(cached) " >&6
25703 ac_cpp='$CXXCPP $CPPFLAGS'
25704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709 /* end confdefs.h. */
25710 #include <iostream>
25714 #ifdef HAVE_NAMESPACES
25715 using namespace std;
25725 if ac_fn_cxx_try_compile "$LINENO"; then :
25726 ac_cv_cxx_have_std_libs=yes
25728 ac_cv_cxx_have_std_libs=no
25730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732 ac_cpp='$CXXCPP $CPPFLAGS'
25733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25740 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25741 if test "$ac_cv_cxx_have_std_libs" = yes; then
25743 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25749 # Check whether --enable-openmp was given.
25750 if test "${enable_openmp+set}" = set; then :
25751 enableval=$enable_openmp;
25754 if test "$enable_openmp" != no; then
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25756 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
25757 if ${ac_cv_prog_cxx_openmp+:} false; then :
25758 $as_echo_n "(cached) " >&6
25760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761 /* end confdefs.h. */
25767 int main () { return omp_get_num_threads (); }
25770 if ac_fn_cxx_try_link "$LINENO"; then :
25771 ac_cv_prog_cxx_openmp='none needed'
25773 ac_cv_prog_cxx_openmp='unsupported'
25774 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25775 ac_save_CXXFLAGS=$CXXFLAGS
25776 CXXFLAGS="$CXXFLAGS $ac_option"
25777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778 /* end confdefs.h. */
25784 int main () { return omp_get_num_threads (); }
25787 if ac_fn_cxx_try_link "$LINENO"; then :
25788 ac_cv_prog_cxx_openmp=$ac_option
25790 rm -f core conftest.err conftest.$ac_objext \
25791 conftest$ac_exeext conftest.$ac_ext
25792 CXXFLAGS=$ac_save_CXXFLAGS
25793 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25798 rm -f core conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
25802 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25803 case $ac_cv_prog_cxx_openmp in #(
25804 "none needed" | unsupported)
25807 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
25813 ac_cpp='$CPP $CPPFLAGS'
25814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
25820 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25822 test $ax_cv_cxx_bool = 'yes' && \
25823 test $ax_cv_cxx_namespaces = 'yes' && \
25824 test $ac_cv_cxx_have_std_libs = 'yes' && \
25825 test $ax_cv_cxx_have_std_namespace = 'yes'; then
25826 have_magick_plus_plus='yes'
25828 have_magick_plus_plus='no (failed tests)'
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25831 $as_echo "$as_me: $have_magick_plus_plus" >&6;}
25834 if test "$have_magick_plus_plus" = 'yes'; then
25835 WITH_MAGICK_PLUS_PLUS_TRUE=
25836 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25838 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25839 WITH_MAGICK_PLUS_PLUS_FALSE=
25843 # Only check for delegate libraries in subdirectories if requested.
25844 if test "$enable_delegate_build" != 'no'; then
25845 # Check for delegate sub-directories and add -I & -L options as required.
25846 # This presumes that delegates are installed as detailed in the ImageMagick
25847 # README. If delegates are installed in a standard location where the
25848 # compiler will automatically find them then these options should not be
25852 # Most delegates have includes in the same directory as the library, but not all...
25855 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
25856 if test -d "$builddir/$dir"; then
25857 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25859 if test -d "$srcdirfull/$dir"; then
25860 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25866 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
25867 if test -d "$builddir/$dir/.libs"; then
25868 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25870 if test -d "$srcdirfull/$dir/.libs"; then
25871 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25874 if test -d "$builddir/$dir"; then
25875 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25877 if test -d "$srcdirfull/$dir"; then
25878 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25884 # Assume that delegate headers reside under same directory as ImageMagick
25885 # installation prefix.
25886 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25889 # Find the X11 RGB database
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
25892 $as_echo_n "checking for X11 configure files... " >&6; }
25893 if ${im_cv_x_configure+:} false; then :
25894 $as_echo_n "(cached) " >&6
25896 # Look for the header file in a standard set of common directories.
25897 # Check X11 before X11Rn because it is often a symlink to the current release.
25906 /usr/XFree86/lib/X11 \
25914 /usr/local/X11/lib \
25915 /usr/local/X11R4/lib \
25916 /usr/local/X11R5/lib \
25917 /usr/local/X11R6/lib \
25919 /usr/local/lib/X11 \
25920 /usr/local/lib/X11R4 \
25921 /usr/local/lib/X11R5 \
25922 /usr/local/lib/X11R6 \
25923 /usr/local/lib/X11R7 \
25924 /usr/local/x11r5/lib \
25925 /usr/lpp/Xamples/lib \
25927 /usr/openwin/share/lib \
25928 /usr/unsupported/lib \
25931 if test -f "$ac_dir/X11/rgb.txt"; then
25932 im_cv_x_configure="$ac_dir/X11/"
25934 elif test -f "$ac_dir/rgb.txt"; then
25935 im_cv_x_configure="$ac_dir/"
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
25942 $as_echo "$im_cv_x_configure" >&6; }
25943 X11_CONFIGURE_PATH="$im_cv_x_configure"
25944 case "${build_os}" in
25946 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25950 cat >>confdefs.h <<_ACEOF
25951 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
25956 # Find OpenMP library
25959 if test "$enable_openmp" != 'no'; then
25960 if test "${GCC}" = "yes"; then
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
25962 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
25963 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
25964 $as_echo_n "(cached) " >&6
25966 ac_check_lib_save_LIBS=$LIBS
25967 LIBS="-lgomp $LIBS"
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h. */
25971 /* Override any GCC internal prototype to avoid an error.
25972 Use char because int might match the return type of a GCC
25973 builtin and then its argument prototype would still apply. */
25977 char GOMP_parallel_start ();
25981 return GOMP_parallel_start ();
25986 if ac_fn_c_try_link "$LINENO"; then :
25987 ac_cv_lib_gomp_GOMP_parallel_start=yes
25989 ac_cv_lib_gomp_GOMP_parallel_start=no
25991 rm -f core conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
25993 LIBS=$ac_check_lib_save_LIBS
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25996 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25997 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26003 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26004 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26005 $as_echo_n "(cached) " >&6
26007 ac_check_lib_save_LIBS=$LIBS
26008 LIBS="-lmtsk $LIBS"
26009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26010 /* end confdefs.h. */
26012 /* Override any GCC internal prototype to avoid an error.
26013 Use char because int might match the return type of a GCC
26014 builtin and then its argument prototype would still apply. */
26018 char sunw_mp_register_warn ();
26022 return sunw_mp_register_warn ();
26027 if ac_fn_c_try_link "$LINENO"; then :
26028 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26030 ac_cv_lib_mtsk_sunw_mp_register_warn=no
26032 rm -f core conftest.err conftest.$ac_objext \
26033 conftest$ac_exeext conftest.$ac_ext
26034 LIBS=$ac_check_lib_save_LIBS
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26037 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26038 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26043 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26044 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26045 $as_echo_n "(cached) " >&6
26047 ac_check_lib_save_LIBS=$LIBS
26048 LIBS="-lxlsmp $LIBS"
26049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26050 /* end confdefs.h. */
26052 /* Override any GCC internal prototype to avoid an error.
26053 Use char because int might match the return type of a GCC
26054 builtin and then its argument prototype would still apply. */
26058 char _xlsmpFlush ();
26062 return _xlsmpFlush ();
26067 if ac_fn_c_try_link "$LINENO"; then :
26068 ac_cv_lib_xlsmp__xlsmpFlush=yes
26070 ac_cv_lib_xlsmp__xlsmpFlush=no
26072 rm -f core conftest.err conftest.$ac_objext \
26073 conftest$ac_exeext conftest.$ac_ext
26074 LIBS=$ac_check_lib_save_LIBS
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26077 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26078 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26079 GOMP_LIBS="-lxlsmp"
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26083 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26084 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26085 $as_echo_n "(cached) " >&6
26087 ac_check_lib_save_LIBS=$LIBS
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h. */
26092 /* Override any GCC internal prototype to avoid an error.
26093 Use char because int might match the return type of a GCC
26094 builtin and then its argument prototype would still apply. */
26098 char mp_destroy ();
26102 return mp_destroy ();
26107 if ac_fn_c_try_link "$LINENO"; then :
26108 ac_cv_lib_mp_mp_destroy=yes
26110 ac_cv_lib_mp_mp_destroy=no
26112 rm -f core conftest.err conftest.$ac_objext \
26113 conftest$ac_exeext conftest.$ac_ext
26114 LIBS=$ac_check_lib_save_LIBS
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26117 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26118 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26121 # SGI IRIX 6.5 MIPSpro C/C++
26123 LIBS="$GOMP_LIBS $LIBS"
26128 # Find Posix threads library
26131 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26133 if test "x$PTHREAD_LIBS" = "x"; then
26134 case "${host_cpu}-${host_os}" in
26140 ac_cpp='$CPP $CPPFLAGS'
26141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26145 magick_pthread_lib_ok=no
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26152 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h. */
26155 #include <pthread.h>
26160 pthread_join(th, 0);
26161 pthread_attr_init(0);
26162 pthread_cleanup_push(0, 0);
26163 pthread_create(0,0,0,0);
26164 pthread_cleanup_pop(0);
26169 if ac_fn_c_try_link "$LINENO"; then :
26170 magick_pthread_lib_ok=yes
26172 rm -f core conftest.err conftest.$ac_objext \
26173 conftest$ac_exeext conftest.$ac_ext
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26176 $as_echo "${magick_pthread_lib_ok}" >&6; }
26177 if test "$magick_pthread_lib_ok" = yes
26189 ac_cpp='$CPP $CPPFLAGS'
26190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26198 for lib in pthread pthreads; do
26199 if test "x$PTHREAD_LIBS" = "x"; then
26204 ac_cpp='$CPP $CPPFLAGS'
26205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26209 magick_pthread_lib_ok=no
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26216 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
26217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26218 /* end confdefs.h. */
26219 #include <pthread.h>
26224 pthread_join(th, 0);
26225 pthread_attr_init(0);
26226 pthread_cleanup_push(0, 0);
26227 pthread_create(0,0,0,0);
26228 pthread_cleanup_pop(0);
26233 if ac_fn_c_try_link "$LINENO"; then :
26234 magick_pthread_lib_ok=yes
26236 rm -f core conftest.err conftest.$ac_objext \
26237 conftest$ac_exeext conftest.$ac_ext
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26240 $as_echo "${magick_pthread_lib_ok}" >&6; }
26241 if test "$magick_pthread_lib_ok" = yes
26243 PTHREAD_LIBS=-l$lib
26253 ac_cpp='$CPP $CPPFLAGS'
26254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26262 THREAD_LIBS="$PTHREAD_LIBS"
26263 LIBS="$LIBS $THREAD_LIBS"
26272 if test "$with_umem" != 'no'; then
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26274 $as_echo_n "checking for UMEM support ... " >&6; }
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26276 $as_echo "$as_me: " >&6;}
26279 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26280 if test "x$ac_cv_header_umem_h" = xyes; then :
26281 passed=`expr $passed + 1`
26283 failed=`expr $failed + 1`
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26288 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26289 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26290 $as_echo_n "(cached) " >&6
26292 ac_check_lib_save_LIBS=$LIBS
26293 LIBS="-lumem $LIBS"
26294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h. */
26297 /* Override any GCC internal prototype to avoid an error.
26298 Use char because int might match the return type of a GCC
26299 builtin and then its argument prototype would still apply. */
26303 char umem_alloc ();
26307 return umem_alloc ();
26312 if ac_fn_c_try_link "$LINENO"; then :
26313 ac_cv_lib_umem_umem_alloc=yes
26315 ac_cv_lib_umem_umem_alloc=no
26317 rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
26319 LIBS=$ac_check_lib_save_LIBS
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26322 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26323 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26324 passed=`expr $passed + 1`
26326 failed=`expr $failed + 1`
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26330 $as_echo_n "checking for umem_free in -lumem... " >&6; }
26331 if ${ac_cv_lib_umem_umem_free+:} false; then :
26332 $as_echo_n "(cached) " >&6
26334 ac_check_lib_save_LIBS=$LIBS
26335 LIBS="-lumem $LIBS"
26336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337 /* end confdefs.h. */
26339 /* Override any GCC internal prototype to avoid an error.
26340 Use char because int might match the return type of a GCC
26341 builtin and then its argument prototype would still apply. */
26349 return umem_free ();
26354 if ac_fn_c_try_link "$LINENO"; then :
26355 ac_cv_lib_umem_umem_free=yes
26357 ac_cv_lib_umem_umem_free=no
26359 rm -f core conftest.err conftest.$ac_objext \
26360 conftest$ac_exeext conftest.$ac_ext
26361 LIBS=$ac_check_lib_save_LIBS
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26364 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26365 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26366 passed=`expr $passed + 1`
26368 failed=`expr $failed + 1`
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26372 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26373 if test $passed -gt 0; then
26374 if test $failed -gt 0; then
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26376 $as_echo "$as_me: no -- some components failed test" >&6;}
26377 have_umem='no (failed tests)'
26380 LIBS="$UMEM_LIBS $LIBS"
26382 $as_echo "#define HasUMEM 1" >>confdefs.h
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26385 $as_echo "$as_me: yes" >&6;}
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26390 $as_echo "$as_me: no" >&6;}
26393 if test "$have_umem" = 'yes'; then
26404 # Add support for ccmalloc memory debugging library if requested
26408 if test "$enable_ccmalloc" = 'yes'; then
26409 # Extract the first word of "ccmalloc", so it can be a program name with args.
26410 set dummy ccmalloc; ac_word=$2
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26412 $as_echo_n "checking for $ac_word... " >&6; }
26413 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26414 $as_echo_n "(cached) " >&6
26416 case $CCMALLOCDelegate in
26418 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26422 for as_dir in $PATH
26425 test -z "$as_dir" && as_dir=.
26426 for ac_exec_ext in '' $ac_executable_extensions; do
26427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26428 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26439 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26440 if test -n "$CCMALLOCDelegate"; then
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26442 $as_echo "$CCMALLOCDelegate" >&6; }
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445 $as_echo "no" >&6; }
26449 if test -n "$CCMALLOCDelegate"; then
26450 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26452 # Assume that gcc is used with ccmalloc.
26453 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26455 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26456 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26457 $as_echo_n "(cached) " >&6
26459 ac_check_lib_save_LIBS=$LIBS
26460 LIBS="-lccmalloc -ldl $LIBS"
26461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462 /* end confdefs.h. */
26464 /* Override any GCC internal prototype to avoid an error.
26465 Use char because int might match the return type of a GCC
26466 builtin and then its argument prototype would still apply. */
26470 char ccmalloc_malloc ();
26474 return ccmalloc_malloc ();
26479 if ac_fn_c_try_link "$LINENO"; then :
26480 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26482 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26484 rm -f core conftest.err conftest.$ac_objext \
26485 conftest$ac_exeext conftest.$ac_ext
26486 LIBS=$ac_check_lib_save_LIBS
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26489 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26490 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26491 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26494 if test -n "$CCMALLOC_LIBS"; then
26496 LIBS="$LIBS $CCMALLOC_LIBS"
26497 have_ccmalloc='yes'
26505 # Add support for efence memory debugging library if requested
26507 if test "$enable_efence" = 'yes'; then
26508 EFENCE_LIBS='-lefence'
26509 LIBS="$EFENCE_LIBS $LIBS"
26518 # Check whether --with-bzlib was given.
26519 if test "${with_bzlib+set}" = set; then :
26520 withval=$with_bzlib; with_bzlib=$withval
26526 if test "$with_bzlib" != 'yes'; then
26527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26531 if test "$with_bzlib" != 'no'; then
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26534 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26536 $as_echo_n "checking for BZLIB... " >&6; }
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26538 $as_echo "$as_me: " >&6;}
26542 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26543 if test "x$ac_cv_header_bzlib_h" = xyes; then :
26544 passed=`expr $passed + 1`
26546 failed=`expr $failed + 1`
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26551 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26552 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26553 $as_echo_n "(cached) " >&6
26555 ac_check_lib_save_LIBS=$LIBS
26557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26558 /* end confdefs.h. */
26560 /* Override any GCC internal prototype to avoid an error.
26561 Use char because int might match the return type of a GCC
26562 builtin and then its argument prototype would still apply. */
26566 char BZ2_bzDecompress ();
26570 return BZ2_bzDecompress ();
26575 if ac_fn_c_try_link "$LINENO"; then :
26576 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26578 ac_cv_lib_bz2_BZ2_bzDecompress=no
26580 rm -f core conftest.err conftest.$ac_objext \
26581 conftest$ac_exeext conftest.$ac_ext
26582 LIBS=$ac_check_lib_save_LIBS
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26585 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26586 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26587 found_libbz=`expr $found_libbz + 1`
26590 if test "$native_win32_build" = 'yes'; then
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26592 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26593 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26594 $as_echo_n "(cached) " >&6
26596 ac_check_lib_save_LIBS=$LIBS
26598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26599 /* end confdefs.h. */
26601 /* Override any GCC internal prototype to avoid an error.
26602 Use char because int might match the return type of a GCC
26603 builtin and then its argument prototype would still apply. */
26607 char _imp__BZ2_decompress ();
26611 return _imp__BZ2_decompress ();
26616 if ac_fn_c_try_link "$LINENO"; then :
26617 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26619 ac_cv_lib_bz2__imp__BZ2_decompress=no
26621 rm -f core conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
26623 LIBS=$ac_check_lib_save_LIBS
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26626 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26627 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26628 found_libbz=`expr $found_libbz + 1`
26632 if test $found_libbz -gt 0; then
26633 passed=`expr $passed + 1`
26635 failed=`expr $failed + 1`
26637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26638 $as_echo_n "checking if BZLIB package is complete... " >&6; }
26639 if test $passed -gt 0; then
26640 if test $failed -gt 0; then
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26642 $as_echo "$as_me: no -- some components failed test" >&6;}
26643 have_bzlib='no (failed tests)'
26646 LIBS="$BZLIB_LIBS $LIBS"
26648 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26651 $as_echo "$as_me: yes" >&6;}
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26656 $as_echo "$as_me: no" >&6;}
26659 if test "$have_bzlib" = 'yes'; then
26660 BZLIB_DELEGATE_TRUE=
26661 BZLIB_DELEGATE_FALSE='#'
26663 BZLIB_DELEGATE_TRUE='#'
26664 BZLIB_DELEGATE_FALSE=
26670 # Find the X11 include and library directories.
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26677 $as_echo_n "checking for X... " >&6; }
26680 # Check whether --with-x was given.
26681 if test "${with_x+set}" = set; then :
26685 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26686 if test "x$with_x" = xno; then
26687 # The user explicitly disabled X.
26690 case $x_includes,$x_libraries in #(
26691 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26692 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26693 $as_echo_n "(cached) " >&6
26695 # One or both of the vars are not set, and there is no cached value.
26696 ac_x_includes=no ac_x_libraries=no
26697 rm -f -r conftest.dir
26698 if mkdir conftest.dir; then
26700 cat >Imakefile <<'_ACEOF'
26702 @echo incroot='${INCROOT}'
26704 @echo usrlibdir='${USRLIBDIR}'
26706 @echo libdir='${LIBDIR}'
26708 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26710 for ac_var in incroot usrlibdir libdir; do
26711 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26713 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26714 for ac_extension in a so sl dylib la dll; do
26715 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26716 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26717 ac_im_usrlibdir=$ac_im_libdir; break
26720 # Screen out bogus values from the imake configuration. They are
26721 # bogus both because they are the default anyway, and because
26722 # using them would break gcc on systems where it needs fixed includes.
26723 case $ac_im_incroot in
26724 /usr/include) ac_x_includes= ;;
26725 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26727 case $ac_im_usrlibdir in
26728 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26729 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26733 rm -f -r conftest.dir
26736 # Standard set of common directories for X headers.
26737 # Check X11 before X11Rn because it is often a symlink to the current release.
26751 /usr/local/X11/include
26752 /usr/local/X11R7/include
26753 /usr/local/X11R6/include
26754 /usr/local/X11R5/include
26755 /usr/local/X11R4/include
26757 /usr/local/include/X11
26758 /usr/local/include/X11R7
26759 /usr/local/include/X11R6
26760 /usr/local/include/X11R5
26761 /usr/local/include/X11R4
26765 /usr/XFree86/include/X11
26769 /usr/unsupported/include
26770 /usr/athena/include
26771 /usr/local/x11r5/include
26772 /usr/lpp/Xamples/include
26774 /usr/openwin/include
26775 /usr/openwin/share/include'
26777 if test "$ac_x_includes" = no; then
26778 # Guess where to find include files, by looking for Xlib.h.
26779 # First, try using that file with no special directory specified.
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h. */
26782 #include <X11/Xlib.h>
26784 if ac_fn_c_try_cpp "$LINENO"; then :
26785 # We can compile using X headers with no special include directory.
26788 for ac_dir in $ac_x_header_dirs; do
26789 if test -r "$ac_dir/X11/Xlib.h"; then
26790 ac_x_includes=$ac_dir
26795 rm -f conftest.err conftest.i conftest.$ac_ext
26796 fi # $ac_x_includes = no
26798 if test "$ac_x_libraries" = no; then
26799 # Check for the libraries.
26800 # See if we find them without any special options.
26801 # Don't add to $LIBS permanently.
26804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805 /* end confdefs.h. */
26806 #include <X11/Xlib.h>
26815 if ac_fn_c_try_link "$LINENO"; then :
26817 # We can link X programs with no special library path.
26821 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26823 # Don't even attempt the hair of trying to link an X program!
26824 for ac_extension in a so sl dylib la dll; do
26825 if test -r "$ac_dir/libX11.$ac_extension"; then
26826 ac_x_libraries=$ac_dir
26832 rm -f core conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
26834 fi # $ac_x_libraries = no
26836 case $ac_x_includes,$ac_x_libraries in #(
26837 no,* | *,no | *\'*)
26838 # Didn't find X, or a directory has "'" in its name.
26839 ac_cv_have_x="have_x=no";; #(
26841 # Record where we found X for the cache.
26842 ac_cv_have_x="have_x=yes\
26843 ac_x_includes='$ac_x_includes'\
26844 ac_x_libraries='$ac_x_libraries'"
26850 eval "$ac_cv_have_x"
26853 if test "$have_x" != yes; then
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
26855 $as_echo "$have_x" >&6; }
26858 # If each of the values was on the command line, it overrides each guess.
26859 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26860 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26861 # Update the cache value to reflect the command line values.
26862 ac_cv_have_x="have_x=yes\
26863 ac_x_includes='$x_includes'\
26864 ac_x_libraries='$x_libraries'"
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
26866 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26869 if test "$no_x" = yes; then
26870 # Not all programs may use this symbol, but it does not hurt to define it.
26872 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
26874 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26876 if test -n "$x_includes"; then
26877 X_CFLAGS="$X_CFLAGS -I$x_includes"
26880 # It would also be nice to do this for all -L options, not just this one.
26881 if test -n "$x_libraries"; then
26882 X_LIBS="$X_LIBS -L$x_libraries"
26883 # For Solaris; some versions of Sun CC require a space after -R and
26884 # others require no space. Words are not sufficient . . . .
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
26886 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
26887 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26888 ac_xsave_c_werror_flag=$ac_c_werror_flag
26889 ac_c_werror_flag=yes
26890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26891 /* end confdefs.h. */
26901 if ac_fn_c_try_link "$LINENO"; then :
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26903 $as_echo "no" >&6; }
26904 X_LIBS="$X_LIBS -R$x_libraries"
26906 LIBS="$ac_xsave_LIBS -R $x_libraries"
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h. */
26918 if ac_fn_c_try_link "$LINENO"; then :
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26920 $as_echo "yes" >&6; }
26921 X_LIBS="$X_LIBS -R $x_libraries"
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
26924 $as_echo "neither works" >&6; }
26926 rm -f core conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
26929 rm -f core conftest.err conftest.$ac_objext \
26930 conftest$ac_exeext conftest.$ac_ext
26931 ac_c_werror_flag=$ac_xsave_c_werror_flag
26932 LIBS=$ac_xsave_LIBS
26935 # Check for system-dependent libraries X programs must link with.
26936 # Do this before checking for the system-independent R6 libraries
26937 # (-lICE), since we may need -lsocket or whatever for X linking.
26939 if test "$ISC" = yes; then
26940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26942 # Martyn Johnson says this is needed for Ultrix, if the X
26943 # libraries were built with DECnet support. And Karl Berry says
26944 # the Alpha needs dnet_stub (dnet does not exist).
26945 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26949 /* Override any GCC internal prototype to avoid an error.
26950 Use char because int might match the return type of a GCC
26951 builtin and then its argument prototype would still apply. */
26955 char XOpenDisplay ();
26959 return XOpenDisplay ();
26964 if ac_fn_c_try_link "$LINENO"; then :
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26968 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26969 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
26970 $as_echo_n "(cached) " >&6
26972 ac_check_lib_save_LIBS=$LIBS
26973 LIBS="-ldnet $LIBS"
26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h. */
26977 /* Override any GCC internal prototype to avoid an error.
26978 Use char because int might match the return type of a GCC
26979 builtin and then its argument prototype would still apply. */
26987 return dnet_ntoa ();
26992 if ac_fn_c_try_link "$LINENO"; then :
26993 ac_cv_lib_dnet_dnet_ntoa=yes
26995 ac_cv_lib_dnet_dnet_ntoa=no
26997 rm -f core conftest.err conftest.$ac_objext \
26998 conftest$ac_exeext conftest.$ac_ext
26999 LIBS=$ac_check_lib_save_LIBS
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27002 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27003 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27004 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27007 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27009 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27010 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27011 $as_echo_n "(cached) " >&6
27013 ac_check_lib_save_LIBS=$LIBS
27014 LIBS="-ldnet_stub $LIBS"
27015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27016 /* end confdefs.h. */
27018 /* Override any GCC internal prototype to avoid an error.
27019 Use char because int might match the return type of a GCC
27020 builtin and then its argument prototype would still apply. */
27028 return dnet_ntoa ();
27033 if ac_fn_c_try_link "$LINENO"; then :
27034 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27036 ac_cv_lib_dnet_stub_dnet_ntoa=no
27038 rm -f core conftest.err conftest.$ac_objext \
27039 conftest$ac_exeext conftest.$ac_ext
27040 LIBS=$ac_check_lib_save_LIBS
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27043 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27044 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27045 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27050 rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
27052 LIBS="$ac_xsave_LIBS"
27054 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27055 # to get the SysV transport functions.
27056 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27058 # The nsl library prevents programs from opening the X display
27059 # on Irix 5.2, according to T.E. Dickey.
27060 # The functions gethostbyname, getservbyname, and inet_addr are
27061 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27062 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27063 if test "x$ac_cv_func_gethostbyname" = xyes; then :
27067 if test $ac_cv_func_gethostbyname = no; then
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27069 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27070 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27071 $as_echo_n "(cached) " >&6
27073 ac_check_lib_save_LIBS=$LIBS
27075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27076 /* end confdefs.h. */
27078 /* Override any GCC internal prototype to avoid an error.
27079 Use char because int might match the return type of a GCC
27080 builtin and then its argument prototype would still apply. */
27084 char gethostbyname ();
27088 return gethostbyname ();
27093 if ac_fn_c_try_link "$LINENO"; then :
27094 ac_cv_lib_nsl_gethostbyname=yes
27096 ac_cv_lib_nsl_gethostbyname=no
27098 rm -f core conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
27100 LIBS=$ac_check_lib_save_LIBS
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27103 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27104 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27108 if test $ac_cv_lib_nsl_gethostbyname = no; then
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27110 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27111 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27112 $as_echo_n "(cached) " >&6
27114 ac_check_lib_save_LIBS=$LIBS
27116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27117 /* end confdefs.h. */
27119 /* Override any GCC internal prototype to avoid an error.
27120 Use char because int might match the return type of a GCC
27121 builtin and then its argument prototype would still apply. */
27125 char gethostbyname ();
27129 return gethostbyname ();
27134 if ac_fn_c_try_link "$LINENO"; then :
27135 ac_cv_lib_bsd_gethostbyname=yes
27137 ac_cv_lib_bsd_gethostbyname=no
27139 rm -f core conftest.err conftest.$ac_objext \
27140 conftest$ac_exeext conftest.$ac_ext
27141 LIBS=$ac_check_lib_save_LIBS
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27144 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27145 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27152 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27153 # socket/setsockopt and other routines are undefined under SCO ODT
27154 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27155 # on later versions), says Simon Leinen: it contains gethostby*
27156 # variants that don't use the name server (or something). -lsocket
27157 # must be given before -lnsl if both are needed. We assume that
27158 # if connect needs -lnsl, so does gethostbyname.
27159 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27160 if test "x$ac_cv_func_connect" = xyes; then :
27164 if test $ac_cv_func_connect = no; then
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27166 $as_echo_n "checking for connect in -lsocket... " >&6; }
27167 if ${ac_cv_lib_socket_connect+:} false; then :
27168 $as_echo_n "(cached) " >&6
27170 ac_check_lib_save_LIBS=$LIBS
27171 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173 /* end confdefs.h. */
27175 /* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
27190 if ac_fn_c_try_link "$LINENO"; then :
27191 ac_cv_lib_socket_connect=yes
27193 ac_cv_lib_socket_connect=no
27195 rm -f core conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext conftest.$ac_ext
27197 LIBS=$ac_check_lib_save_LIBS
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27200 $as_echo "$ac_cv_lib_socket_connect" >&6; }
27201 if test "x$ac_cv_lib_socket_connect" = xyes; then :
27202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27207 # Guillermo Gomez says -lposix is necessary on A/UX.
27208 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27209 if test "x$ac_cv_func_remove" = xyes; then :
27213 if test $ac_cv_func_remove = no; then
27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27215 $as_echo_n "checking for remove in -lposix... " >&6; }
27216 if ${ac_cv_lib_posix_remove+:} false; then :
27217 $as_echo_n "(cached) " >&6
27219 ac_check_lib_save_LIBS=$LIBS
27220 LIBS="-lposix $LIBS"
27221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27222 /* end confdefs.h. */
27224 /* Override any GCC internal prototype to avoid an error.
27225 Use char because int might match the return type of a GCC
27226 builtin and then its argument prototype would still apply. */
27239 if ac_fn_c_try_link "$LINENO"; then :
27240 ac_cv_lib_posix_remove=yes
27242 ac_cv_lib_posix_remove=no
27244 rm -f core conftest.err conftest.$ac_objext \
27245 conftest$ac_exeext conftest.$ac_ext
27246 LIBS=$ac_check_lib_save_LIBS
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27249 $as_echo "$ac_cv_lib_posix_remove" >&6; }
27250 if test "x$ac_cv_lib_posix_remove" = xyes; then :
27251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27256 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27257 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27258 if test "x$ac_cv_func_shmat" = xyes; then :
27262 if test $ac_cv_func_shmat = no; then
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27264 $as_echo_n "checking for shmat in -lipc... " >&6; }
27265 if ${ac_cv_lib_ipc_shmat+:} false; then :
27266 $as_echo_n "(cached) " >&6
27268 ac_check_lib_save_LIBS=$LIBS
27270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27271 /* end confdefs.h. */
27273 /* Override any GCC internal prototype to avoid an error.
27274 Use char because int might match the return type of a GCC
27275 builtin and then its argument prototype would still apply. */
27288 if ac_fn_c_try_link "$LINENO"; then :
27289 ac_cv_lib_ipc_shmat=yes
27291 ac_cv_lib_ipc_shmat=no
27293 rm -f core conftest.err conftest.$ac_objext \
27294 conftest$ac_exeext conftest.$ac_ext
27295 LIBS=$ac_check_lib_save_LIBS
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27298 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27299 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27306 # Check for libraries that X11R6 Xt/Xaw programs need.
27307 ac_save_LDFLAGS=$LDFLAGS
27308 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27309 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27310 # check for ICE first), but we must link in the order -lSM -lICE or
27311 # we get undefined symbols. So assume we have SM if we have ICE.
27312 # These have to be linked with before -lX11, unlike the other
27313 # libraries we check for below, so use a different variable.
27314 # John Interrante, Karl Berry
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27316 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27317 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27318 $as_echo_n "(cached) " >&6
27320 ac_check_lib_save_LIBS=$LIBS
27321 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27323 /* end confdefs.h. */
27325 /* Override any GCC internal prototype to avoid an error.
27326 Use char because int might match the return type of a GCC
27327 builtin and then its argument prototype would still apply. */
27331 char IceConnectionNumber ();
27335 return IceConnectionNumber ();
27340 if ac_fn_c_try_link "$LINENO"; then :
27341 ac_cv_lib_ICE_IceConnectionNumber=yes
27343 ac_cv_lib_ICE_IceConnectionNumber=no
27345 rm -f core conftest.err conftest.$ac_objext \
27346 conftest$ac_exeext conftest.$ac_ext
27347 LIBS=$ac_check_lib_save_LIBS
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27350 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27351 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27352 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27355 LDFLAGS=$ac_save_LDFLAGS
27359 if test "$no_x" != 'yes'; then
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27361 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27363 $as_echo_n "checking for X11... " >&6; }
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27365 $as_echo "$as_me: " >&6;}
27366 LDFLAGS="$LDFLAGS $X_LIBS"
27367 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27368 LIBS="$X11_LIBS $LIBS"
27369 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27372 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
27375 # Check for X11 shared memory extension
27377 # shmctl is required to support the shared memory extension
27378 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27379 if test "x$ac_cv_func_shmctl" = xyes; then :
27383 if test "$have_shmctl" != 'yes'; then
27385 LIBS="$LIBS -lcygipc"
27386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387 /* end confdefs.h. */
27389 /* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27404 if ac_fn_c_try_link "$LINENO"; then :
27405 have_shmctl='yes'; IPC_LIBS='-lcygipc'
27407 rm -f core conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
27412 if test "$have_shmctl" = 'yes'; then
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27414 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27415 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27416 $as_echo_n "(cached) " >&6
27418 ac_check_lib_save_LIBS=$LIBS
27419 LIBS="-lXext $LIBS"
27420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27421 /* end confdefs.h. */
27423 /* Override any GCC internal prototype to avoid an error.
27424 Use char because int might match the return type of a GCC
27425 builtin and then its argument prototype would still apply. */
27429 char XShmAttach ();
27433 return XShmAttach ();
27438 if ac_fn_c_try_link "$LINENO"; then :
27439 ac_cv_lib_Xext_XShmAttach=yes
27441 ac_cv_lib_Xext_XShmAttach=no
27443 rm -f core conftest.err conftest.$ac_objext \
27444 conftest$ac_exeext conftest.$ac_ext
27445 LIBS=$ac_check_lib_save_LIBS
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27448 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27449 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27450 XEXT_LIBS='-lXext' ;
27451 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27458 # Check for X11 shape extension
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27461 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27462 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27463 $as_echo_n "(cached) " >&6
27465 ac_check_lib_save_LIBS=$LIBS
27466 LIBS="-lXext $LIBS"
27467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27468 /* end confdefs.h. */
27470 /* Override any GCC internal prototype to avoid an error.
27471 Use char because int might match the return type of a GCC
27472 builtin and then its argument prototype would still apply. */
27476 char XShapeCombineMask ();
27480 return XShapeCombineMask ();
27485 if ac_fn_c_try_link "$LINENO"; then :
27486 ac_cv_lib_Xext_XShapeCombineMask=yes
27488 ac_cv_lib_Xext_XShapeCombineMask=no
27490 rm -f core conftest.err conftest.$ac_objext \
27491 conftest$ac_exeext conftest.$ac_ext
27492 LIBS=$ac_check_lib_save_LIBS
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27495 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27496 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27497 XEXT_LIBS='-lXext' ;
27498 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27503 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27504 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27505 $as_echo_n "(cached) " >&6
27507 ac_check_lib_save_LIBS=$LIBS
27509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27510 /* end confdefs.h. */
27512 /* Override any GCC internal prototype to avoid an error.
27513 Use char because int might match the return type of a GCC
27514 builtin and then its argument prototype would still apply. */
27518 char XtSetEventDispatcher ();
27522 return XtSetEventDispatcher ();
27527 if ac_fn_c_try_link "$LINENO"; then :
27528 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27530 ac_cv_lib_Xt_XtSetEventDispatcher=no
27532 rm -f core conftest.err conftest.$ac_objext \
27533 conftest$ac_exeext conftest.$ac_ext
27534 LIBS=$ac_check_lib_save_LIBS
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27537 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27538 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27542 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27544 if test "$no_x" != 'yes'; then
27549 if test "$have_x" = 'yes'; then
27551 X11_DELEGATE_FALSE='#'
27553 X11_DELEGATE_TRUE='#'
27554 X11_DELEGATE_FALSE=
27565 # Check whether --with-zlib was given.
27566 if test "${with_zlib+set}" = set; then :
27567 withval=$with_zlib; with_zlib=$withval
27573 if test "$with_zlib" != 'yes'; then
27574 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27579 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27581 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27583 $as_echo_n "checking for ZLIB... " >&6; }
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27585 $as_echo "$as_me: " >&6;}
27589 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27590 if test "x$ac_cv_header_zconf_h" = xyes; then :
27591 passed=`expr $passed + 1`
27593 failed=`expr $failed + 1`
27597 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27598 if test "x$ac_cv_header_zlib_h" = xyes; then :
27599 passed=`expr $passed + 1`
27601 failed=`expr $failed + 1`
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27606 $as_echo_n "checking for compress in -lz... " >&6; }
27607 if ${ac_cv_lib_z_compress+:} false; then :
27608 $as_echo_n "(cached) " >&6
27610 ac_check_lib_save_LIBS=$LIBS
27612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27613 /* end confdefs.h. */
27615 /* Override any GCC internal prototype to avoid an error.
27616 Use char because int might match the return type of a GCC
27617 builtin and then its argument prototype would still apply. */
27625 return compress ();
27630 if ac_fn_c_try_link "$LINENO"; then :
27631 ac_cv_lib_z_compress=yes
27633 ac_cv_lib_z_compress=no
27635 rm -f core conftest.err conftest.$ac_objext \
27636 conftest$ac_exeext conftest.$ac_ext
27637 LIBS=$ac_check_lib_save_LIBS
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27640 $as_echo "$ac_cv_lib_z_compress" >&6; }
27641 if test "x$ac_cv_lib_z_compress" = xyes; then :
27642 passed=`expr $passed + 1`
27644 failed=`expr $failed + 1`
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27648 $as_echo_n "checking for uncompress in -lz... " >&6; }
27649 if ${ac_cv_lib_z_uncompress+:} false; then :
27650 $as_echo_n "(cached) " >&6
27652 ac_check_lib_save_LIBS=$LIBS
27654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27655 /* end confdefs.h. */
27657 /* Override any GCC internal prototype to avoid an error.
27658 Use char because int might match the return type of a GCC
27659 builtin and then its argument prototype would still apply. */
27663 char uncompress ();
27667 return uncompress ();
27672 if ac_fn_c_try_link "$LINENO"; then :
27673 ac_cv_lib_z_uncompress=yes
27675 ac_cv_lib_z_uncompress=no
27677 rm -f core conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
27679 LIBS=$ac_check_lib_save_LIBS
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27682 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
27683 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27684 passed=`expr $passed + 1`
27686 failed=`expr $failed + 1`
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27690 $as_echo_n "checking for deflate in -lz... " >&6; }
27691 if ${ac_cv_lib_z_deflate+:} false; then :
27692 $as_echo_n "(cached) " >&6
27694 ac_check_lib_save_LIBS=$LIBS
27696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27697 /* end confdefs.h. */
27699 /* Override any GCC internal prototype to avoid an error.
27700 Use char because int might match the return type of a GCC
27701 builtin and then its argument prototype would still apply. */
27714 if ac_fn_c_try_link "$LINENO"; then :
27715 ac_cv_lib_z_deflate=yes
27717 ac_cv_lib_z_deflate=no
27719 rm -f core conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext conftest.$ac_ext
27721 LIBS=$ac_check_lib_save_LIBS
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27724 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27725 if test "x$ac_cv_lib_z_deflate" = xyes; then :
27726 passed=`expr $passed + 1`
27728 failed=`expr $failed + 1`
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
27732 $as_echo_n "checking for inflate in -lz... " >&6; }
27733 if ${ac_cv_lib_z_inflate+:} false; then :
27734 $as_echo_n "(cached) " >&6
27736 ac_check_lib_save_LIBS=$LIBS
27738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27739 /* end confdefs.h. */
27741 /* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27756 if ac_fn_c_try_link "$LINENO"; then :
27757 ac_cv_lib_z_inflate=yes
27759 ac_cv_lib_z_inflate=no
27761 rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
27763 LIBS=$ac_check_lib_save_LIBS
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
27766 $as_echo "$ac_cv_lib_z_inflate" >&6; }
27767 if test "x$ac_cv_lib_z_inflate" = xyes; then :
27768 passed=`expr $passed + 1`
27770 failed=`expr $failed + 1`
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
27774 $as_echo_n "checking for gzseek in -lz... " >&6; }
27775 if ${ac_cv_lib_z_gzseek+:} false; then :
27776 $as_echo_n "(cached) " >&6
27778 ac_check_lib_save_LIBS=$LIBS
27780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27781 /* end confdefs.h. */
27783 /* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27798 if ac_fn_c_try_link "$LINENO"; then :
27799 ac_cv_lib_z_gzseek=yes
27801 ac_cv_lib_z_gzseek=no
27803 rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
27805 LIBS=$ac_check_lib_save_LIBS
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
27808 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
27809 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
27810 passed=`expr $passed + 1`
27812 failed=`expr $failed + 1`
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
27816 $as_echo_n "checking for gztell in -lz... " >&6; }
27817 if ${ac_cv_lib_z_gztell+:} false; then :
27818 $as_echo_n "(cached) " >&6
27820 ac_check_lib_save_LIBS=$LIBS
27822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27823 /* end confdefs.h. */
27825 /* Override any GCC internal prototype to avoid an error.
27826 Use char because int might match the return type of a GCC
27827 builtin and then its argument prototype would still apply. */
27840 if ac_fn_c_try_link "$LINENO"; then :
27841 ac_cv_lib_z_gztell=yes
27843 ac_cv_lib_z_gztell=no
27845 rm -f core conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext conftest.$ac_ext
27847 LIBS=$ac_check_lib_save_LIBS
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
27850 $as_echo "$ac_cv_lib_z_gztell" >&6; }
27851 if test "x$ac_cv_lib_z_gztell" = xyes; then :
27852 passed=`expr $passed + 1`
27854 failed=`expr $failed + 1`
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
27858 $as_echo_n "checking if ZLIB package is complete... " >&6; }
27859 if test $passed -gt 0; then
27860 if test $failed -gt 0; then
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27862 $as_echo "$as_me: no -- some components failed test" >&6;}
27863 have_zlib='no (failed tests)'
27866 LIBS="$ZLIB_LIBS $LIBS"
27868 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27871 $as_echo "$as_me: yes" >&6;}
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27876 $as_echo "$as_me: no" >&6;}
27879 if test "$have_zlib" = 'yes'; then
27880 ZLIB_DELEGATE_TRUE=
27881 ZLIB_DELEGATE_FALSE='#'
27883 ZLIB_DELEGATE_TRUE='#'
27884 ZLIB_DELEGATE_FALSE=
27890 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27893 if test "$enable_profiling" = 'yes'; then
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27896 if ${ac_cv_lib_dl_dlopen+:} false; then :
27897 $as_echo_n "(cached) " >&6
27899 ac_check_lib_save_LIBS=$LIBS
27901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27902 /* end confdefs.h. */
27904 /* Override any GCC internal prototype to avoid an error.
27905 Use char because int might match the return type of a GCC
27906 builtin and then its argument prototype would still apply. */
27919 if ac_fn_c_try_link "$LINENO"; then :
27920 ac_cv_lib_dl_dlopen=yes
27922 ac_cv_lib_dl_dlopen=no
27924 rm -f core conftest.err conftest.$ac_objext \
27925 conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
27934 LIBS="$LIB_DL $LIBS"
27940 # Check for Autotrace delegate library.
27943 # Check whether --with-autotrace was given.
27944 if test "${with_autotrace+set}" = set; then :
27945 withval=$with_autotrace; with_autotrace=$withval
27947 with_autotrace='no'
27951 if test "$with_autotrace" != 'yes'; then
27952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27955 have_autotrace='no'
27956 AUTOTRACE_CFLAGS=""
27959 if test "x$with_autotrace" = "xyes"; then
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27961 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27965 $as_echo_n "checking for AUTOTRACE... " >&6; }
27967 if test -n "$AUTOTRACE_CFLAGS"; then
27968 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27969 elif test -n "$PKG_CONFIG"; then
27970 if test -n "$PKG_CONFIG" && \
27971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27972 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27975 test $ac_status = 0; }; then
27976 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27983 if test -n "$AUTOTRACE_LIBS"; then
27984 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27985 elif test -n "$PKG_CONFIG"; then
27986 if test -n "$PKG_CONFIG" && \
27987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27988 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27991 test $ac_status = 0; }; then
27992 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28002 if test $pkg_failed = yes; then
28004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28005 _pkg_short_errors_supported=yes
28007 _pkg_short_errors_supported=no
28009 if test $_pkg_short_errors_supported = yes; then
28010 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28012 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28014 # Put the nasty error message in config.log where it belongs
28015 echo "$AUTOTRACE_PKG_ERRORS" >&5
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28018 $as_echo "no" >&6; }
28020 elif test $pkg_failed = untried; then
28023 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28024 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28026 $as_echo "yes" >&6; }
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28030 $as_echo "$as_me: " >&6;}
28033 if test "$have_autotrace" = 'yes'; then
28036 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28038 if test "$with_modules" = 'no'; then
28039 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28043 if test "$have_autotrace" = 'yes'; then
28044 AUTOTRACE_DELEGATE_TRUE=
28045 AUTOTRACE_DELEGATE_FALSE='#'
28047 AUTOTRACE_DELEGATE_TRUE='#'
28048 AUTOTRACE_DELEGATE_FALSE=
28056 # Check for Display Postscript delegate library.
28059 # Check whether --with-dps was given.
28060 if test "${with_dps+set}" = set; then :
28061 withval=$with_dps; with_dps=$withval
28067 if test "$with_dps" != 'yes'; then
28068 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28073 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28075 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28077 $as_echo_n "checking for DPS... " >&6; }
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28079 $as_echo "$as_me: " >&6;}
28082 PERSIST_CPPFLAGS="$CPPFLAGS"
28083 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28084 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28085 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28086 passed=`expr $passed + 1`
28088 failed=`expr $failed + 1`
28093 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28094 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28095 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28096 # ImageMagick itself doesn't use -lXt.
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28100 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28101 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28102 $as_echo_n "(cached) " >&6
28104 ac_check_lib_save_LIBS=$LIBS
28106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28107 /* end confdefs.h. */
28109 /* Override any GCC internal prototype to avoid an error.
28110 Use char because int might match the return type of a GCC
28111 builtin and then its argument prototype would still apply. */
28115 char DPSInitialize ();
28119 return DPSInitialize ();
28124 if ac_fn_c_try_link "$LINENO"; then :
28125 ac_cv_lib_dps_DPSInitialize=yes
28127 ac_cv_lib_dps_DPSInitialize=no
28129 rm -f core conftest.err conftest.$ac_objext \
28130 conftest$ac_exeext conftest.$ac_ext
28131 LIBS=$ac_check_lib_save_LIBS
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28134 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28135 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28141 if test "$have_libdps" != 'yes'; then
28142 # Unset cache variable so we can try again.
28143 unset ac_cv_lib_dps_DPSInitialize
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28145 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28146 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28147 $as_echo_n "(cached) " >&6
28149 ac_check_lib_save_LIBS=$LIBS
28150 LIBS="-ldps -lXt $LIBS"
28151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28152 /* end confdefs.h. */
28154 /* Override any GCC internal prototype to avoid an error.
28155 Use char because int might match the return type of a GCC
28156 builtin and then its argument prototype would still apply. */
28160 char DPSInitialize ();
28164 return DPSInitialize ();
28169 if ac_fn_c_try_link "$LINENO"; then :
28170 ac_cv_lib_dps_DPSInitialize=yes
28172 ac_cv_lib_dps_DPSInitialize=no
28174 rm -f core conftest.err conftest.$ac_objext \
28175 conftest$ac_exeext conftest.$ac_ext
28176 LIBS=$ac_check_lib_save_LIBS
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28179 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28180 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28186 if test "$have_libdps" = 'yes'; then
28190 if test "$have_libdps" = 'yes'; then
28191 passed=`expr $passed + 1`
28193 failed=`expr $failed + 1`
28195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
28196 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
28197 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
28198 $as_echo_n "(cached) " >&6
28200 ac_check_lib_save_LIBS=$LIBS
28201 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
28202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28203 /* end confdefs.h. */
28205 /* Override any GCC internal prototype to avoid an error.
28206 Use char because int might match the return type of a GCC
28207 builtin and then its argument prototype would still apply. */
28211 char XDPSPixelsPerPoint ();
28215 return XDPSPixelsPerPoint ();
28220 if ac_fn_c_try_link "$LINENO"; then :
28221 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28223 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
28225 rm -f core conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
28227 LIBS=$ac_check_lib_save_LIBS
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28230 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28231 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28232 passed=`expr $passed + 1`
28234 failed=`expr $failed + 1`
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28238 $as_echo_n "checking if DPS package is complete... " >&6; }
28239 if test $passed -gt 0; then
28240 if test $failed -gt 0; then
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28242 $as_echo "$as_me: no -- some components failed test" >&6;}
28243 have_dps='no (failed tests)'
28244 CPPFLAGS="$PERSIST_CPPFLAGS"
28246 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28247 LIBS="$DPS_LIBS $LIBS"
28249 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28252 $as_echo "$as_me: yes" >&6;}
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28257 $as_echo "$as_me: no" >&6;}
28258 CPPFLAGS=$PERSIST_CPPFLAGS
28261 if test "$have_dps" = 'yes'; then
28263 DPS_DELEGATE_FALSE='#'
28265 DPS_DELEGATE_TRUE='#'
28266 DPS_DELEGATE_FALSE=
28273 # Check for DJVU delegate library.
28276 # Check whether --with-djvu was given.
28277 if test "${with_djvu+set}" = set; then :
28278 withval=$with_djvu; with_djvu=$withval
28284 if test "$with_djvu" != 'yes'; then
28285 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28290 if test "$with_djvu" != 'no'; then
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28292 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28294 $as_echo_n "checking for DJVU... " >&6; }
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28296 $as_echo "$as_me: " >&6;}
28299 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28300 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28301 passed=`expr $passed + 1`
28303 failed=`expr $failed + 1`
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28308 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28309 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28310 $as_echo_n "(cached) " >&6
28312 ac_check_lib_save_LIBS=$LIBS
28313 LIBS="-ldjvulibre $LIBS"
28314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28315 /* end confdefs.h. */
28317 /* Override any GCC internal prototype to avoid an error.
28318 Use char because int might match the return type of a GCC
28319 builtin and then its argument prototype would still apply. */
28323 char ddjvu_context_create ();
28327 return ddjvu_context_create ();
28332 if ac_fn_c_try_link "$LINENO"; then :
28333 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28335 ac_cv_lib_djvulibre_ddjvu_context_create=no
28337 rm -f core conftest.err conftest.$ac_objext \
28338 conftest$ac_exeext conftest.$ac_ext
28339 LIBS=$ac_check_lib_save_LIBS
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28342 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28343 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28344 passed=`expr $passed + 1`
28346 failed=`expr $failed + 1`
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28350 $as_echo_n "checking if DJVU package is complete... " >&6; }
28351 if test $passed -gt 0; then
28352 if test $failed -gt 0; then
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28354 $as_echo "$as_me: no -- some components failed test" >&6;}
28355 have_djvu='no (failed tests)'
28357 DJVU_LIBS='-ldjvulibre'
28358 LIBS="$DJVU_LIBS $LIBS"
28360 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28363 $as_echo "$as_me: yes" >&6;}
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28368 $as_echo "$as_me: no" >&6;}
28371 if test "$have_djvu" = 'yes'; then
28372 DJVU_DELEGATE_TRUE=
28373 DJVU_DELEGATE_FALSE='#'
28375 DJVU_DELEGATE_TRUE='#'
28376 DJVU_DELEGATE_FALSE=
28383 # Set DejaVu font directory.
28386 # Check whether --with-dejavu-font-dir was given.
28387 if test "${with_dejavu_font_dir+set}" = set; then :
28388 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28390 with_dejavu_font_dir='default'
28394 if test "$with_dejavu_font_dir" != 'default'; then
28395 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28400 # Check for FFTW delegate library.
28403 # Check whether --with-fftw was given.
28404 if test "${with_fftw+set}" = set; then :
28405 withval=$with_fftw; with_fftw=$withval
28411 if test "$with_fftw" != 'yes'; then
28412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28417 if test "$with_fftw" != 'no'; then
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28419 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28421 $as_echo_n "checking for FFTW... " >&6; }
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28423 $as_echo "$as_me: " >&6;}
28426 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28427 if test "x$ac_cv_header_fftw3_h" = xyes; then :
28428 passed=`expr $passed + 1`
28430 failed=`expr $failed + 1`
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28435 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28436 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28437 $as_echo_n "(cached) " >&6
28439 ac_check_lib_save_LIBS=$LIBS
28440 LIBS="-lfftw3 $LIBS"
28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442 /* end confdefs.h. */
28444 /* Override any GCC internal prototype to avoid an error.
28445 Use char because int might match the return type of a GCC
28446 builtin and then its argument prototype would still apply. */
28450 char fftw_execute ();
28454 return fftw_execute ();
28459 if ac_fn_c_try_link "$LINENO"; then :
28460 ac_cv_lib_fftw3_fftw_execute=yes
28462 ac_cv_lib_fftw3_fftw_execute=no
28464 rm -f core conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
28466 LIBS=$ac_check_lib_save_LIBS
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28469 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28470 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28471 passed=`expr $passed + 1`
28473 failed=`expr $failed + 1`
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28477 $as_echo_n "checking if FFTW package is complete... " >&6; }
28478 if test $passed -gt 0; then
28479 if test $failed -gt 0; then
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28481 $as_echo "$as_me: no -- some components failed test" >&6;}
28482 have_fftw='no (failed tests)'
28484 FFTW_LIBS='-lfftw3'
28485 LIBS="$FFTW_LIBS $LIBS"
28487 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28490 $as_echo "$as_me: yes" >&6;}
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28495 $as_echo "$as_me: no" >&6;}
28498 if test "$have_fftw" = 'yes'; then
28499 FFTW_DELEGATE_TRUE=
28500 FFTW_DELEGATE_FALSE='#'
28502 FFTW_DELEGATE_TRUE='#'
28503 FFTW_DELEGATE_FALSE=
28510 # Check for FlashPIX delegate library.
28513 # Check whether --with-fpx was given.
28514 if test "${with_fpx+set}" = set; then :
28515 withval=$with_fpx; with_fpx=$withval
28521 if test "$with_fpx" != 'yes'; then
28522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28527 if test "$with_fpx" != 'no'; then
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28529 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28531 $as_echo_n "checking for FlashPIX... " >&6; }
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28533 $as_echo "$as_me: " >&6;}
28537 ac_cpp='$CXXCPP $CPPFLAGS'
28538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28543 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28544 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28545 passed=`expr $passed + 1`
28547 failed=`expr $failed + 1`
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28552 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28553 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28554 $as_echo_n "(cached) " >&6
28556 ac_check_lib_save_LIBS=$LIBS
28558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559 /* end confdefs.h. */
28561 /* Override any GCC internal prototype to avoid an error.
28562 Use char because int might match the return type of a GCC
28563 builtin and then its argument prototype would still apply. */
28567 char FPX_OpenImageByFilename ();
28571 return FPX_OpenImageByFilename ();
28576 if ac_fn_cxx_try_link "$LINENO"; then :
28577 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28579 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28581 rm -f core conftest.err conftest.$ac_objext \
28582 conftest$ac_exeext conftest.$ac_ext
28583 LIBS=$ac_check_lib_save_LIBS
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28586 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28587 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28588 passed=`expr $passed + 1`
28590 failed=`expr $failed + 1`
28594 ac_cpp='$CPP $CPPFLAGS'
28595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28600 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
28601 if test $passed -gt 0; then
28602 if test $failed -gt 0; then
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28604 $as_echo "$as_me: no -- some components failed test" >&6;}
28605 have_fpx='no (failed tests)'
28609 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28612 $as_echo "$as_me: yes" >&6;}
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28618 $as_echo "$as_me: no" >&6;}
28621 if test "$have_fpx" = 'yes'; then
28623 FPX_DELEGATE_FALSE='#'
28625 FPX_DELEGATE_TRUE='#'
28626 FPX_DELEGATE_FALSE=
28633 # Check for fontconfig delegate library.
28636 # Check whether --with-fontconfig was given.
28637 if test "${with_fontconfig+set}" = set; then :
28638 withval=$with_fontconfig; with_fontconfig=$withval
28640 with_fontconfig=$have_x
28644 if test "$with_fontconfig" != 'yes'; then
28645 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28648 have_fontconfig='no'
28649 FONTCONFIG_CFLAGS=""
28652 if test "x$with_fontconfig" = "xyes"; then
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28654 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28658 $as_echo_n "checking for FONTCONFIG... " >&6; }
28660 if test -n "$FONTCONFIG_CFLAGS"; then
28661 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28662 elif test -n "$PKG_CONFIG"; then
28663 if test -n "$PKG_CONFIG" && \
28664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28665 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28668 test $ac_status = 0; }; then
28669 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28676 if test -n "$FONTCONFIG_LIBS"; then
28677 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28678 elif test -n "$PKG_CONFIG"; then
28679 if test -n "$PKG_CONFIG" && \
28680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28681 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28684 test $ac_status = 0; }; then
28685 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28695 if test $pkg_failed = yes; then
28697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28698 _pkg_short_errors_supported=yes
28700 _pkg_short_errors_supported=no
28702 if test $_pkg_short_errors_supported = yes; then
28703 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28705 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28707 # Put the nasty error message in config.log where it belongs
28708 echo "$FONTCONFIG_PKG_ERRORS" >&5
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28711 $as_echo "no" >&6; }
28713 elif test $pkg_failed = untried; then
28716 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28717 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28719 $as_echo "yes" >&6; }
28720 have_fontconfig=yes
28722 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28723 $as_echo "$as_me: " >&6;}
28726 if test "$have_fontconfig" = 'yes'; then
28728 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
28730 if test "$with_modules" = 'no'; then
28731 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
28735 if test "$have_fontconfig" = 'yes'; then
28736 FONTCONFIG_DELEGATE_TRUE=
28737 FONTCONFIG_DELEGATE_FALSE='#'
28739 FONTCONFIG_DELEGATE_TRUE='#'
28740 FONTCONFIG_DELEGATE_FALSE=
28748 # Check for freetype delegate library.
28751 # Check whether --with-freetype was given.
28752 if test "${with_freetype+set}" = set; then :
28753 withval=$with_freetype; with_freetype=$withval
28755 with_freetype='yes'
28760 if test "$with_freetype" != 'yes'; then
28761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28766 if test "$with_freetype" != 'no'; then
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28768 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28770 $as_echo_n "checking for FreeType 2.0 ... " >&6; }
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28772 $as_echo "$as_me: " >&6;}
28775 PERSIST_LDFLAGS="$LDFLAGS"
28776 PERSIST_CPPFLAGS="$CPPFLAGS"
28778 # Allow the user to specify the location of freetype.
28779 if test "$with_freetype" != 'yes'; then
28780 if test -x "${with_freetype}/bin/freetype-config"; then
28781 freetype_config="${with_freetype}/bin/freetype-config"
28782 elif test -x "${with_freetype}"; then
28783 freetype_config=${with_freetype}
28786 if test -z "$freetype_config"; then
28787 # Extract the first word of "freetype-config", so it can be a program name with args.
28788 set dummy freetype-config; ac_word=$2
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28790 $as_echo_n "checking for $ac_word... " >&6; }
28791 if ${ac_cv_path_freetype_config+:} false; then :
28792 $as_echo_n "(cached) " >&6
28794 case $freetype_config in
28796 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28800 for as_dir in $PATH
28803 test -z "$as_dir" && as_dir=.
28804 for ac_exec_ext in '' $ac_executable_extensions; do
28805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28806 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
28807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28817 freetype_config=$ac_cv_path_freetype_config
28818 if test -n "$freetype_config"; then
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28820 $as_echo "$freetype_config" >&6; }
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28823 $as_echo "no" >&6; }
28827 if test -n "$freetype_config"; then
28828 freetype_prefix=`${freetype_config} --prefix`
28829 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28830 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28831 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
28834 if test "$FREETYPE_LIBS" = ''; then
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
28836 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28837 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28838 $as_echo_n "(cached) " >&6
28840 ac_check_lib_save_LIBS=$LIBS
28841 LIBS="-lfreetype $LIBS"
28842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28843 /* end confdefs.h. */
28845 /* Override any GCC internal prototype to avoid an error.
28846 Use char because int might match the return type of a GCC
28847 builtin and then its argument prototype would still apply. */
28851 char FT_Init_FreeType ();
28855 return FT_Init_FreeType ();
28860 if ac_fn_c_try_link "$LINENO"; then :
28861 ac_cv_lib_freetype_FT_Init_FreeType=yes
28863 ac_cv_lib_freetype_FT_Init_FreeType=no
28865 rm -f core conftest.err conftest.$ac_objext \
28866 conftest$ac_exeext conftest.$ac_ext
28867 LIBS=$ac_check_lib_save_LIBS
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28870 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28871 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28872 FREETYPE_LIBS='-lfreetype'
28875 if test "$FREETYPE_LIBS" != ''; then
28876 passed=`expr $passed + 1`
28878 failed=`expr $failed + 1`
28879 LDFLAGS="$PERSIST_LDFLAGS"
28883 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28884 if test "x$ac_cv_header_ft2build_h" = xyes; then :
28885 FT2BUILD_H='#include <ft2build.h>'
28891 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28893 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28894 have_freetype_h='yes'
28896 have_freetype_h='no'
28900 if test "$have_freetype_h" = 'yes'; then
28901 passed=`expr $passed + 1`
28903 failed=`expr $failed + 1`
28904 CPPFLAGS="$PERSIST_CPPFLAGS"
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28908 $as_echo_n "checking if FreeType package is complete... " >&6; }
28909 if test $passed -gt 0; then
28910 if test $failed -gt 0; then
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28913 $as_echo "$as_me: no -- some components failed test" >&6;}
28914 have_freetype='no (failed tests)'
28916 LIBS="$FREETYPE_LIBS $LIBS"
28918 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
28920 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28922 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28926 $as_echo "$as_me: yes" >&6;}
28927 have_freetype='yes'
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28931 $as_echo "$as_me: no" >&6;}
28934 if test "$have_freetype" = 'yes'; then
28935 FREETYPE_DELEGATE_TRUE=
28936 FREETYPE_DELEGATE_FALSE='#'
28938 FREETYPE_DELEGATE_TRUE='#'
28939 FREETYPE_DELEGATE_FALSE=
28946 # Check for Ghostscript library or framework.
28948 # Test for iapi.h & test for gsapi_new_instance in -lgs
28949 # or -framework Ghostscript
28952 # Check whether --with-gslib was given.
28953 if test "${with_gslib+set}" = set; then :
28954 withval=$with_gslib; with_gslib=$withval
28960 gslib_framework='no'
28961 if test "$with_gslib" != 'yes'; then
28962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28967 if test "$with_gslib" != 'no'; then
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28969 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
28971 $as_echo_n "checking for Ghostscript... " >&6; }
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28973 $as_echo "$as_me: " >&6;}
28977 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
28978 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
28979 passed=`expr $passed + 1`
28981 failed=`expr $failed + 1`
28985 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
28986 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
28987 passed=`expr $passed + 1`
28989 failed=`expr $failed + 1`
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28994 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
28995 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28996 $as_echo_n "(cached) " >&6
28998 ac_check_framework_save_LIBS=$LIBS
28999 LIBS="-framework Ghostscript $LIBS"
29000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29001 /* end confdefs.h. */
29003 /* Override any GCC internal prototype to avoid an error.
29004 Use char because int might match the return type of a GCC
29005 builtin and then its argument prototype would still apply. */
29009 char gsapi_new_instance ();
29013 return gsapi_new_instance ();
29018 if ac_fn_c_try_link "$LINENO"; then :
29019 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29021 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29023 rm -f core conftest.err conftest.$ac_objext \
29024 conftest$ac_exeext conftest.$ac_ext
29025 LIBS=$ac_check_framework_save_LIBS
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29028 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29029 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29030 framework=`expr $framework + 1`
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
29033 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
29034 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
29035 $as_echo_n "(cached) " >&6
29037 ac_check_lib_save_LIBS=$LIBS
29039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29040 /* end confdefs.h. */
29042 /* Override any GCC internal prototype to avoid an error.
29043 Use char because int might match the return type of a GCC
29044 builtin and then its argument prototype would still apply. */
29048 char gsapi_new_instance ();
29052 return gsapi_new_instance ();
29057 if ac_fn_c_try_link "$LINENO"; then :
29058 ac_cv_lib_gs_gsapi_new_instance=yes
29060 ac_cv_lib_gs_gsapi_new_instance=no
29062 rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
29064 LIBS=$ac_check_lib_save_LIBS
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
29067 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
29068 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
29069 passed=`expr $passed + 1`
29071 failed=`expr $failed + 1`
29075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
29076 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
29077 if test $passed -gt 0; then
29078 if test $failed -gt 0; then
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29080 $as_echo "$as_me: no -- some components failed test" >&6;}
29081 have_gslib='no (failed tests)'
29083 if test $framework -gt 0; then
29084 GS_LIBS='-framework Ghostscript'
29085 gslib_framework='yes'
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29087 $as_echo "$as_me: yes, using framework." >&6;}
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29090 $as_echo "$as_me: yes, using library." >&6;}
29093 LIBS="$GS_LIBS $LIBS"
29095 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29101 $as_echo "$as_me: no" >&6;}
29104 if test "$have_gslib" = 'yes'; then
29106 GS_DELEGATE_FALSE='#'
29108 GS_DELEGATE_TRUE='#'
29114 # Set default font search path
29116 # Check whether --with-fontpath was given.
29117 if test "${with_fontpath+set}" = set; then :
29118 withval=$with_fontpath; with_fontpath=$withval
29124 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29128 cat >>confdefs.h <<_ACEOF
29129 #define MAGICK_FONT_PATH "$with_fontpath"
29133 if test "$with_fontpath=" != ''; then
29134 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29137 # Set Ghostscript font directory
29139 # Check whether --with-gs-font-dir was given.
29140 if test "${with_gs_font_dir+set}" = set; then :
29141 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29143 with_gs_font_dir='default'
29147 if test "$with_gs_font_dir" != 'default'; then
29148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29153 # Check for GVC delegate library.
29156 # Check whether --with-gvc was given.
29157 if test "${with_gvc+set}" = set; then :
29158 withval=$with_gvc; with_gvc=$withval
29164 if test "$with_gvc" != 'yes'; then
29165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29169 if test "x$with_gvc" = "xyes"; then
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29171 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29175 $as_echo_n "checking for GVC... " >&6; }
29177 if test -n "$GVC_CFLAGS"; then
29178 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29179 elif test -n "$PKG_CONFIG"; then
29180 if test -n "$PKG_CONFIG" && \
29181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29182 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29185 test $ac_status = 0; }; then
29186 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29193 if test -n "$GVC_LIBS"; then
29194 pkg_cv_GVC_LIBS="$GVC_LIBS"
29195 elif test -n "$PKG_CONFIG"; then
29196 if test -n "$PKG_CONFIG" && \
29197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29198 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201 test $ac_status = 0; }; then
29202 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29212 if test $pkg_failed = yes; then
29214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29215 _pkg_short_errors_supported=yes
29217 _pkg_short_errors_supported=no
29219 if test $_pkg_short_errors_supported = yes; then
29220 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29222 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29224 # Put the nasty error message in config.log where it belongs
29225 echo "$GVC_PKG_ERRORS" >&5
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29228 $as_echo "no" >&6; }
29230 elif test $pkg_failed = untried; then
29233 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29234 GVC_LIBS=$pkg_cv_GVC_LIBS
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29236 $as_echo "yes" >&6; }
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29240 $as_echo "$as_me: " >&6;}
29243 if test "$have_gvc" = 'yes'; then
29245 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29247 if test "$with_modules" = 'no'; then
29248 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29252 if test "$have_gvc" = 'yes'; then
29254 GVC_DELEGATE_FALSE='#'
29256 GVC_DELEGATE_TRUE='#'
29257 GVC_DELEGATE_FALSE=
29265 # Check for JBIG delegate library.
29269 # Check whether --with-jbig was given.
29270 if test "${with_jbig+set}" = set; then :
29271 withval=$with_jbig; with_jbig=$withval
29279 if test "$with_jbig" != 'no'; then
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29281 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29283 $as_echo_n "checking for JBIG... " >&6; }
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29285 $as_echo "$as_me: " >&6;}
29288 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29289 if test "x$ac_cv_header_jbig_h" = xyes; then :
29290 passed=`expr $passed + 1`
29292 failed=`expr $failed + 1`
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29297 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29298 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29299 $as_echo_n "(cached) " >&6
29301 ac_check_lib_save_LIBS=$LIBS
29302 LIBS="-ljbig $LIBS"
29303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29304 /* end confdefs.h. */
29306 /* Override any GCC internal prototype to avoid an error.
29307 Use char because int might match the return type of a GCC
29308 builtin and then its argument prototype would still apply. */
29312 char jbg_dec_init ();
29316 return jbg_dec_init ();
29321 if ac_fn_c_try_link "$LINENO"; then :
29322 ac_cv_lib_jbig_jbg_dec_init=yes
29324 ac_cv_lib_jbig_jbg_dec_init=no
29326 rm -f core conftest.err conftest.$ac_objext \
29327 conftest$ac_exeext conftest.$ac_ext
29328 LIBS=$ac_check_lib_save_LIBS
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29331 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29332 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29333 passed=`expr $passed + 1`
29335 failed=`expr $failed + 1`
29338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29339 $as_echo_n "checking if JBIG package is complete... " >&6; }
29340 if test $passed -gt 0; then
29341 if test $failed -gt 0; then
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29343 $as_echo "$as_me: no -- some components failed test" >&6;}
29344 have_jbig='no (failed tests)'
29347 LIBS="$JBIG_LIBS $LIBS"
29349 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29352 $as_echo "$as_me: yes" >&6;}
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29357 $as_echo "$as_me: no" >&6;}
29360 if test "$have_jbig" = 'yes'; then
29361 JBIG_DELEGATE_TRUE=
29362 JBIG_DELEGATE_FALSE='#'
29364 JBIG_DELEGATE_TRUE='#'
29365 JBIG_DELEGATE_FALSE=
29372 # Check for JPEG delegate library.
29375 # Check whether --with-jpeg was given.
29376 if test "${with_jpeg+set}" = set; then :
29377 withval=$with_jpeg; with_jpeg=$withval
29383 if test "$with_jpeg" != 'yes'; then
29384 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29389 if test "$with_jpeg" != 'no'; then
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29391 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29393 $as_echo_n "checking for JPEG... " >&6; }
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29395 $as_echo "$as_me: " >&6;}
29398 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29399 if test "x$ac_cv_header_jconfig_h" = xyes; then :
29400 passed=`expr $passed + 1`
29402 failed=`expr $failed + 1`
29406 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29407 if test "x$ac_cv_header_jerror_h" = xyes; then :
29408 passed=`expr $passed + 1`
29410 failed=`expr $failed + 1`
29414 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29415 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29416 passed=`expr $passed + 1`
29418 failed=`expr $failed + 1`
29422 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29423 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29424 passed=`expr $passed + 1`
29426 failed=`expr $failed + 1`
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29431 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29432 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29433 $as_echo_n "(cached) " >&6
29435 ac_check_lib_save_LIBS=$LIBS
29436 LIBS="-ljpeg $LIBS"
29437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438 /* end confdefs.h. */
29440 /* Override any GCC internal prototype to avoid an error.
29441 Use char because int might match the return type of a GCC
29442 builtin and then its argument prototype would still apply. */
29446 char jpeg_read_header ();
29450 return jpeg_read_header ();
29455 if ac_fn_c_try_link "$LINENO"; then :
29456 ac_cv_lib_jpeg_jpeg_read_header=yes
29458 ac_cv_lib_jpeg_jpeg_read_header=no
29460 rm -f core conftest.err conftest.$ac_objext \
29461 conftest$ac_exeext conftest.$ac_ext
29462 LIBS=$ac_check_lib_save_LIBS
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29465 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29466 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29467 passed=`expr $passed + 1`
29469 failed=`expr $failed + 1`
29473 # Test for compatible JPEG library
29474 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29476 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29477 if ${ac_cv_jpeg_version_ok+:} false; then :
29478 $as_echo_n "(cached) " >&6
29480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29481 /* end confdefs.h. */
29483 #include <stdlib.h>
29484 #include <jpeglib.h>
29490 #if JPEG_LIB_VERSION < 62
29491 #error IJG JPEG library must be version 6b or newer!
29499 if ac_fn_c_try_compile "$LINENO"; then :
29500 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29502 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29507 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29510 $as_echo_n "checking if JPEG package is complete... " >&6; }
29511 if test $passed -gt 0; then
29512 if test $failed -gt 0; then
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29514 $as_echo "$as_me: no -- some components failed test" >&6;}
29515 have_jpeg='no (failed tests)'
29518 LIBS="$JPEG_LIBS $LIBS"
29520 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29523 $as_echo "$as_me: yes" >&6;}
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29528 $as_echo "$as_me: no" >&6;}
29531 if test "$have_jpeg" = 'yes'; then
29532 JPEG_DELEGATE_TRUE=
29533 JPEG_DELEGATE_FALSE='#'
29535 JPEG_DELEGATE_TRUE='#'
29536 JPEG_DELEGATE_FALSE=
29543 # Check for JPEG Version 2 delegate library.
29546 # Check whether --with-jp2 was given.
29547 if test "${with_jp2+set}" = set; then :
29548 withval=$with_jp2; with_jp2=$withval
29554 if test "$with_jp2" != 'yes'; then
29555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29560 if test "$with_jp2" != 'no'; then
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29562 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29564 $as_echo_n "checking for JPEG Version 2... " >&6; }
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29566 $as_echo "$as_me: " >&6;}
29569 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29570 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29571 passed=`expr $passed + 1`
29573 failed=`expr $failed + 1`
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29578 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29579 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29580 $as_echo_n "(cached) " >&6
29582 ac_check_lib_save_LIBS=$LIBS
29583 LIBS="-ljasper $LIBS"
29584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29585 /* end confdefs.h. */
29587 /* Override any GCC internal prototype to avoid an error.
29588 Use char because int might match the return type of a GCC
29589 builtin and then its argument prototype would still apply. */
29593 char jas_stream_fopen ();
29597 return jas_stream_fopen ();
29602 if ac_fn_c_try_link "$LINENO"; then :
29603 ac_cv_lib_jasper_jas_stream_fopen=yes
29605 ac_cv_lib_jasper_jas_stream_fopen=no
29607 rm -f core conftest.err conftest.$ac_objext \
29608 conftest$ac_exeext conftest.$ac_ext
29609 LIBS=$ac_check_lib_save_LIBS
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29612 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29613 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29614 passed=`expr $passed + 1`
29616 failed=`expr $failed + 1`
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29620 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29621 if test $passed -gt 0; then
29622 if test $failed -gt 0; then
29623 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29624 $as_echo "$as_me: no -- some components failed test" >&6;}
29625 have_jp2='no (failed tests)'
29627 JP2_LIBS='-ljasper'
29628 LIBS="$JP2_LIBS $LIBS"
29630 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29633 $as_echo "$as_me: yes" >&6;}
29637 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29638 $as_echo "$as_me: no" >&6;}
29641 if test "$have_jp2" = 'yes'; then
29643 JP2_DELEGATE_FALSE='#'
29645 JP2_DELEGATE_TRUE='#'
29646 JP2_DELEGATE_FALSE=
29653 # Check for LCMS delegate library.
29657 # Check whether --with-lcms was given.
29658 if test "${with_lcms+set}" = set; then :
29659 withval=$with_lcms; with_lcms=$withval
29664 if test "$with_lcms" != 'yes' ; then
29665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29670 # Check whether --with-lcms2 was given.
29671 if test "${with_lcms2+set}" = set; then :
29672 withval=$with_lcms2; with_lcms2=$withval
29677 if test "$with_lcms2" != 'yes' ; then
29678 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29683 if test "$with_lcms2" != 'no'; then
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29685 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29687 $as_echo_n "checking for LCMS v2... " >&6; }
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29689 $as_echo "$as_me: " >&6;}
29692 have_lcms_header='no'
29694 # Check for <lcms2.h>
29695 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29696 if test "x$ac_cv_header_lcms2_h" = xyes; then :
29697 have_lcms_header='yes'
29701 if test "$have_lcms_header" = 'yes'; then
29703 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29705 passed=`expr $passed + 1`
29708 # Check for <lcms2/lcms2.h)
29709 if test "$have_lcms_header" != 'yes'; then
29710 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29711 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29712 have_lcms_header='yes'
29716 if test "$have_lcms_header" = 'yes'; then
29717 passed=`expr $passed + 1`
29719 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29724 # Failed to find lcms header?
29725 if test "$have_lcms_header" != 'yes'; then
29726 failed=`expr $failed + 1`
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29730 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29731 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29732 $as_echo_n "(cached) " >&6
29734 ac_check_lib_save_LIBS=$LIBS
29735 LIBS="-llcms2 $LIBS"
29736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29737 /* end confdefs.h. */
29739 /* Override any GCC internal prototype to avoid an error.
29740 Use char because int might match the return type of a GCC
29741 builtin and then its argument prototype would still apply. */
29745 char cmsSetLogErrorHandler ();
29749 return cmsSetLogErrorHandler ();
29754 if ac_fn_c_try_link "$LINENO"; then :
29755 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29757 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29759 rm -f core conftest.err conftest.$ac_objext \
29760 conftest$ac_exeext conftest.$ac_ext
29761 LIBS=$ac_check_lib_save_LIBS
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29764 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29765 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29766 passed=`expr $passed + 1`
29768 failed=`expr $failed + 1`
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29772 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29773 if test $passed -gt 0; then
29774 if test $failed -gt 0; then
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29776 $as_echo "$as_me: no -- some components failed test" >&6;}
29777 have_lcms2='no (failed tests)'
29779 LCMS_LIBS='-llcms2'
29780 LIBS="$LCMS_LIBS $LIBS"
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29782 $as_echo "$as_me: yes" >&6;}
29786 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29787 $as_echo "$as_me: no" >&6;}
29792 # Check for LCMS v1 (1.11 or later)
29794 if test $have_lcms2 = 'yes'; then
29799 if test "$with_lcms" != 'no'; then
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29801 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29803 $as_echo_n "checking for LCMS v1.1X... " >&6; }
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29805 $as_echo "$as_me: " >&6;}
29808 have_lcms_header='no'
29810 # Check for <lcms.h>
29811 if test "$have_lcms_header" != 'yes'; then
29812 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29813 if test "x$ac_cv_header_lcms_h" = xyes; then :
29814 have_lcms_header='yes'
29818 if test "$have_lcms_header" = 'yes'; then
29819 passed=`expr $passed + 1`
29821 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29826 # Check for <lcms/lcms.h>
29827 if test "$have_lcms_header" != 'yes'; then
29828 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
29829 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
29830 have_lcms_header='yes'
29834 if test "$have_lcms_header" = 'yes'; then
29835 passed=`expr $passed + 1`
29837 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
29842 # Failed to find lcms header?
29843 if test "$have_lcms_header" != 'yes'; then
29844 failed=`expr $failed + 1`
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29848 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
29849 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
29850 $as_echo_n "(cached) " >&6
29852 ac_check_lib_save_LIBS=$LIBS
29853 LIBS="-llcms $LIBS"
29854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29855 /* end confdefs.h. */
29857 /* Override any GCC internal prototype to avoid an error.
29858 Use char because int might match the return type of a GCC
29859 builtin and then its argument prototype would still apply. */
29863 char cmsSetErrorHandler ();
29867 return cmsSetErrorHandler ();
29872 if ac_fn_c_try_link "$LINENO"; then :
29873 ac_cv_lib_lcms_cmsSetErrorHandler=yes
29875 ac_cv_lib_lcms_cmsSetErrorHandler=no
29877 rm -f core conftest.err conftest.$ac_objext \
29878 conftest$ac_exeext conftest.$ac_ext
29879 LIBS=$ac_check_lib_save_LIBS
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29882 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
29883 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
29884 passed=`expr $passed + 1`
29886 failed=`expr $failed + 1`
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
29890 $as_echo_n "checking if LCMS package is complete... " >&6; }
29891 if test $passed -gt 0; then
29892 if test $failed -gt 0; then
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29894 $as_echo "$as_me: no -- some components failed test" >&6;}
29895 have_lcms='no (failed tests)'
29898 LIBS="$LCMS_LIBS $LIBS"
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29900 $as_echo "$as_me: yes" >&6;}
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29905 $as_echo "$as_me: no" >&6;}
29909 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29910 LCMS_DELEGATE_TRUE=
29911 LCMS_DELEGATE_FALSE='#'
29913 LCMS_DELEGATE_TRUE='#'
29914 LCMS_DELEGATE_FALSE=
29917 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29919 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29927 # Check for the LQR (Liquid Rescale) delegate library.
29930 # Check whether --with-lqr was given.
29931 if test "${with_lqr+set}" = set; then :
29932 withval=$with_lqr; with_lqr=$withval
29938 if test "$with_lqr" != 'yes'; then
29939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29946 if test "x$with_lqr" = "xyes"; then
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29948 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29952 $as_echo_n "checking for LQR... " >&6; }
29954 if test -n "$LQR_CFLAGS"; then
29955 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29956 elif test -n "$PKG_CONFIG"; then
29957 if test -n "$PKG_CONFIG" && \
29958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29959 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29962 test $ac_status = 0; }; then
29963 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29970 if test -n "$LQR_LIBS"; then
29971 pkg_cv_LQR_LIBS="$LQR_LIBS"
29972 elif test -n "$PKG_CONFIG"; then
29973 if test -n "$PKG_CONFIG" && \
29974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29975 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29978 test $ac_status = 0; }; then
29979 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29989 if test $pkg_failed = yes; then
29991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29992 _pkg_short_errors_supported=yes
29994 _pkg_short_errors_supported=no
29996 if test $_pkg_short_errors_supported = yes; then
29997 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29999 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30001 # Put the nasty error message in config.log where it belongs
30002 echo "$LQR_PKG_ERRORS" >&5
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30005 $as_echo "no" >&6; }
30007 elif test $pkg_failed = untried; then
30010 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30011 LQR_LIBS=$pkg_cv_LQR_LIBS
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30013 $as_echo "yes" >&6; }
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30017 $as_echo "$as_me: " >&6;}
30020 if test "$have_lqr" = 'yes'; then
30022 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
30024 CFLAGS="$LQR_CFLAGS $CFLAGS"
30027 if test "$have_lqr" = 'yes'; then
30029 LQR_DELEGATE_FALSE='#'
30031 LQR_DELEGATE_TRUE='#'
30032 LQR_DELEGATE_FALSE=
30039 # Disable LZMA (lzma library)
30041 # Check whether --with-lzma was given.
30042 if test "${with_lzma+set}" = set; then :
30043 withval=$with_lzma; with_lzma=$withval
30048 if test "$with_lzma" != 'yes' ; then
30049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30057 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30059 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
30061 $as_echo_n "checking for LZMA... " >&6; }
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30063 $as_echo "$as_me: " >&6;}
30066 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30067 if test "x$ac_cv_header_lzma_h" = xyes; then :
30068 passed=`expr $passed + 1`
30070 failed=`expr $failed + 1`
30074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30075 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
30076 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30077 $as_echo_n "(cached) " >&6
30079 ac_check_lib_save_LIBS=$LIBS
30080 LIBS="-llzma $LIBS"
30081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30082 /* end confdefs.h. */
30084 /* Override any GCC internal prototype to avoid an error.
30085 Use char because int might match the return type of a GCC
30086 builtin and then its argument prototype would still apply. */
30094 return lzma_code ();
30099 if ac_fn_c_try_link "$LINENO"; then :
30100 ac_cv_lib_lzma_lzma_code=yes
30102 ac_cv_lib_lzma_lzma_code=no
30104 rm -f core conftest.err conftest.$ac_objext \
30105 conftest$ac_exeext conftest.$ac_ext
30106 LIBS=$ac_check_lib_save_LIBS
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30109 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30110 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30111 passed=`expr $passed + 1`
30113 failed=`expr $failed + 1`
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30117 $as_echo_n "checking if LZMA package is complete... " >&6; }
30118 if test $passed -gt 0; then
30119 if test $failed -gt 0; then
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30121 $as_echo "$as_me: no -- some components failed test" >&6;}
30122 have_lzma='no (failed tests)'
30125 LIBS="$LZMA_LIBS $LIBS"
30127 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30130 $as_echo "$as_me: yes" >&6;}
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30135 $as_echo "$as_me: no" >&6;}
30138 if test "$have_lzma" = 'yes'; then
30139 LZMA_DELEGATE_TRUE=
30140 LZMA_DELEGATE_FALSE='#'
30142 LZMA_DELEGATE_TRUE='#'
30143 LZMA_DELEGATE_FALSE=
30150 # Check for the OpenEXR delegate library.
30153 # Check whether --with-openexr was given.
30154 if test "${with_openexr+set}" = set; then :
30155 withval=$with_openexr; with_openexr=$withval
30161 if test "$with_openexr" != 'yes'; then
30162 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30169 if test "x$with_openexr" = "xyes"; then
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30171 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30175 $as_echo_n "checking for OPENEXR... " >&6; }
30177 if test -n "$OPENEXR_CFLAGS"; then
30178 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30179 elif test -n "$PKG_CONFIG"; then
30180 if test -n "$PKG_CONFIG" && \
30181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30182 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185 test $ac_status = 0; }; then
30186 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30193 if test -n "$OPENEXR_LIBS"; then
30194 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30195 elif test -n "$PKG_CONFIG"; then
30196 if test -n "$PKG_CONFIG" && \
30197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30198 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30201 test $ac_status = 0; }; then
30202 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30212 if test $pkg_failed = yes; then
30214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30215 _pkg_short_errors_supported=yes
30217 _pkg_short_errors_supported=no
30219 if test $_pkg_short_errors_supported = yes; then
30220 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30222 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30224 # Put the nasty error message in config.log where it belongs
30225 echo "$OPENEXR_PKG_ERRORS" >&5
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30228 $as_echo "no" >&6; }
30230 elif test $pkg_failed = untried; then
30233 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30234 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30236 $as_echo "yes" >&6; }
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30240 $as_echo "$as_me: " >&6;}
30243 if test "$have_openexr" = 'yes'; then
30245 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30247 if test "$with_modules" = 'no'; then
30248 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30252 if test "$have_openexr" = 'yes'; then
30253 OPENEXR_DELEGATE_TRUE=
30254 OPENEXR_DELEGATE_FALSE='#'
30256 OPENEXR_DELEGATE_TRUE='#'
30257 OPENEXR_DELEGATE_FALSE=
30265 # Check for PANGO delegate library.
30268 # Check whether --with-pango was given.
30269 if test "${with_pango+set}" = set; then :
30270 withval=$with_pango; with_pango=$withval
30276 if test "$with_pango" != 'yes'; then
30277 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30285 if test "x$with_pango" = "xyes"; then
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30287 $as_echo "-------------------------------------------------------------" >&6; }
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30291 $as_echo_n "checking for PANGO... " >&6; }
30293 if test -n "$PANGO_CFLAGS"; then
30294 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30295 elif test -n "$PKG_CONFIG"; then
30296 if test -n "$PKG_CONFIG" && \
30297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30298 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30301 test $ac_status = 0; }; then
30302 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango" 2>/dev/null`
30309 if test -n "$PANGO_LIBS"; then
30310 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30311 elif test -n "$PKG_CONFIG"; then
30312 if test -n "$PKG_CONFIG" && \
30313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30314 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30317 test $ac_status = 0; }; then
30318 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango" 2>/dev/null`
30328 if test $pkg_failed = yes; then
30330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30331 _pkg_short_errors_supported=yes
30333 _pkg_short_errors_supported=no
30335 if test $_pkg_short_errors_supported = yes; then
30336 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango" 2>&1`
30338 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango" 2>&1`
30340 # Put the nasty error message in config.log where it belongs
30341 echo "$PANGO_PKG_ERRORS" >&5
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30344 $as_echo "no" >&6; }
30346 elif test $pkg_failed = untried; then
30349 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30350 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30352 $as_echo "yes" >&6; }
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30360 $as_echo_n "checking for PANGO... " >&6; }
30362 if test -n "$PANGO_CFLAGS"; then
30363 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30364 elif test -n "$PKG_CONFIG"; then
30365 if test -n "$PKG_CONFIG" && \
30366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30367 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30370 test $ac_status = 0; }; then
30371 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30378 if test -n "$PANGO_LIBS"; then
30379 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30380 elif test -n "$PKG_CONFIG"; then
30381 if test -n "$PKG_CONFIG" && \
30382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30383 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30386 test $ac_status = 0; }; then
30387 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30397 if test $pkg_failed = yes; then
30399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30400 _pkg_short_errors_supported=yes
30402 _pkg_short_errors_supported=no
30404 if test $_pkg_short_errors_supported = yes; then
30405 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2" 2>&1`
30407 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2" 2>&1`
30409 # Put the nasty error message in config.log where it belongs
30410 echo "$PANGO_PKG_ERRORS" >&5
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30413 $as_echo "no" >&6; }
30415 elif test $pkg_failed = untried; then
30418 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30419 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30421 $as_echo "yes" >&6; }
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30428 if test "$have_pango" = 'yes'; then
30430 $as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30432 if test "$with_modules" = 'no'; then
30433 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30437 if test "$have_pangoft2" = 'yes'; then
30439 $as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30441 if test "$with_modules" = 'no'; then
30442 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30446 if test "$have_pango" = 'yes'; then
30447 PANGO_DELEGATE_TRUE=
30448 PANGO_DELEGATE_FALSE='#'
30450 PANGO_DELEGATE_TRUE='#'
30451 PANGO_DELEGATE_FALSE=
30454 if test "$have_pangoft2" = 'yes'; then
30455 PANGOFT2_DELEGATE_TRUE=
30456 PANGOFT2_DELEGATE_FALSE='#'
30458 PANGOFT2_DELEGATE_TRUE='#'
30459 PANGOFT2_DELEGATE_FALSE=
30467 # Check for PNG delegate library.
30470 # Check whether --with-png was given.
30471 if test "${with_png+set}" = set; then :
30472 withval=$with_png; with_png=$withval
30478 if test "$with_png" != 'yes'; then
30479 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30485 if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30487 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30489 $as_echo_n "checking for PNG support ... " >&6; }
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30491 $as_echo "$as_me: " >&6;}
30494 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30495 if test "x$ac_cv_header_png_h" = xyes; then :
30496 passed=`expr $passed + 1`
30498 failed=`expr $failed + 1`
30503 if test $passed -gt 0; then
30504 for var in 5 4 2 '' ; do
30505 if test "$have_png" = 'no' ; then
30506 if test "x${var}" = 'x' ; then
30509 pnglib="png1${var}"
30512 # Test for compatible LIBPNG library
30515 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
30516 if test "${pnglib}" != 'png' ; then
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30518 $as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30520 /* end confdefs.h. */
30522 #include <stdlib.h>
30529 #if PNG_LIBPNG_VER_MINOR != ${var}
30530 #error LIBPNG library must be version 1${var}!
30539 if ac_fn_c_try_compile "$LINENO"; then :
30540 ac_cv_libpng_ok='yes'
30542 ac_cv_libpng_ok='no'
30544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30545 if test "$ac_cv_libpng_ok" = 'yes' ; then
30546 passed=`expr $passed + 1`
30547 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30548 $as_echo "$as_me: yes" >&6;}
30550 failed=`expr $failed + 1`
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30552 $as_echo "$as_me: no" >&6;}
30555 passed=`expr $passed + 1`
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30557 $as_echo "$as_me: yes" >&6;}
30561 if test $passed -gt 0 -a $failed -le 0; then
30562 if test "1${var}" = '15' ; then
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30564 $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30565 if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30566 $as_echo_n "(cached) " >&6
30568 ac_check_lib_save_LIBS=$LIBS
30569 LIBS="-lpng15 $LIBS"
30570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30571 /* end confdefs.h. */
30573 /* Override any GCC internal prototype to avoid an error.
30574 Use char because int might match the return type of a GCC
30575 builtin and then its argument prototype would still apply. */
30579 char png_get_io_ptr ();
30583 return png_get_io_ptr ();
30588 if ac_fn_c_try_link "$LINENO"; then :
30589 ac_cv_lib_png15_png_get_io_ptr=yes
30591 ac_cv_lib_png15_png_get_io_ptr=no
30593 rm -f core conftest.err conftest.$ac_objext \
30594 conftest$ac_exeext conftest.$ac_ext
30595 LIBS=$ac_check_lib_save_LIBS
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30598 $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30599 if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30600 passed=`expr $passed + 1`
30602 failed=`expr $failed + 1`
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30606 $as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30607 if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30608 $as_echo_n "(cached) " >&6
30610 ac_check_lib_save_LIBS=$LIBS
30611 LIBS="-lpng15 $LIBS"
30612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30613 /* end confdefs.h. */
30615 /* Override any GCC internal prototype to avoid an error.
30616 Use char because int might match the return type of a GCC
30617 builtin and then its argument prototype would still apply. */
30621 char png_longjmp ();
30625 return png_longjmp ();
30630 if ac_fn_c_try_link "$LINENO"; then :
30631 ac_cv_lib_png15_png_longjmp=yes
30633 ac_cv_lib_png15_png_longjmp=no
30635 rm -f core conftest.err conftest.$ac_objext \
30636 conftest$ac_exeext conftest.$ac_ext
30637 LIBS=$ac_check_lib_save_LIBS
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30640 $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30641 if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30642 passed=`expr $passed + 1`
30644 failed=`expr $failed + 1`
30648 if test "1${var}" = '14' ; then
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30650 $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30651 if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30652 $as_echo_n "(cached) " >&6
30654 ac_check_lib_save_LIBS=$LIBS
30655 LIBS="-lpng14 $LIBS"
30656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30657 /* end confdefs.h. */
30659 /* Override any GCC internal prototype to avoid an error.
30660 Use char because int might match the return type of a GCC
30661 builtin and then its argument prototype would still apply. */
30665 char png_get_io_ptr ();
30669 return png_get_io_ptr ();
30674 if ac_fn_c_try_link "$LINENO"; then :
30675 ac_cv_lib_png14_png_get_io_ptr=yes
30677 ac_cv_lib_png14_png_get_io_ptr=no
30679 rm -f core conftest.err conftest.$ac_objext \
30680 conftest$ac_exeext conftest.$ac_ext
30681 LIBS=$ac_check_lib_save_LIBS
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30684 $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30685 if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30686 passed=`expr $passed + 1`
30688 failed=`expr $failed + 1`
30691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30692 $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30693 if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30694 $as_echo_n "(cached) " >&6
30696 ac_check_lib_save_LIBS=$LIBS
30697 LIBS="-lpng14 $LIBS"
30698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30699 /* end confdefs.h. */
30701 /* Override any GCC internal prototype to avoid an error.
30702 Use char because int might match the return type of a GCC
30703 builtin and then its argument prototype would still apply. */
30707 char png_get_io_state ();
30711 return png_get_io_state ();
30716 if ac_fn_c_try_link "$LINENO"; then :
30717 ac_cv_lib_png14_png_get_io_state=yes
30719 ac_cv_lib_png14_png_get_io_state=no
30721 rm -f core conftest.err conftest.$ac_objext \
30722 conftest$ac_exeext conftest.$ac_ext
30723 LIBS=$ac_check_lib_save_LIBS
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30726 $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30727 if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30728 passed=`expr $passed + 1`
30730 failed=`expr $failed + 1`
30734 if test "1${var}" = '12' ; then
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30736 $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30737 if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30738 $as_echo_n "(cached) " >&6
30740 ac_check_lib_save_LIBS=$LIBS
30741 LIBS="-lpng12 $LIBS"
30742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30743 /* end confdefs.h. */
30745 /* Override any GCC internal prototype to avoid an error.
30746 Use char because int might match the return type of a GCC
30747 builtin and then its argument prototype would still apply. */
30751 char png_get_io_ptr ();
30755 return png_get_io_ptr ();
30760 if ac_fn_c_try_link "$LINENO"; then :
30761 ac_cv_lib_png12_png_get_io_ptr=yes
30763 ac_cv_lib_png12_png_get_io_ptr=no
30765 rm -f core conftest.err conftest.$ac_objext \
30766 conftest$ac_exeext conftest.$ac_ext
30767 LIBS=$ac_check_lib_save_LIBS
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30770 $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30771 if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30772 passed=`expr $passed + 1`
30774 failed=`expr $failed + 1`
30778 if test "1${var}" = '1' ; then
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30780 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30781 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30782 $as_echo_n "(cached) " >&6
30784 ac_check_lib_save_LIBS=$LIBS
30786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30787 /* end confdefs.h. */
30789 /* Override any GCC internal prototype to avoid an error.
30790 Use char because int might match the return type of a GCC
30791 builtin and then its argument prototype would still apply. */
30795 char png_get_io_ptr ();
30799 return png_get_io_ptr ();
30804 if ac_fn_c_try_link "$LINENO"; then :
30805 ac_cv_lib_png_png_get_io_ptr=yes
30807 ac_cv_lib_png_png_get_io_ptr=no
30809 rm -f core conftest.err conftest.$ac_objext \
30810 conftest$ac_exeext conftest.$ac_ext
30811 LIBS=$ac_check_lib_save_LIBS
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30814 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30815 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30816 passed=`expr $passed + 1`
30818 failed=`expr $failed + 1`
30822 if test $passed -gt 0 -a $failed -le 0 ; then
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30824 $as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30825 if test $passed -gt 0 ; then
30826 if test $failed -gt 0 ; then
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30828 $as_echo "$as_me: no -- some components failed test" >&6;}
30829 have_png='no (failed tests)'
30831 PNG_LIBS="-l${pnglib}"
30832 LIBS="$PNG_LIBS $LIBS"
30834 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30837 $as_echo "$as_me: yes" >&6;}
30848 if test "$have_png" = 'yes'; then
30850 PNG_DELEGATE_FALSE='#'
30852 PNG_DELEGATE_TRUE='#'
30853 PNG_DELEGATE_FALSE=
30861 # Check for RSVG delegate library.
30864 # Check whether --with-rsvg was given.
30865 if test "${with_rsvg+set}" = set; then :
30866 withval=$with_rsvg; with_rsvg=$withval
30872 if test "$with_rsvg" != 'yes'; then
30873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30881 if test "x$with_rsvg" = "xyes"; then
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30883 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30887 $as_echo_n "checking for RSVG... " >&6; }
30889 if test -n "$RSVG_CFLAGS"; then
30890 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30891 elif test -n "$PKG_CONFIG"; then
30892 if test -n "$PKG_CONFIG" && \
30893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30894 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30897 test $ac_status = 0; }; then
30898 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30905 if test -n "$RSVG_LIBS"; then
30906 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30907 elif test -n "$PKG_CONFIG"; then
30908 if test -n "$PKG_CONFIG" && \
30909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30910 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30913 test $ac_status = 0; }; then
30914 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30924 if test $pkg_failed = yes; then
30926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30927 _pkg_short_errors_supported=yes
30929 _pkg_short_errors_supported=no
30931 if test $_pkg_short_errors_supported = yes; then
30932 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30934 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30936 # Put the nasty error message in config.log where it belongs
30937 echo "$RSVG_PKG_ERRORS" >&5
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30940 $as_echo "no" >&6; }
30942 elif test $pkg_failed = untried; then
30945 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30946 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30948 $as_echo "yes" >&6; }
30951 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30952 $as_echo "$as_me: " >&6;}
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30956 $as_echo_n "checking for CAIRO_SVG... " >&6; }
30958 if test -n "$CAIRO_SVG_CFLAGS"; then
30959 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30960 elif test -n "$PKG_CONFIG"; then
30961 if test -n "$PKG_CONFIG" && \
30962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30963 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30966 test $ac_status = 0; }; then
30967 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30974 if test -n "$CAIRO_SVG_LIBS"; then
30975 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30976 elif test -n "$PKG_CONFIG"; then
30977 if test -n "$PKG_CONFIG" && \
30978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30979 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982 test $ac_status = 0; }; then
30983 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30993 if test $pkg_failed = yes; then
30995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30996 _pkg_short_errors_supported=yes
30998 _pkg_short_errors_supported=no
31000 if test $_pkg_short_errors_supported = yes; then
31001 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31003 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31005 # Put the nasty error message in config.log where it belongs
31006 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31009 $as_echo "no" >&6; }
31011 elif test $pkg_failed = untried; then
31014 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31015 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31017 $as_echo "yes" >&6; }
31020 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31021 $as_echo "$as_me: " >&6;}
31024 if test "$have_rsvg" = 'yes'; then
31026 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
31028 if test "$with_modules" = 'no'; then
31029 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31033 if test "$have_cairo" = 'yes'; then
31035 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
31037 if test "$with_modules" = 'no'; then
31038 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31042 if test "$have_rsvg" = 'yes'; then
31043 RSVG_DELEGATE_TRUE=
31044 RSVG_DELEGATE_FALSE='#'
31046 RSVG_DELEGATE_TRUE='#'
31047 RSVG_DELEGATE_FALSE=
31050 if test "$have_cairo" = 'yes'; then
31051 CAIRO_DELEGATE_TRUE=
31052 CAIRO_DELEGATE_FALSE='#'
31054 CAIRO_DELEGATE_TRUE='#'
31055 CAIRO_DELEGATE_FALSE=
31063 # Check for TIFF delegate library.
31066 # Check whether --with-tiff was given.
31067 if test "${with_tiff+set}" = set; then :
31068 withval=$with_tiff; with_tiff=$withval
31074 if test "$with_tiff" != 'yes'; then
31075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31080 if test "$with_tiff" != 'no'; then
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31082 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
31084 $as_echo_n "checking for TIFF... " >&6; }
31085 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31086 $as_echo "$as_me: " >&6;}
31089 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
31090 if test "x$ac_cv_header_tiff_h" = xyes; then :
31091 passed=`expr $passed + 1`
31093 failed=`expr $failed + 1`
31097 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
31098 if test "x$ac_cv_header_tiffio_h" = xyes; then :
31099 passed=`expr $passed + 1`
31101 failed=`expr $failed + 1`
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
31106 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
31107 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
31108 $as_echo_n "(cached) " >&6
31110 ac_check_lib_save_LIBS=$LIBS
31111 LIBS="-ltiff $LIBS"
31112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31113 /* end confdefs.h. */
31115 /* Override any GCC internal prototype to avoid an error.
31116 Use char because int might match the return type of a GCC
31117 builtin and then its argument prototype would still apply. */
31125 return TIFFOpen ();
31130 if ac_fn_c_try_link "$LINENO"; then :
31131 ac_cv_lib_tiff_TIFFOpen=yes
31133 ac_cv_lib_tiff_TIFFOpen=no
31135 rm -f core conftest.err conftest.$ac_objext \
31136 conftest$ac_exeext conftest.$ac_ext
31137 LIBS=$ac_check_lib_save_LIBS
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
31140 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
31141 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
31142 passed=`expr $passed + 1`
31144 failed=`expr $failed + 1`
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
31148 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
31149 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
31150 $as_echo_n "(cached) " >&6
31152 ac_check_lib_save_LIBS=$LIBS
31153 LIBS="-ltiff $LIBS"
31154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31155 /* end confdefs.h. */
31157 /* Override any GCC internal prototype to avoid an error.
31158 Use char because int might match the return type of a GCC
31159 builtin and then its argument prototype would still apply. */
31163 char TIFFClientOpen ();
31167 return TIFFClientOpen ();
31172 if ac_fn_c_try_link "$LINENO"; then :
31173 ac_cv_lib_tiff_TIFFClientOpen=yes
31175 ac_cv_lib_tiff_TIFFClientOpen=no
31177 rm -f core conftest.err conftest.$ac_objext \
31178 conftest$ac_exeext conftest.$ac_ext
31179 LIBS=$ac_check_lib_save_LIBS
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
31182 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
31183 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
31184 passed=`expr $passed + 1`
31186 failed=`expr $failed + 1`
31189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31190 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
31191 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
31192 $as_echo_n "(cached) " >&6
31194 ac_check_lib_save_LIBS=$LIBS
31195 LIBS="-ltiff $LIBS"
31196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31197 /* end confdefs.h. */
31199 /* Override any GCC internal prototype to avoid an error.
31200 Use char because int might match the return type of a GCC
31201 builtin and then its argument prototype would still apply. */
31205 char TIFFIsBigEndian ();
31209 return TIFFIsBigEndian ();
31214 if ac_fn_c_try_link "$LINENO"; then :
31215 ac_cv_lib_tiff_TIFFIsBigEndian=yes
31217 ac_cv_lib_tiff_TIFFIsBigEndian=no
31219 rm -f core conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
31221 LIBS=$ac_check_lib_save_LIBS
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31224 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
31225 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
31226 passed=`expr $passed + 1`
31228 failed=`expr $failed + 1`
31231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
31232 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
31233 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
31234 $as_echo_n "(cached) " >&6
31236 ac_check_lib_save_LIBS=$LIBS
31237 LIBS="-ltiff $LIBS"
31238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31239 /* end confdefs.h. */
31241 /* Override any GCC internal prototype to avoid an error.
31242 Use char because int might match the return type of a GCC
31243 builtin and then its argument prototype would still apply. */
31247 char TIFFIsByteSwapped ();
31251 return TIFFIsByteSwapped ();
31256 if ac_fn_c_try_link "$LINENO"; then :
31257 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31259 ac_cv_lib_tiff_TIFFIsByteSwapped=no
31261 rm -f core conftest.err conftest.$ac_objext \
31262 conftest$ac_exeext conftest.$ac_ext
31263 LIBS=$ac_check_lib_save_LIBS
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
31266 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
31267 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
31268 passed=`expr $passed + 1`
31270 failed=`expr $failed + 1`
31273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
31274 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
31275 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
31276 $as_echo_n "(cached) " >&6
31278 ac_check_lib_save_LIBS=$LIBS
31279 LIBS="-ltiff $LIBS"
31280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31281 /* end confdefs.h. */
31283 /* Override any GCC internal prototype to avoid an error.
31284 Use char because int might match the return type of a GCC
31285 builtin and then its argument prototype would still apply. */
31289 char TIFFReadRGBATile ();
31293 return TIFFReadRGBATile ();
31298 if ac_fn_c_try_link "$LINENO"; then :
31299 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31301 ac_cv_lib_tiff_TIFFReadRGBATile=no
31303 rm -f core conftest.err conftest.$ac_objext \
31304 conftest$ac_exeext conftest.$ac_ext
31305 LIBS=$ac_check_lib_save_LIBS
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
31308 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
31309 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
31310 passed=`expr $passed + 1`
31312 failed=`expr $failed + 1`
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
31316 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
31317 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
31318 $as_echo_n "(cached) " >&6
31320 ac_check_lib_save_LIBS=$LIBS
31321 LIBS="-ltiff $LIBS"
31322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31323 /* end confdefs.h. */
31325 /* Override any GCC internal prototype to avoid an error.
31326 Use char because int might match the return type of a GCC
31327 builtin and then its argument prototype would still apply. */
31331 char TIFFReadRGBAStrip ();
31335 return TIFFReadRGBAStrip ();
31340 if ac_fn_c_try_link "$LINENO"; then :
31341 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31343 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
31345 rm -f core conftest.err conftest.$ac_objext \
31346 conftest$ac_exeext conftest.$ac_ext
31347 LIBS=$ac_check_lib_save_LIBS
31349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
31350 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
31351 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
31352 passed=`expr $passed + 1`
31354 failed=`expr $failed + 1`
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
31358 $as_echo_n "checking if TIFF package is complete... " >&6; }
31359 if test $passed -gt 0; then
31360 if test $failed -gt 0; then
31361 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31362 $as_echo "$as_me: no -- some components failed test" >&6;}
31363 have_tiff='no (failed tests)'
31366 LIBS="$TIFF_LIBS $LIBS"
31368 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
31370 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31371 $as_echo "$as_me: yes" >&6;}
31373 for ac_header in tiffconf.h
31375 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
31376 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
31377 cat >>confdefs.h <<_ACEOF
31378 #define HAVE_TIFFCONF_H 1
31385 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
31386 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31387 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
31389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31390 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31391 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31392 cat >>confdefs.h <<_ACEOF
31393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31402 $as_echo "$as_me: no" >&6;}
31405 if test "$have_tiff" = 'yes'; then
31406 TIFF_DELEGATE_TRUE=
31407 TIFF_DELEGATE_FALSE='#'
31409 TIFF_DELEGATE_TRUE='#'
31410 TIFF_DELEGATE_FALSE=
31417 # Check for WEBP delegate library.
31420 # Check whether --with-webp was given.
31421 if test "${with_webp+set}" = set; then :
31422 withval=$with_webp; with_webp=$withval
31428 if test "$with_webp" != 'yes'; then
31429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31434 if test "$with_webp" != 'no'; then
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31436 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31438 $as_echo_n "checking for WEBP... " >&6; }
31439 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31440 $as_echo "$as_me: " >&6;}
31443 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31444 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31445 passed=`expr $passed + 1`
31447 failed=`expr $failed + 1`
31451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31452 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31453 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31454 $as_echo_n "(cached) " >&6
31456 ac_check_lib_save_LIBS=$LIBS
31457 LIBS="-lwebp $LIBS"
31458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31459 /* end confdefs.h. */
31461 /* Override any GCC internal prototype to avoid an error.
31462 Use char because int might match the return type of a GCC
31463 builtin and then its argument prototype would still apply. */
31467 char WebPDecodeRGB ();
31471 return WebPDecodeRGB ();
31476 if ac_fn_c_try_link "$LINENO"; then :
31477 ac_cv_lib_webp_WebPDecodeRGB=yes
31479 ac_cv_lib_webp_WebPDecodeRGB=no
31481 rm -f core conftest.err conftest.$ac_objext \
31482 conftest$ac_exeext conftest.$ac_ext
31483 LIBS=$ac_check_lib_save_LIBS
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31486 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31487 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31488 passed=`expr $passed + 1`
31490 failed=`expr $failed + 1`
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31494 $as_echo_n "checking if WEBP package is complete... " >&6; }
31495 if test $passed -gt 0; then
31496 if test $failed -gt 0; then
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31498 $as_echo "$as_me: no -- some components failed test" >&6;}
31499 have_webp='no (failed tests)'
31502 LIBS="$WEBP_LIBS $LIBS"
31504 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31506 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31507 $as_echo "$as_me: yes" >&6;}
31511 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31512 $as_echo "$as_me: no" >&6;}
31515 if test "$have_webp" = 'yes'; then
31516 WEBP_DELEGATE_TRUE=
31517 WEBP_DELEGATE_FALSE='#'
31519 WEBP_DELEGATE_TRUE='#'
31520 WEBP_DELEGATE_FALSE=
31527 # Set Windows font directory.
31530 # Check whether --with-windows-font-dir was given.
31531 if test "${with_windows_font_dir+set}" = set; then :
31532 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31534 with_windows_font_dir=''
31537 if test "$with_windows_font_dir" != '' ; then
31538 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31543 # Check for WMF delegate library.
31546 # Check whether --with-wmf was given.
31547 if test "${with_wmf+set}" = set; then :
31548 withval=$with_wmf; with_wmf=$withval
31554 if test "$with_wmf" != 'yes'; then
31555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31560 if test "$with_wmf" != 'no'; then
31561 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31562 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
31564 $as_echo_n "checking for WMF... " >&6; }
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31566 $as_echo "$as_me: " >&6;}
31569 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31570 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31571 passed=`expr $passed + 1`
31573 failed=`expr $failed + 1`
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31578 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31579 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
31580 $as_echo_n "(cached) " >&6
31582 ac_check_lib_save_LIBS=$LIBS
31583 LIBS="-lwmf "-lwmflite" $LIBS"
31584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31585 /* end confdefs.h. */
31587 /* Override any GCC internal prototype to avoid an error.
31588 Use char because int might match the return type of a GCC
31589 builtin and then its argument prototype would still apply. */
31593 char wmf_eps_function ();
31597 return wmf_eps_function ();
31602 if ac_fn_c_try_link "$LINENO"; then :
31603 ac_cv_lib_wmf_wmf_eps_function=yes
31605 ac_cv_lib_wmf_wmf_eps_function=no
31607 rm -f core conftest.err conftest.$ac_objext \
31608 conftest$ac_exeext conftest.$ac_ext
31609 LIBS=$ac_check_lib_save_LIBS
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31612 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31613 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31614 passed=`expr $passed + 1`
31616 failed=`expr $failed + 1`
31619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31620 $as_echo_n "checking if WMF package is complete... " >&6; }
31621 if test $passed -gt 0; then
31622 if test $failed -gt 0; then
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31624 $as_echo "$as_me: no -- some components failed test" >&6;}
31625 have_wmf='no (failed tests)'
31627 WMF_LIBS='-lwmf -lwmflite'
31628 LIBS="$WMF_LIBS $LIBS"
31630 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31633 $as_echo "$as_me: yes" >&6;}
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31638 $as_echo "$as_me: no" >&6;}
31641 if test "$have_wmf" = 'yes'; then
31643 WMF_DELEGATE_FALSE='#'
31645 WMF_DELEGATE_TRUE='#'
31646 WMF_DELEGATE_FALSE=
31655 # Check for XML delegate library.
31658 # Check whether --with-xml was given.
31659 if test "${with_xml+set}" = set; then :
31660 withval=$with_xml; with_xml=$withval
31666 if test "$with_xml" != 'yes' ; then
31667 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31672 if test "$with_xml" != 'no'; then
31673 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31674 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31676 $as_echo_n "checking for XML... " >&6; }
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31678 $as_echo "$as_me: " >&6;}
31679 PERSIST_LDFLAGS=$LDFLAGS
31680 PERSIST_CPPFLAGS=$CPPFLAGS
31682 # Extract the first word of "xml2-config", so it can be a program name with args.
31683 set dummy xml2-config; ac_word=$2
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31685 $as_echo_n "checking for $ac_word... " >&6; }
31686 if ${ac_cv_path_xml2_config+:} false; then :
31687 $as_echo_n "(cached) " >&6
31689 case $xml2_config in
31691 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31695 for as_dir in $PATH
31698 test -z "$as_dir" && as_dir=.
31699 for ac_exec_ext in '' $ac_executable_extensions; do
31700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31701 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31712 xml2_config=$ac_cv_path_xml2_config
31713 if test -n "$xml2_config"; then
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31715 $as_echo "$xml2_config" >&6; }
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31718 $as_echo "no" >&6; }
31721 if test -n "$xml2_config"; then
31722 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31723 # the shared library installed under /usr/lib, whereas the package
31724 # installs itself under $prefix/libxml and $prefix/lib.
31725 xml2_prefix=`xml2-config --prefix`
31726 if test -d "${xml2_prefix}/include/libxml2"; then
31727 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31729 if test "${xml2_prefix}" != '/usr'; then
31730 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31735 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31736 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31737 passed=`expr $passed + 1`
31739 failed=`expr $failed + 1`
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31744 $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31745 if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31746 $as_echo_n "(cached) " >&6
31748 ac_check_lib_save_LIBS=$LIBS
31749 LIBS="-lxml2 $LIBS"
31750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31751 /* end confdefs.h. */
31753 /* Override any GCC internal prototype to avoid an error.
31754 Use char because int might match the return type of a GCC
31755 builtin and then its argument prototype would still apply. */
31759 char xmlSAXVersion ();
31763 return xmlSAXVersion ();
31768 if ac_fn_c_try_link "$LINENO"; then :
31769 ac_cv_lib_xml2_xmlSAXVersion=yes
31771 ac_cv_lib_xml2_xmlSAXVersion=no
31773 rm -f core conftest.err conftest.$ac_objext \
31774 conftest$ac_exeext conftest.$ac_ext
31775 LIBS=$ac_check_lib_save_LIBS
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31778 $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31779 if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31780 passed=`expr $passed + 1`
31782 failed=`expr $failed + 1`
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31786 $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31787 if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31788 $as_echo_n "(cached) " >&6
31790 ac_check_lib_save_LIBS=$LIBS
31791 LIBS="-lxml2 $LIBS"
31792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31793 /* end confdefs.h. */
31795 /* Override any GCC internal prototype to avoid an error.
31796 Use char because int might match the return type of a GCC
31797 builtin and then its argument prototype would still apply. */
31801 char xmlParseChunk ();
31805 return xmlParseChunk ();
31810 if ac_fn_c_try_link "$LINENO"; then :
31811 ac_cv_lib_xml2_xmlParseChunk=yes
31813 ac_cv_lib_xml2_xmlParseChunk=no
31815 rm -f core conftest.err conftest.$ac_objext \
31816 conftest$ac_exeext conftest.$ac_ext
31817 LIBS=$ac_check_lib_save_LIBS
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31820 $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31821 if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31822 passed=`expr $passed + 1`
31824 failed=`expr $failed + 1`
31827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31828 $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31829 if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31830 $as_echo_n "(cached) " >&6
31832 ac_check_lib_save_LIBS=$LIBS
31833 LIBS="-lxml2 $LIBS"
31834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31835 /* end confdefs.h. */
31837 /* Override any GCC internal prototype to avoid an error.
31838 Use char because int might match the return type of a GCC
31839 builtin and then its argument prototype would still apply. */
31843 char xmlCreatePushParserCtxt ();
31847 return xmlCreatePushParserCtxt ();
31852 if ac_fn_c_try_link "$LINENO"; then :
31853 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31855 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31857 rm -f core conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
31859 LIBS=$ac_check_lib_save_LIBS
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31862 $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31863 if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31864 passed=`expr $passed + 1`
31866 failed=`expr $failed + 1`
31869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31870 $as_echo_n "checking if XML package is complete... " >&6; }
31871 if test $passed -gt 0; then
31872 if test $failed -gt 0; then
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31874 $as_echo "$as_me: no -- some components failed test" >&6;}
31875 have_xml='no (failed tests)'
31876 LDFLAGS="$PERSIST_LDFLAGS"
31877 CPPFLAGS="$PERSIST_CPPFLAGS"
31880 LIBS="$XML_LIBS $LIBS"
31882 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31885 $as_echo "$as_me: yes" >&6;}
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31890 $as_echo "$as_me: no" >&6;}
31893 if test "$have_xml" = 'yes'; then
31895 XML_DELEGATE_FALSE='#'
31897 XML_DELEGATE_TRUE='#'
31898 XML_DELEGATE_FALSE=
31904 # Substitute compiler name to build/link PerlMagick
31909 # Configure install Paths
31912 # Subdirectory under lib to place ImageMagick lib files
31913 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31915 cat >>confdefs.h <<_ACEOF
31916 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31920 # Path to ImageMagick bin directory
31921 EXECUTABLE_PATH="${BIN_DIR}"
31922 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31923 case "${build_os}" in
31925 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31929 cat >>confdefs.h <<_ACEOF
31930 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31935 # Path to ImageMagick lib
31936 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31937 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31938 case "${build_os}" in
31940 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31944 cat >>confdefs.h <<_ACEOF
31945 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31951 # Subdirectory under lib to place ImageMagick coder module files
31952 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31954 cat >>confdefs.h <<_ACEOF
31955 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31958 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31959 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31960 case "${build_os}" in
31962 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31966 cat >>confdefs.h <<_ACEOF
31967 #define CODER_PATH "$DEFINE_CODER_PATH"
31973 # Subdirectory under lib to place ImageMagick filter module files
31974 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31976 cat >>confdefs.h <<_ACEOF
31977 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31980 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31981 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31982 case "${build_os}" in
31984 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31988 cat >>confdefs.h <<_ACEOF
31989 #define FILTER_PATH "$DEFINE_FILTER_PATH"
31995 # Path to ImageMagick documentation files
31996 DOCUMENTATION_RELATIVE_PATH=""
31997 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31998 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
31999 case "${build_os}" in
32001 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32005 cat >>confdefs.h <<_ACEOF
32006 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32011 # Subdirectory to place ImageMagick configuration files
32012 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
32014 cat >>confdefs.h <<_ACEOF
32015 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32018 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32019 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32020 case "${build_os}" in
32022 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32026 cat >>confdefs.h <<_ACEOF
32027 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32032 # Subdirectory to place ImageMagick configuration files
32033 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
32035 cat >>confdefs.h <<_ACEOF
32036 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
32039 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32040 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
32041 case "${build_os}" in
32043 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
32047 cat >>confdefs.h <<_ACEOF
32048 #define SHARE_PATH "$DEFINE_SHARE_PATH"
32054 # program_transform_name is formed for use in a Makefile, so create a
32055 # modified version for use in a shell script.
32056 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32058 # Default delegate definitions
32059 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32060 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
32062 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32064 $as_echo "$as_me: " >&6;}
32065 AutotraceDecodeDelegateDefault='autotrace'
32066 BlenderDecodeDelegateDefault='blender'
32067 BZIPDelegateDefault='bzip2'
32068 BrowseDelegateDefault='xdg-open'
32069 CGMDecodeDelegateDefault='ralcgm'
32070 CatDelegateDefault='cat'
32071 DNGDecodeDelegateDefault='ufraw-batch'
32072 GVCDecodeDelegateDefault='dot'
32073 DVIDecodeDelegateDefault='dvips'
32074 EchoDelegateDefault='echo'
32075 EditorDelegateDefault='xterm'
32076 FIGDecodeDelegateDefault='fig2dev'
32077 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32078 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32079 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32080 GnuplotDecodeDelegateDefault='gnuplot'
32081 HPGLDecodeDelegateDefault='hp2xx'
32082 HTMLDecodeDelegateDefault='html2ps'
32083 ILBMDecodeDelegateDefault='ilbmtoppm'
32084 ILBMEncodeDelegateDefault='ppmtoilbm'
32085 LPDelegateDefault='lp'
32086 LPRDelegateDefault='lpr'
32087 LZWDecodeDelegateDefault='uncompress'
32088 LZWEncodeDelegateDefault='compress'
32089 LaunchDelegateDefault='gimp'
32090 MANDelegateDefault='groff'
32091 MPEGDecodeDelegateDefault='ffmpeg'
32092 MPEGEncodeDelegateDefault='ffmpeg'
32093 MrSIDDecodeDelegateDefault='mrsidgeodecode'
32094 MVDelegateDefault='mv'
32095 PCLDelegateDefault='pcl6'
32096 PGPDecodeDelegateDefault='pgpv'
32097 POVDelegateDefault='povray'
32098 if test "$native_win32_build" = 'yes'; then
32099 PSDelegateDefault='gswin32c'
32100 elif test "$gslib_framework" = 'yes'; then
32101 PSDelegateDefault='gsc'
32103 PSDelegateDefault='gs'
32105 RLEEncodeDelegateDefault='rawtorle'
32106 RMDelegateDefault='rm'
32107 RSVGDecodeDelegateDefault='rsvg'
32108 SCANDecodeDelegateDefault='scanimage'
32109 TXTDelegateDefault='enscript'
32110 UniconvertorDelegateDefault='uniconvertor'
32111 WMFDecodeDelegateDefault='wmf2eps'
32112 WWWDecodeDelegateDefault='curl'
32113 XPSDelegateDefault='gxps'
32114 ZipDelegateDefault='gzip'
32116 # Search for delegates
32117 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32118 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32120 $as_echo_n "checking for $ac_word... " >&6; }
32121 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
32122 $as_echo_n "(cached) " >&6
32124 case $AutotraceDecodeDelegate in
32126 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32130 for as_dir in $PATH
32133 test -z "$as_dir" && as_dir=.
32134 for ac_exec_ext in '' $ac_executable_extensions; do
32135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32136 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32144 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32148 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32149 if test -n "$AutotraceDecodeDelegate"; then
32150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
32151 $as_echo "$AutotraceDecodeDelegate" >&6; }
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32154 $as_echo "no" >&6; }
32158 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32159 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32161 $as_echo_n "checking for $ac_word... " >&6; }
32162 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
32163 $as_echo_n "(cached) " >&6
32165 case $BlenderDecodeDelegate in
32167 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32171 for as_dir in $PATH
32174 test -z "$as_dir" && as_dir=.
32175 for ac_exec_ext in '' $ac_executable_extensions; do
32176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32177 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32185 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32189 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32190 if test -n "$BlenderDecodeDelegate"; then
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
32192 $as_echo "$BlenderDecodeDelegate" >&6; }
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32195 $as_echo "no" >&6; }
32199 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32200 set dummy "$BZIPDelegateDefault"; ac_word=$2
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32202 $as_echo_n "checking for $ac_word... " >&6; }
32203 if ${ac_cv_path_BZIPDelegate+:} false; then :
32204 $as_echo_n "(cached) " >&6
32206 case $BZIPDelegate in
32208 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32212 for as_dir in $PATH
32215 test -z "$as_dir" && as_dir=.
32216 for ac_exec_ext in '' $ac_executable_extensions; do
32217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32218 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
32219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32226 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32230 BZIPDelegate=$ac_cv_path_BZIPDelegate
32231 if test -n "$BZIPDelegate"; then
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
32233 $as_echo "$BZIPDelegate" >&6; }
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32236 $as_echo "no" >&6; }
32240 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32241 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32243 $as_echo_n "checking for $ac_word... " >&6; }
32244 if ${ac_cv_path_BrowseDelegate+:} false; then :
32245 $as_echo_n "(cached) " >&6
32247 case $BrowseDelegate in
32249 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32253 for as_dir in $PATH
32256 test -z "$as_dir" && as_dir=.
32257 for ac_exec_ext in '' $ac_executable_extensions; do
32258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32259 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
32260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32267 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32271 BrowseDelegate=$ac_cv_path_BrowseDelegate
32272 if test -n "$BrowseDelegate"; then
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
32274 $as_echo "$BrowseDelegate" >&6; }
32276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32277 $as_echo "no" >&6; }
32281 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32282 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32284 $as_echo_n "checking for $ac_word... " >&6; }
32285 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
32286 $as_echo_n "(cached) " >&6
32288 case $CGMDecodeDelegate in
32290 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32294 for as_dir in $PATH
32297 test -z "$as_dir" && as_dir=.
32298 for ac_exec_ext in '' $ac_executable_extensions; do
32299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32300 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32308 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32312 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32313 if test -n "$CGMDecodeDelegate"; then
32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
32315 $as_echo "$CGMDecodeDelegate" >&6; }
32317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32318 $as_echo "no" >&6; }
32322 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32323 set dummy "$CatDelegateDefault"; ac_word=$2
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32325 $as_echo_n "checking for $ac_word... " >&6; }
32326 if ${ac_cv_path_CatDelegate+:} false; then :
32327 $as_echo_n "(cached) " >&6
32329 case $CatDelegate in
32331 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335 for as_dir in $PATH
32338 test -z "$as_dir" && as_dir=.
32339 for ac_exec_ext in '' $ac_executable_extensions; do
32340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32341 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
32342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32349 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32353 CatDelegate=$ac_cv_path_CatDelegate
32354 if test -n "$CatDelegate"; then
32355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
32356 $as_echo "$CatDelegate" >&6; }
32358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32359 $as_echo "no" >&6; }
32363 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32364 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32366 $as_echo_n "checking for $ac_word... " >&6; }
32367 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
32368 $as_echo_n "(cached) " >&6
32370 case $DNGDecodeDelegate in
32372 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376 for as_dir in $PATH
32379 test -z "$as_dir" && as_dir=.
32380 for ac_exec_ext in '' $ac_executable_extensions; do
32381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32382 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32390 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32394 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32395 if test -n "$DNGDecodeDelegate"; then
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
32397 $as_echo "$DNGDecodeDelegate" >&6; }
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400 $as_echo "no" >&6; }
32404 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32405 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32407 $as_echo_n "checking for $ac_word... " >&6; }
32408 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
32409 $as_echo_n "(cached) " >&6
32411 case $GVCDecodeDelegate in
32413 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32417 for as_dir in $PATH
32420 test -z "$as_dir" && as_dir=.
32421 for ac_exec_ext in '' $ac_executable_extensions; do
32422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32423 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32431 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32435 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32436 if test -n "$GVCDecodeDelegate"; then
32437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
32438 $as_echo "$GVCDecodeDelegate" >&6; }
32440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32441 $as_echo "no" >&6; }
32445 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32446 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32448 $as_echo_n "checking for $ac_word... " >&6; }
32449 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
32450 $as_echo_n "(cached) " >&6
32452 case $DVIDecodeDelegate in
32454 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32458 for as_dir in $PATH
32461 test -z "$as_dir" && as_dir=.
32462 for ac_exec_ext in '' $ac_executable_extensions; do
32463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32464 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32472 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32476 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32477 if test -n "$DVIDecodeDelegate"; then
32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
32479 $as_echo "$DVIDecodeDelegate" >&6; }
32481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32482 $as_echo "no" >&6; }
32486 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32487 set dummy "$EchoDelegateDefault"; ac_word=$2
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32489 $as_echo_n "checking for $ac_word... " >&6; }
32490 if ${ac_cv_path_EchoDelegate+:} false; then :
32491 $as_echo_n "(cached) " >&6
32493 case $EchoDelegate in
32495 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32499 for as_dir in $PATH
32502 test -z "$as_dir" && as_dir=.
32503 for ac_exec_ext in '' $ac_executable_extensions; do
32504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32505 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
32506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32513 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32517 EchoDelegate=$ac_cv_path_EchoDelegate
32518 if test -n "$EchoDelegate"; then
32519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32520 $as_echo "$EchoDelegate" >&6; }
32522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32523 $as_echo "no" >&6; }
32527 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32528 set dummy "$EditorDelegateDefault"; ac_word=$2
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32530 $as_echo_n "checking for $ac_word... " >&6; }
32531 if ${ac_cv_path_EditorDelegate+:} false; then :
32532 $as_echo_n "(cached) " >&6
32534 case $EditorDelegate in
32536 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32540 for as_dir in $PATH
32543 test -z "$as_dir" && as_dir=.
32544 for ac_exec_ext in '' $ac_executable_extensions; do
32545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32546 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32554 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32558 EditorDelegate=$ac_cv_path_EditorDelegate
32559 if test -n "$EditorDelegate"; then
32560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32561 $as_echo "$EditorDelegate" >&6; }
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32564 $as_echo "no" >&6; }
32568 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32569 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32571 $as_echo_n "checking for $ac_word... " >&6; }
32572 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
32573 $as_echo_n "(cached) " >&6
32575 case $FIGDecodeDelegate in
32577 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32581 for as_dir in $PATH
32584 test -z "$as_dir" && as_dir=.
32585 for ac_exec_ext in '' $ac_executable_extensions; do
32586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32587 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32595 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32599 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32600 if test -n "$FIGDecodeDelegate"; then
32601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
32602 $as_echo "$FIGDecodeDelegate" >&6; }
32604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32605 $as_echo "no" >&6; }
32609 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32610 set dummy "$ConvertDelegateDefault"; ac_word=$2
32611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32612 $as_echo_n "checking for $ac_word... " >&6; }
32613 if ${ac_cv_path_ConvertDelegate+:} false; then :
32614 $as_echo_n "(cached) " >&6
32616 case $ConvertDelegate in
32618 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32622 for as_dir in $PATH
32625 test -z "$as_dir" && as_dir=.
32626 for ac_exec_ext in '' $ac_executable_extensions; do
32627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32628 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
32629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32636 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32640 ConvertDelegate=$ac_cv_path_ConvertDelegate
32641 if test -n "$ConvertDelegate"; then
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
32643 $as_echo "$ConvertDelegate" >&6; }
32645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32646 $as_echo "no" >&6; }
32650 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32651 set dummy "$DisplayDelegateDefault"; ac_word=$2
32652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32653 $as_echo_n "checking for $ac_word... " >&6; }
32654 if ${ac_cv_path_DisplayDelegate+:} false; then :
32655 $as_echo_n "(cached) " >&6
32657 case $DisplayDelegate in
32659 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32663 for as_dir in $PATH
32666 test -z "$as_dir" && as_dir=.
32667 for ac_exec_ext in '' $ac_executable_extensions; do
32668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32669 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
32670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32677 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32681 DisplayDelegate=$ac_cv_path_DisplayDelegate
32682 if test -n "$DisplayDelegate"; then
32683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
32684 $as_echo "$DisplayDelegate" >&6; }
32686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32687 $as_echo "no" >&6; }
32691 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32692 set dummy "$MogrifyDelegateDefault"; ac_word=$2
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32694 $as_echo_n "checking for $ac_word... " >&6; }
32695 if ${ac_cv_path_MogrifyDelegate+:} false; then :
32696 $as_echo_n "(cached) " >&6
32698 case $MogrifyDelegate in
32700 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32704 for as_dir in $PATH
32707 test -z "$as_dir" && as_dir=.
32708 for ac_exec_ext in '' $ac_executable_extensions; do
32709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32710 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
32711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32718 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32722 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32723 if test -n "$MogrifyDelegate"; then
32724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
32725 $as_echo "$MogrifyDelegate" >&6; }
32727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32728 $as_echo "no" >&6; }
32732 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32733 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32735 $as_echo_n "checking for $ac_word... " >&6; }
32736 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
32737 $as_echo_n "(cached) " >&6
32739 case $GnuplotDecodeDelegate in
32741 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32745 for as_dir in $PATH
32748 test -z "$as_dir" && as_dir=.
32749 for ac_exec_ext in '' $ac_executable_extensions; do
32750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32751 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32759 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32763 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32764 if test -n "$GnuplotDecodeDelegate"; then
32765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
32766 $as_echo "$GnuplotDecodeDelegate" >&6; }
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32769 $as_echo "no" >&6; }
32773 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32774 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
32775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32776 $as_echo_n "checking for $ac_word... " >&6; }
32777 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
32778 $as_echo_n "(cached) " >&6
32780 case $HPGLDecodeDelegate in
32782 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32786 for as_dir in $PATH
32789 test -z "$as_dir" && as_dir=.
32790 for ac_exec_ext in '' $ac_executable_extensions; do
32791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32792 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32800 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32804 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32805 if test -n "$HPGLDecodeDelegate"; then
32806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
32807 $as_echo "$HPGLDecodeDelegate" >&6; }
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32810 $as_echo "no" >&6; }
32814 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32815 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32817 $as_echo_n "checking for $ac_word... " >&6; }
32818 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
32819 $as_echo_n "(cached) " >&6
32821 case $HTMLDecodeDelegate in
32823 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32827 for as_dir in $PATH
32830 test -z "$as_dir" && as_dir=.
32831 for ac_exec_ext in '' $ac_executable_extensions; do
32832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32833 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32841 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32845 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32846 if test -n "$HTMLDecodeDelegate"; then
32847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
32848 $as_echo "$HTMLDecodeDelegate" >&6; }
32850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32851 $as_echo "no" >&6; }
32855 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32856 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
32857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32858 $as_echo_n "checking for $ac_word... " >&6; }
32859 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
32860 $as_echo_n "(cached) " >&6
32862 case $ILBMDecodeDelegate in
32864 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32868 for as_dir in $PATH
32871 test -z "$as_dir" && as_dir=.
32872 for ac_exec_ext in '' $ac_executable_extensions; do
32873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32874 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32882 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32886 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32887 if test -n "$ILBMDecodeDelegate"; then
32888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
32889 $as_echo "$ILBMDecodeDelegate" >&6; }
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32892 $as_echo "no" >&6; }
32896 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32897 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
32898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32899 $as_echo_n "checking for $ac_word... " >&6; }
32900 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
32901 $as_echo_n "(cached) " >&6
32903 case $ILBMEncodeDelegate in
32905 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32909 for as_dir in $PATH
32912 test -z "$as_dir" && as_dir=.
32913 for ac_exec_ext in '' $ac_executable_extensions; do
32914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32915 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32923 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32927 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32928 if test -n "$ILBMEncodeDelegate"; then
32929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
32930 $as_echo "$ILBMEncodeDelegate" >&6; }
32932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32933 $as_echo "no" >&6; }
32937 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32938 set dummy "$LPDelegateDefault"; ac_word=$2
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32940 $as_echo_n "checking for $ac_word... " >&6; }
32941 if ${ac_cv_path_LPDelegate+:} false; then :
32942 $as_echo_n "(cached) " >&6
32944 case $LPDelegate in
32946 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32950 for as_dir in $PATH
32953 test -z "$as_dir" && as_dir=.
32954 for ac_exec_ext in '' $ac_executable_extensions; do
32955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32956 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
32957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32964 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32968 LPDelegate=$ac_cv_path_LPDelegate
32969 if test -n "$LPDelegate"; then
32970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
32971 $as_echo "$LPDelegate" >&6; }
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32974 $as_echo "no" >&6; }
32978 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32979 set dummy "$LPRDelegateDefault"; ac_word=$2
32980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32981 $as_echo_n "checking for $ac_word... " >&6; }
32982 if ${ac_cv_path_LPRDelegate+:} false; then :
32983 $as_echo_n "(cached) " >&6
32985 case $LPRDelegate in
32987 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32991 for as_dir in $PATH
32994 test -z "$as_dir" && as_dir=.
32995 for ac_exec_ext in '' $ac_executable_extensions; do
32996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32997 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
32998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33005 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33009 LPRDelegate=$ac_cv_path_LPRDelegate
33010 if test -n "$LPRDelegate"; then
33011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
33012 $as_echo "$LPRDelegate" >&6; }
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33015 $as_echo "no" >&6; }
33019 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33020 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33022 $as_echo_n "checking for $ac_word... " >&6; }
33023 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
33024 $as_echo_n "(cached) " >&6
33026 case $LZWDecodeDelegate in
33028 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33032 for as_dir in $PATH
33035 test -z "$as_dir" && as_dir=.
33036 for ac_exec_ext in '' $ac_executable_extensions; do
33037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33038 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33046 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33050 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33051 if test -n "$LZWDecodeDelegate"; then
33052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
33053 $as_echo "$LZWDecodeDelegate" >&6; }
33055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33056 $as_echo "no" >&6; }
33060 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33061 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33063 $as_echo_n "checking for $ac_word... " >&6; }
33064 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
33065 $as_echo_n "(cached) " >&6
33067 case $LZWEncodeDelegate in
33069 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33073 for as_dir in $PATH
33076 test -z "$as_dir" && as_dir=.
33077 for ac_exec_ext in '' $ac_executable_extensions; do
33078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33079 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33087 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33091 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33092 if test -n "$LZWEncodeDelegate"; then
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
33094 $as_echo "$LZWEncodeDelegate" >&6; }
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33097 $as_echo "no" >&6; }
33101 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33102 set dummy "$LaunchDelegateDefault"; ac_word=$2
33103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33104 $as_echo_n "checking for $ac_word... " >&6; }
33105 if ${ac_cv_path_LaunchDelegate+:} false; then :
33106 $as_echo_n "(cached) " >&6
33108 case $LaunchDelegate in
33110 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33114 for as_dir in $PATH
33117 test -z "$as_dir" && as_dir=.
33118 for ac_exec_ext in '' $ac_executable_extensions; do
33119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33120 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
33121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33128 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33132 LaunchDelegate=$ac_cv_path_LaunchDelegate
33133 if test -n "$LaunchDelegate"; then
33134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
33135 $as_echo "$LaunchDelegate" >&6; }
33137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33138 $as_echo "no" >&6; }
33142 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33143 set dummy "$MANDelegateDefault"; ac_word=$2
33144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33145 $as_echo_n "checking for $ac_word... " >&6; }
33146 if ${ac_cv_path_MANDelegate+:} false; then :
33147 $as_echo_n "(cached) " >&6
33149 case $MANDelegate in
33151 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33155 for as_dir in $PATH
33158 test -z "$as_dir" && as_dir=.
33159 for ac_exec_ext in '' $ac_executable_extensions; do
33160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33161 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
33162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33169 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33173 MANDelegate=$ac_cv_path_MANDelegate
33174 if test -n "$MANDelegate"; then
33175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
33176 $as_echo "$MANDelegate" >&6; }
33178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33179 $as_echo "no" >&6; }
33183 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33184 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33186 $as_echo_n "checking for $ac_word... " >&6; }
33187 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33188 $as_echo_n "(cached) " >&6
33190 case $MPEGDecodeDelegate in
33192 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33196 for as_dir in $PATH
33199 test -z "$as_dir" && as_dir=.
33200 for ac_exec_ext in '' $ac_executable_extensions; do
33201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33202 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33210 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33214 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33215 if test -n "$MPEGDecodeDelegate"; then
33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33217 $as_echo "$MPEGDecodeDelegate" >&6; }
33219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33220 $as_echo "no" >&6; }
33224 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33225 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33227 $as_echo_n "checking for $ac_word... " >&6; }
33228 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33229 $as_echo_n "(cached) " >&6
33231 case $MPEGEncodeDelegate in
33233 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33237 for as_dir in $PATH
33240 test -z "$as_dir" && as_dir=.
33241 for ac_exec_ext in '' $ac_executable_extensions; do
33242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33243 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33251 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33255 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33256 if test -n "$MPEGEncodeDelegate"; then
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33258 $as_echo "$MPEGEncodeDelegate" >&6; }
33260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33261 $as_echo "no" >&6; }
33265 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33266 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33268 $as_echo_n "checking for $ac_word... " >&6; }
33269 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
33270 $as_echo_n "(cached) " >&6
33272 case $MrSIDDecodeDelegate in
33274 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33278 for as_dir in $PATH
33281 test -z "$as_dir" && as_dir=.
33282 for ac_exec_ext in '' $ac_executable_extensions; do
33283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33284 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33292 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33296 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33297 if test -n "$MrSIDDecodeDelegate"; then
33298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33299 $as_echo "$MrSIDDecodeDelegate" >&6; }
33301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33302 $as_echo "no" >&6; }
33306 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33307 set dummy "$MVDelegateDefault"; ac_word=$2
33308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33309 $as_echo_n "checking for $ac_word... " >&6; }
33310 if ${ac_cv_path_MVDelegate+:} false; then :
33311 $as_echo_n "(cached) " >&6
33313 case $MVDelegate in
33315 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33319 for as_dir in $PATH
33322 test -z "$as_dir" && as_dir=.
33323 for ac_exec_ext in '' $ac_executable_extensions; do
33324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33325 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
33326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33333 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33337 MVDelegate=$ac_cv_path_MVDelegate
33338 if test -n "$MVDelegate"; then
33339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
33340 $as_echo "$MVDelegate" >&6; }
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33343 $as_echo "no" >&6; }
33347 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33348 set dummy "$PCLDelegateDefault"; ac_word=$2
33349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33350 $as_echo_n "checking for $ac_word... " >&6; }
33351 if ${ac_cv_path_PCLDelegate+:} false; then :
33352 $as_echo_n "(cached) " >&6
33354 case $PCLDelegate in
33356 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33360 for as_dir in $PATH
33363 test -z "$as_dir" && as_dir=.
33364 for ac_exec_ext in '' $ac_executable_extensions; do
33365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33366 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
33367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33374 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33378 PCLDelegate=$ac_cv_path_PCLDelegate
33379 if test -n "$PCLDelegate"; then
33380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
33381 $as_echo "$PCLDelegate" >&6; }
33383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33384 $as_echo "no" >&6; }
33388 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33389 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
33390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33391 $as_echo_n "checking for $ac_word... " >&6; }
33392 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
33393 $as_echo_n "(cached) " >&6
33395 case $PGPDecodeDelegate in
33397 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33401 for as_dir in $PATH
33404 test -z "$as_dir" && as_dir=.
33405 for ac_exec_ext in '' $ac_executable_extensions; do
33406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33407 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33415 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33419 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33420 if test -n "$PGPDecodeDelegate"; then
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
33422 $as_echo "$PGPDecodeDelegate" >&6; }
33424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33425 $as_echo "no" >&6; }
33429 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33430 set dummy "$POVDelegateDefault"; ac_word=$2
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33432 $as_echo_n "checking for $ac_word... " >&6; }
33433 if ${ac_cv_path_POVDelegate+:} false; then :
33434 $as_echo_n "(cached) " >&6
33436 case $POVDelegate in
33438 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33442 for as_dir in $PATH
33445 test -z "$as_dir" && as_dir=.
33446 for ac_exec_ext in '' $ac_executable_extensions; do
33447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33448 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
33449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33456 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33460 POVDelegate=$ac_cv_path_POVDelegate
33461 if test -n "$POVDelegate"; then
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
33463 $as_echo "$POVDelegate" >&6; }
33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33466 $as_echo "no" >&6; }
33470 for ac_prog in gsx gsc "$PSDelegateDefault"
33472 # Extract the first word of "$ac_prog", so it can be a program name with args.
33473 set dummy $ac_prog; ac_word=$2
33474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33475 $as_echo_n "checking for $ac_word... " >&6; }
33476 if ${ac_cv_path_PSDelegate+:} false; then :
33477 $as_echo_n "(cached) " >&6
33479 case $PSDelegate in
33481 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33485 for as_dir in $PATH
33488 test -z "$as_dir" && as_dir=.
33489 for ac_exec_ext in '' $ac_executable_extensions; do
33490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33491 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
33492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33502 PSDelegate=$ac_cv_path_PSDelegate
33503 if test -n "$PSDelegate"; then
33504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
33505 $as_echo "$PSDelegate" >&6; }
33507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33508 $as_echo "no" >&6; }
33512 test -n "$PSDelegate" && break
33514 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33516 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33517 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33519 $as_echo_n "checking for $ac_word... " >&6; }
33520 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
33521 $as_echo_n "(cached) " >&6
33523 case $RLEEncodeDelegate in
33525 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33529 for as_dir in $PATH
33532 test -z "$as_dir" && as_dir=.
33533 for ac_exec_ext in '' $ac_executable_extensions; do
33534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33535 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33543 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33547 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33548 if test -n "$RLEEncodeDelegate"; then
33549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
33550 $as_echo "$RLEEncodeDelegate" >&6; }
33552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33553 $as_echo "no" >&6; }
33557 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33558 set dummy "$RMDelegateDefault"; ac_word=$2
33559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33560 $as_echo_n "checking for $ac_word... " >&6; }
33561 if ${ac_cv_path_RMDelegate+:} false; then :
33562 $as_echo_n "(cached) " >&6
33564 case $RMDelegate in
33566 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33570 for as_dir in $PATH
33573 test -z "$as_dir" && as_dir=.
33574 for ac_exec_ext in '' $ac_executable_extensions; do
33575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33576 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
33577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33584 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33588 RMDelegate=$ac_cv_path_RMDelegate
33589 if test -n "$RMDelegate"; then
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
33591 $as_echo "$RMDelegate" >&6; }
33593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33594 $as_echo "no" >&6; }
33598 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33599 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33601 $as_echo_n "checking for $ac_word... " >&6; }
33602 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
33603 $as_echo_n "(cached) " >&6
33605 case $RSVGDecodeDelegate in
33607 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33611 for as_dir in $PATH
33614 test -z "$as_dir" && as_dir=.
33615 for ac_exec_ext in '' $ac_executable_extensions; do
33616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33617 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33625 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33629 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33630 if test -n "$RSVGDecodeDelegate"; then
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33632 $as_echo "$RSVGDecodeDelegate" >&6; }
33634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33635 $as_echo "no" >&6; }
33639 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33640 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
33641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33642 $as_echo_n "checking for $ac_word... " >&6; }
33643 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
33644 $as_echo_n "(cached) " >&6
33646 case $SCANDecodeDelegate in
33648 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33652 for as_dir in $PATH
33655 test -z "$as_dir" && as_dir=.
33656 for ac_exec_ext in '' $ac_executable_extensions; do
33657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33658 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33666 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33670 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33671 if test -n "$SCANDecodeDelegate"; then
33672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
33673 $as_echo "$SCANDecodeDelegate" >&6; }
33675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33676 $as_echo "no" >&6; }
33680 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33681 set dummy "$TXTDelegateDefault"; ac_word=$2
33682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33683 $as_echo_n "checking for $ac_word... " >&6; }
33684 if ${ac_cv_path_TXTDelegate+:} false; then :
33685 $as_echo_n "(cached) " >&6
33687 case $TXTDelegate in
33689 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33693 for as_dir in $PATH
33696 test -z "$as_dir" && as_dir=.
33697 for ac_exec_ext in '' $ac_executable_extensions; do
33698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33699 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
33700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33707 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33711 TXTDelegate=$ac_cv_path_TXTDelegate
33712 if test -n "$TXTDelegate"; then
33713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
33714 $as_echo "$TXTDelegate" >&6; }
33716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33717 $as_echo "no" >&6; }
33721 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33722 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33724 $as_echo_n "checking for $ac_word... " >&6; }
33725 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
33726 $as_echo_n "(cached) " >&6
33728 case $UniconvertorDelegate in
33730 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33734 for as_dir in $PATH
33737 test -z "$as_dir" && as_dir=.
33738 for ac_exec_ext in '' $ac_executable_extensions; do
33739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33740 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33748 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33752 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33753 if test -n "$UniconvertorDelegate"; then
33754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33755 $as_echo "$UniconvertorDelegate" >&6; }
33757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33758 $as_echo "no" >&6; }
33762 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33763 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
33764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33765 $as_echo_n "checking for $ac_word... " >&6; }
33766 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
33767 $as_echo_n "(cached) " >&6
33769 case $WMFDecodeDelegate in
33771 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33775 for as_dir in $PATH
33778 test -z "$as_dir" && as_dir=.
33779 for ac_exec_ext in '' $ac_executable_extensions; do
33780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33781 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33789 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33793 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33794 if test -n "$WMFDecodeDelegate"; then
33795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
33796 $as_echo "$WMFDecodeDelegate" >&6; }
33798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33799 $as_echo "no" >&6; }
33803 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33804 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
33805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33806 $as_echo_n "checking for $ac_word... " >&6; }
33807 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
33808 $as_echo_n "(cached) " >&6
33810 case $WWWDecodeDelegate in
33812 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33816 for as_dir in $PATH
33819 test -z "$as_dir" && as_dir=.
33820 for ac_exec_ext in '' $ac_executable_extensions; do
33821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33822 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33830 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33834 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33835 if test -n "$WWWDecodeDelegate"; then
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
33837 $as_echo "$WWWDecodeDelegate" >&6; }
33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840 $as_echo "no" >&6; }
33844 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33845 set dummy "$XPSDelegateDefault"; ac_word=$2
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33847 $as_echo_n "checking for $ac_word... " >&6; }
33848 if ${ac_cv_path_XPSDelegate+:} false; then :
33849 $as_echo_n "(cached) " >&6
33851 case $XPSDelegate in
33853 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33857 for as_dir in $PATH
33860 test -z "$as_dir" && as_dir=.
33861 for ac_exec_ext in '' $ac_executable_extensions; do
33862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33863 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
33864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33871 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33875 XPSDelegate=$ac_cv_path_XPSDelegate
33876 if test -n "$XPSDelegate"; then
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
33878 $as_echo "$XPSDelegate" >&6; }
33880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33881 $as_echo "no" >&6; }
33885 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33886 set dummy "$ZipDelegateDefault"; ac_word=$2
33887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33888 $as_echo_n "checking for $ac_word... " >&6; }
33889 if ${ac_cv_path_ZipDelegate+:} false; then :
33890 $as_echo_n "(cached) " >&6
33892 case $ZipDelegate in
33894 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33898 for as_dir in $PATH
33901 test -z "$as_dir" && as_dir=.
33902 for ac_exec_ext in '' $ac_executable_extensions; do
33903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33904 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
33905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33912 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33916 ZipDelegate=$ac_cv_path_ZipDelegate
33917 if test -n "$ZipDelegate"; then
33918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
33919 $as_echo "$ZipDelegate" >&6; }
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33922 $as_echo "no" >&6; }
33927 # Prefer lpr to lp; lp needs options tacked on.
33928 if test "$LPRDelegate" != no; then
33929 PrintDelegate="$LPRDelegate"
33931 PrintDelegate="$LPDelegate -c -s"
33935 # Installed ImageMagick utiltity paths
33936 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33937 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33938 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33940 # Set delegate booleans
33941 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33942 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33943 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33944 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33945 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
33946 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
33947 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33948 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
33949 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33950 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33953 # Test for font directories
33955 type_include_files=''
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33959 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
33961 if test "${with_dejavu_font_dir}" != 'default'; then
33962 dejavu_font_dir="${with_dejavu_font_dir}/"
33964 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33965 if test -f "${font_dir}DejaVuSerif.ttf"; then
33966 dejavu_font_dir="${font_dir}"
33971 if test "${dejavu_font_dir}x" != 'x'; then
33972 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33973 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33974 $as_echo "$as_me: $dejavu_font_dir" >&6;}
33976 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33977 $as_echo "$as_me: not found!" >&6;};
33982 windows_font_dir=''
33983 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33984 windows_font_dir="${with_windows_font_dir}/"
33986 if test "${windows_font_dir}x" != 'x'; then
33987 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33988 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33990 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33991 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33993 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33994 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33997 if test "${windows_font_dir}x" != 'x'; then
33998 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34004 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34005 ghostscript_font_dir=''
34006 if test "${with_gs_font_dir}" != 'default'; then
34007 ghostscript_font_dir="${with_gs_font_dir}/"
34009 if test "${native_win32_build}" = 'yes'; then
34010 # Native Windows Build
34011 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34012 if test -f "${font_dir}a010013l.pfb"; then
34013 ghostscript_font_dir="$font_dir"
34017 if test "${PSDelegate}" != 'gswin32c'; then
34018 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34021 # Linux / Mac OS X / Unix Build
34022 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/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
34023 if test -f "${font_dir}a010013l.pfb"; then
34024 ghostscript_font_dir="${font_dir}"
34028 if test "${ghostscript_font_dir}x" = 'x'; then
34029 if test "$PSDelegate" != 'gs'; then
34030 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34035 if test "${ghostscript_font_dir}x" != 'x'; then
34036 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
34037 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34038 $as_echo "$as_me: $ghostscript_font_dir" >&6;}
34040 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34041 $as_echo "$as_me: not found!" >&6;};
34044 case "${build_os}" in
34046 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34053 # Handle case where user doesn't want frozen paths
34055 if test "$with_frozenpaths" != 'yes'; then
34056 # Re-set delegate definitions to default (no paths)
34057 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
34058 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34059 BZIPDelegate="$BZIPDelegateDefault"
34060 BrowseDelegate="$BrowseDelegateDefault"
34061 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34062 CatDelegate="$CatDelegateDefault"
34063 ConvertDelegate="$ConvertDelegateDefault"
34064 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34065 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34066 EchoDelegate="$EchoDelegateDefault"
34067 EditorDelegate="$EditorDelegateDefault"
34068 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34069 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34070 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34071 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34072 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34073 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34074 LPDelegate="$LPDelegateDefault"
34075 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34076 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34077 LaunchDelegate="$LaunchDelegateDefault"
34078 MANDelegate="$MANDelegateDefault"
34079 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34080 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
34081 MogrifyDelegate="$MogrifyDelegateDefault"
34082 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34083 MVDelegate="$MVDelegateDefault"
34084 PCLDelegate="$PCLDelegateDefault"
34085 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34086 POVDelegate="$POVDelegateDefault"
34087 PSDelegate="$PSDelegateDefault"
34088 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34089 RMDelegate="$RMDelegateDefault"
34090 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
34091 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34092 ShowImageDelegate="$ShowImageDelegateDefault"
34093 TXTDelegate="$TXTDelegateDefault"
34094 UniconvertorDelegate="$UniconvertorDelegateDefault"
34095 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34096 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34097 XPSDelegate="$XPSDelegateDefault"
34098 ZipDelegate="$ZipDelegateDefault"
34101 # Delegate substitutions
34148 for ac_prog in gnutar gtar tar
34150 # Extract the first word of "$ac_prog", so it can be a program name with args.
34151 set dummy $ac_prog; ac_word=$2
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34153 $as_echo_n "checking for $ac_word... " >&6; }
34154 if ${ac_cv_prog_TAR+:} false; then :
34155 $as_echo_n "(cached) " >&6
34157 if test -n "$TAR"; then
34158 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34161 for as_dir in $PATH
34164 test -z "$as_dir" && as_dir=.
34165 for ac_exec_ext in '' $ac_executable_extensions; do
34166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34167 ac_cv_prog_TAR="$ac_prog"
34168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34177 TAR=$ac_cv_prog_TAR
34178 if test -n "$TAR"; then
34179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
34180 $as_echo "$TAR" >&6; }
34182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34183 $as_echo "no" >&6; }
34187 test -n "$TAR" && break
34190 for ac_prog in perl
34192 # Extract the first word of "$ac_prog", so it can be a program name with args.
34193 set dummy $ac_prog; ac_word=$2
34194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34195 $as_echo_n "checking for $ac_word... " >&6; }
34196 if ${ac_cv_prog_PERL+:} false; then :
34197 $as_echo_n "(cached) " >&6
34199 if test -n "$PERL"; then
34200 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203 for as_dir in $PATH
34206 test -z "$as_dir" && as_dir=.
34207 for ac_exec_ext in '' $ac_executable_extensions; do
34208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34209 ac_cv_prog_PERL="$ac_prog"
34210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34219 PERL=$ac_cv_prog_PERL
34220 if test -n "$PERL"; then
34221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34222 $as_echo "$PERL" >&6; }
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34225 $as_echo "no" >&6; }
34229 test -n "$PERL" && break
34232 for ac_prog in rpmbuild rpm
34234 # Extract the first word of "$ac_prog", so it can be a program name with args.
34235 set dummy $ac_prog; ac_word=$2
34236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34237 $as_echo_n "checking for $ac_word... " >&6; }
34238 if ${ac_cv_prog_RPM+:} false; then :
34239 $as_echo_n "(cached) " >&6
34241 if test -n "$RPM"; then
34242 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34245 for as_dir in $PATH
34248 test -z "$as_dir" && as_dir=.
34249 for ac_exec_ext in '' $ac_executable_extensions; do
34250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34251 ac_cv_prog_RPM="$ac_prog"
34252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34261 RPM=$ac_cv_prog_RPM
34262 if test -n "$RPM"; then
34263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
34264 $as_echo "$RPM" >&6; }
34266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34267 $as_echo "no" >&6; }
34271 test -n "$RPM" && break
34275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34287 if test "x$RPM" != "x" ; then
34289 RPM_DELEGATE_FALSE='#'
34291 RPM_DELEGATE_TRUE='#'
34292 RPM_DELEGATE_FALSE=
34297 # 7ZIP support (http://p7zip.sourceforge.net/)
34302 # Extract the first word of "$ac_prog", so it can be a program name with args.
34303 set dummy $ac_prog; ac_word=$2
34304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34305 $as_echo_n "checking for $ac_word... " >&6; }
34306 if ${ac_cv_prog_P7ZIP+:} false; then :
34307 $as_echo_n "(cached) " >&6
34309 if test -n "$P7ZIP"; then
34310 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34313 for as_dir in $PATH
34316 test -z "$as_dir" && as_dir=.
34317 for ac_exec_ext in '' $ac_executable_extensions; do
34318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34319 ac_cv_prog_P7ZIP="$ac_prog"
34320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34329 P7ZIP=$ac_cv_prog_P7ZIP
34330 if test -n "$P7ZIP"; then
34331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
34332 $as_echo "$P7ZIP" >&6; }
34334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34335 $as_echo "no" >&6; }
34339 test -n "$P7ZIP" && break
34343 if test "x$P7ZIP" != "x" ; then
34344 P7ZIP_DELEGATE_TRUE=
34345 P7ZIP_DELEGATE_FALSE='#'
34347 P7ZIP_DELEGATE_TRUE='#'
34348 P7ZIP_DELEGATE_FALSE=
34353 # ZIP support (http://www.info-zip.org/Zip.html)
34358 # Extract the first word of "$ac_prog", so it can be a program name with args.
34359 set dummy $ac_prog; ac_word=$2
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34361 $as_echo_n "checking for $ac_word... " >&6; }
34362 if ${ac_cv_prog_ZIP+:} false; then :
34363 $as_echo_n "(cached) " >&6
34365 if test -n "$ZIP"; then
34366 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34369 for as_dir in $PATH
34372 test -z "$as_dir" && as_dir=.
34373 for ac_exec_ext in '' $ac_executable_extensions; do
34374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34375 ac_cv_prog_ZIP="$ac_prog"
34376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34385 ZIP=$ac_cv_prog_ZIP
34386 if test -n "$ZIP"; then
34387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
34388 $as_echo "$ZIP" >&6; }
34390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34391 $as_echo "no" >&6; }
34395 test -n "$ZIP" && break
34399 if test "x$ZIP" != "x" ; then
34401 ZIP_DELEGATE_FALSE='#'
34403 ZIP_DELEGATE_TRUE='#'
34404 ZIP_DELEGATE_FALSE=
34409 # GhostPCL related configuration.
34411 PCLColorDevice=ppmraw
34412 PCLCMYKDevice=pamcmyk32
34413 PCLMonoDevice=pbmraw
34414 if test -z "$PCLVersion"; then
34415 PCLVersion='unknown'
34417 if test $have_pcl = 'yes'; then
34418 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34419 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
34421 $as_echo_n "checking for PCL... " >&6; }
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34423 $as_echo "$as_me: " >&6;}
34425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
34426 $as_echo_n "checking for pcl color device... " >&6; }
34427 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34430 PCLColorDevice=ppmraw
34432 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34433 $as_echo "$as_me: $PCLColorDevice" >&6;}
34436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
34437 $as_echo_n "checking for pcl CMYK device... " >&6; }
34438 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34441 PCLCMYKDevice=$PCLColorDevice
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34444 $as_echo "$as_me: $PCLCMYKDevice" >&6;}
34447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
34448 $as_echo_n "checking for pcl mono device... " >&6; }
34449 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34452 PCLMonoDevice=$PCLColorDevice
34454 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34455 $as_echo "$as_me: $PCLMonoDevice" >&6;}
34464 # GhostXPS related configuration.
34466 XPSColorDevice=ppmraw
34467 XPSCMYKDevice=bmpsep8
34468 XPSMonoDevice=pbmraw
34469 if test -z "$XPSVersion"; then
34470 XPSVersion='unknown'
34472 if test $have_xps = 'yes'; then
34473 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34474 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
34476 $as_echo_n "checking for XPS... " >&6; }
34477 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34478 $as_echo "$as_me: " >&6;}
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
34481 $as_echo_n "checking for xps color device... " >&6; }
34482 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34485 XPSColorDevice=ppmraw
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34488 $as_echo "$as_me: $XPSColorDevice" >&6;}
34491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
34492 $as_echo_n "checking for xps CMYK device... " >&6; }
34493 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34496 XPSCMYKDevice=$XPSColorDevice
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34499 $as_echo "$as_me: $XPSCMYKDevice" >&6;}
34502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
34503 $as_echo_n "checking for xps mono device... " >&6; }
34504 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34507 XPSMonoDevice=$XPSColorDevice
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34510 $as_echo "$as_me: $XPSMonoDevice" >&6;}
34519 # Ghostscript related configuration.
34521 GSAlphaDevice=pngalpha
34522 GSColorDevice=pnmraw
34524 GSMonoDevice=pbmraw
34525 GSPDFDevice=pdfwrite
34527 GSEPSDevice=epswrite
34528 GSVersion='unknown'
34529 if test $have_gs = 'yes'; then
34530 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34531 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
34533 $as_echo_n "checking for Ghostscript... " >&6; }
34534 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34535 $as_echo "$as_me: " >&6;}
34536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
34537 $as_echo_n "checking for Ghostscript version... " >&6; }
34538 if GSVersion=`$PSDelegate --version`; then
34541 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34543 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34544 $as_echo "$as_me: $GSVersion" >&6;}
34547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
34548 $as_echo_n "checking for gs alpha device... " >&6; }
34549 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34552 GSAlphaDevice=pnmraw
34554 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34555 $as_echo "$as_me: $GSAlphaDevice" >&6;}
34558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
34559 $as_echo_n "checking for gs color device... " >&6; }
34560 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34563 GSColorDevice=pnmraw
34565 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34566 $as_echo "$as_me: $GSColorDevice" >&6;}
34569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
34570 $as_echo_n "checking for gs CMYK device... " >&6; }
34571 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34574 GSCMYKDevice=bmpsep8
34576 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34577 $as_echo "$as_me: $GSCMYKDevice" >&6;}
34580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
34581 $as_echo_n "checking for gs mono device... " >&6; }
34582 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34585 GSMonoDevice=$GSColorDevice
34587 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34588 $as_echo "$as_me: $GSMonoDevice" >&6;}
34591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
34592 $as_echo_n "checking for gs PDF writing device... " >&6; }
34593 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34596 GSPDFDevice=nodevice
34598 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34599 $as_echo "$as_me: $GSPDFDevice" >&6;}
34602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
34603 $as_echo_n "checking for gs PS writing device... " >&6; }
34604 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34607 GSPSDevice=nodevice
34609 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34610 $as_echo "$as_me: $GSPSDevice" >&6;}
34613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
34614 $as_echo_n "checking for gs EPS writing device... " >&6; }
34615 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34618 GSEPSDevice=nodevice
34620 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34621 $as_echo "$as_me: $GSEPSDevice" >&6;}
34634 # PerlMagick-related configuration
34637 # Look for PERL if PerlMagick requested
34638 # If name/path of desired PERL interpreter is specified, look for that one first
34640 if test "$with_perl" != 'no'; then
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34642 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
34644 $as_echo_n "checking for Perl... " >&6; }
34645 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34646 $as_echo "$as_me: " >&6;}
34647 if test "$with_perl" != 'yes'; then
34648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
34649 $as_echo_n "checking for perl... " >&6; }
34650 if ${ac_cv_path_PERL+:} false; then :
34651 $as_echo_n "(cached) " >&6
34653 ac_cv_path_PERL="$with_perl"
34655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
34656 $as_echo "$ac_cv_path_PERL" >&6; };
34657 PERL=$ac_cv_path_PERL
34658 have_perl="$ac_cv_path_PERL"
34660 for ac_prog in perl perl5
34662 # Extract the first word of "$ac_prog", so it can be a program name with args.
34663 set dummy $ac_prog; ac_word=$2
34664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34665 $as_echo_n "checking for $ac_word... " >&6; }
34666 if ${ac_cv_path_PERL+:} false; then :
34667 $as_echo_n "(cached) " >&6
34671 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34675 for as_dir in $PATH
34678 test -z "$as_dir" && as_dir=.
34679 for ac_exec_ext in '' $ac_executable_extensions; do
34680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34681 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34692 PERL=$ac_cv_path_PERL
34693 if test -n "$PERL"; then
34694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34695 $as_echo "$PERL" >&6; }
34697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34698 $as_echo "no" >&6; }
34702 test -n "$PERL" && break
34704 if test "$ac_cv_path_PERL"; then
34705 have_perl="$ac_cv_path_PERL"
34710 if test "$with_perl" != 'yes' ; then
34711 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34714 PERL_SUPPORTS_DESTDIR='no'
34716 with_perl_static='no'
34717 with_perl_dynamic='no'
34718 if test "$have_perl" != 'no'; then
34719 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34720 with_perl_static='yes'
34722 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34723 with_perl_dynamic='yes'
34725 # Is PERL's MakeMaker new enough to support DESTDIR?
34730 if test -n "$PERL"; then :
34732 ax_perl_version="5.8.1"
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34735 $as_echo_n "checking for perl version... " >&6; }
34737 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34740 $as_echo "$perl_version" >&6; }
34742 PERL_VERSION=$perl_version
34748 # Used to indicate true or false condition
34749 ax_compare_version=false
34751 # Convert the two version strings to be compared into a format that
34752 # allows a simple string comparison. The end result is that a version
34753 # string of the form 1.12.5-r617 will be converted to the form
34754 # 0001001200050617. In other words, each number is zero padded to four
34755 # digits, and non digits are removed.
34757 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34758 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34759 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34760 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34764 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34765 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34766 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34767 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34771 ax_compare_version=`echo "x$ax_compare_version_A
34772 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34776 if test "$ax_compare_version" = "true" ; then
34779 PERL_SUPPORTS_DESTDIR='yes'
34783 PERL_SUPPORTS_DESTDIR='no'
34790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34791 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34792 PERL_SUPPORTS_DESTDIR='no'
34797 if test "$have_perl" != 'no'; then
34799 WITH_PERL_FALSE='#'
34805 if test $with_perl_static = 'yes'; then
34806 WITH_PERL_STATIC_TRUE=
34807 WITH_PERL_STATIC_FALSE='#'
34809 WITH_PERL_STATIC_TRUE='#'
34810 WITH_PERL_STATIC_FALSE=
34813 if test $with_perl_dynamic = 'yes'; then
34814 WITH_PERL_DYNAMIC_TRUE=
34815 WITH_PERL_DYNAMIC_FALSE='#'
34817 WITH_PERL_DYNAMIC_TRUE='#'
34818 WITH_PERL_DYNAMIC_FALSE=
34823 # Determine path to pick up MagickCore library from for use with building PerlMagick
34824 MAGICKCORE_PATH="${LIB_DIR}"
34825 if test $with_perl_static = 'yes'; then
34826 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34827 libtool_objdir=$objdir
34829 # Linker search path to library, followed by -lMagickCore
34830 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
34834 # Create a simple string containing format names for all delegate libraries
34836 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34837 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34838 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34839 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34840 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34841 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34842 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34843 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34844 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34845 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34846 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34847 if test "$have_jpeg" = 'yes'; then
34848 DELEGATES="$DELEGATES jpeg";
34849 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34851 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
34852 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
34853 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34854 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
34855 if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
34856 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34857 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34858 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34859 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34860 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34861 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34862 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34863 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34864 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34869 # Handle special compiler flags
34872 # Add '-p' if prof source profiling support enabled
34873 if test "$enable_prof" = 'yes'; then
34874 CFLAGS="-p $CFLAGS"
34875 CXXFLAGS="-p $CXXFLAGS"
34876 LDFLAGS="-p $LDFLAGS"
34879 # Add '-pg' if gprof source profiling support enabled
34880 if test "$enable_gprof" = 'yes'; then
34881 CFLAGS="-pg $CFLAGS"
34882 CXXFLAGS="-pg $CXXFLAGS"
34883 LDFLAGS="-pg $LDFLAGS"
34886 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34887 # This is a gcc-specific feature
34888 if test "$enable_gcov" = 'yes'; then
34889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
34890 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
34891 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
34892 $as_echo_n "(cached) " >&6
34894 ac_check_lib_save_LIBS=$LIBS
34895 LIBS="-lgcov $LIBS"
34896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34897 /* end confdefs.h. */
34899 /* Override any GCC internal prototype to avoid an error.
34900 Use char because int might match the return type of a GCC
34901 builtin and then its argument prototype would still apply. */
34905 char _gcov_init ();
34909 return _gcov_init ();
34914 if ac_fn_c_try_link "$LINENO"; then :
34915 ac_cv_lib_gcov__gcov_init=yes
34917 ac_cv_lib_gcov__gcov_init=no
34919 rm -f core conftest.err conftest.$ac_objext \
34920 conftest$ac_exeext conftest.$ac_ext
34921 LIBS=$ac_check_lib_save_LIBS
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
34924 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
34925 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
34926 cat >>confdefs.h <<_ACEOF
34927 #define HAVE_LIBGCOV 1
34930 LIBS="-lgcov $LIBS"
34934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
34935 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
34936 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
34937 $as_echo_n "(cached) " >&6
34939 ac_check_lib_save_LIBS=$LIBS
34940 LIBS="-lgcov $LIBS"
34941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34942 /* end confdefs.h. */
34944 /* Override any GCC internal prototype to avoid an error.
34945 Use char because int might match the return type of a GCC
34946 builtin and then its argument prototype would still apply. */
34950 char __gcov_init ();
34954 return __gcov_init ();
34959 if ac_fn_c_try_link "$LINENO"; then :
34960 ac_cv_lib_gcov___gcov_init=yes
34962 ac_cv_lib_gcov___gcov_init=no
34964 rm -f core conftest.err conftest.$ac_objext \
34965 conftest$ac_exeext conftest.$ac_ext
34966 LIBS=$ac_check_lib_save_LIBS
34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
34969 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
34970 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
34971 cat >>confdefs.h <<_ACEOF
34972 #define HAVE_LIBGCOV 1
34975 LIBS="-lgcov $LIBS"
34979 case "$target_os" in
34981 OSX_GCOV_LDFLAG="-Wl,-single_module"
34988 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34989 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34990 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34994 # Build library dependency list for libMagickCore
34997 MAGICK_LIBLTDL='' # Libltdl for build
34998 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34999 MAGICK_LTDLDEPS='' # extra libltdl dependencies
35000 if test "$with_ltdl" != 'no'
35002 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35003 MAGICK_API_LIBLTDL='-lltdl'
35005 MAGICK_LIBLTDL=${LIBLTDL}
35006 MAGICK_LTDLDEPS=${LTDLDEPS}
35011 if test "$with_modules" != 'no'; then
35012 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
35014 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
35019 # Remove extraneous spaces from output variables (asthetic)
35021 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35022 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35023 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35024 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35026 CC=`echo $CC | sed -e 's/ */ /g'`
35027 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35028 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35029 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35030 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35031 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35032 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35033 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35034 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35035 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35037 # Pass only user-provided LIBS as "global" libraries
35040 #AC_SUBST(CPPFLAGS)
35043 #AC_SUBST(X_PRE_LIBS)
35045 #AC_SUBST(X_EXTRA_LIBS)
35047 MAGICK_CFLAGS=$CFLAGS
35048 MAGICK_CXXFLAGS="$CXXFLAGS"
35049 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35050 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35051 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35052 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35062 # Set configured scripts to executable.
35063 ac_config_commands="$ac_config_commands default"
35065 ac_config_commands="$ac_config_commands MagickCore-config.in"
35067 ac_config_commands="$ac_config_commands MagickWand-config.in"
35069 ac_config_commands="$ac_config_commands Magick++-config.in"
35071 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35075 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
35076 { $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35077 $as_echo "$as_me: Update ImageMagick configuration" >&6;}
35078 cat >confcache <<\_ACEOF
35079 # This file is a shell script that caches the results of configure
35080 # tests run on this system so they can be shared between configure
35081 # scripts and configure runs, see configure's option --config-cache.
35082 # It is not useful on other systems. If it contains results you don't
35083 # want to keep, you may remove or edit it.
35085 # config.status only pays attention to the cache file if you give it
35086 # the --recheck option to rerun configure.
35088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35090 # following values.
35094 # The following way of writing the cache mishandles newlines in values,
35095 # but we know of no workaround that is simple, portable, and efficient.
35096 # So, we kill variables containing newlines.
35097 # Ultrix sh set writes to stderr and can't be redirected directly,
35098 # and sets the high bit in the cache file unless we assign to the vars.
35100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35101 eval ac_val=\$$ac_var
35105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35109 _ | IFS | as_nl) ;; #(
35110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35111 *) { eval $ac_var=; unset $ac_var;} ;;
35117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35118 *${as_nl}ac_space=\ *)
35119 # `set' does not quote correctly, so add quotes: double-quote
35120 # substitution turns \\\\ into \\, and sed turns \\ into \.
35123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35126 # `set' quotes correctly as required by POSIX, so do not add quotes.
35127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35141 if test -w "$cache_file"; then
35142 if test "x$cache_file" != "x/dev/null"; then
35143 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35144 $as_echo "$as_me: updating cache $cache_file" >&6;}
35145 if test ! -f "$cache_file" || test -h "$cache_file"; then
35146 cat confcache >"$cache_file"
35148 case $cache_file in #(
35150 mv -f confcache "$cache_file"$$ &&
35151 mv -f "$cache_file"$$ "$cache_file" ;; #(
35153 mv -f confcache "$cache_file" ;;
35158 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35159 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35165 # Let make expand exec_prefix.
35166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35168 DEFS=-DHAVE_CONFIG_H
35173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35174 # 1. Remove the extension, and $U if already installed.
35175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35178 # will be set to the directory where LIBOBJS objects are built.
35179 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35180 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35182 LIBOBJS=$ac_libobjs
35184 LTLIBOBJS=$ac_ltlibobjs
35187 if test -n "$EXEEXT"; then
35189 am__EXEEXT_FALSE='#'
35191 am__EXEEXT_TRUE='#'
35195 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35196 as_fn_error $? "conditional \"AMDEP\" was never defined.
35197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35200 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35207 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35208 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35211 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
35212 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
35213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35215 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
35216 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
35217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35219 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
35220 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
35221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35223 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
35224 as_fn_error $? "conditional \"USING_CL\" was never defined.
35225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35227 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35228 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
35229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35231 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35232 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
35233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35235 LT_CONFIG_H=config/config.h
35239 if test -n "$_LT_LIBOBJS"; then
35240 # Remove the extension.
35241 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35242 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35243 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35244 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35247 ltdl_LIBOBJS=$_ltdl_libobjs
35249 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35252 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
35253 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
35254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35256 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
35257 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
35258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35260 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35261 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35264 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35265 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
35266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35269 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35270 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35273 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
35274 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
35275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35277 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
35278 as_fn_error $? "conditional \"HasUMEM\" was never defined.
35279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35281 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
35282 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
35283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35285 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
35286 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
35287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35289 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
35290 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
35291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35293 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
35294 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
35295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35297 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
35298 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
35299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35301 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
35302 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
35303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35305 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
35306 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
35307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35309 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
35310 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
35311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35313 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
35314 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
35315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35317 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
35318 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
35319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35321 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
35322 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
35323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35325 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
35326 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
35327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35329 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
35330 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
35331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35333 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
35334 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
35335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35337 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
35338 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
35339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35341 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
35342 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
35343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35345 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
35346 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
35347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35349 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35350 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35353 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
35354 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
35355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35357 if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35358 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35361 if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35362 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35365 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
35366 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
35367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35369 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
35370 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
35371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35373 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
35374 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
35375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35377 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
35378 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
35379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35381 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35382 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35385 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
35386 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
35387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35389 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
35390 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
35391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35393 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
35394 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
35395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35397 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
35398 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
35399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35401 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
35402 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
35403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35405 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
35406 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
35407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35409 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
35410 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
35411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35413 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
35414 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
35415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35418 : "${CONFIG_STATUS=./config.status}"
35420 ac_clean_files_save=$ac_clean_files
35421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35423 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35425 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35427 # Generated by $as_me.
35428 # Run this file to recreate the current configuration.
35429 # Compiler output produced by configure, useful for debugging
35430 # configure, is in config.log if it exists.
35433 ac_cs_recheck=false
35436 SHELL=\${CONFIG_SHELL-$SHELL}
35439 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35440 ## -------------------- ##
35441 ## M4sh Initialization. ##
35442 ## -------------------- ##
35444 # Be more Bourne compatible
35445 DUALCASE=1; export DUALCASE # for MKS sh
35446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35449 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35450 # is contrary to our usage. Disable this feature.
35451 alias -g '${1+"$@"}'='"$@"'
35452 setopt NO_GLOB_SUBST
35454 case `(set -o) 2>/dev/null` in #(
35466 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35467 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35469 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35470 # Prefer a ksh shell builtin over an external printf program on Solaris,
35471 # but without wasting forks for bash or zsh.
35472 if test -z "$BASH_VERSION$ZSH_VERSION" \
35473 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35474 as_echo='print -r --'
35475 as_echo_n='print -rn --'
35476 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35477 as_echo='printf %s\n'
35478 as_echo_n='printf %s'
35480 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35481 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35482 as_echo_n='/usr/ucb/echo -n'
35484 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35485 as_echo_n_body='eval
35489 expr "X$arg" : "X\\(.*\\)$as_nl";
35490 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35492 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35494 export as_echo_n_body
35495 as_echo_n='sh -c $as_echo_n_body as_echo'
35497 export as_echo_body
35498 as_echo='sh -c $as_echo_body as_echo'
35501 # The user is always right.
35502 if test "${PATH_SEPARATOR+set}" != set; then
35504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35512 # We need space, tab and new line, in precisely that order. Quoting is
35513 # there to prevent editors from complaining about space-tab.
35514 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35515 # splitting by setting IFS to empty value.)
35518 # Find who we are. Look in the path if we contain no directory separator.
35521 *[\\/]* ) as_myself=$0 ;;
35522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35523 for as_dir in $PATH
35526 test -z "$as_dir" && as_dir=.
35527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35533 # We did not find ourselves, most probably we were run as `sh COMMAND'
35534 # in which case we are not to be found in the path.
35535 if test "x$as_myself" = x; then
35538 if test ! -f "$as_myself"; then
35539 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35543 # Unset variables that we do not need and which cause bugs (e.g. in
35544 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35545 # suppresses any "Segmentation fault" message there. '((' could
35546 # trigger a bug in pdksh 5.2.14.
35547 for as_var in BASH_ENV ENV MAIL MAILPATH
35548 do eval test x\${$as_var+set} = xset \
35549 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35565 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35566 # ----------------------------------------
35567 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35568 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35569 # script with STATUS, using 1 if that was 0.
35572 as_status=$1; test $as_status -eq 0 && as_status=1
35574 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35575 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35577 $as_echo "$as_me: error: $2" >&2
35578 as_fn_exit $as_status
35582 # as_fn_set_status STATUS
35583 # -----------------------
35584 # Set $? to STATUS, without forking.
35585 as_fn_set_status ()
35588 } # as_fn_set_status
35590 # as_fn_exit STATUS
35591 # -----------------
35592 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35596 as_fn_set_status $1
35602 # Portably unset VAR.
35605 { eval $1=; unset $1;}
35607 as_unset=as_fn_unset
35608 # as_fn_append VAR VALUE
35609 # ----------------------
35610 # Append the text in VALUE to the end of the definition contained in VAR. Take
35611 # advantage of any shell optimizations that allow amortized linear growth over
35612 # repeated appends, instead of the typical quadratic growth present in naive
35614 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35615 eval 'as_fn_append ()
35626 # as_fn_arith ARG...
35627 # ------------------
35628 # Perform arithmetic evaluation on the ARGs, and store the result in the
35629 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35630 # must be portable across $(()) and expr.
35631 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35632 eval 'as_fn_arith ()
35639 as_val=`expr "$@" || test $? -eq 1`
35644 if expr a : '\(a\)' >/dev/null 2>&1 &&
35645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35652 as_basename=basename
35657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35663 as_me=`$as_basename -- "$0" ||
35664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35665 X"$0" : 'X\(//\)$' \| \
35666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35668 sed '/^.*\/\([^/][^/]*\)\/*$/{
35682 # Avoid depending upon Character Ranges.
35683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35686 as_cr_digits='0123456789'
35687 as_cr_alnum=$as_cr_Letters$as_cr_digits
35689 ECHO_C= ECHO_N= ECHO_T=
35690 case `echo -n x` in #(((((
35692 case `echo 'xy\c'` in
35693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35695 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35702 rm -f conf$$ conf$$.exe conf$$.file
35703 if test -d conf$$.dir; then
35704 rm -f conf$$.dir/conf$$.file
35707 mkdir conf$$.dir 2>/dev/null
35709 if (echo >conf$$.file) 2>/dev/null; then
35710 if ln -s conf$$.file conf$$ 2>/dev/null; then
35712 # ... but there are two gotchas:
35713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35715 # In both cases, we have to default to `cp -p'.
35716 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35718 elif ln conf$$.file conf$$ 2>/dev/null; then
35726 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35727 rmdir conf$$.dir 2>/dev/null
35732 # Create "$as_dir" as a directory, including parents if necessary.
35737 -*) as_dir=./$as_dir;;
35739 test -d "$as_dir" || eval $as_mkdir_p || {
35743 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35744 *) as_qdir=$as_dir;;
35746 as_dirs="'$as_qdir' $as_dirs"
35747 as_dir=`$as_dirname -- "$as_dir" ||
35748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35749 X"$as_dir" : 'X\(//\)[^/]' \| \
35750 X"$as_dir" : 'X\(//\)$' \| \
35751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35752 $as_echo X"$as_dir" |
35753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35757 /^X\(\/\/\)[^/].*/{
35770 test -d "$as_dir" && break
35772 test -z "$as_dirs" || eval "mkdir $as_dirs"
35773 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35777 if mkdir -p . 2>/dev/null; then
35778 as_mkdir_p='mkdir -p "$as_dir"'
35780 test -d ./-p && rmdir ./-p
35784 if test -x / >/dev/null 2>&1; then
35785 as_test_x='test -x'
35787 if ls -dL / >/dev/null 2>&1; then
35794 if test -d "$1"; then
35800 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35801 ???[sx]*):;;*)false;;esac;fi
35805 as_executable_p=$as_test_x
35807 # Sed expression to map a string onto a valid CPP name.
35808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35810 # Sed expression to map a string onto a valid variable name.
35811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35815 ## ----------------------------------- ##
35816 ## Main body of $CONFIG_STATUS script. ##
35817 ## ----------------------------------- ##
35819 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35822 # Save the log message, to keep $0 and so on meaningful, and to
35823 # report actual input values of CONFIG_FILES etc. instead of their
35824 # values after options handling.
35826 This file was extended by ImageMagick $as_me 7.0.0-0, which was
35827 generated by GNU Autoconf 2.68. Invocation command line was
35829 CONFIG_FILES = $CONFIG_FILES
35830 CONFIG_HEADERS = $CONFIG_HEADERS
35831 CONFIG_LINKS = $CONFIG_LINKS
35832 CONFIG_COMMANDS = $CONFIG_COMMANDS
35835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35840 case $ac_config_files in *"
35841 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35844 case $ac_config_headers in *"
35845 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35850 # Files that config.status was made for.
35851 config_files="$ac_config_files"
35852 config_headers="$ac_config_headers"
35853 config_commands="$ac_config_commands"
35857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35859 \`$as_me' instantiates files and other configuration actions
35860 from templates according to the current configuration. Unless the files
35861 and actions are specified as TAGs, all are instantiated by default.
35863 Usage: $0 [OPTION]... [TAG]...
35865 -h, --help print this help, then exit
35866 -V, --version print version number and configuration settings, then exit
35867 --config print configuration, then exit
35868 -q, --quiet, --silent
35869 do not print progress messages
35870 -d, --debug don't remove temporary files
35871 --recheck update $as_me by reconfiguring in the same conditions
35872 --file=FILE[:TEMPLATE]
35873 instantiate the configuration file FILE
35874 --header=FILE[:TEMPLATE]
35875 instantiate the configuration header FILE
35877 Configuration files:
35880 Configuration headers:
35883 Configuration commands:
35886 Report bugs to <http://www.imagemagick.org>."
35889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35890 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35892 ImageMagick config.status 7.0.0-0
35893 configured by $0, generated by GNU Autoconf 2.68,
35894 with options \\"\$ac_cs_config\\"
35896 Copyright (C) 2010 Free Software Foundation, Inc.
35897 This config.status script is free software; the Free Software Foundation
35898 gives unlimited permission to copy, distribute and modify it."
35905 test -n "\$AWK" || AWK=awk
35908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35909 # The default lists apply if the user does not specify any file.
35915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35932 # Handling of the options.
35933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35936 $as_echo "$ac_cs_version"; exit ;;
35937 --config | --confi | --conf | --con | --co | --c )
35938 $as_echo "$ac_cs_config"; exit ;;
35939 --debug | --debu | --deb | --de | --d | -d )
35941 --file | --fil | --fi | --f )
35944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35945 '') as_fn_error $? "missing file argument" ;;
35947 as_fn_append CONFIG_FILES " '$ac_optarg'"
35948 ac_need_defaults=false;;
35949 --header | --heade | --head | --hea )
35952 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35954 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35955 ac_need_defaults=false;;
35957 # Conflict between --help and --header
35958 as_fn_error $? "ambiguous option: \`$1'
35959 Try \`$0 --help' for more information.";;
35960 --help | --hel | -h )
35961 $as_echo "$ac_cs_usage"; exit ;;
35962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35966 # This is an error.
35967 -*) as_fn_error $? "unrecognized option: \`$1'
35968 Try \`$0 --help' for more information." ;;
35970 *) as_fn_append ac_config_targets " $1"
35971 ac_need_defaults=false ;;
35977 ac_configure_extra_args=
35979 if $ac_cs_silent; then
35981 ac_configure_extra_args="$ac_configure_extra_args --silent"
35985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35986 if \$ac_cs_recheck; then
35987 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35990 CONFIG_SHELL='$SHELL'
35991 export CONFIG_SHELL
35996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36001 ## Running $as_me. ##
36007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36012 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36015 # The HP-UX ksh and POSIX shell print the target directory to stdout
36016 # if CDPATH is set.
36017 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36019 sed_quote_subst='$sed_quote_subst'
36020 double_quote_subst='$double_quote_subst'
36021 delay_variable_subst='$delay_variable_subst'
36022 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36023 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36024 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36025 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36026 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36027 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36028 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36029 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36030 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36031 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36032 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36033 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36034 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36035 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36036 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36037 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36038 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36039 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36040 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36041 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36042 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36043 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36044 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36045 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36046 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36047 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36048 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36049 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36050 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36051 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36052 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36053 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36054 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36055 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36056 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36057 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36058 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36059 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36060 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36061 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36062 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36063 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36064 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36065 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36066 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36067 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36068 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36069 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36070 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36071 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36072 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36073 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36074 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36075 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36076 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36077 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36078 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"`'
36079 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36080 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36081 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36082 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36083 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36084 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36085 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36086 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36087 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36088 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36089 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36090 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36091 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36092 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36093 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36094 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36095 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36096 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36097 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36098 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36099 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36100 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36101 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36102 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36103 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36104 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36105 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36106 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36107 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36108 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36109 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36110 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36111 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36112 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36113 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36114 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36115 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36116 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36117 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36118 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36119 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36120 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36121 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36122 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36123 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36124 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36125 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36126 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36127 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36128 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36129 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36130 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36131 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36132 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36133 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36134 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36135 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36136 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36137 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36138 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36139 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36140 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36141 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36142 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36143 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36144 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36145 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36146 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36147 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36148 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36149 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36150 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36151 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36152 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36153 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36154 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36155 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36156 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36157 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36158 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36159 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36160 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36161 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36162 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36163 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36164 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36165 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36166 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36167 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36168 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36169 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36170 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36171 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36172 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36173 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36174 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36175 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36176 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36177 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36178 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36179 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36180 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36181 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36182 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36183 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36184 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36185 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36186 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36187 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36188 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36189 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36190 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36191 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36192 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36193 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
36194 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36195 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36196 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36197 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36198 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36199 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36200 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36201 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36202 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36203 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36204 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36205 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36206 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36207 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
36210 LTCFLAGS='$LTCFLAGS'
36211 compiler='$compiler_DEFAULT'
36213 # A function that is used when there is no print builtin or printf.
36214 func_fallback_echo ()
36216 eval 'cat <<_LTECHO_EOF
36221 # Quote evaled strings.
36237 deplibs_check_method \
36241 sharedlib_from_linklib_cmd \
36244 archiver_list_spec \
36250 lt_cv_sys_global_symbol_pipe \
36251 lt_cv_sys_global_symbol_to_cdecl \
36252 lt_cv_sys_global_symbol_to_c_name_address \
36253 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36254 nm_file_list_spec \
36255 lt_prog_compiler_no_builtin_flag \
36256 lt_prog_compiler_pic \
36257 lt_prog_compiler_wl \
36258 lt_prog_compiler_static \
36259 lt_cv_prog_compiler_c_o \
36268 export_dynamic_flag_spec \
36269 whole_archive_flag_spec \
36270 compiler_needs_object \
36272 allow_undefined_flag \
36273 no_undefined_flag \
36274 hardcode_libdir_flag_spec \
36275 hardcode_libdir_flag_spec_ld \
36276 hardcode_libdir_separator \
36280 variables_saved_for_relink \
36282 library_names_spec \
36284 install_override_mode \
36288 compiler_lib_search_dirs \
36293 compiler_lib_search_path \
36297 lt_prog_compiler_no_builtin_flag_CXX \
36298 lt_prog_compiler_pic_CXX \
36299 lt_prog_compiler_wl_CXX \
36300 lt_prog_compiler_static_CXX \
36301 lt_cv_prog_compiler_c_o_CXX \
36302 export_dynamic_flag_spec_CXX \
36303 whole_archive_flag_spec_CXX \
36304 compiler_needs_object_CXX \
36306 allow_undefined_flag_CXX \
36307 no_undefined_flag_CXX \
36308 hardcode_libdir_flag_spec_CXX \
36309 hardcode_libdir_flag_spec_ld_CXX \
36310 hardcode_libdir_separator_CXX \
36311 exclude_expsyms_CXX \
36312 include_expsyms_CXX \
36313 file_list_spec_CXX \
36314 compiler_lib_search_dirs_CXX \
36315 predep_objects_CXX \
36316 postdep_objects_CXX \
36319 compiler_lib_search_path_CXX; do
36320 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36321 *[\\\\\\\`\\"\\\$]*)
36322 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
36325 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36330 # Double-quote double-evaled strings.
36331 for var in reload_cmds \
36332 old_postinstall_cmds \
36333 old_postuninstall_cmds \
36335 extract_expsyms_cmds \
36336 old_archive_from_new_cmds \
36337 old_archive_from_expsyms_cmds \
36339 archive_expsym_cmds \
36341 module_expsym_cmds \
36342 export_symbols_cmds \
36346 postuninstall_cmds \
36348 sys_lib_search_path_spec \
36349 sys_lib_dlsearch_path_spec \
36351 old_archive_cmds_CXX \
36352 old_archive_from_new_cmds_CXX \
36353 old_archive_from_expsyms_cmds_CXX \
36355 archive_expsym_cmds_CXX \
36357 module_expsym_cmds_CXX \
36358 export_symbols_cmds_CXX \
36360 postlink_cmds_CXX; do
36361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36362 *[\\\\\\\`\\"\\\$]*)
36363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
36366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36371 ac_aux_dir='$ac_aux_dir'
36372 xsi_shell='$xsi_shell'
36373 lt_shell_append='$lt_shell_append'
36375 # See if we are running on zsh, and set the options which allow our
36376 # commands through without removal of \ escapes INIT.
36377 if test -n "\${ZSH_VERSION+set}" ; then
36378 setopt NO_GLOB_SUBST
36384 TIMESTAMP='$TIMESTAMP'
36395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36397 # Handling of arguments.
36398 for ac_config_target in $ac_config_targets
36400 case $ac_config_target in
36401 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
36402 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
36403 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36404 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36405 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36406 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36407 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
36408 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
36409 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36410 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36411 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36412 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36413 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
36414 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
36415 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36416 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
36417 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36418 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36419 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
36420 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36421 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36422 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36423 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36424 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36425 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36426 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36427 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36428 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36429 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36430 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36431 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36432 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36433 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36434 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36435 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36436 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
36437 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36438 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
36439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36441 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36442 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
36443 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
36444 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36445 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36447 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
36452 # If the user did not use the arguments to specify the items to instantiate,
36453 # then the envvar interface is used. Set only those that are not.
36454 # We use the long form for the default assignment because of an extremely
36455 # bizarre bug on SunOS 4.1.3.
36456 if $ac_need_defaults; then
36457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36459 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36462 # Have a temporary directory for convenience. Make it in the build tree
36463 # simply because there is no reason against having it here, and in addition,
36464 # creating and moving files from /tmp can sometimes cause problems.
36465 # Hook for its removal unless debugging.
36466 # Note that there is a small window in which the directory will not be cleaned:
36467 # after its creation but before its name has been assigned to `$tmp'.
36471 trap 'exit_status=$?
36472 : "${ac_tmp:=$tmp}"
36473 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36475 trap 'as_fn_exit 1' 1 2 13 15
36477 # Create a (secure) tmp directory for tmp files.
36480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36484 tmp=./conf$$-$RANDOM
36485 (umask 077 && mkdir "$tmp")
36486 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36489 # Set up the scripts for CONFIG_FILES section.
36490 # No need to generate them if there are no CONFIG_FILES.
36491 # This happens for instance with `./config.status config.h'.
36492 if test -n "$CONFIG_FILES"; then
36495 ac_cr=`echo X | tr X '\015'`
36496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
36497 # But we know of no other shell where ac_cr would be empty at this
36498 # point, so we can use a bashism as a fallback.
36499 if test "x$ac_cr" = x; then
36500 eval ac_cr=\$\'\\r\'
36502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36506 ac_cs_awk_cr=$ac_cr
36509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36514 echo "cat >conf$$subs.awk <<_ACEOF" &&
36515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36517 } >conf$$subs.sh ||
36518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36519 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36521 for ac_last_try in false false false false false :; do
36522 . ./conf$$subs.sh ||
36523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36525 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36526 if test $ac_delim_n = $ac_delim_num; then
36528 elif $ac_last_try; then
36529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36534 rm -f conf$$subs.sh
36536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36537 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36541 s/^/S["/; s/!.*/"]=/
36551 s/\(.\{148\}\)..*/\1/
36553 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36565 s/\(.\{148\}\)..*/\1/
36567 s/["\\]/\\&/g; s/^/"/; s/$/"/
36571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36576 ' <conf$$subs.awk | sed '
36581 ' >>$CONFIG_STATUS || ac_write_fail=1
36582 rm -f conf$$subs.awk
36583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36585 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36586 for (key in S) S_is_set[key] = 1
36592 nfields = split(line, field, "@")
36594 len = length(field[1])
36595 for (i = 2; i < nfields; i++) {
36597 keylen = length(key)
36598 if (S_is_set[key]) {
36600 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36601 len += length(value) + length(field[++i])
36612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36613 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36617 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36621 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36622 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36623 # trailing colons and then remove the whole line if VPATH becomes empty
36624 # (actually we leave an empty line to preserve line numbers).
36625 if test "x$srcdir" = x.; then
36626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36645 fi # test -n "$CONFIG_FILES"
36647 # Set up the scripts for CONFIG_HEADERS section.
36648 # No need to generate them if there are no CONFIG_HEADERS.
36649 # This happens for instance with `./config.status Makefile'.
36650 if test -n "$CONFIG_HEADERS"; then
36651 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36655 # Transform confdefs.h into an awk script `defines.awk', embedded as
36656 # here-document in config.status, that substitutes the proper values into
36657 # config.h.in to produce config.h.
36659 # Create a delimiter string that does not exist in confdefs.h, to ease
36660 # handling of long lines.
36662 for ac_last_try in false false :; do
36663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36664 if test -z "$ac_tt"; then
36666 elif $ac_last_try; then
36667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36673 # For the awk script, D is an array of macro values keyed by name,
36674 # likewise P contains macro parameters if any. Preserve backslash
36675 # newline sequences.
36677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36679 s/.\{148\}/&'"$ac_delim"'/g
36682 s/^[ ]*#[ ]*define[ ][ ]*/ /
36689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36696 D["\1"]=" \3\\\\\\n"\\/p
36698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36703 s/.\{148\}/&'"$ac_delim"'/g
36708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36713 ' <confdefs.h | sed '
36714 s/'"$ac_delim"'/"\\\
36715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36718 for (key in D) D_is_set[key] = 1
36721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36723 split(line, arg, " ")
36724 if (arg[1] == "#") {
36728 defundef = substr(arg[1], 2)
36731 split(mac1, mac2, "(") #)
36733 prefix = substr(line, 1, index(line, defundef) - 1)
36734 if (D_is_set[macro]) {
36735 # Preserve the white space surrounding the "#".
36736 print prefix "define", macro P[macro] D[macro]
36739 # Replace #undef with comments. This is necessary, for example,
36740 # in the case of _POSIX_SOURCE, which is predefined and required
36741 # on some systems where configure will not decide to define it.
36742 if (defundef == "undef") {
36743 print "/*", prefix defundef, macro, "*/"
36751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36753 fi # test -n "$CONFIG_HEADERS"
36756 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36761 :[FHLC]) ac_mode=$ac_tag; continue;;
36763 case $ac_mode$ac_tag in
36765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36766 :[FH]-) ac_tag=-:-;;
36767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36784 -) ac_f="$ac_tmp/stdin";;
36785 *) # Look for the file first in the build tree, then in the source tree
36786 # (if the path is not absolute). The absolute path cannot be DOS-style,
36787 # because $ac_f cannot contain `:'.
36791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36795 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36796 as_fn_append ac_file_inputs " '$ac_f'"
36799 # Let's still pretend it is `configure' which instantiates (i.e., don't
36800 # use $as_me), people would be surprised to read:
36801 # /* config.h. Generated by config.status. */
36802 configure_input='Generated from '`
36803 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36805 if test x"$ac_file" != x-; then
36806 configure_input="$ac_file. $configure_input"
36807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36808 $as_echo "$as_me: creating $ac_file" >&6;}
36810 # Neutralize special characters interpreted by sed in replacement strings.
36811 case $configure_input in #(
36812 *\&* | *\|* | *\\* )
36813 ac_sed_conf_input=`$as_echo "$configure_input" |
36814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36815 *) ac_sed_conf_input=$configure_input;;
36819 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36825 ac_dir=`$as_dirname -- "$ac_file" ||
36826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36827 X"$ac_file" : 'X\(//\)[^/]' \| \
36828 X"$ac_file" : 'X\(//\)$' \| \
36829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36830 $as_echo X"$ac_file" |
36831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36835 /^X\(\/\/\)[^/].*/{
36848 as_dir="$ac_dir"; as_fn_mkdir_p
36852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36855 # A ".." for each directory in $ac_dir_suffix.
36856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36857 case $ac_top_builddir_sub in
36858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36862 ac_abs_top_builddir=$ac_pwd
36863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36864 # for backward compatibility:
36865 ac_top_builddir=$ac_top_build_prefix
36868 .) # We are building in place.
36870 ac_top_srcdir=$ac_top_builddir_sub
36871 ac_abs_top_srcdir=$ac_pwd ;;
36872 [\\/]* | ?:[\\/]* ) # Absolute name.
36873 ac_srcdir=$srcdir$ac_dir_suffix;
36874 ac_top_srcdir=$srcdir
36875 ac_abs_top_srcdir=$srcdir ;;
36876 *) # Relative name.
36877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36878 ac_top_srcdir=$ac_top_build_prefix$srcdir
36879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36894 ac_MKDIR_P=$MKDIR_P
36896 [\\/$]* | ?:[\\/]* ) ;;
36897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36902 # If the template does not know about datarootdir, expand it.
36903 # FIXME: This hack should be removed a few years after 2.60.
36904 ac_datarootdir_hack=; ac_datarootdir_seen=
36915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36916 *datarootdir*) ac_datarootdir_seen=yes;;
36917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36922 ac_datarootdir_hack='
36923 s&@datadir@&$datadir&g
36924 s&@docdir@&$docdir&g
36925 s&@infodir@&$infodir&g
36926 s&@localedir@&$localedir&g
36927 s&@mandir@&$mandir&g
36928 s&\\\${datarootdir}&$datarootdir&g' ;;
36932 # Neutralize VPATH when `$srcdir' = `.'.
36933 # Shell code in configure.ac might set extrasub.
36934 # FIXME: do we really want to maintain this feature?
36935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36936 ac_sed_extra="$ac_vpsub
36939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36942 s|@configure_input@|$ac_sed_conf_input|;t t
36943 s&@top_builddir@&$ac_top_builddir_sub&;t t
36944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36945 s&@srcdir@&$ac_srcdir&;t t
36946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36947 s&@top_srcdir@&$ac_top_srcdir&;t t
36948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36949 s&@builddir@&$ac_builddir&;t t
36950 s&@abs_builddir@&$ac_abs_builddir&;t t
36951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36952 s&@INSTALL@&$ac_INSTALL&;t t
36953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36954 $ac_datarootdir_hack
36956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36957 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36962 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36964 which seems to be undefined. Please make sure it is defined" >&5
36965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36966 which seems to be undefined. Please make sure it is defined" >&2;}
36968 rm -f "$ac_tmp/stdin"
36970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36979 if test x"$ac_file" != x-; then
36981 $as_echo "/* $configure_input */" \
36982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36983 } >"$ac_tmp/config.h" \
36984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36990 mv "$ac_tmp/config.h" "$ac_file" \
36991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36994 $as_echo "/* $configure_input */" \
36995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36996 || as_fn_error $? "could not create -" "$LINENO" 5
36998 # Compute "$ac_file"'s index in $config_headers.
37001 for _am_header in $config_headers :; do
37002 case $_am_header in
37003 $_am_arg | $_am_arg:* )
37006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37011 X"$_am_arg" : 'X\(//\)[^/]' \| \
37012 X"$_am_arg" : 'X\(//\)$' \| \
37013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37014 $as_echo X"$_am_arg" |
37015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37019 /^X\(\/\/\)[^/].*/{
37031 s/.*/./; q'`/stamp-h$_am_stamp_count
37034 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37035 $as_echo "$as_me: executing $ac_file commands" >&6;}
37040 case $ac_file$ac_mode in
37041 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
37042 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37043 ac_prefix_conf_PKG=`echo MagickCore`
37044 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37045 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37046 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37047 if test ".$ac_prefix_conf_INP" = "."; then
37048 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37050 *.h) ac_prefix_conf_INP=$ac_file ;;
37053 test ".$ac_prefix_conf_INP" != "." && break
37056 if test ".$ac_prefix_conf_INP" = "."; then
37057 case "$ac_prefix_conf_OUT" in
37058 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37060 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37062 *) ac_prefix_conf_INP=config.h
37066 if test -z "$ac_prefix_conf_PKG" ; then
37067 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
37069 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37070 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37073 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37074 if test -f $ac_prefix_conf_INP ; then
37075 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37076 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37077 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37078 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37079 $as_echo "#endif/" >> conftest.prefix
37080 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37081 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37082 $as_echo "#endif/" >> conftest.prefix
37083 # now executing _script on _DEF input to create _OUT output file
37084 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37085 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37086 echo ' ' >>$tmp/pconfig.h
37087 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37089 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37090 echo ' ' >>$tmp/pconfig.h
37091 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37092 echo "#endif" >>$tmp/pconfig.h
37093 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37094 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37095 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37097 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37098 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37099 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37100 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37101 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37102 $as_echo X"$ac_prefix_conf_OUT" |
37103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37107 /^X\(\/\/\)[^/].*/{
37120 as_dir="$ac_dir"; as_fn_mkdir_p
37121 rm -f "$ac_prefix_conf_OUT"
37122 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37124 cp conftest.prefix _configs.sed
37126 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
37131 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37132 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37133 # are listed without --file. Let's play safe and only enable the eval
37134 # if we detect the quoting.
37135 case $CONFIG_FILES in
37136 *\'*) eval set x "$CONFIG_FILES" ;;
37137 *) set x $CONFIG_FILES ;;
37142 # Strip MF so we end up with the name of the file.
37143 mf=`echo "$mf" | sed -e 's/:.*$//'`
37144 # Check whether this is an Automake generated Makefile or not.
37145 # We used to match only the files named `Makefile.in', but
37146 # some people rename them; so instead we look at the file content.
37147 # Grep'ing the first line is not enough: some people post-process
37148 # each Makefile.in and add a new line on top of each file to say so.
37149 # Grep'ing the whole file is not good either: AIX grep has a line
37150 # limit of 2048, but all sed's we know have understand at least 4000.
37151 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37152 dirpart=`$as_dirname -- "$mf" ||
37153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37154 X"$mf" : 'X\(//\)[^/]' \| \
37155 X"$mf" : 'X\(//\)$' \| \
37156 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37162 /^X\(\/\/\)[^/].*/{
37178 # Extract the definition of DEPDIR, am__include, and am__quote
37179 # from the Makefile without running `make'.
37180 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37181 test -z "$DEPDIR" && continue
37182 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37183 test -z "am__include" && continue
37184 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37185 # When using ansi2knr, U may be empty or an underscore; expand it
37186 U=`sed -n 's/^U = //p' < "$mf"`
37187 # Find all dependency output files, they are included files with
37188 # $(DEPDIR) in their names. We invoke sed twice because it is the
37189 # simplest approach to changing $(DEPDIR) to its actual value in the
37191 for file in `sed -n "
37192 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37193 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37194 # Make sure the directory exists.
37195 test -f "$dirpart/$file" && continue
37196 fdir=`$as_dirname -- "$file" ||
37197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37198 X"$file" : 'X\(//\)[^/]' \| \
37199 X"$file" : 'X\(//\)$' \| \
37200 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37201 $as_echo X"$file" |
37202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37206 /^X\(\/\/\)[^/].*/{
37219 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37220 # echo "creating $dirpart/$file"
37221 echo '# dummy' > "$dirpart/$file"
37228 # See if we are running on zsh, and set the options which allow our
37229 # commands through without removal of \ escapes.
37230 if test -n "${ZSH_VERSION+set}" ; then
37231 setopt NO_GLOB_SUBST
37234 cfgfile="${ofile}T"
37235 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37238 cat <<_LT_EOF >> "$cfgfile"
37241 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37242 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37244 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
37246 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
37247 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37249 # Written by Gordon Matzigkeit, 1996
37251 # This file is part of GNU Libtool.
37253 # GNU Libtool is free software; you can redistribute it and/or
37254 # modify it under the terms of the GNU General Public License as
37255 # published by the Free Software Foundation; either version 2 of
37256 # the License, or (at your option) any later version.
37258 # As a special exception to the GNU General Public License,
37259 # if you distribute this file as part of a program or library that
37260 # is built using GNU Libtool, you may include this file under the
37261 # same distribution terms that you use for the rest of that program.
37263 # GNU Libtool is distributed in the hope that it will be useful,
37264 # but WITHOUT ANY WARRANTY; without even the implied warranty of
37265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37266 # GNU General Public License for more details.
37268 # You should have received a copy of the GNU General Public License
37269 # along with GNU Libtool; see the file COPYING. If not, a copy
37270 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37271 # obtained by writing to the Free Software Foundation, Inc.,
37272 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37275 # The names of the tagged configurations supported by this script.
37276 available_tags="CXX "
37278 # ### BEGIN LIBTOOL CONFIG
37280 # A sed program that does not truncate output.
37283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
37284 Xsed="\$SED -e 1s/^X//"
37286 # A grep program that handles long lines.
37292 # A literal string matcher.
37295 # Shell to use when invoking shell scripts.
37298 # An echo program that protects backslashes.
37301 # Which release of libtool.m4 was used?
37302 macro_version=$macro_version
37303 macro_revision=$macro_revision
37305 # Assembler program.
37308 # DLL creation program.
37309 DLLTOOL=$lt_DLLTOOL
37311 # Object dumper program.
37312 OBJDUMP=$lt_OBJDUMP
37314 # Whether or not to build shared libraries.
37315 build_libtool_libs=$enable_shared
37317 # Whether or not to build static libraries.
37318 build_old_libs=$enable_static
37320 # What type of objects to build.
37323 # Whether or not to optimize for fast installation.
37324 fast_install=$enable_fast_install
37327 host_alias=$host_alias
37331 # The build system.
37332 build_alias=$build_alias
37336 # A BSD- or MS-compatible name lister.
37339 # Whether we need soft or hard links.
37342 # What is the maximum length of a command?
37343 max_cmd_len=$max_cmd_len
37345 # Object file suffix (normally "o").
37348 # Executable file suffix (normally "").
37351 # whether the shell understands "unset".
37354 # turn spaces into newlines.
37357 # turn newlines into spaces.
37360 # convert \$build file names to \$host format.
37361 to_host_file_cmd=$lt_cv_to_host_file_cmd
37363 # convert \$build files to toolchain format.
37364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37366 # Method to check whether dependent libraries are shared objects.
37367 deplibs_check_method=$lt_deplibs_check_method
37369 # Command to use when deplibs_check_method = "file_magic".
37370 file_magic_cmd=$lt_file_magic_cmd
37372 # How to find potential files when deplibs_check_method = "file_magic".
37373 file_magic_glob=$lt_file_magic_glob
37375 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37376 want_nocaseglob=$lt_want_nocaseglob
37378 # Command to associate shared and link libraries.
37379 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37384 # Flags to create an archive.
37385 AR_FLAGS=$lt_AR_FLAGS
37387 # How to feed a file listing to the archiver.
37388 archiver_list_spec=$lt_archiver_list_spec
37390 # A symbol stripping program.
37393 # Commands used to install an old-style archive.
37395 old_postinstall_cmds=$lt_old_postinstall_cmds
37396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
37398 # Whether to use a lock for old archive extraction.
37399 lock_old_archive_extraction=$lock_old_archive_extraction
37404 # LTCC compiler flags.
37405 LTCFLAGS=$lt_CFLAGS
37407 # Take the output of nm and produce a listing of raw symbols and C names.
37408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37410 # Transform the output of nm in a proper C declaration.
37411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37413 # Transform the output of nm in a C name address pair.
37414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37416 # Transform the output of nm in a C name address pair when lib prefix is needed.
37417 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37419 # Specify filename containing input files for \$NM.
37420 nm_file_list_spec=$lt_nm_file_list_spec
37422 # The root where to search for dependent libraries,and in which our libraries should be installed.
37423 lt_sysroot=$lt_sysroot
37425 # The name of the directory that contains temporary libtool files.
37428 # Used to examine libraries when file_magic_cmd begins with "file".
37429 MAGIC_CMD=$MAGIC_CMD
37431 # Must we lock files when doing compilation?
37432 need_locks=$lt_need_locks
37435 MANIFEST_TOOL=$lt_MANIFEST_TOOL
37437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37438 DSYMUTIL=$lt_DSYMUTIL
37440 # Tool to change global to local symbols on Mac OS X.
37443 # Tool to manipulate fat objects and archives on Mac OS X.
37446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
37449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37450 OTOOL64=$lt_OTOOL64
37452 # Old archive suffix (normally "a").
37455 # Shared library suffix (normally ".so").
37456 shrext_cmds=$lt_shrext_cmds
37458 # The commands to extract the exported symbol list from a shared archive.
37459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
37461 # Variables whose values should be saved in libtool wrapper scripts and
37462 # restored at link time.
37463 variables_saved_for_relink=$lt_variables_saved_for_relink
37465 # Do we need the "lib" prefix for modules?
37466 need_lib_prefix=$need_lib_prefix
37468 # Do we need a version for libraries?
37469 need_version=$need_version
37471 # Library versioning type.
37472 version_type=$version_type
37474 # Shared library runtime path variable.
37475 runpath_var=$runpath_var
37477 # Shared library path variable.
37478 shlibpath_var=$shlibpath_var
37480 # Is shlibpath searched before the hard-coded library search path?
37481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37483 # Format of library name prefix.
37484 libname_spec=$lt_libname_spec
37486 # List of archive names. First name is the real one, the rest are links.
37487 # The last name is the one that the linker finds with -lNAME
37488 library_names_spec=$lt_library_names_spec
37490 # The coded name of the library, if different from the real name.
37491 soname_spec=$lt_soname_spec
37493 # Permission mode override for installation of shared libraries.
37494 install_override_mode=$lt_install_override_mode
37496 # Command to use after installation of a shared archive.
37497 postinstall_cmds=$lt_postinstall_cmds
37499 # Command to use after uninstallation of a shared archive.
37500 postuninstall_cmds=$lt_postuninstall_cmds
37502 # Commands used to finish a libtool library installation in a directory.
37503 finish_cmds=$lt_finish_cmds
37505 # As "finish_cmds", except a single script fragment to be evaled but
37507 finish_eval=$lt_finish_eval
37509 # Whether we should hardcode library paths into libraries.
37510 hardcode_into_libs=$hardcode_into_libs
37512 # Compile-time system search path for libraries.
37513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37515 # Run-time system search path for libraries.
37516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37518 # Whether dlopen is supported.
37519 dlopen_support=$enable_dlopen
37521 # Whether dlopen of programs is supported.
37522 dlopen_self=$enable_dlopen_self
37524 # Whether dlopen of statically linked programs is supported.
37525 dlopen_self_static=$enable_dlopen_self_static
37527 # Commands to strip libraries.
37528 old_striplib=$lt_old_striplib
37529 striplib=$lt_striplib
37532 # The linker used to build libraries.
37535 # How to create reloadable object files.
37536 reload_flag=$lt_reload_flag
37537 reload_cmds=$lt_reload_cmds
37539 # Commands used to build an old-style archive.
37540 old_archive_cmds=$lt_old_archive_cmds
37542 # A language specific compiler.
37545 # Is the compiler the GNU compiler?
37548 # Compiler flag to turn off builtin functions.
37549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37551 # Additional compiler flags for building library objects.
37552 pic_flag=$lt_lt_prog_compiler_pic
37554 # How to pass a linker flag through the compiler.
37555 wl=$lt_lt_prog_compiler_wl
37557 # Compiler flag to prevent dynamic linking.
37558 link_static_flag=$lt_lt_prog_compiler_static
37560 # Does compiler simultaneously support -c and -o options?
37561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37563 # Whether or not to add -lc for building shared libraries.
37564 build_libtool_need_lc=$archive_cmds_need_lc
37566 # Whether or not to disallow shared libs when runtime libs are static.
37567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37569 # Compiler flag to allow reflexive dlopens.
37570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37572 # Compiler flag to generate shared objects directly from archives.
37573 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37575 # Whether the compiler copes with passing no objects directly.
37576 compiler_needs_object=$lt_compiler_needs_object
37578 # Create an old-style archive from a shared archive.
37579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37581 # Create a temporary old-style archive to link instead of a shared archive.
37582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37584 # Commands used to build a shared archive.
37585 archive_cmds=$lt_archive_cmds
37586 archive_expsym_cmds=$lt_archive_expsym_cmds
37588 # Commands used to build a loadable module if different from building
37589 # a shared archive.
37590 module_cmds=$lt_module_cmds
37591 module_expsym_cmds=$lt_module_expsym_cmds
37593 # Whether we are building with GNU ld or not.
37594 with_gnu_ld=$lt_with_gnu_ld
37596 # Flag that allows shared libraries with undefined symbols to be built.
37597 allow_undefined_flag=$lt_allow_undefined_flag
37599 # Flag that enforces no undefined symbols.
37600 no_undefined_flag=$lt_no_undefined_flag
37602 # Flag to hardcode \$libdir into a binary during linking.
37603 # This must work even if \$libdir does not exist
37604 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37606 # If ld is used when linking, flag to hardcode \$libdir into a binary
37607 # during linking. This must work even if \$libdir does not exist.
37608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37610 # Whether we need a single "-rpath" flag with a separated argument.
37611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37613 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37614 # DIR into the resulting binary.
37615 hardcode_direct=$hardcode_direct
37617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37618 # DIR into the resulting binary and the resulting library dependency is
37619 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37620 # library is relocated.
37621 hardcode_direct_absolute=$hardcode_direct_absolute
37623 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37624 # into the resulting binary.
37625 hardcode_minus_L=$hardcode_minus_L
37627 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37628 # into the resulting binary.
37629 hardcode_shlibpath_var=$hardcode_shlibpath_var
37631 # Set to "yes" if building a shared library automatically hardcodes DIR
37632 # into the library and all subsequent libraries and executables linked
37634 hardcode_automatic=$hardcode_automatic
37636 # Set to yes if linker adds runtime paths of dependent libraries
37637 # to runtime path list.
37638 inherit_rpath=$inherit_rpath
37640 # Whether libtool must link a program against all its dependency libraries.
37641 link_all_deplibs=$link_all_deplibs
37643 # Set to "yes" if exported symbols are required.
37644 always_export_symbols=$always_export_symbols
37646 # The commands to list exported symbols.
37647 export_symbols_cmds=$lt_export_symbols_cmds
37649 # Symbols that should not be listed in the preloaded symbols.
37650 exclude_expsyms=$lt_exclude_expsyms
37652 # Symbols that must always be exported.
37653 include_expsyms=$lt_include_expsyms
37655 # Commands necessary for linking programs (against libraries) with templates.
37656 prelink_cmds=$lt_prelink_cmds
37658 # Commands necessary for finishing linking programs.
37659 postlink_cmds=$lt_postlink_cmds
37661 # Specify filename containing input files.
37662 file_list_spec=$lt_file_list_spec
37664 # How to hardcode a shared library path into an executable.
37665 hardcode_action=$hardcode_action
37667 # The directories searched by this compiler when creating a shared library.
37668 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37670 # Dependencies to place before and after the objects being linked to
37671 # create a shared library.
37672 predep_objects=$lt_predep_objects
37673 postdep_objects=$lt_postdep_objects
37674 predeps=$lt_predeps
37675 postdeps=$lt_postdeps
37677 # The library search path used internally by the compiler when linking
37678 # a shared library.
37679 compiler_lib_search_path=$lt_compiler_lib_search_path
37681 # ### END LIBTOOL CONFIG
37687 cat <<\_LT_EOF >> "$cfgfile"
37688 # AIX sometimes has problems with the GCC collect2 program. For some
37689 # reason, if we set the COLLECT_NAMES environment variable, the problems
37690 # vanish in a puff of smoke.
37691 if test "X${COLLECT_NAMES+set}" != Xset; then
37693 export COLLECT_NAMES
37700 ltmain="$ac_aux_dir/ltmain.sh"
37703 # We use sed instead of cat because bash on DJGPP gets confused if
37704 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37705 # text mode, it properly converts lines to CR/LF. This bash problem
37706 # is reportedly fixed, but why not run on old versions too?
37707 sed '$q' "$ltmain" >> "$cfgfile" \
37708 || (rm -f "$cfgfile"; exit 1)
37710 if test x"$xsi_shell" = xyes; then
37711 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37715 \ */*) func_dirname_result="${1%/*}${2}" ;;\
37716 \ * ) func_dirname_result="${3}" ;;\
37718 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37719 && mv -f "$cfgfile.tmp" "$cfgfile" \
37720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37721 test 0 -eq $? || _lt_function_replace_fail=:
37724 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37727 \ func_basename_result="${1##*/}"\
37728 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37729 && mv -f "$cfgfile.tmp" "$cfgfile" \
37730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37731 test 0 -eq $? || _lt_function_replace_fail=:
37734 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37735 func_dirname_and_basename ()\
37738 \ */*) func_dirname_result="${1%/*}${2}" ;;\
37739 \ * ) func_dirname_result="${3}" ;;\
37741 \ func_basename_result="${1##*/}"\
37742 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37743 && mv -f "$cfgfile.tmp" "$cfgfile" \
37744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37745 test 0 -eq $? || _lt_function_replace_fail=:
37748 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37751 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37752 \ # positional parameters, so assign one to ordinary parameter first.\
37753 \ func_stripname_result=${3}\
37754 \ func_stripname_result=${func_stripname_result#"${1}"}\
37755 \ func_stripname_result=${func_stripname_result%"${2}"}\
37756 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37757 && mv -f "$cfgfile.tmp" "$cfgfile" \
37758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37759 test 0 -eq $? || _lt_function_replace_fail=:
37762 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37763 func_split_long_opt ()\
37765 \ func_split_long_opt_name=${1%%=*}\
37766 \ func_split_long_opt_arg=${1#*=}\
37767 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37768 && mv -f "$cfgfile.tmp" "$cfgfile" \
37769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37770 test 0 -eq $? || _lt_function_replace_fail=:
37773 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37774 func_split_short_opt ()\
37776 \ func_split_short_opt_arg=${1#??}\
37777 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37778 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37779 && mv -f "$cfgfile.tmp" "$cfgfile" \
37780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37781 test 0 -eq $? || _lt_function_replace_fail=:
37784 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37788 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37789 \ *) func_lo2o_result=${1} ;;\
37791 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37792 && mv -f "$cfgfile.tmp" "$cfgfile" \
37793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37794 test 0 -eq $? || _lt_function_replace_fail=:
37797 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37800 func_xform_result=${1%.*}.lo\
37801 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37802 && mv -f "$cfgfile.tmp" "$cfgfile" \
37803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37804 test 0 -eq $? || _lt_function_replace_fail=:
37807 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37810 func_arith_result=$(( $* ))\
37811 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37812 && mv -f "$cfgfile.tmp" "$cfgfile" \
37813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37814 test 0 -eq $? || _lt_function_replace_fail=:
37817 sed -e '/^func_len ()$/,/^} # func_len /c\
37820 func_len_result=${#1}\
37821 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37822 && mv -f "$cfgfile.tmp" "$cfgfile" \
37823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37824 test 0 -eq $? || _lt_function_replace_fail=:
37828 if test x"$lt_shell_append" = xyes; then
37829 sed -e '/^func_append ()$/,/^} # func_append /c\
37832 eval "${1}+=\\${2}"\
37833 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37834 && mv -f "$cfgfile.tmp" "$cfgfile" \
37835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37836 test 0 -eq $? || _lt_function_replace_fail=:
37839 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37840 func_append_quoted ()\
37842 \ func_quote_for_eval "${2}"\
37843 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37844 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37845 && mv -f "$cfgfile.tmp" "$cfgfile" \
37846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37847 test 0 -eq $? || _lt_function_replace_fail=:
37850 # Save a `func_append' function call where possible by direct use of '+='
37851 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37852 && mv -f "$cfgfile.tmp" "$cfgfile" \
37853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37854 test 0 -eq $? || _lt_function_replace_fail=:
37856 # Save a `func_append' function call even when '+=' is not available
37857 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37858 && mv -f "$cfgfile.tmp" "$cfgfile" \
37859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37860 test 0 -eq $? || _lt_function_replace_fail=:
37863 if test x"$_lt_function_replace_fail" = x":"; then
37864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37865 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37869 mv -f "$cfgfile" "$ofile" ||
37870 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37874 cat <<_LT_EOF >> "$ofile"
37876 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37878 # The linker used to build libraries.
37881 # How to create reloadable object files.
37882 reload_flag=$lt_reload_flag_CXX
37883 reload_cmds=$lt_reload_cmds_CXX
37885 # Commands used to build an old-style archive.
37886 old_archive_cmds=$lt_old_archive_cmds_CXX
37888 # A language specific compiler.
37889 CC=$lt_compiler_CXX
37891 # Is the compiler the GNU compiler?
37894 # Compiler flag to turn off builtin functions.
37895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37897 # Additional compiler flags for building library objects.
37898 pic_flag=$lt_lt_prog_compiler_pic_CXX
37900 # How to pass a linker flag through the compiler.
37901 wl=$lt_lt_prog_compiler_wl_CXX
37903 # Compiler flag to prevent dynamic linking.
37904 link_static_flag=$lt_lt_prog_compiler_static_CXX
37906 # Does compiler simultaneously support -c and -o options?
37907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37909 # Whether or not to add -lc for building shared libraries.
37910 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37912 # Whether or not to disallow shared libs when runtime libs are static.
37913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37915 # Compiler flag to allow reflexive dlopens.
37916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37918 # Compiler flag to generate shared objects directly from archives.
37919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37921 # Whether the compiler copes with passing no objects directly.
37922 compiler_needs_object=$lt_compiler_needs_object_CXX
37924 # Create an old-style archive from a shared archive.
37925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37927 # Create a temporary old-style archive to link instead of a shared archive.
37928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37930 # Commands used to build a shared archive.
37931 archive_cmds=$lt_archive_cmds_CXX
37932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37934 # Commands used to build a loadable module if different from building
37935 # a shared archive.
37936 module_cmds=$lt_module_cmds_CXX
37937 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37939 # Whether we are building with GNU ld or not.
37940 with_gnu_ld=$lt_with_gnu_ld_CXX
37942 # Flag that allows shared libraries with undefined symbols to be built.
37943 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37945 # Flag that enforces no undefined symbols.
37946 no_undefined_flag=$lt_no_undefined_flag_CXX
37948 # Flag to hardcode \$libdir into a binary during linking.
37949 # This must work even if \$libdir does not exist
37950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37952 # If ld is used when linking, flag to hardcode \$libdir into a binary
37953 # during linking. This must work even if \$libdir does not exist.
37954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37956 # Whether we need a single "-rpath" flag with a separated argument.
37957 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37960 # DIR into the resulting binary.
37961 hardcode_direct=$hardcode_direct_CXX
37963 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37964 # DIR into the resulting binary and the resulting library dependency is
37965 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37966 # library is relocated.
37967 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37969 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37970 # into the resulting binary.
37971 hardcode_minus_L=$hardcode_minus_L_CXX
37973 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37974 # into the resulting binary.
37975 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37977 # Set to "yes" if building a shared library automatically hardcodes DIR
37978 # into the library and all subsequent libraries and executables linked
37980 hardcode_automatic=$hardcode_automatic_CXX
37982 # Set to yes if linker adds runtime paths of dependent libraries
37983 # to runtime path list.
37984 inherit_rpath=$inherit_rpath_CXX
37986 # Whether libtool must link a program against all its dependency libraries.
37987 link_all_deplibs=$link_all_deplibs_CXX
37989 # Set to "yes" if exported symbols are required.
37990 always_export_symbols=$always_export_symbols_CXX
37992 # The commands to list exported symbols.
37993 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37995 # Symbols that should not be listed in the preloaded symbols.
37996 exclude_expsyms=$lt_exclude_expsyms_CXX
37998 # Symbols that must always be exported.
37999 include_expsyms=$lt_include_expsyms_CXX
38001 # Commands necessary for linking programs (against libraries) with templates.
38002 prelink_cmds=$lt_prelink_cmds_CXX
38004 # Commands necessary for finishing linking programs.
38005 postlink_cmds=$lt_postlink_cmds_CXX
38007 # Specify filename containing input files.
38008 file_list_spec=$lt_file_list_spec_CXX
38010 # How to hardcode a shared library path into an executable.
38011 hardcode_action=$hardcode_action_CXX
38013 # The directories searched by this compiler when creating a shared library.
38014 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38016 # Dependencies to place before and after the objects being linked to
38017 # create a shared library.
38018 predep_objects=$lt_predep_objects_CXX
38019 postdep_objects=$lt_postdep_objects_CXX
38020 predeps=$lt_predeps_CXX
38021 postdeps=$lt_postdeps_CXX
38023 # The library search path used internally by the compiler when linking
38024 # a shared library.
38025 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38027 # ### END LIBTOOL TAG CONFIG: CXX
38031 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
38032 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
38033 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38034 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38042 ac_clean_files=$ac_clean_files_save
38044 test $ac_write_fail = 0 ||
38045 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38048 # configure is writing to config.log, and then calls config.status.
38049 # config.status does its own redirection, appending to config.log.
38050 # Unfortunately, on DOS this fails, as config.log is still kept open
38051 # by configure, so config.status won't be able to write to it; its
38052 # output is simply discarded. So we exec the FD to /dev/null,
38053 # effectively closing config.log, so it can be properly (re)opened and
38054 # appended to by config.status. When coming back to configure, we
38055 # need to make the FD available again.
38056 if test "$no_create" != yes; then
38058 ac_config_status_args=
38059 test "$silent" = yes &&
38060 ac_config_status_args="$ac_config_status_args --quiet"
38062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38065 # would make configure fail if this is the last instruction.
38066 $ac_cs_success || as_fn_exit 1
38068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38074 rm -f magick-version
38076 result_dejavu_font_dir='none'
38077 if test "${dejavu_font_dir}x" != 'x'; then
38078 result_dejavu_font_dir=$dejavu_font_dir
38081 result_ghostscript_font_dir='none'
38082 if test "${ghostscript_font_dir}x" != 'x'; then
38083 result_ghostscript_font_dir=$ghostscript_font_dir
38086 result_windows_font_dir='none'
38087 if test "${windows_font_dir}x" != 'x'; then
38088 result_windows_font_dir=${windows_font_dir}
38091 { $as_echo "$as_me:${as_lineno-$LINENO}:
38092 ImageMagick is configured as follows. Please verify that this configuration
38093 matches your expectations.
38095 Host system type: $host
38096 Build system type: $build
38099 -------------------------------------------------------------------------------
38100 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38101 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38102 Module support --with-modules=$with_modules $with_modules
38103 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38104 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38105 High Dynamic Range Imagery
38106 --enable-hdri=$enable_hdri $enable_hdri
38108 Delegate Configuration:
38109 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38110 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38111 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38112 DJVU --with-djvu=$with_djvu $have_djvu
38113 DPS --with-dps=$with_dps $have_dps
38114 FFTW --with-fftw=$with_fftw $have_fftw
38115 FlashPIX --with-fpx=$with_fpx $have_fpx
38116 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38117 FreeType --with-freetype=$with_freetype $have_freetype
38118 GhostPCL None $PCLDelegate ($PCLVersion)
38119 GhostXPS None $XPSDelegate ($XPSVersion)
38120 Ghostscript None $PSDelegate ($GSVersion)
38121 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38122 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38123 Graphviz --with-gvc=$with_gvc $have_gvc
38124 JBIG --with-jbig=$with_jbig $have_jbig
38125 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38126 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
38127 LCMS v1 --with-lcms=$with_lcms $have_lcms
38128 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
38129 LQR --with-lqr=$with_lqr $have_lqr
38130 LZMA --with-lzma=$with_lzma $have_lzma
38131 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38132 OpenEXR --with-openexr=$with_openexr $have_openexr
38133 PANGO --with-pango=$with_pango $have_pango
38134 PERL --with-perl=$with_perl $have_perl
38135 PNG --with-png=$with_png $have_png
38136 RSVG --with-rsvg=$with_rsvg $have_rsvg
38137 TIFF --with-tiff=$with_tiff $have_tiff
38138 WEBP --with-webp=$with_webp $have_webp
38139 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38140 WMF --with-wmf=$with_wmf $have_wmf
38141 X11 --with-x=$with_x $have_x
38142 XML --with-xml=$with_xml $have_xml
38143 ZLIB --with-zlib=$with_zlib $have_zlib
38146 X_CFLAGS = $X_CFLAGS
38147 X_PRE_LIBS = $X_PRE_LIBS
38149 X_EXTRA_LIBS = $X_EXTRA_LIBS
38151 Options used to compile and link:
38152 PREFIX = $PREFIX_DIR
38153 EXEC-PREFIX = $EXEC_PREFIX_DIR
38154 VERSION = $PACKAGE_VERSION
38157 CPPFLAGS = $MAGICK_CPPFLAGS
38158 PCFLAGS = $MAGICK_PCFLAGS
38161 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38162 LIBS = $MAGICK_LIBS
38164 CXXFLAGS = $CXXFLAGS
38165 FEATURES = $MAGICK_FEATURES
38168 ImageMagick is configured as follows. Please verify that this configuration
38169 matches your expectations.
38171 Host system type: $host
38172 Build system type: $build
38175 -------------------------------------------------------------------------------
38176 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38177 Static libraries --enable-static=$enable_static $libtool_build_static_libs
38178 Module support --with-modules=$with_modules $with_modules
38179 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38180 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38181 High Dynamic Range Imagery
38182 --enable-hdri=$enable_hdri $enable_hdri
38184 Delegate Configuration:
38185 BZLIB --with-bzlib=$with_bzlib $have_bzlib
38186 Autotrace --with-autotrace=$with_autotrace $have_autotrace
38187 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
38188 DJVU --with-djvu=$with_djvu $have_djvu
38189 DPS --with-dps=$with_dps $have_dps
38190 FFTW --with-fftw=$with_fftw $have_fftw
38191 FlashPIX --with-fpx=$with_fpx $have_fpx
38192 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38193 FreeType --with-freetype=$with_freetype $have_freetype
38194 GhostPCL None $PCLDelegate ($PCLVersion)
38195 GhostXPS None $XPSDelegate ($XPSVersion)
38196 Ghostscript None $PSDelegate ($GSVersion)
38197 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38198 Ghostscript lib --with-gslib=$with_gslib $have_gslib
38199 Graphviz --with-gvc=$with_gvc $have_gvc
38200 JBIG --with-jbig=$with_jbig $have_jbig
38201 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38202 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
38203 LCMS v1 --with-lcms=$with_lcms $have_lcms
38204 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
38205 LQR --with-lqr=$with_lqr $have_lqr
38206 LZMA --with-lzma=$with_lzma $have_lzma
38207 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38208 OpenEXR --with-openexr=$with_openexr $have_openexr
38209 PANGO --with-pango=$with_pango $have_pango
38210 PERL --with-perl=$with_perl $have_perl
38211 PNG --with-png=$with_png $have_png
38212 RSVG --with-rsvg=$with_rsvg $have_rsvg
38213 TIFF --with-tiff=$with_tiff $have_tiff
38214 WEBP --with-webp=$with_webp $have_webp
38215 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38216 WMF --with-wmf=$with_wmf $have_wmf
38217 X11 --with-x=$with_x $have_x
38218 XML --with-xml=$with_xml $have_xml
38219 ZLIB --with-zlib=$with_zlib $have_zlib
38222 X_CFLAGS = $X_CFLAGS
38223 X_PRE_LIBS = $X_PRE_LIBS
38225 X_EXTRA_LIBS = $X_EXTRA_LIBS
38227 Options used to compile and link:
38228 PREFIX = $PREFIX_DIR
38229 EXEC-PREFIX = $EXEC_PREFIX_DIR
38230 VERSION = $PACKAGE_VERSION
38233 CPPFLAGS = $MAGICK_CPPFLAGS
38234 PCFLAGS = $MAGICK_PCFLAGS
38237 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38238 LIBS = $MAGICK_LIBS
38240 CXXFLAGS = $CXXFLAGS
38241 FEATURES = $MAGICK_FEATURES