2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ImageMagick 7.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-7.0.0'
577 PACKAGE_VERSION='7.0.0'
578 PACKAGE_STRING='ImageMagick 7.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 OPENEXR_DELEGATE_FALSE
757 OPENEXR_DELEGATE_TRUE
787 FREETYPE_DELEGATE_FALSE
788 FREETYPE_DELEGATE_TRUE
790 FONTCONFIG_DELEGATE_FALSE
791 FONTCONFIG_DELEGATE_TRUE
806 AUTOTRACE_DELEGATE_FALSE
807 AUTOTRACE_DELEGATE_TRUE
832 WITH_MAGICK_PLUS_PLUS_FALSE
833 WITH_MAGICK_PLUS_PLUS_TRUE
854 LIBRARY_EXTRA_CPPFLAGS
855 MODULE_EXTRA_CPPFLAGS
860 MAINTAINER_MODE_FALSE
868 WITH_SHARED_LIBS_FALSE
869 WITH_SHARED_LIBS_TRUE
872 CONVENIENCE_LTDL_FALSE
873 CONVENIENCE_LTDL_TRUE
877 sys_symbol_underscore
919 WIN32_NATIVE_BUILD_FALSE
920 WIN32_NATIVE_BUILD_TRUE
921 WINGDI32_DELEGATE_FALSE
922 WINGDI32_DELEGATE_TRUE
955 MAGICK_FILTER_MODULE_PATH
956 MAGICK_CONFIGURE_BUILD_PATH
957 MAGICK_CONFIGURE_SRC_PATH
958 MAGICK_CODER_MODULE_PATH
974 CONFIG_STATUS_DEPENDENCIES
975 MAGICK_LIB_VERSION_NUMBER
976 MAGICK_LIB_VERSION_TEXT
988 INSTALL_STRIP_PROGRAM
1003 PACKAGE_VERSION_ADDENDUM
1004 PACKAGE_RELEASE_DATE
1005 PACKAGE_LIB_VERSION_NUMBER
1010 MAGICK_LIBRARY_VERSION_INFO
1011 MAGICK_LIBRARY_CURRENT_MIN
1013 MAGICK_LIBRARY_REVISION
1014 MAGICK_LIBRARY_CURRENT
1016 MAGICK_TARGET_VENDOR
1031 DISTCHECK_CONFIG_FLAGS
1059 program_transform_name
1072 enable_option_checking
1074 enable_dependency_tracking
1077 enable_bounds_checking
1078 enable_osx_universal_binary
1094 enable_delegate_build
1101 enable_maintainer_mode
1111 with_magick_plus_plus
1122 with_dejavu_font_dir
1143 with_windows_font_dir
1147 ac_precious_vars='build_alias
1178 # Initialize some variables set by options.
1180 ac_init_version=false
1181 ac_unrecognized_opts=
1182 ac_unrecognized_sep=
1183 # The variables have the same names as the options, with
1184 # dashes changed to underlines.
1185 cache_file=/dev/null
1192 program_transform_name=s,x,x,
1200 # Installation directory options.
1201 # These are left unexpanded so users can "make install exec_prefix=/foo"
1202 # and all the variables that are supposed to be based on exec_prefix
1203 # by default will actually change.
1204 # Use braces instead of parens because sh, perl, etc. also accept them.
1205 # (The list follows the same order as the GNU Coding Standards.)
1206 bindir='${exec_prefix}/bin'
1207 sbindir='${exec_prefix}/sbin'
1208 libexecdir='${exec_prefix}/libexec'
1209 datarootdir='${prefix}/share'
1210 datadir='${datarootdir}'
1211 sysconfdir='${prefix}/etc'
1212 sharedstatedir='${prefix}/com'
1213 localstatedir='${prefix}/var'
1214 includedir='${prefix}/include'
1215 oldincludedir='/usr/include'
1216 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1217 infodir='${datarootdir}/info'
1222 libdir='${exec_prefix}/lib'
1223 localedir='${datarootdir}/locale'
1224 mandir='${datarootdir}/man'
1230 # If the previous option needs an argument, assign it.
1231 if test -n "$ac_prev"; then
1232 eval $ac_prev=\$ac_option
1238 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1243 # Accept the important Cygnus configure options, so we can diagnose typos.
1245 case $ac_dashdash$ac_option in
1249 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1252 bindir=$ac_optarg ;;
1254 -build | --build | --buil | --bui | --bu)
1255 ac_prev=build_alias ;;
1256 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1257 build_alias=$ac_optarg ;;
1259 -cache-file | --cache-file | --cache-fil | --cache-fi \
1260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1261 ac_prev=cache_file ;;
1262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1264 cache_file=$ac_optarg ;;
1266 --config-cache | -C)
1267 cache_file=config.cache ;;
1269 -datadir | --datadir | --datadi | --datad)
1271 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1272 datadir=$ac_optarg ;;
1274 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1275 | --dataroo | --dataro | --datar)
1276 ac_prev=datarootdir ;;
1277 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1278 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1279 datarootdir=$ac_optarg ;;
1281 -disable-* | --disable-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid feature name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "enable_$ac_useropt"
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1295 eval enable_$ac_useropt=no ;;
1297 -docdir | --docdir | --docdi | --doc | --do)
1299 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1300 docdir=$ac_optarg ;;
1302 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1305 dvidir=$ac_optarg ;;
1307 -enable-* | --enable-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid feature name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1316 "enable_$ac_useropt"
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1321 eval enable_$ac_useropt=\$ac_optarg ;;
1323 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1324 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1325 | --exec | --exe | --ex)
1326 ac_prev=exec_prefix ;;
1327 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1328 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1329 | --exec=* | --exe=* | --ex=*)
1330 exec_prefix=$ac_optarg ;;
1332 -gas | --gas | --ga | --g)
1333 # Obsolete; use --with-gas.
1336 -help | --help | --hel | --he | -h)
1337 ac_init_help=long ;;
1338 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1339 ac_init_help=recursive ;;
1340 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1341 ac_init_help=short ;;
1343 -host | --host | --hos | --ho)
1344 ac_prev=host_alias ;;
1345 -host=* | --host=* | --hos=* | --ho=*)
1346 host_alias=$ac_optarg ;;
1348 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352 htmldir=$ac_optarg ;;
1354 -includedir | --includedir | --includedi | --included | --include \
1355 | --includ | --inclu | --incl | --inc)
1356 ac_prev=includedir ;;
1357 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1358 | --includ=* | --inclu=* | --incl=* | --inc=*)
1359 includedir=$ac_optarg ;;
1361 -infodir | --infodir | --infodi | --infod | --info | --inf)
1363 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1364 infodir=$ac_optarg ;;
1366 -libdir | --libdir | --libdi | --libd)
1368 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1369 libdir=$ac_optarg ;;
1371 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1372 | --libexe | --libex | --libe)
1373 ac_prev=libexecdir ;;
1374 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1375 | --libexe=* | --libex=* | --libe=*)
1376 libexecdir=$ac_optarg ;;
1378 -localedir | --localedir | --localedi | --localed | --locale)
1379 ac_prev=localedir ;;
1380 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1381 localedir=$ac_optarg ;;
1383 -localstatedir | --localstatedir | --localstatedi | --localstated \
1384 | --localstate | --localstat | --localsta | --localst | --locals)
1385 ac_prev=localstatedir ;;
1386 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1387 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1388 localstatedir=$ac_optarg ;;
1390 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1393 mandir=$ac_optarg ;;
1395 -nfp | --nfp | --nf)
1396 # Obsolete; use --without-fp.
1399 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1400 | --no-cr | --no-c | -n)
1403 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1404 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1407 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1408 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1409 | --oldin | --oldi | --old | --ol | --o)
1410 ac_prev=oldincludedir ;;
1411 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1412 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1413 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1414 oldincludedir=$ac_optarg ;;
1416 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1419 prefix=$ac_optarg ;;
1421 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1422 | --program-pre | --program-pr | --program-p)
1423 ac_prev=program_prefix ;;
1424 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1425 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1426 program_prefix=$ac_optarg ;;
1428 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1429 | --program-suf | --program-su | --program-s)
1430 ac_prev=program_suffix ;;
1431 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1432 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1433 program_suffix=$ac_optarg ;;
1435 -program-transform-name | --program-transform-name \
1436 | --program-transform-nam | --program-transform-na \
1437 | --program-transform-n | --program-transform- \
1438 | --program-transform | --program-transfor \
1439 | --program-transfo | --program-transf \
1440 | --program-trans | --program-tran \
1441 | --progr-tra | --program-tr | --program-t)
1442 ac_prev=program_transform_name ;;
1443 -program-transform-name=* | --program-transform-name=* \
1444 | --program-transform-nam=* | --program-transform-na=* \
1445 | --program-transform-n=* | --program-transform-=* \
1446 | --program-transform=* | --program-transfor=* \
1447 | --program-transfo=* | --program-transf=* \
1448 | --program-trans=* | --program-tran=* \
1449 | --progr-tra=* | --program-tr=* | --program-t=*)
1450 program_transform_name=$ac_optarg ;;
1452 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1455 pdfdir=$ac_optarg ;;
1457 -psdir | --psdir | --psdi | --psd | --ps)
1459 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463 | -silent | --silent | --silen | --sile | --sil)
1466 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470 sbindir=$ac_optarg ;;
1472 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1473 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1474 | --sharedst | --shareds | --shared | --share | --shar \
1476 ac_prev=sharedstatedir ;;
1477 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1478 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1479 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481 sharedstatedir=$ac_optarg ;;
1483 -site | --site | --sit)
1485 -site=* | --site=* | --sit=*)
1488 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1491 srcdir=$ac_optarg ;;
1493 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1494 | --syscon | --sysco | --sysc | --sys | --sy)
1495 ac_prev=sysconfdir ;;
1496 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1497 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1498 sysconfdir=$ac_optarg ;;
1500 -target | --target | --targe | --targ | --tar | --ta | --t)
1501 ac_prev=target_alias ;;
1502 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1503 target_alias=$ac_optarg ;;
1505 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1508 -version | --version | --versio | --versi | --vers | -V)
1509 ac_init_version=: ;;
1512 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1513 # Reject names that are not valid shell variable names.
1514 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1515 as_fn_error $? "invalid package name: $ac_useropt"
1516 ac_useropt_orig=$ac_useropt
1517 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1518 case $ac_user_opts in
1522 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1523 ac_unrecognized_sep=', ';;
1525 eval with_$ac_useropt=\$ac_optarg ;;
1527 -without-* | --without-*)
1528 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1529 # Reject names that are not valid shell variable names.
1530 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1531 as_fn_error $? "invalid package name: $ac_useropt"
1532 ac_useropt_orig=$ac_useropt
1533 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1534 case $ac_user_opts in
1538 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1539 ac_unrecognized_sep=', ';;
1541 eval with_$ac_useropt=no ;;
1544 # Obsolete; use --with-x.
1547 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1548 | --x-incl | --x-inc | --x-in | --x-i)
1549 ac_prev=x_includes ;;
1550 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1551 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1552 x_includes=$ac_optarg ;;
1554 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1555 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1556 ac_prev=x_libraries ;;
1557 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1558 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1559 x_libraries=$ac_optarg ;;
1561 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1562 Try \`$0 --help' for more information"
1566 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1567 # Reject names that are not valid shell variable names.
1568 case $ac_envvar in #(
1569 '' | [0-9]* | *[!_$as_cr_alnum]* )
1570 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1572 eval $ac_envvar=\$ac_optarg
1573 export $ac_envvar ;;
1576 # FIXME: should be removed in autoconf 3.0.
1577 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1578 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1579 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1580 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1586 if test -n "$ac_prev"; then
1587 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1588 as_fn_error $? "missing argument to $ac_option"
1591 if test -n "$ac_unrecognized_opts"; then
1592 case $enable_option_checking in
1594 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1595 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1599 # Check all directory arguments for consistency.
1600 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1601 datadir sysconfdir sharedstatedir localstatedir includedir \
1602 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1603 libdir localedir mandir
1605 eval ac_val=\$$ac_var
1606 # Remove trailing slashes.
1609 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1610 eval $ac_var=\$ac_val;;
1612 # Be sure to have absolute directory names.
1614 [\\/$]* | ?:[\\/]* ) continue;;
1615 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1620 # There might be people who depend on the old broken behavior: `$host'
1621 # used to hold the argument of --host etc.
1622 # FIXME: To remove some day.
1625 target=$target_alias
1627 # FIXME: To remove some day.
1628 if test "x$host_alias" != x; then
1629 if test "x$build_alias" = x; then
1630 cross_compiling=maybe
1631 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1632 If a cross compiler is detected then cross compile mode will be used" >&2
1633 elif test "x$build_alias" != "x$host_alias"; then
1639 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1641 test "$silent" = yes && exec 6>/dev/null
1644 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1645 ac_ls_di=`ls -di .` &&
1646 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1647 as_fn_error $? "working directory cannot be determined"
1648 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1649 as_fn_error $? "pwd does not report name of working directory"
1652 # Find the source files, if location was not specified.
1653 if test -z "$srcdir"; then
1654 ac_srcdir_defaulted=yes
1655 # Try the directory containing this script, then the parent directory.
1656 ac_confdir=`$as_dirname -- "$as_myself" ||
1657 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1658 X"$as_myself" : 'X\(//\)[^/]' \| \
1659 X"$as_myself" : 'X\(//\)$' \| \
1660 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1661 $as_echo X"$as_myself" |
1662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1680 if test ! -r "$srcdir/$ac_unique_file"; then
1684 ac_srcdir_defaulted=no
1686 if test ! -r "$srcdir/$ac_unique_file"; then
1687 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1688 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1690 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1692 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1694 # When building in place, set srcdir=.
1695 if test "$ac_abs_confdir" = "$ac_pwd"; then
1698 # Remove unnecessary trailing slashes from srcdir.
1699 # Double slashes in file names in object file debugging info
1700 # mess up M-x gdb in Emacs.
1702 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1704 for ac_var in $ac_precious_vars; do
1705 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706 eval ac_env_${ac_var}_value=\$${ac_var}
1707 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1712 # Report the --help message.
1714 if test "$ac_init_help" = "long"; then
1715 # Omit some internal or obsolete options to make the list less imposing.
1716 # This message is too long to be a string in the A/UX 3.1 sh.
1718 \`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
1720 Usage: $0 [OPTION]... [VAR=VALUE]...
1722 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723 VAR=VALUE. See below for descriptions of some of the useful variables.
1725 Defaults for the options are specified in brackets.
1728 -h, --help display this help and exit
1729 --help=short display options specific to this package
1730 --help=recursive display the short help of all the included packages
1731 -V, --version display version information and exit
1732 -q, --quiet, --silent do not print \`checking ...' messages
1733 --cache-file=FILE cache test results in FILE [disabled]
1734 -C, --config-cache alias for \`--cache-file=config.cache'
1735 -n, --no-create do not create output files
1736 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1738 Installation directories:
1739 --prefix=PREFIX install architecture-independent files in PREFIX
1740 [$ac_default_prefix]
1741 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1744 By default, \`make install' will install all the files in
1745 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1746 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747 for instance \`--prefix=\$HOME'.
1749 For better control, use the options below.
1751 Fine tuning of the installation directories:
1752 --bindir=DIR user executables [EPREFIX/bin]
1753 --sbindir=DIR system admin executables [EPREFIX/sbin]
1754 --libexecdir=DIR program executables [EPREFIX/libexec]
1755 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1756 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1757 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1758 --libdir=DIR object code libraries [EPREFIX/lib]
1759 --includedir=DIR C header files [PREFIX/include]
1760 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1761 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1762 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1763 --infodir=DIR info documentation [DATAROOTDIR/info]
1764 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1765 --mandir=DIR man documentation [DATAROOTDIR/man]
1766 --docdir=DIR documentation root
1767 [DATAROOTDIR/doc/ImageMagick-7.0.0]
1768 --htmldir=DIR html documentation [DOCDIR]
1769 --dvidir=DIR dvi documentation [DOCDIR]
1770 --pdfdir=DIR pdf documentation [DOCDIR]
1771 --psdir=DIR ps documentation [DOCDIR]
1777 --program-prefix=PREFIX prepend PREFIX to installed program names
1778 --program-suffix=SUFFIX append SUFFIX to installed program names
1779 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1782 --x-includes=DIR X include files are in DIR
1783 --x-libraries=DIR X library files are in DIR
1786 --build=BUILD configure for building on BUILD [guessed]
1787 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1788 --target=TARGET configure for building compilers for TARGET [HOST]
1792 if test -n "$ac_init_help"; then
1793 case $ac_init_help in
1794 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
1799 --disable-option-checking ignore unrecognized --enable/--with options
1800 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1801 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1802 --enable-silent-rules less verbose build output (undo: `make V=1')
1803 --disable-silent-rules verbose build output (undo: `make V=0')
1804 --disable-dependency-tracking speeds up one-time build
1805 --enable-dependency-tracking do not reject slow dependency extractors
1806 --bounds-checking enable run-time bounds-checking
1807 --enable-osx-universal-binary
1808 build universal binary on OS X [[default=no]]
1809 --disable-openmp do not use OpenMP
1810 --disable-opencl do not use OpenCL
1811 --disable-largefile omit support for large files
1812 --enable-shared[=PKGS] build shared libraries [default=yes]
1813 --enable-static[=PKGS] build static libraries [default=yes]
1814 --enable-fast-install[=PKGS]
1815 optimize for fast installation [default=yes]
1816 --disable-libtool-lock avoid locking (might break parallel builds)
1817 --enable-ltdl-install install libltdl
1818 --enable-delegate-build look for delegate libraries in build directory
1819 --disable-deprecated exclude deprecated methods in MagickCore and
1821 --disable-installed Formally install ImageMagick under PREFIX
1822 --disable-cipher disable enciphering and deciphering image pixels
1823 --enable-embeddable enable self-contained, embeddable,
1824 zero-configuration ImageMagick
1825 --enable-hdri accurately represent the wide range of intensity
1826 levels found in real scenes
1827 --disable-assert disable assert() statements in build
1828 --enable-maintainer-mode enable make rules and dependencies not useful
1829 (and sometimes confusing) to the casual installer
1830 --enable-ccmalloc enable 'ccmalloc' memory debug support
1831 --enable-efence enable 'efence' memory debug support
1832 --enable-prof enable 'prof' profiling support
1833 --enable-gprof enable 'gprof' profiling support
1834 --enable-gcov enable 'gcov' profiling support
1835 --disable-assert turn off assertions
1838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1840 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1841 --with-dmalloc use dmalloc, as in
1842 http://www.dmalloc.com/dmalloc.tar.gz
1843 --without-threads disable threads support
1844 --with-pic try to use only PIC/non-PIC objects [default=use
1846 --with-sysroot=DIR Search for dependent libraries within DIR
1847 (or the compiler's sysroot if not specified).
1848 --with-included-ltdl use the GNU ltdl sources included here
1849 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1850 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1851 --with-modules enable building dynamically loadable modules
1852 --with-method-prefix=PREFIX
1853 prefix MagickCore API methods
1854 --with-quantum-depth=DEPTH
1855 number of bits in a pixel quantum (default 16)
1856 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1858 --with-frozenpaths freeze delegate paths
1859 --without-magick-plus-plus
1860 disable build/install of Magick++
1861 --with-perl enable build/install of PerlMagick
1862 --with-perl-options=OPTIONS
1863 options to pass on command-line when generating
1864 PerlMagick's build file
1865 --with-umem enable umem memory allocation library support
1866 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1867 --without-bzlib disable BZLIB support
1868 --with-x use the X Window System
1869 --without-zlib disable ZLIB support
1870 --with-autotrace enable autotrace support
1871 --without-dps disable Display Postscript support
1872 --without-djvu disable DjVu support
1873 --with-dejavu-font-dir=DIR
1874 DejaVu font directory
1875 --without-fftw disable FFTW support
1876 --without-fpx disable FlashPIX support
1877 --without-fontconfig disable fontconfig support
1878 --without-freetype disable Freetype support
1879 --without-gslib enable Ghostscript library support
1880 --with-fontpath=DIR prepend to default font search path
1881 --with-gs-font-dir=DIR Ghostscript font directory
1882 --without-gvc disable GVC support
1883 --without-jbig disable JBIG support
1884 --without-jpeg disable JPEG support
1885 --without-jp2 disable JPEG-2000 support
1886 --without-lcms disable lcms (v1.1X) support
1887 --without-lcms2 disable lcms (v2.X) support
1888 --without-lqr disable Liquid Rescale support
1889 --without-lzma disable LZMA support
1890 --without-openexr disable OpenEXR support
1891 --without-png disable PNG support
1892 --without-rsvg disable RSVG support
1893 --without-tiff disable TIFF support
1894 --without-webp disable WEBP support
1895 --with-windows-font-dir=DIR
1896 directory containing MS-Windows fonts
1897 --without-wmf disable WMF support
1898 --without-xml disable XML support
1900 Some influential environment variables:
1901 CC C compiler command
1902 CFLAGS C compiler flags
1903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1904 nonstandard directory <lib dir>
1905 LIBS libraries to pass to the linker, e.g. -l<library>
1906 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1907 you have headers in a nonstandard directory <include dir>
1909 CXX C++ compiler command
1910 CXXFLAGS C++ compiler flags
1911 PKG_CONFIG path to pkg-config utility
1912 CXXCPP C++ preprocessor
1913 XMKMF Path to xmkmf, Makefile generator for X Window System
1915 C compiler flags for AUTOTRACE, overriding pkg-config
1917 linker flags for AUTOTRACE, overriding pkg-config
1919 C compiler flags for FONTCONFIG, overriding pkg-config
1921 linker flags for FONTCONFIG, overriding pkg-config
1922 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1923 GVC_LIBS linker flags for GVC, overriding pkg-config
1924 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1925 LQR_LIBS linker flags for LQR, overriding pkg-config
1927 C compiler flags for OPENEXR, overriding pkg-config
1929 linker flags for OPENEXR, overriding pkg-config
1930 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1931 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1933 C compiler flags for CAIRO_SVG, overriding pkg-config
1935 linker flags for CAIRO_SVG, overriding pkg-config
1937 Use these variables to override the choices made by `configure' or to help
1938 it to find libraries and programs with nonstandard names/locations.
1940 Report bugs to <http://www.imagemagick.org>.
1945 if test "$ac_init_help" = "recursive"; then
1946 # If there are subdirs, report their specific --help.
1947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1948 test -d "$ac_dir" ||
1949 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1957 # A ".." for each directory in $ac_dir_suffix.
1958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1959 case $ac_top_builddir_sub in
1960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1964 ac_abs_top_builddir=$ac_pwd
1965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1966 # for backward compatibility:
1967 ac_top_builddir=$ac_top_build_prefix
1970 .) # We are building in place.
1972 ac_top_srcdir=$ac_top_builddir_sub
1973 ac_abs_top_srcdir=$ac_pwd ;;
1974 [\\/]* | ?:[\\/]* ) # Absolute name.
1975 ac_srcdir=$srcdir$ac_dir_suffix;
1976 ac_top_srcdir=$srcdir
1977 ac_abs_top_srcdir=$srcdir ;;
1979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1980 ac_top_srcdir=$ac_top_build_prefix$srcdir
1981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1985 cd "$ac_dir" || { ac_status=$?; continue; }
1986 # Check for guested configure.
1987 if test -f "$ac_srcdir/configure.gnu"; then
1989 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1990 elif test -f "$ac_srcdir/configure"; then
1992 $SHELL "$ac_srcdir/configure" --help=recursive
1994 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1996 cd "$ac_pwd" || { ac_status=$?; break; }
2000 test -n "$ac_init_help" && exit $ac_status
2001 if $ac_init_version; then
2003 ImageMagick configure 7.0.0
2004 generated by GNU Autoconf 2.68
2006 Copyright (C) 2010 Free Software Foundation, Inc.
2007 This configure script is free software; the Free Software Foundation
2008 gives unlimited permission to copy, distribute and modify it.
2013 ## ------------------------ ##
2014 ## Autoconf initialization. ##
2015 ## ------------------------ ##
2017 # ac_fn_c_try_compile LINENO
2018 # --------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_c_try_compile ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext
2024 if { { ac_try="$ac_compile"
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_compile") 2>conftest.err
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_c_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest.$ac_objext; then :
2045 $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_c_try_compile
2055 # ac_fn_c_try_cpp LINENO
2056 # ----------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 if { { ac_try="$ac_cpp conftest.$ac_ext"
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2070 if test -s conftest.err; then
2071 grep -v '^ *+' conftest.err >conftest.er1
2072 cat conftest.er1 >&5
2073 mv -f conftest.er1 conftest.err
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } > conftest.i && {
2077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078 test ! -s conftest.err
2082 $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 as_fn_set_status $ac_retval
2092 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2095 # the include files in INCLUDES and setting the cache variable VAR
2097 ac_fn_c_check_header_mongrel ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if eval \${$3+:} false; then :
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2110 # Is the header compilable?
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2112 $as_echo_n "checking $2 usability... " >&6; }
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_header_compiler=yes
2121 ac_header_compiler=no
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2125 $as_echo "$ac_header_compiler" >&6; }
2127 # Is the header present?
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2129 $as_echo_n "checking $2 presence... " >&6; }
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 if ac_fn_c_try_cpp "$LINENO"; then :
2135 ac_header_preproc=yes
2137 ac_header_preproc=no
2139 rm -f conftest.err conftest.i conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2141 $as_echo "$ac_header_preproc" >&6; }
2143 # So? What about this header?
2144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2147 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2153 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2155 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2157 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2159 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2161 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2162 ( $as_echo "## ----------------------------------------- ##
2163 ## Report this to http://www.imagemagick.org ##
2164 ## ----------------------------------------- ##"
2165 ) | sed "s/^/$as_me: WARNING: /" >&2
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169 $as_echo_n "checking for $2... " >&6; }
2170 if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2173 eval "$3=\$ac_header_compiler"
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 } # ac_fn_c_check_header_mongrel
2183 # ac_fn_c_try_run LINENO
2184 # ----------------------
2185 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2186 # that executables *can* be run.
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_link"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>&5
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2201 { { case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_try") 2>&5
2209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2210 test $ac_status = 0; }; }; then :
2213 $as_echo "$as_me: program exited with status $ac_status" >&5
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2217 ac_retval=$ac_status
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 as_fn_set_status $ac_retval
2225 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2226 # -------------------------------------------------------
2227 # Tests whether HEADER exists and can be compiled using the include files in
2228 # INCLUDES, setting the cache variable VAR accordingly.
2229 ac_fn_c_check_header_compile ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if eval \${$3+:} false; then :
2235 $as_echo_n "(cached) " >&6
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_c_check_header_compile
2256 # ac_fn_cxx_try_compile LINENO
2257 # ----------------------------
2258 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_compile ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 rm -f conftest.$ac_objext
2263 if { { ac_try="$ac_compile"
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_compile") 2>conftest.err
2272 if test -s conftest.err; then
2273 grep -v '^ *+' conftest.err >conftest.er1
2274 cat conftest.er1 >&5
2275 mv -f conftest.er1 conftest.err
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && {
2279 test -z "$ac_cxx_werror_flag" ||
2280 test ! -s conftest.err
2281 } && test -s conftest.$ac_objext; then :
2284 $as_echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status $ac_retval
2292 } # ac_fn_cxx_try_compile
2294 # ac_fn_c_try_link LINENO
2295 # -----------------------
2296 # Try to link conftest.$ac_ext, and return whether this succeeded.
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 rm -f conftest.$ac_objext conftest$ac_exeext
2301 if { { ac_try="$ac_link"
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304 *) ac_try_echo=$ac_try;;
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308 (eval "$ac_link") 2>conftest.err
2310 if test -s conftest.err; then
2311 grep -v '^ *+' conftest.err >conftest.er1
2312 cat conftest.er1 >&5
2313 mv -f conftest.er1 conftest.err
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316 test $ac_status = 0; } && {
2317 test -z "$ac_c_werror_flag" ||
2318 test ! -s conftest.err
2319 } && test -s conftest$ac_exeext && {
2320 test "$cross_compiling" = yes ||
2321 $as_test_x conftest$ac_exeext
2325 $as_echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2332 # interfere with the next link command; also delete a directory that is
2333 # left behind by Apple's compiler. We do this before executing the actions.
2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 as_fn_set_status $ac_retval
2338 } # ac_fn_c_try_link
2340 # ac_fn_c_check_func LINENO FUNC VAR
2341 # ----------------------------------
2342 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2343 ac_fn_c_check_func ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2347 $as_echo_n "checking for $2... " >&6; }
2348 if eval \${$3+:} false; then :
2349 $as_echo_n "(cached) " >&6
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2353 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2355 #define $2 innocuous_$2
2357 /* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char $2 (); below.
2359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2360 <limits.h> exists even on freestanding compilers. */
2363 # include <limits.h>
2365 # include <assert.h>
2370 /* Override any GCC internal prototype to avoid an error.
2371 Use char because int might match the return type of a GCC
2372 builtin and then its argument prototype would still apply. */
2377 /* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380 #if defined __stub_$2 || defined __stub___$2
2392 if ac_fn_c_try_link "$LINENO"; then :
2397 rm -f core conftest.err conftest.$ac_objext \
2398 conftest$ac_exeext conftest.$ac_ext
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405 } # ac_fn_c_check_func
2407 # ac_fn_cxx_try_cpp LINENO
2408 # ------------------------
2409 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2410 ac_fn_cxx_try_cpp ()
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 if { { ac_try="$ac_cpp conftest.$ac_ext"
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2419 $as_echo "$ac_try_echo"; } >&5
2420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2422 if test -s conftest.err; then
2423 grep -v '^ *+' conftest.err >conftest.er1
2424 cat conftest.er1 >&5
2425 mv -f conftest.er1 conftest.err
2427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2428 test $ac_status = 0; } > conftest.i && {
2429 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2430 test ! -s conftest.err
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440 as_fn_set_status $ac_retval
2442 } # ac_fn_cxx_try_cpp
2444 # ac_fn_cxx_try_link LINENO
2445 # -------------------------
2446 # Try to link conftest.$ac_ext, and return whether this succeeded.
2447 ac_fn_cxx_try_link ()
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { { ac_try="$ac_link"
2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454 *) ac_try_echo=$ac_try;;
2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2457 $as_echo "$ac_try_echo"; } >&5
2458 (eval "$ac_link") 2>conftest.err
2460 if test -s conftest.err; then
2461 grep -v '^ *+' conftest.err >conftest.er1
2462 cat conftest.er1 >&5
2463 mv -f conftest.er1 conftest.err
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && {
2467 test -z "$ac_cxx_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest$ac_exeext && {
2470 test "$cross_compiling" = yes ||
2471 $as_test_x conftest$ac_exeext
2475 $as_echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2480 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2481 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2482 # interfere with the next link command; also delete a directory that is
2483 # left behind by Apple's compiler. We do this before executing the actions.
2484 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 as_fn_set_status $ac_retval
2488 } # ac_fn_cxx_try_link
2490 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2491 # ---------------------------------------------
2492 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2494 ac_fn_c_check_decl ()
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 as_decl_name=`echo $2|sed 's/ *(.*//'`
2498 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2500 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2501 if eval \${$3+:} false; then :
2502 $as_echo_n "(cached) " >&6
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2510 #ifndef $as_decl_name
2512 (void) $as_decl_use;
2514 (void) $as_decl_name;
2522 if ac_fn_c_try_compile "$LINENO"; then :
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534 } # ac_fn_c_check_decl
2536 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2537 # -------------------------------------------
2538 # Tests whether TYPE exists after having included INCLUDES, setting cache
2539 # variable VAR accordingly.
2540 ac_fn_c_check_type ()
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if eval \${$3+:} false; then :
2546 $as_echo_n "(cached) " >&6
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2574 if ac_fn_c_try_compile "$LINENO"; then :
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2585 $as_echo "$ac_res" >&6; }
2586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2588 } # ac_fn_c_check_type
2590 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2591 # ----------------------------------------------------
2592 # Tries to find if the field MEMBER exists in type AGGR, after including
2593 # INCLUDES, setting cache variable VAR accordingly.
2594 ac_fn_c_check_member ()
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2598 $as_echo_n "checking for $2.$3... " >&6; }
2599 if eval \${$4+:} false; then :
2600 $as_echo_n "(cached) " >&6
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2615 if ac_fn_c_try_compile "$LINENO"; then :
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2625 if (sizeof ac_aggr.$3)
2631 if ac_fn_c_try_compile "$LINENO"; then :
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2645 } # ac_fn_c_check_member
2647 # ac_fn_c_find_intX_t LINENO BITS VAR
2648 # -----------------------------------
2649 # Finds a signed integer type with width BITS, setting cache variable VAR
2651 ac_fn_c_find_intX_t ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2655 $as_echo_n "checking for int$2_t... " >&6; }
2656 if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2660 # Order is important - never check a type that is potentially smaller
2661 # than half of the expected target width.
2662 for ac_type in int$2_t 'int' 'long int' \
2663 'long long int' 'short int' 'signed char'; do
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 $ac_includes_default
2667 enum { N = $2 / 2 - 1 };
2671 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2681 $ac_includes_default
2682 enum { N = $2 / 2 - 1 };
2686 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2687 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2694 if ac_fn_c_try_compile "$LINENO"; then :
2701 eval "$3=\$ac_type" ;;
2704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 if eval test \"x\$"$3"\" = x"no"; then :
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719 } # ac_fn_c_find_intX_t
2721 # ac_fn_c_find_uintX_t LINENO BITS VAR
2722 # ------------------------------------
2723 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2725 ac_fn_c_find_uintX_t ()
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2729 $as_echo_n "checking for uint$2_t... " >&6; }
2730 if eval \${$3+:} false; then :
2731 $as_echo_n "(cached) " >&6
2734 # Order is important - never check a type that is potentially smaller
2735 # than half of the expected target width.
2736 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2737 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 $ac_includes_default
2744 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2751 if ac_fn_c_try_compile "$LINENO"; then :
2756 eval "$3=\$ac_type" ;;
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 if eval test \"x\$"$3"\" = x"no"; then :
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2769 $as_echo "$ac_res" >&6; }
2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2772 } # ac_fn_c_find_uintX_t
2774 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2775 # --------------------------------------------
2776 # Tries to find the compile-time value of EXPR in a program that includes
2777 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2779 ac_fn_c_compute_int ()
2781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2782 if test "$cross_compiling" = yes; then
2783 # Depending upon the size, compute the lo and hi bounds.
2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785 /* end confdefs.h. */
2790 static int test_array [1 - 2 * !(($2) >= 0)];
2797 if ac_fn_c_try_compile "$LINENO"; then :
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2806 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=$ac_mid; break
2816 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2817 if test $ac_lo -le $ac_mid; then
2821 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2832 static int test_array [1 - 2 * !(($2) < 0)];
2839 if ac_fn_c_try_compile "$LINENO"; then :
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2848 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2855 if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_lo=$ac_mid; break
2858 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2859 if test $ac_mid -le $ac_hi; then
2863 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 # Binary search between lo and hi bounds.
2874 while test "x$ac_lo" != "x$ac_hi"; do
2875 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2882 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2889 if ac_fn_c_try_compile "$LINENO"; then :
2892 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2904 static long int longval () { return $2; }
2905 static unsigned long int ulongval () { return $2; }
2912 FILE *f = fopen ("conftest.val", "w");
2917 long int i = longval ();
2920 fprintf (f, "%ld", i);
2924 unsigned long int i = ulongval ();
2927 fprintf (f, "%lu", i);
2929 /* Do not output a trailing newline, as this causes \r\n confusion
2930 on some platforms. */
2931 return ferror (f) || fclose (f) != 0;
2937 if ac_fn_c_try_run "$LINENO"; then :
2938 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2943 conftest.$ac_objext conftest.beam conftest.$ac_ext
2947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2948 as_fn_set_status $ac_retval
2950 } # ac_fn_c_compute_int
2952 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2953 # ---------------------------------------------------------
2954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2955 # the include files in INCLUDES and setting the cache variable VAR
2957 ac_fn_cxx_check_header_mongrel ()
2959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2960 if eval \${$3+:} false; then :
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2962 $as_echo_n "checking for $2... " >&6; }
2963 if eval \${$3+:} false; then :
2964 $as_echo_n "(cached) " >&6
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2968 $as_echo "$ac_res" >&6; }
2970 # Is the header compilable?
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2972 $as_echo_n "checking $2 usability... " >&6; }
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2978 if ac_fn_cxx_try_compile "$LINENO"; then :
2979 ac_header_compiler=yes
2981 ac_header_compiler=no
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2985 $as_echo "$ac_header_compiler" >&6; }
2987 # Is the header present?
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2989 $as_echo_n "checking $2 presence... " >&6; }
2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991 /* end confdefs.h. */
2994 if ac_fn_cxx_try_cpp "$LINENO"; then :
2995 ac_header_preproc=yes
2997 ac_header_preproc=no
2999 rm -f conftest.err conftest.i conftest.$ac_ext
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3001 $as_echo "$ac_header_preproc" >&6; }
3003 # So? What about this header?
3004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3022 ( $as_echo "## ----------------------------------------- ##
3023 ## Report this to http://www.imagemagick.org ##
3024 ## ----------------------------------------- ##"
3025 ) | sed "s/^/$as_me: WARNING: /" >&2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3029 $as_echo_n "checking for $2... " >&6; }
3030 if eval \${$3+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 eval "$3=\$ac_header_compiler"
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3037 $as_echo "$ac_res" >&6; }
3039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3041 } # ac_fn_cxx_check_header_mongrel
3042 cat >config.log <<_ACEOF
3043 This file contains any messages produced by compilers while
3044 running configure, to aid debugging if configure makes a mistake.
3046 It was created by ImageMagick $as_me 7.0.0, which was
3047 generated by GNU Autoconf 2.68. Invocation command line was
3059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3066 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3068 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3069 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3071 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3072 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3073 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3074 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 test -z "$as_dir" && as_dir=.
3083 $as_echo "PATH: $as_dir"
3099 # Keep a trace of the command line.
3100 # Strip out --no-create and --no-recursion so they do not pile up.
3101 # Strip out --silent because we don't want to record it for future runs.
3102 # Also quote any args containing shell meta-characters.
3103 # Make two passes to allow for proper duplicate-argument suppression.
3107 ac_must_keep_next=false
3113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3115 | -silent | --silent | --silen | --sile | --sil)
3118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3123 as_fn_append ac_configure_args1 " '$ac_arg'"
3124 if test $ac_must_keep_next = true; then
3125 ac_must_keep_next=false # Got value, back to normal.
3128 *=* | --config-cache | -C | -disable-* | --disable-* \
3129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3131 | -with-* | --with-* | -without-* | --without-* | --x)
3132 case "$ac_configure_args0 " in
3133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3136 -* ) ac_must_keep_next=true ;;
3139 as_fn_append ac_configure_args " '$ac_arg'"
3144 { ac_configure_args0=; unset ac_configure_args0;}
3145 { ac_configure_args1=; unset ac_configure_args1;}
3147 # When interrupted or exit'd, cleanup temporary files, and complete
3148 # config.log. We remove comments because anyway the quotes in there
3149 # would cause problems or look ugly.
3150 # WARNING: Use '\'' to represent an apostrophe within the trap.
3151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3152 trap 'exit_status=$?
3153 # Save into config.log some information that might help in debugging.
3157 $as_echo "## ---------------- ##
3158 ## Cache variables. ##
3159 ## ---------------- ##"
3161 # The following way of writing the cache mishandles newlines in values,
3163 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3164 eval ac_val=\$$ac_var
3168 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3169 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3172 _ | IFS | as_nl) ;; #(
3173 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3174 *) { eval $ac_var=; unset $ac_var;} ;;
3179 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3180 *${as_nl}ac_space=\ *)
3182 "s/'\''/'\''\\\\'\'''\''/g;
3183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3193 $as_echo "## ----------------- ##
3194 ## Output variables. ##
3195 ## ----------------- ##"
3197 for ac_var in $ac_subst_vars
3199 eval ac_val=\$$ac_var
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3203 $as_echo "$ac_var='\''$ac_val'\''"
3207 if test -n "$ac_subst_files"; then
3208 $as_echo "## ------------------- ##
3209 ## File substitutions. ##
3210 ## ------------------- ##"
3212 for ac_var in $ac_subst_files
3214 eval ac_val=\$$ac_var
3216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3218 $as_echo "$ac_var='\''$ac_val'\''"
3223 if test -s confdefs.h; then
3224 $as_echo "## ----------- ##
3231 test "$ac_signal" != 0 &&
3232 $as_echo "$as_me: caught signal $ac_signal"
3233 $as_echo "$as_me: exit $exit_status"
3235 rm -f core *.core core.conftest.* &&
3236 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3239 for ac_signal in 1 2 13 15; do
3240 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3245 rm -f -r conftest* confdefs.h
3247 $as_echo "/* confdefs.h */" > confdefs.h
3249 # Predefined preprocessor variables.
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE_NAME "$PACKAGE_NAME"
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3259 cat >>confdefs.h <<_ACEOF
3260 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3263 cat >>confdefs.h <<_ACEOF
3264 #define PACKAGE_STRING "$PACKAGE_STRING"
3267 cat >>confdefs.h <<_ACEOF
3268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3271 cat >>confdefs.h <<_ACEOF
3272 #define PACKAGE_URL "$PACKAGE_URL"
3276 # Let the site file select an alternate cache file if it wants to.
3277 # Prefer an explicitly selected file to automatically selected ones.
3280 if test -n "$CONFIG_SITE"; then
3281 # We do not want a PATH search for config.site.
3282 case $CONFIG_SITE in #((
3283 -*) ac_site_file1=./$CONFIG_SITE;;
3284 */*) ac_site_file1=$CONFIG_SITE;;
3285 *) ac_site_file1=./$CONFIG_SITE;;
3287 elif test "x$prefix" != xNONE; then
3288 ac_site_file1=$prefix/share/config.site
3289 ac_site_file2=$prefix/etc/config.site
3291 ac_site_file1=$ac_default_prefix/share/config.site
3292 ac_site_file2=$ac_default_prefix/etc/config.site
3294 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3296 test "x$ac_site_file" = xNONE && continue
3297 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3299 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3300 sed 's/^/| /' "$ac_site_file" >&5
3302 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "failed to load site script $ac_site_file
3305 See \`config.log' for more details" "$LINENO" 5; }
3309 if test -r "$cache_file"; then
3310 # Some versions of bash will fail to source /dev/null (special files
3311 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3312 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3314 $as_echo "$as_me: loading cache $cache_file" >&6;}
3316 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3317 *) . "./$cache_file";;
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3322 $as_echo "$as_me: creating cache $cache_file" >&6;}
3326 as_fn_append ac_header_list " stdlib.h"
3327 as_fn_append ac_header_list " unistd.h"
3328 as_fn_append ac_header_list " sys/param.h"
3329 # Check that the precious variables saved in the cache have kept the same
3331 ac_cache_corrupted=false
3332 for ac_var in $ac_precious_vars; do
3333 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3334 eval ac_new_set=\$ac_env_${ac_var}_set
3335 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3336 eval ac_new_val=\$ac_env_${ac_var}_value
3337 case $ac_old_set,$ac_new_set in
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3340 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3341 ac_cache_corrupted=: ;;
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3344 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3345 ac_cache_corrupted=: ;;
3348 if test "x$ac_old_val" != "x$ac_new_val"; then
3349 # differences in whitespace do not lead to failure.
3350 ac_old_val_w=`echo x $ac_old_val`
3351 ac_new_val_w=`echo x $ac_new_val`
3352 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3354 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3355 ac_cache_corrupted=:
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3358 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3359 eval $ac_var=\$ac_old_val
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3362 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3364 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3367 # Pass precious variables to config.status.
3368 if test "$ac_new_set" = set; then
3370 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3371 *) ac_arg=$ac_var=$ac_new_val ;;
3373 case " $ac_configure_args " in
3374 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3375 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3379 if $ac_cache_corrupted; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3383 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3384 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3386 ## -------------------- ##
3387 ## Main body of script. ##
3388 ## -------------------- ##
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 for ac_dir in config "$srcdir"/config; do
3400 if test -f "$ac_dir/install-sh"; then
3402 ac_install_sh="$ac_aux_dir/install-sh -c"
3404 elif test -f "$ac_dir/install.sh"; then
3406 ac_install_sh="$ac_aux_dir/install.sh -c"
3408 elif test -f "$ac_dir/shtool"; then
3410 ac_install_sh="$ac_aux_dir/shtool install -c"
3414 if test -z "$ac_aux_dir"; then
3415 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3418 # These three variables are undocumented and unsupported,
3419 # and are intended to be withdrawn in a future Autoconf release.
3420 # They can cause serious problems if a builder's source tree is in a directory
3421 # whose full name contains unusual characters.
3422 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3423 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3424 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3429 ac_config_headers="$ac_config_headers config/config.h"
3432 ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3434 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"
3438 # Save initial user-tunable values
3441 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3442 eval isset=\${$var+set}
3443 if test "$isset" = 'set'; then
3444 eval val=$`echo $var`
3445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3450 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3453 # Source file containing package/library versioning information.
3454 . ${srcdir}/version.sh
3456 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3457 # Make sure we can run config.sub.
3458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3459 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3462 $as_echo_n "checking build system type... " >&6; }
3463 if ${ac_cv_build+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 ac_build_alias=$build_alias
3467 test "x$ac_build_alias" = x &&
3468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3469 test "x$ac_build_alias" = x &&
3470 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3471 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3476 $as_echo "$ac_cv_build" >&6; }
3477 case $ac_cv_build in
3479 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3482 ac_save_IFS=$IFS; IFS='-'
3488 # Remember, the first character of IFS is used to create $*,
3489 # except with old shells:
3492 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3496 $as_echo_n "checking host system type... " >&6; }
3497 if ${ac_cv_host+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 if test "x$host_alias" = x; then
3501 ac_cv_host=$ac_cv_build
3503 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3509 $as_echo "$ac_cv_host" >&6; }
3512 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3515 ac_save_IFS=$IFS; IFS='-'
3521 # Remember, the first character of IFS is used to create $*,
3522 # except with old shells:
3525 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3529 $as_echo_n "checking target system type... " >&6; }
3530 if ${ac_cv_target+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 if test "x$target_alias" = x; then
3534 ac_cv_target=$ac_cv_host
3536 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3542 $as_echo "$ac_cv_target" >&6; }
3543 case $ac_cv_target in
3545 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3547 target=$ac_cv_target
3548 ac_save_IFS=$IFS; IFS='-'
3554 # Remember, the first character of IFS is used to create $*,
3555 # except with old shells:
3558 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3561 # The aliases save the names the user supplied, while $host etc.
3562 # will get canonicalized.
3563 test -n "$target_alias" &&
3564 test "$program_prefix$program_suffix$program_transform_name" = \
3566 program_prefix=${target_alias}-
3571 MAGICK_TARGET_CPU=$host_cpu
3574 MAGICK_TARGET_VENDOR=$host_vendor
3577 MAGICK_TARGET_OS=$host_os
3580 # Substitute library versioning
3581 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3583 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3585 MAGICK_SVN_REVISION=4944
3590 # Ensure that make can run correctly
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3592 $as_echo_n "checking whether build environment is sane... " >&6; }
3595 echo timestamp > conftest.file
3596 # Reject unsafe characters in $srcdir or the absolute working directory
3597 # name. Accept space and tab only in the latter.
3601 *[\\\"\#\$\&\'\`$am_lf]*)
3602 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3605 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3606 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3609 # Do `set' in a subshell so we don't clobber the current shell's
3610 # arguments. Must try -L first in case configure is actually a
3611 # symlink; some systems play weird games with the mod time of symlinks
3612 # (eg FreeBSD returns the mod time of the symlink's containing
3615 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3616 if test "$*" = "X"; then
3618 set X `ls -t "$srcdir/configure" conftest.file`
3621 if test "$*" != "X $srcdir/configure conftest.file" \
3622 && test "$*" != "X conftest.file $srcdir/configure"; then
3624 # If neither matched, then we have a broken ls. This can happen
3625 # if, for instance, CONFIG_SHELL is bash and it inherits a
3626 # broken ls alias from the environment. This has actually
3627 # happened. Such a system could not be considered "sane".
3628 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3629 alias in your environment" "$LINENO" 5
3632 test "$2" = conftest.file
3638 as_fn_error $? "newly created file is older than distributed files!
3639 Check your system clock" "$LINENO" 5
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3644 am__api_version='1.11'
3646 # Find a good install program. We prefer a C program (faster),
3647 # so one script is as good as another. But avoid the broken or
3648 # incompatible versions:
3649 # SysV /etc/install, /usr/sbin/install
3650 # SunOS /usr/etc/install
3651 # IRIX /sbin/install
3653 # AmigaOS /C/install, which installs bootblocks on floppy discs
3654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3657 # OS/2's system install, which has a completely different semantic
3658 # ./install, which can be erroneously created by make from ./install.sh.
3659 # Reject install programs that cannot install multiple files.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3661 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3662 if test -z "$INSTALL"; then
3663 if ${ac_cv_path_install+:} false; then :
3664 $as_echo_n "(cached) " >&6
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir=.
3671 # Account for people who put trailing slashes in PATH elements.
3672 case $as_dir/ in #((
3673 ./ | .// | /[cC]/* | \
3674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3678 # OSF1 and SCO ODT 3.0 have their own names for install.
3679 # Don't use installbsd from OSF since it installs stuff as root
3681 for ac_prog in ginstall scoinst install; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684 if test $ac_prog = install &&
3685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # AIX install. It has an incompatible calling convention.
3688 elif test $ac_prog = install &&
3689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690 # program-specific install script used by HP pwplus--don't use.
3693 rm -rf conftest.one conftest.two conftest.dir
3694 echo one > conftest.one
3695 echo two > conftest.two
3697 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3698 test -s conftest.one && test -s conftest.two &&
3699 test -s conftest.dir/conftest.one &&
3700 test -s conftest.dir/conftest.two
3702 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3715 rm -rf conftest.one conftest.two conftest.dir
3718 if test "${ac_cv_path_install+set}" = set; then
3719 INSTALL=$ac_cv_path_install
3721 # As a last resort, use the slow shell script. Don't cache a
3722 # value for INSTALL within a source directory, because that will
3723 # break other packages using the cache if that directory is
3724 # removed, or if the value is a relative name.
3725 INSTALL=$ac_install_sh
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3729 $as_echo "$INSTALL" >&6; }
3731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3732 # It thinks the first close brace ends the variable substitution.
3733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3739 test "$program_prefix" != NONE &&
3740 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3741 # Use a double $ so make ignores it.
3742 test "$program_suffix" != NONE &&
3743 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3744 # Double any \ or $.
3745 # By default was `s,x,x', remove it if useless.
3746 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3747 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3749 # expand $ac_aux_dir to an absolute path
3750 am_aux_dir=`cd $ac_aux_dir && pwd`
3752 if test x"${MISSING+set}" != xset; then
3755 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3757 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3760 # Use eval to expand $SHELL
3761 if eval "$MISSING --run true"; then
3762 am_missing_run="$MISSING --run "
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3766 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3769 if test x"${install_sh}" != xset; then
3772 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3774 install_sh="\${SHELL} $am_aux_dir/install-sh"
3778 # Installed binaries are usually stripped using `strip' when the user
3779 # run `make install-strip'. However `strip' might not be the right
3780 # tool to use in cross-compilation environments, therefore Automake
3781 # will honor the `STRIP' environment variable to overrule this program.
3782 if test "$cross_compiling" != no; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}strip; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_STRIP+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$STRIP"; then
3792 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 STRIP=$ac_cv_prog_STRIP
3812 if test -n "$STRIP"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3814 $as_echo "$STRIP" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3822 if test -z "$ac_cv_prog_STRIP"; then
3824 # Extract the first word of "strip", so it can be a program name with args.
3825 set dummy strip; ac_word=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 if test -n "$ac_ct_STRIP"; then
3832 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 ac_cv_prog_ac_ct_STRIP="strip"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3852 if test -n "$ac_ct_STRIP"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3854 $as_echo "$ac_ct_STRIP" >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3860 if test "x$ac_ct_STRIP" = x; then
3863 case $cross_compiling:$ac_tool_warned in
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867 ac_tool_warned=yes ;;
3872 STRIP="$ac_cv_prog_STRIP"
3876 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3879 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3880 if test -z "$MKDIR_P"; then
3881 if ${ac_cv_path_mkdir+:} false; then :
3882 $as_echo_n "(cached) " >&6
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3888 test -z "$as_dir" && as_dir=.
3889 for ac_prog in mkdir gmkdir; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3892 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3893 'mkdir (GNU coreutils) '* | \
3894 'mkdir (coreutils) '* | \
3895 'mkdir (fileutils) '4.1*)
3896 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3906 test -d ./--version && rmdir ./--version
3907 if test "${ac_cv_path_mkdir+set}" = set; then
3908 MKDIR_P="$ac_cv_path_mkdir -p"
3910 # As a last resort, use the slow shell script. Don't cache a
3911 # value for MKDIR_P within a source directory, because that will
3912 # break other packages using the cache if that directory is
3913 # removed, or if the value is a relative name.
3914 MKDIR_P="$ac_install_sh -d"
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3918 $as_echo "$MKDIR_P" >&6; }
3922 [\\/$]* | ?:[\\/]*) ;;
3923 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3926 for ac_prog in gawk mawk nawk awk
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if ${ac_cv_prog_AWK+:} false; then :
3933 $as_echo_n "(cached) " >&6
3935 if test -n "$AWK"; then
3936 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3945 ac_cv_prog_AWK="$ac_prog"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 if test -n "$AWK"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3958 $as_echo "$AWK" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3965 test -n "$AWK" && break
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3972 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3973 $as_echo_n "(cached) " >&6
3975 cat >conftest.make <<\_ACEOF
3978 @echo '@@@%%%=$(MAKE)=@@@%%%'
3980 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3983 eval ac_cv_prog_make_${ac_make}_set=yes;;
3985 eval ac_cv_prog_make_${ac_make}_set=no;;
3989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3991 $as_echo "yes" >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 SET_MAKE="MAKE=${MAKE-make}"
3999 rm -rf .tst 2>/dev/null
4000 mkdir .tst 2>/dev/null
4001 if test -d .tst; then
4006 rmdir .tst 2>/dev/null
4008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4010 # is not polluted with repeated "-I."
4011 am__isrc=' -I$(srcdir)'
4012 # test to see if srcdir already configured
4013 if test -f $srcdir/config.status; then
4014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4018 # test whether we have cygpath
4019 if test -z "$CYGPATH_W"; then
4020 if (cygpath --version) >/dev/null 2>/dev/null; then
4021 CYGPATH_W='cygpath -w'
4028 # Define the identity of the package.
4029 PACKAGE=$PACKAGE_NAME
4030 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4033 # Some tools Automake needs.
4035 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4038 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4041 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4044 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4047 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4049 # We need awk for the "check" target. The system "awk" is bad on
4051 # Always define AMTAR for backward compatibility.
4053 AMTAR=${AMTAR-"${am_missing_run}tar"}
4055 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4062 # Enable support for silent build rules
4063 # Check whether --enable-silent-rules was given.
4064 if test "${enable_silent_rules+set}" = set; then :
4065 enableval=$enable_silent_rules;
4068 case $enable_silent_rules in
4069 yes) AM_DEFAULT_VERBOSITY=0;;
4070 no) AM_DEFAULT_VERBOSITY=1;;
4071 *) AM_DEFAULT_VERBOSITY=0;;
4076 MAGICK_LIB_VERSION="0x"
4077 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4078 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4080 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4081 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4082 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4084 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4085 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4086 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4088 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4091 # Definition used to define MagickLibVersionText in version.h
4092 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4095 # Definition used to define MagickLibVersionNumber in version.h
4096 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4099 # Regenerate config.status if ChangeLog or version.sh is updated.
4100 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4106 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4107 MAGICK_PCFLAGS=$CPPFLAGS_USER
4113 # Evaluate shell variable equivalents to Makefile directory variables
4115 if test "x$prefix" = xNONE; then
4116 prefix=$ac_default_prefix
4118 # Let make expand exec_prefix.
4119 if test "x$exec_prefix" = xNONE; then
4120 exec_prefix='${prefix}'
4124 eval "eval PREFIX_DIR=${prefix}"
4126 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4128 eval "eval BIN_DIR=$bindir"
4130 eval "eval SBIN_DIR=$sbindir"
4132 eval "eval LIBEXEC_DIR=$libexecdir"
4134 eval "eval DATA_DIR=$datadir"
4136 eval "eval DOC_DIR=$docdir"
4138 eval "eval SYSCONF_DIR=$sysconfdir"
4140 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4142 eval "eval LOCALSTATE_DIR=$localstatedir"
4144 eval "eval LIB_DIR=$libdir"
4146 eval "eval INCLUDE_DIR=$includedir"
4148 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4150 eval "eval INFO_DIR=$infodir"
4152 eval "eval MAN_DIR=$mandir"
4155 # Get full paths to source and build directories
4156 srcdirfull="`cd $srcdir && pwd`"
4160 # Compute variables useful for running uninstalled software.
4162 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4163 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4164 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4165 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4167 case "${build_os}" in
4169 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4170 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4171 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4172 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4176 case "${host_os}" in
4189 # Enable OS features.
4191 DEPDIR="${am__leading_dot}deps"
4193 ac_config_commands="$ac_config_commands depfiles"
4196 am_make=${MAKE-make}
4197 cat > confinc << 'END'
4199 @echo this is the am__doit target
4202 # If we don't find an include directive, just comment out the code.
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4204 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4208 # First try GNU make style include.
4209 echo "include confinc" > confmf
4210 # Ignore all kinds of additional output from `make'.
4211 case `$am_make -s -f confmf 2> /dev/null` in #(
4212 *the\ am__doit\ target*)
4218 # Now try BSD make style include.
4219 if test "$am__include" = "#"; then
4220 echo '.include "confinc"' > confmf
4221 case `$am_make -s -f confmf 2> /dev/null` in #(
4222 *the\ am__doit\ target*)
4223 am__include=.include
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4232 $as_echo "$_am_result" >&6; }
4233 rm -f confinc confmf
4235 # Check whether --enable-dependency-tracking was given.
4236 if test "${enable_dependency_tracking+set}" = set; then :
4237 enableval=$enable_dependency_tracking;
4240 if test "x$enable_dependency_tracking" != xno; then
4241 am_depcomp="$ac_aux_dir/depcomp"
4244 if test "x$enable_dependency_tracking" != xno; then
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_CC+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 if test -n "$CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 $as_echo "$CC" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4297 if test -z "$ac_cv_prog_CC"; then
4299 # Extract the first word of "gcc", so it can be a program name with args.
4300 set dummy gcc; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4304 $as_echo_n "(cached) " >&6
4306 if test -n "$ac_ct_CC"; then
4307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_CC="gcc"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327 if test -n "$ac_ct_CC"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329 $as_echo "$ac_ct_CC" >&6; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4335 if test "x$ac_ct_CC" = x; then
4338 case $cross_compiling:$ac_tool_warned in
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342 ac_tool_warned=yes ;;
4350 if test -z "$CC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353 set dummy ${ac_tool_prefix}cc; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_CC+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -n "$CC"; then
4360 ac_cv_prog_CC="$CC" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CC="${ac_tool_prefix}cc"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 if test -n "$CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4391 if test -z "$CC"; then
4392 # Extract the first word of "cc", so it can be a program name with args.
4393 set dummy cc; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_prog_CC+:} false; then :
4397 $as_echo_n "(cached) " >&6
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4411 ac_prog_rejected=yes
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test $ac_prog_rejected = yes; then
4423 # We found a bogon in the path, so make sure we never use it.
4424 set dummy $ac_cv_prog_CC
4426 if test $# != 0; then
4427 # We chose a different compiler from the bogus one.
4428 # However, it has the same basename, so the bogon will be chosen
4429 # first if we set CC to just the basename; use the full file name.
4431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4437 if test -n "$CC"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4439 $as_echo "$CC" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4447 if test -z "$CC"; then
4448 if test -n "$ac_tool_prefix"; then
4449 for ac_prog in cl.exe
4451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_CC+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test -n "$CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 $as_echo "$CC" >&6; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4488 test -n "$CC" && break
4491 if test -z "$CC"; then
4493 for ac_prog in cl.exe
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496 set dummy $ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523 if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4525 $as_echo "$ac_ct_CC" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 test -n "$ac_ct_CC" && break
4535 if test "x$ac_ct_CC" = x; then
4538 case $cross_compiling:$ac_tool_warned in
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542 ac_tool_warned=yes ;;
4551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553 as_fn_error $? "no acceptable C compiler found in \$PATH
4554 See \`config.log' for more details" "$LINENO" 5; }
4556 # Provide some information about the compiler.
4557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4560 for ac_option in --version -v -V -qversion; do
4561 { { ac_try="$ac_compiler $ac_option >&5"
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4570 if test -s conftest.err; then
4572 ... rest of stderr output deleted ...
4573 10q' conftest.err >conftest.er1
4574 cat conftest.er1 >&5
4576 rm -f conftest.er1 conftest.err
4577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4592 ac_clean_files_save=$ac_clean_files
4593 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4594 # Try to create an executable without -o first, disregard a.out.
4595 # It will help us diagnose broken compilers, and finding out an intuition
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4598 $as_echo_n "checking whether the C compiler works... " >&6; }
4599 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4601 # The possible output files:
4602 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4605 for ac_file in $ac_files
4608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4609 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4614 if { { ac_try="$ac_link_default"
4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617 *) ac_try_echo=$ac_try;;
4619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
4621 (eval "$ac_link_default") 2>&5
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }; then :
4625 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4626 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4627 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4628 # so that the user can short-circuit this test for compilers unknown to
4630 for ac_file in $ac_files ''
4632 test -f "$ac_file" || continue
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4637 # We found the default executable, but exeext='' is most
4641 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4643 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4645 # We set ac_cv_exeext here because the later test for it is not
4646 # safe: cross compilers may not add the suffix if given an `-o'
4647 # argument, so we may need to know it at that point already.
4648 # Even if this section looks crufty: it has the advantage of
4655 test "$ac_cv_exeext" = no && ac_cv_exeext=
4660 if test -z "$ac_file"; then :
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4668 as_fn_error 77 "C compiler cannot create executables
4669 See \`config.log' for more details" "$LINENO" 5; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4672 $as_echo "yes" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4675 $as_echo_n "checking for C compiler default output file name... " >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4677 $as_echo "$ac_file" >&6; }
4678 ac_exeext=$ac_cv_exeext
4680 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4681 ac_clean_files=$ac_clean_files_save
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4683 $as_echo_n "checking for suffix of executables... " >&6; }
4684 if { { ac_try="$ac_link"
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4690 $as_echo "$ac_try_echo"; } >&5
4691 (eval "$ac_link") 2>&5
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }; then :
4695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4696 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4697 # work properly (i.e., refer to `conftest.exe'), while it won't with
4699 for ac_file in conftest.exe conftest conftest.*; do
4700 test -f "$ac_file" || continue
4702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4712 See \`config.log' for more details" "$LINENO" 5; }
4714 rm -f conftest conftest$ac_cv_exeext
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4716 $as_echo "$ac_cv_exeext" >&6; }
4718 rm -f conftest.$ac_ext
4719 EXEEXT=$ac_cv_exeext
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4727 FILE *f = fopen ("conftest.out", "w");
4728 return ferror (f) || fclose (f) != 0;
4734 ac_clean_files="$ac_clean_files conftest.out"
4735 # Check that the compiler produces executables we can run. If not, either
4736 # the compiler is broken, or we cross compile.
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4738 $as_echo_n "checking whether we are cross compiling... " >&6; }
4739 if test "$cross_compiling" != yes; then
4740 { { ac_try="$ac_link"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_link") 2>&5
4749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }
4751 if { ac_try='./conftest$ac_cv_exeext'
4752 { { case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_try") 2>&5
4760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761 test $ac_status = 0; }; }; then
4764 if test "$cross_compiling" = maybe; then
4767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4769 as_fn_error $? "cannot run C compiled programs.
4770 If you meant to cross compile, use \`--host'.
4771 See \`config.log' for more details" "$LINENO" 5; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4776 $as_echo "$cross_compiling" >&6; }
4778 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4779 ac_clean_files=$ac_clean_files_save
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4781 $as_echo_n "checking for suffix of object files... " >&6; }
4782 if ${ac_cv_objext+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4796 rm -f conftest.o conftest.obj
4797 if { { ac_try="$ac_compile"
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803 $as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_compile") 2>&5
4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }; then :
4808 for ac_file in conftest.o conftest.obj conftest.*; do
4809 test -f "$ac_file" || continue;
4811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4817 $as_echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4822 as_fn_error $? "cannot compute suffix of object files: cannot compile
4823 See \`config.log' for more details" "$LINENO" 5; }
4825 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4828 $as_echo "$ac_cv_objext" >&6; }
4829 OBJEXT=$ac_cv_objext
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4833 if ${ac_cv_c_compiler_gnu+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4850 if ac_fn_c_try_compile "$LINENO"; then :
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4861 if test $ac_compiler_gnu = yes; then
4866 ac_test_CFLAGS=${CFLAGS+set}
4867 ac_save_CFLAGS=$CFLAGS
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4870 if ${ac_cv_prog_cc_g+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 ac_save_c_werror_flag=$ac_c_werror_flag
4874 ac_c_werror_flag=yes
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4888 if ac_fn_c_try_compile "$LINENO"; then :
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4903 if ac_fn_c_try_compile "$LINENO"; then :
4906 ac_c_werror_flag=$ac_save_c_werror_flag
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4919 if ac_fn_c_try_compile "$LINENO"; then :
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 ac_c_werror_flag=$ac_save_c_werror_flag
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4930 $as_echo "$ac_cv_prog_cc_g" >&6; }
4931 if test "$ac_test_CFLAGS" = set; then
4932 CFLAGS=$ac_save_CFLAGS
4933 elif test $ac_cv_prog_cc_g = yes; then
4934 if test "$GCC" = yes; then
4940 if test "$GCC" = yes; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4948 if ${ac_cv_prog_cc_c89+:} false; then :
4949 $as_echo_n "(cached) " >&6
4951 ac_cv_prog_cc_c89=no
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4957 #include <sys/types.h>
4958 #include <sys/stat.h>
4959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4960 struct buf { int x; };
4961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4962 static char *e (p, i)
4968 static char *f (char * (*g) (char **, int), char **p, ...)
4973 s = g (p, va_arg (v,int));
4978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4979 function prototypes and stuff, but not '\xHH' hex character constants.
4980 These don't provoke an error unfortunately, instead are silently treated
4981 as 'x'. The following induces an error, until -std is added to get
4982 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4983 array size at least. It's necessary to write '\x00'==0 to get something
4984 that's true only with -std. */
4985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4988 inside strings and character constants. */
4990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4992 int test (int i, double x);
4993 struct s1 {int (*f) (int a);};
4994 struct s2 {int (*f) (double a);};
4995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5007 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5009 CC="$ac_save_CC $ac_arg"
5010 if ac_fn_c_try_compile "$LINENO"; then :
5011 ac_cv_prog_cc_c89=$ac_arg
5013 rm -f core conftest.err conftest.$ac_objext
5014 test "x$ac_cv_prog_cc_c89" != "xno" && break
5016 rm -f conftest.$ac_ext
5021 case "x$ac_cv_prog_cc_c89" in
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5024 $as_echo "none needed" >&6; } ;;
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5027 $as_echo "unsupported" >&6; } ;;
5029 CC="$CC $ac_cv_prog_cc_c89"
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5031 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5033 if test "x$ac_cv_prog_cc_c89" != xno; then :
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 depcc="$CC" am_compiler_list=
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5046 $as_echo_n "checking dependency style of $depcc... " >&6; }
5047 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5051 # We make a subdir and do the tests there. Otherwise we can end up
5052 # making bogus files that we don't know about and never remove. For
5053 # instance it was reported that on HP-UX the gcc test will end up
5054 # making a dummy file named `D' -- because `-MD' means `put the output
5057 # Copy depcomp to subdir because otherwise we won't find it if we're
5058 # using a relative directory.
5059 cp "$am_depcomp" conftest.dir
5061 # We will build objects and dependencies in a subdirectory because
5062 # it helps to detect inapplicable dependency modes. For instance
5063 # both Tru64's cc and ICC support -MD to output dependencies as a
5064 # side effect of compilation, but ICC will put the dependencies in
5065 # the current directory while Tru64 will put them in the object
5069 am_cv_CC_dependencies_compiler_type=none
5070 if test "$am_compiler_list" = ""; then
5071 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5074 case " $depcc " in #(
5075 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5078 for depmode in $am_compiler_list; do
5079 # Setup a source with many dependencies, because some compilers
5080 # like to wrap large dependency lists on column 80 (with \), and
5081 # we should not choose a depcomp mode which is confused by this.
5083 # We need to recreate these files for each test, as the compiler may
5084 # overwrite some of them when testing with obscure command lines.
5085 # This happens at least with the AIX C compiler.
5087 for i in 1 2 3 4 5 6; do
5088 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5090 # Solaris 8's {/usr,}/bin/sh.
5091 touch sub/conftst$i.h
5093 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5095 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5096 # mode. It turns out that the SunPro C++ compiler does not properly
5097 # handle `-M -o', and we need to detect this. Also, some Intel
5098 # versions had trouble with output in subdirs
5099 am__obj=sub/conftest.${OBJEXT-o}
5100 am__minus_obj="-o $am__obj"
5103 # This depmode causes a compiler race in universal mode.
5104 test "$am__universal" = false || continue
5107 # after this tag, mechanisms are not by side-effect, so they'll
5108 # only be used when explicitly requested
5109 if test "x$enable_dependency_tracking" = xyes; then
5115 msvisualcpp | msvcmsys)
5116 # This compiler won't grok `-c -o', but also, the minuso test has
5117 # not run yet. These depmodes are late enough in the game, and
5118 # so weak that their functioning should not be impacted.
5119 am__obj=conftest.${OBJEXT-o}
5124 if depmode=$depmode \
5125 source=sub/conftest.c object=$am__obj \
5126 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5127 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5128 >/dev/null 2>conftest.err &&
5129 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5130 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5131 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5132 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5133 # icc doesn't choke on unknown options, it will just issue warnings
5134 # or remarks (even with -Werror). So we grep stderr for any message
5135 # that says an option was ignored or not supported.
5136 # When given -MP, icc 7.0 and 7.1 complain thusly:
5137 # icc: Command line warning: ignoring option '-M'; no argument required
5138 # The diagnosis changed in icc 8.0:
5139 # icc: Command line remark: option '-MP' not supported
5140 if (grep 'ignoring option' conftest.err ||
5141 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5142 am_cv_CC_dependencies_compiler_type=$depmode
5151 am_cv_CC_dependencies_compiler_type=none
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5156 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5157 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5160 test "x$enable_dependency_tracking" != xno \
5161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5163 am__fastdepCC_FALSE='#'
5165 am__fastdepCC_TRUE='#'
5166 am__fastdepCC_FALSE=
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5177 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5178 # On Suns, sometimes $CPP names a directory.
5179 if test -n "$CPP" && test -d "$CPP"; then
5182 if test -z "$CPP"; then
5183 if ${ac_cv_prog_CPP+:} false; then :
5184 $as_echo_n "(cached) " >&6
5186 # Double quotes because CPP needs to be expanded
5187 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5190 for ac_c_preproc_warn_flag in '' yes
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5201 # include <limits.h>
5203 # include <assert.h>
5207 if ac_fn_c_try_cpp "$LINENO"; then :
5210 # Broken: fails on valid input.
5213 rm -f conftest.err conftest.i conftest.$ac_ext
5215 # OK, works on sane cases. Now check whether nonexistent headers
5216 # can be detected and how.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222 # Broken: success on invalid input.
5225 # Passes both tests.
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.i conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then :
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5247 $as_echo "$CPP" >&6; }
5249 for ac_c_preproc_warn_flag in '' yes
5251 # Use a header file that comes with gcc, so configuring glibc
5252 # with a fresh cross-compiler works.
5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 # <limits.h> exists even on freestanding compilers.
5255 # On the NeXT, cc -E runs the code through the compiler's parser,
5256 # not just through cpp. "Syntax error" is here to catch this case.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5260 # include <limits.h>
5262 # include <assert.h>
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5269 # Broken: fails on valid input.
5272 rm -f conftest.err conftest.i conftest.$ac_ext
5274 # OK, works on sane cases. Now check whether nonexistent headers
5275 # can be detected and how.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <ac_nonexistent.h>
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5281 # Broken: success on invalid input.
5284 # Passes both tests.
5288 rm -f conftest.err conftest.i conftest.$ac_ext
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.i conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then :
5296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5298 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5299 See \`config.log' for more details" "$LINENO" 5; }
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5310 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5311 if ${ac_cv_path_GREP+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 if test -z "$GREP"; then
5315 ac_path_GREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5321 test -z "$as_dir" && as_dir=.
5322 for ac_prog in grep ggrep; do
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5325 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5326 # Check for GNU ac_path_GREP and select it if it is found.
5327 # Check for GNU $ac_path_GREP
5328 case `"$ac_path_GREP" --version 2>&1` in
5330 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5333 $as_echo_n 0123456789 >"conftest.in"
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo 'GREP' >> "conftest.nl"
5340 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342 as_fn_arith $ac_count + 1 && ac_count=$as_val
5343 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_GREP="$ac_path_GREP"
5346 ac_path_GREP_max=$ac_count
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
5351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5354 $ac_path_GREP_found && break 3
5359 if test -z "$ac_cv_path_GREP"; then
5360 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5363 ac_cv_path_GREP=$GREP
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5368 $as_echo "$ac_cv_path_GREP" >&6; }
5369 GREP="$ac_cv_path_GREP"
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5373 $as_echo_n "checking for egrep... " >&6; }
5374 if ${ac_cv_path_EGREP+:} false; then :
5375 $as_echo_n "(cached) " >&6
5377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5378 then ac_cv_path_EGREP="$GREP -E"
5380 if test -z "$EGREP"; then
5381 ac_path_EGREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in egrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5392 # Check for GNU ac_path_EGREP and select it if it is found.
5393 # Check for GNU $ac_path_EGREP
5394 case `"$ac_path_EGREP" --version 2>&1` in
5396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5399 $as_echo_n 0123456789 >"conftest.in"
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'EGREP' >> "conftest.nl"
5406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_EGREP="$ac_path_EGREP"
5412 ac_path_EGREP_max=$ac_count
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5420 $ac_path_EGREP_found && break 3
5425 if test -z "$ac_cv_path_EGREP"; then
5426 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5429 ac_cv_path_EGREP=$EGREP
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5435 $as_echo "$ac_cv_path_EGREP" >&6; }
5436 EGREP="$ac_cv_path_EGREP"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5440 $as_echo_n "checking for ANSI C header files... " >&6; }
5441 if ${ac_cv_header_stdc+:} false; then :
5442 $as_echo_n "(cached) " >&6
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_header_stdc=yes
5462 ac_cv_header_stdc=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 if test $ac_cv_header_stdc = yes; then
5467 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474 $EGREP "memchr" >/dev/null 2>&1; then :
5477 ac_cv_header_stdc=no
5483 if test $ac_cv_header_stdc = yes; then
5484 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "free" >/dev/null 2>&1; then :
5494 ac_cv_header_stdc=no
5500 if test $ac_cv_header_stdc = yes; then
5501 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5502 if test "$cross_compiling" = yes; then :
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5509 #if ((' ' & 0x0FF) == 0x020)
5510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5513 # define ISLOWER(c) \
5514 (('a' <= (c) && (c) <= 'i') \
5515 || ('j' <= (c) && (c) <= 'r') \
5516 || ('s' <= (c) && (c) <= 'z'))
5517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5525 for (i = 0; i < 256; i++)
5526 if (XOR (islower (i), ISLOWER (i))
5527 || toupper (i) != TOUPPER (i))
5532 if ac_fn_c_try_run "$LINENO"; then :
5535 ac_cv_header_stdc=no
5537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5538 conftest.$ac_objext conftest.beam conftest.$ac_ext
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5544 $as_echo "$ac_cv_header_stdc" >&6; }
5545 if test $ac_cv_header_stdc = yes; then
5547 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5552 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5553 inttypes.h stdint.h unistd.h
5555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5558 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5559 cat >>confdefs.h <<_ACEOF
5560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5569 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5570 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5577 if test "$MINIX" = yes; then
5579 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5582 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5585 $as_echo "#define _MINIX 1" >>confdefs.h
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5591 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5592 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5593 $as_echo_n "(cached) " >&6
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5598 # define __EXTENSIONS__ 1
5599 $ac_includes_default
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_safe_to_define___extensions__=yes
5611 ac_cv_safe_to_define___extensions__=no
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5616 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5617 test $ac_cv_safe_to_define___extensions__ = yes &&
5618 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5620 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5622 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5624 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5626 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5630 # Check for programs
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_CC+:} false; then :
5642 $as_echo_n "(cached) " >&6
5644 if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 if test -n "$CC"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5667 $as_echo "$CC" >&6; }
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5675 if test -z "$ac_cv_prog_CC"; then
5677 # Extract the first word of "gcc", so it can be a program name with args.
5678 set dummy gcc; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5682 $as_echo_n "(cached) " >&6
5684 if test -n "$ac_ct_CC"; then
5685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_ac_ct_CC="gcc"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5705 if test -n "$ac_ct_CC"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5707 $as_echo "$ac_ct_CC" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5713 if test "x$ac_ct_CC" = x; then
5716 case $cross_compiling:$ac_tool_warned in
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned=yes ;;
5728 if test -z "$CC"; then
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}cc; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_CC+:} false; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$CC"; then
5738 ac_cv_prog_CC="$CC" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_CC="${ac_tool_prefix}cc"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 if test -n "$CC"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5760 $as_echo "$CC" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5769 if test -z "$CC"; then
5770 # Extract the first word of "cc", so it can be a program name with args.
5771 set dummy cc; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_CC+:} false; then :
5775 $as_echo_n "(cached) " >&6
5777 if test -n "$CC"; then
5778 ac_cv_prog_CC="$CC" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5789 ac_prog_rejected=yes
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 if test $ac_prog_rejected = yes; then
5801 # We found a bogon in the path, so make sure we never use it.
5802 set dummy $ac_cv_prog_CC
5804 if test $# != 0; then
5805 # We chose a different compiler from the bogus one.
5806 # However, it has the same basename, so the bogon will be chosen
5807 # first if we set CC to just the basename; use the full file name.
5809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5815 if test -n "$CC"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5817 $as_echo "$CC" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5825 if test -z "$CC"; then
5826 if test -n "$ac_tool_prefix"; then
5827 for ac_prog in cl.exe
5829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_prog_CC+:} false; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -n "$CC"; then
5837 ac_cv_prog_CC="$CC" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 if test -n "$CC"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5859 $as_echo "$CC" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5866 test -n "$CC" && break
5869 if test -z "$CC"; then
5871 for ac_prog in cl.exe
5873 # Extract the first word of "$ac_prog", so it can be a program name with args.
5874 set dummy $ac_prog; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -n "$ac_ct_CC"; then
5881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890 ac_cv_prog_ac_ct_CC="$ac_prog"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5901 if test -n "$ac_ct_CC"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5903 $as_echo "$ac_ct_CC" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5910 test -n "$ac_ct_CC" && break
5913 if test "x$ac_ct_CC" = x; then
5916 case $cross_compiling:$ac_tool_warned in
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5929 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5931 as_fn_error $? "no acceptable C compiler found in \$PATH
5932 See \`config.log' for more details" "$LINENO" 5; }
5934 # Provide some information about the compiler.
5935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5938 for ac_option in --version -v -V -qversion; do
5939 { { ac_try="$ac_compiler $ac_option >&5"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5945 $as_echo "$ac_try_echo"; } >&5
5946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5948 if test -s conftest.err; then
5950 ... rest of stderr output deleted ...
5951 10q' conftest.err >conftest.er1
5952 cat conftest.er1 >&5
5954 rm -f conftest.er1 conftest.err
5955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5956 test $ac_status = 0; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5960 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5961 if ${ac_cv_c_compiler_gnu+:} false; then :
5962 $as_echo_n "(cached) " >&6
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5978 if ac_fn_c_try_compile "$LINENO"; then :
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5988 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5989 if test $ac_compiler_gnu = yes; then
5994 ac_test_CFLAGS=${CFLAGS+set}
5995 ac_save_CFLAGS=$CFLAGS
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5997 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5998 if ${ac_cv_prog_cc_g+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 ac_save_c_werror_flag=$ac_c_werror_flag
6002 ac_c_werror_flag=yes
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6016 if ac_fn_c_try_compile "$LINENO"; then :
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6031 if ac_fn_c_try_compile "$LINENO"; then :
6034 ac_c_werror_flag=$ac_save_c_werror_flag
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6047 if ac_fn_c_try_compile "$LINENO"; then :
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 ac_c_werror_flag=$ac_save_c_werror_flag
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6058 $as_echo "$ac_cv_prog_cc_g" >&6; }
6059 if test "$ac_test_CFLAGS" = set; then
6060 CFLAGS=$ac_save_CFLAGS
6061 elif test $ac_cv_prog_cc_g = yes; then
6062 if test "$GCC" = yes; then
6068 if test "$GCC" = yes; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6075 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6076 if ${ac_cv_prog_cc_c89+:} false; then :
6077 $as_echo_n "(cached) " >&6
6079 ac_cv_prog_cc_c89=no
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 #include <sys/stat.h>
6087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6088 struct buf { int x; };
6089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6090 static char *e (p, i)
6096 static char *f (char * (*g) (char **, int), char **p, ...)
6101 s = g (p, va_arg (v,int));
6106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6107 function prototypes and stuff, but not '\xHH' hex character constants.
6108 These don't provoke an error unfortunately, instead are silently treated
6109 as 'x'. The following induces an error, until -std is added to get
6110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6111 array size at least. It's necessary to write '\x00'==0 to get something
6112 that's true only with -std. */
6113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6116 inside strings and character constants. */
6118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6120 int test (int i, double x);
6121 struct s1 {int (*f) (int a);};
6122 struct s2 {int (*f) (double a);};
6123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6137 CC="$ac_save_CC $ac_arg"
6138 if ac_fn_c_try_compile "$LINENO"; then :
6139 ac_cv_prog_cc_c89=$ac_arg
6141 rm -f core conftest.err conftest.$ac_objext
6142 test "x$ac_cv_prog_cc_c89" != "xno" && break
6144 rm -f conftest.$ac_ext
6149 case "x$ac_cv_prog_cc_c89" in
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6152 $as_echo "none needed" >&6; } ;;
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6155 $as_echo "unsupported" >&6; } ;;
6157 CC="$CC $ac_cv_prog_cc_c89"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6159 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6161 if test "x$ac_cv_prog_cc_c89" != xno; then :
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171 depcc="$CC" am_compiler_list=
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6174 $as_echo_n "checking dependency style of $depcc... " >&6; }
6175 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6176 $as_echo_n "(cached) " >&6
6178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6179 # We make a subdir and do the tests there. Otherwise we can end up
6180 # making bogus files that we don't know about and never remove. For
6181 # instance it was reported that on HP-UX the gcc test will end up
6182 # making a dummy file named `D' -- because `-MD' means `put the output
6185 # Copy depcomp to subdir because otherwise we won't find it if we're
6186 # using a relative directory.
6187 cp "$am_depcomp" conftest.dir
6189 # We will build objects and dependencies in a subdirectory because
6190 # it helps to detect inapplicable dependency modes. For instance
6191 # both Tru64's cc and ICC support -MD to output dependencies as a
6192 # side effect of compilation, but ICC will put the dependencies in
6193 # the current directory while Tru64 will put them in the object
6197 am_cv_CC_dependencies_compiler_type=none
6198 if test "$am_compiler_list" = ""; then
6199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6202 case " $depcc " in #(
6203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6206 for depmode in $am_compiler_list; do
6207 # Setup a source with many dependencies, because some compilers
6208 # like to wrap large dependency lists on column 80 (with \), and
6209 # we should not choose a depcomp mode which is confused by this.
6211 # We need to recreate these files for each test, as the compiler may
6212 # overwrite some of them when testing with obscure command lines.
6213 # This happens at least with the AIX C compiler.
6215 for i in 1 2 3 4 5 6; do
6216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6218 # Solaris 8's {/usr,}/bin/sh.
6219 touch sub/conftst$i.h
6221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6224 # mode. It turns out that the SunPro C++ compiler does not properly
6225 # handle `-M -o', and we need to detect this. Also, some Intel
6226 # versions had trouble with output in subdirs
6227 am__obj=sub/conftest.${OBJEXT-o}
6228 am__minus_obj="-o $am__obj"
6231 # This depmode causes a compiler race in universal mode.
6232 test "$am__universal" = false || continue
6235 # after this tag, mechanisms are not by side-effect, so they'll
6236 # only be used when explicitly requested
6237 if test "x$enable_dependency_tracking" = xyes; then
6243 msvisualcpp | msvcmsys)
6244 # This compiler won't grok `-c -o', but also, the minuso test has
6245 # not run yet. These depmodes are late enough in the game, and
6246 # so weak that their functioning should not be impacted.
6247 am__obj=conftest.${OBJEXT-o}
6252 if depmode=$depmode \
6253 source=sub/conftest.c object=$am__obj \
6254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6256 >/dev/null 2>conftest.err &&
6257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6261 # icc doesn't choke on unknown options, it will just issue warnings
6262 # or remarks (even with -Werror). So we grep stderr for any message
6263 # that says an option was ignored or not supported.
6264 # When given -MP, icc 7.0 and 7.1 complain thusly:
6265 # icc: Command line warning: ignoring option '-M'; no argument required
6266 # The diagnosis changed in icc 8.0:
6267 # icc: Command line remark: option '-MP' not supported
6268 if (grep 'ignoring option' conftest.err ||
6269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6270 am_cv_CC_dependencies_compiler_type=$depmode
6279 am_cv_CC_dependencies_compiler_type=none
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6284 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6285 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6288 test "x$enable_dependency_tracking" != xno \
6289 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6291 am__fastdepCC_FALSE='#'
6293 am__fastdepCC_TRUE='#'
6294 am__fastdepCC_FALSE=
6299 ac_cpp='$CXXCPP $CPPFLAGS'
6300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6303 if test -z "$CXX"; then
6304 if test -n "$CCC"; then
6307 if test -n "$ac_tool_prefix"; then
6308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_prog_CXX+:} false; then :
6315 $as_echo_n "(cached) " >&6
6317 if test -n "$CXX"; then
6318 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 if test -n "$CXX"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6340 $as_echo "$CXX" >&6; }
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6347 test -n "$CXX" && break
6350 if test -z "$CXX"; then
6352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355 set dummy $ac_prog; ac_word=$2
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6359 $as_echo_n "(cached) " >&6
6361 if test -n "$ac_ct_CXX"; then
6362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_ac_ct_CXX="$ac_prog"
6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6382 if test -n "$ac_ct_CXX"; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6384 $as_echo "$ac_ct_CXX" >&6; }
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6391 test -n "$ac_ct_CXX" && break
6394 if test "x$ac_ct_CXX" = x; then
6397 case $cross_compiling:$ac_tool_warned in
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6409 # Provide some information about the compiler.
6410 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6413 for ac_option in --version -v -V -qversion; do
6414 { { ac_try="$ac_compiler $ac_option >&5"
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420 $as_echo "$ac_try_echo"; } >&5
6421 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6423 if test -s conftest.err; then
6425 ... rest of stderr output deleted ...
6426 10q' conftest.err >conftest.er1
6427 cat conftest.er1 >&5
6429 rm -f conftest.er1 conftest.err
6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431 test $ac_status = 0; }
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6435 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6436 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6437 $as_echo_n "(cached) " >&6
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6453 if ac_fn_cxx_try_compile "$LINENO"; then :
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6463 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6464 if test $ac_compiler_gnu = yes; then
6469 ac_test_CXXFLAGS=${CXXFLAGS+set}
6470 ac_save_CXXFLAGS=$CXXFLAGS
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6472 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6473 if ${ac_cv_prog_cxx_g+:} false; then :
6474 $as_echo_n "(cached) " >&6
6476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6477 ac_cxx_werror_flag=yes
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6491 if ac_fn_cxx_try_compile "$LINENO"; then :
6492 ac_cv_prog_cxx_g=yes
6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6506 if ac_fn_cxx_try_compile "$LINENO"; then :
6509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6522 if ac_fn_cxx_try_compile "$LINENO"; then :
6523 ac_cv_prog_cxx_g=yes
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6533 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6534 if test "$ac_test_CXXFLAGS" = set; then
6535 CXXFLAGS=$ac_save_CXXFLAGS
6536 elif test $ac_cv_prog_cxx_g = yes; then
6537 if test "$GXX" = yes; then
6543 if test "$GXX" = yes; then
6550 ac_cpp='$CPP $CPPFLAGS'
6551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555 depcc="$CXX" am_compiler_list=
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6558 $as_echo_n "checking dependency style of $depcc... " >&6; }
6559 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6563 # We make a subdir and do the tests there. Otherwise we can end up
6564 # making bogus files that we don't know about and never remove. For
6565 # instance it was reported that on HP-UX the gcc test will end up
6566 # making a dummy file named `D' -- because `-MD' means `put the output
6569 # Copy depcomp to subdir because otherwise we won't find it if we're
6570 # using a relative directory.
6571 cp "$am_depcomp" conftest.dir
6573 # We will build objects and dependencies in a subdirectory because
6574 # it helps to detect inapplicable dependency modes. For instance
6575 # both Tru64's cc and ICC support -MD to output dependencies as a
6576 # side effect of compilation, but ICC will put the dependencies in
6577 # the current directory while Tru64 will put them in the object
6581 am_cv_CXX_dependencies_compiler_type=none
6582 if test "$am_compiler_list" = ""; then
6583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6586 case " $depcc " in #(
6587 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6590 for depmode in $am_compiler_list; do
6591 # Setup a source with many dependencies, because some compilers
6592 # like to wrap large dependency lists on column 80 (with \), and
6593 # we should not choose a depcomp mode which is confused by this.
6595 # We need to recreate these files for each test, as the compiler may
6596 # overwrite some of them when testing with obscure command lines.
6597 # This happens at least with the AIX C compiler.
6599 for i in 1 2 3 4 5 6; do
6600 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6602 # Solaris 8's {/usr,}/bin/sh.
6603 touch sub/conftst$i.h
6605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6608 # mode. It turns out that the SunPro C++ compiler does not properly
6609 # handle `-M -o', and we need to detect this. Also, some Intel
6610 # versions had trouble with output in subdirs
6611 am__obj=sub/conftest.${OBJEXT-o}
6612 am__minus_obj="-o $am__obj"
6615 # This depmode causes a compiler race in universal mode.
6616 test "$am__universal" = false || continue
6619 # after this tag, mechanisms are not by side-effect, so they'll
6620 # only be used when explicitly requested
6621 if test "x$enable_dependency_tracking" = xyes; then
6627 msvisualcpp | msvcmsys)
6628 # This compiler won't grok `-c -o', but also, the minuso test has
6629 # not run yet. These depmodes are late enough in the game, and
6630 # so weak that their functioning should not be impacted.
6631 am__obj=conftest.${OBJEXT-o}
6636 if depmode=$depmode \
6637 source=sub/conftest.c object=$am__obj \
6638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6640 >/dev/null 2>conftest.err &&
6641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6645 # icc doesn't choke on unknown options, it will just issue warnings
6646 # or remarks (even with -Werror). So we grep stderr for any message
6647 # that says an option was ignored or not supported.
6648 # When given -MP, icc 7.0 and 7.1 complain thusly:
6649 # icc: Command line warning: ignoring option '-M'; no argument required
6650 # The diagnosis changed in icc 8.0:
6651 # icc: Command line remark: option '-MP' not supported
6652 if (grep 'ignoring option' conftest.err ||
6653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6654 am_cv_CXX_dependencies_compiler_type=$depmode
6663 am_cv_CXX_dependencies_compiler_type=none
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6668 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6669 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6672 test "x$enable_dependency_tracking" != xno \
6673 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6674 am__fastdepCXX_TRUE=
6675 am__fastdepCXX_FALSE='#'
6677 am__fastdepCXX_TRUE='#'
6678 am__fastdepCXX_FALSE=
6682 case $ac_cv_prog_cc_stdc in #(
6684 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6687 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6688 if ${ac_cv_prog_cc_c99+:} false; then :
6689 $as_echo_n "(cached) " >&6
6691 ac_cv_prog_cc_c99=no
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6696 #include <stdbool.h>
6701 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6702 #define debug(...) fprintf (stderr, __VA_ARGS__)
6703 #define showlist(...) puts (#__VA_ARGS__)
6704 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6706 test_varargs_macros (void)
6711 debug ("X = %d\n", x);
6712 showlist (The first, second, and third items.);
6713 report (x>y, "x is %d but y is %d", x, y);
6716 // Check long long types.
6717 #define BIG64 18446744073709551615ull
6718 #define BIG32 4294967295ul
6719 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6721 your preprocessor is broken;
6725 your preprocessor is broken;
6727 static long long int bignum = -9223372036854775807LL;
6728 static unsigned long long int ubignum = BIG64;
6730 struct incomplete_array
6738 const wchar_t *name;
6742 typedef const char *ccp;
6745 test_restrict (ccp restrict text)
6747 // See if C++-style comments work.
6748 // Iterate through items via the restricted pointer.
6749 // Also check for declarations in for loops.
6750 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6755 // Check varargs and va_copy.
6757 test_varargs (const char *format, ...)
6760 va_start (args, format);
6762 va_copy (args_copy, args);
6773 str = va_arg (args_copy, const char *);
6776 number = va_arg (args_copy, int);
6779 fnumber = va_arg (args_copy, double);
6794 _Bool success = false;
6797 if (test_restrict ("String literal") == 0)
6799 char *restrict newvar = "Another string";
6802 test_varargs ("s, d' f .", "string", 65, 34.234);
6803 test_varargs_macros ();
6805 // Check flexible array members.
6806 struct incomplete_array *ia =
6807 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6809 for (int i = 0; i < ia->datasize; ++i)
6810 ia->data[i] = i * 1.234;
6812 // Check named initializers.
6813 struct named_init ni = {
6815 .name = L"Test wide string",
6816 .average = 543.34343,
6821 int dynamic_array[ni.number];
6822 dynamic_array[ni.number - 1] = 543;
6824 // work around unused variable warnings
6825 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6826 || dynamic_array[ni.number - 1] != 543);
6832 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6834 CC="$ac_save_CC $ac_arg"
6835 if ac_fn_c_try_compile "$LINENO"; then :
6836 ac_cv_prog_cc_c99=$ac_arg
6838 rm -f core conftest.err conftest.$ac_objext
6839 test "x$ac_cv_prog_cc_c99" != "xno" && break
6841 rm -f conftest.$ac_ext
6846 case "x$ac_cv_prog_cc_c99" in
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6849 $as_echo "none needed" >&6; } ;;
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6852 $as_echo "unsupported" >&6; } ;;
6854 CC="$CC $ac_cv_prog_cc_c99"
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6856 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6858 if test "x$ac_cv_prog_cc_c99" != xno; then :
6859 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6862 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6863 if ${ac_cv_prog_cc_c89+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 ac_cv_prog_cc_c89=no
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6872 #include <sys/types.h>
6873 #include <sys/stat.h>
6874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6875 struct buf { int x; };
6876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6877 static char *e (p, i)
6883 static char *f (char * (*g) (char **, int), char **p, ...)
6888 s = g (p, va_arg (v,int));
6893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6894 function prototypes and stuff, but not '\xHH' hex character constants.
6895 These don't provoke an error unfortunately, instead are silently treated
6896 as 'x'. The following induces an error, until -std is added to get
6897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6898 array size at least. It's necessary to write '\x00'==0 to get something
6899 that's true only with -std. */
6900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6903 inside strings and character constants. */
6905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6907 int test (int i, double x);
6908 struct s1 {int (*f) (int a);};
6909 struct s2 {int (*f) (double a);};
6910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6924 CC="$ac_save_CC $ac_arg"
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926 ac_cv_prog_cc_c89=$ac_arg
6928 rm -f core conftest.err conftest.$ac_objext
6929 test "x$ac_cv_prog_cc_c89" != "xno" && break
6931 rm -f conftest.$ac_ext
6936 case "x$ac_cv_prog_cc_c89" in
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6939 $as_echo "none needed" >&6; } ;;
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6942 $as_echo "unsupported" >&6; } ;;
6944 CC="$CC $ac_cv_prog_cc_c89"
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6946 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6948 if test "x$ac_cv_prog_cc_c89" != xno; then :
6949 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6951 ac_cv_prog_cc_stdc=no
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6958 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6959 if ${ac_cv_prog_cc_stdc+:} false; then :
6960 $as_echo_n "(cached) " >&6
6963 case $ac_cv_prog_cc_stdc in #(
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6966 $as_echo "unsupported" >&6; } ;; #(
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6969 $as_echo "none needed" >&6; } ;; #(
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6972 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6982 # On Suns, sometimes $CPP names a directory.
6983 if test -n "$CPP" && test -d "$CPP"; then
6986 if test -z "$CPP"; then
6987 if ${ac_cv_prog_CPP+:} false; then :
6988 $as_echo_n "(cached) " >&6
6990 # Double quotes because CPP needs to be expanded
6991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6994 for ac_c_preproc_warn_flag in '' yes
6996 # Use a header file that comes with gcc, so configuring glibc
6997 # with a fresh cross-compiler works.
6998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 # <limits.h> exists even on freestanding compilers.
7000 # On the NeXT, cc -E runs the code through the compiler's parser,
7001 # not just through cpp. "Syntax error" is here to catch this case.
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7005 # include <limits.h>
7007 # include <assert.h>
7011 if ac_fn_c_try_cpp "$LINENO"; then :
7014 # Broken: fails on valid input.
7017 rm -f conftest.err conftest.i conftest.$ac_ext
7019 # OK, works on sane cases. Now check whether nonexistent headers
7020 # can be detected and how.
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <ac_nonexistent.h>
7025 if ac_fn_c_try_cpp "$LINENO"; then :
7026 # Broken: success on invalid input.
7029 # Passes both tests.
7033 rm -f conftest.err conftest.i conftest.$ac_ext
7036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7037 rm -f conftest.i conftest.err conftest.$ac_ext
7038 if $ac_preproc_ok; then :
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7051 $as_echo "$CPP" >&6; }
7053 for ac_c_preproc_warn_flag in '' yes
7055 # Use a header file that comes with gcc, so configuring glibc
7056 # with a fresh cross-compiler works.
7057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7058 # <limits.h> exists even on freestanding compilers.
7059 # On the NeXT, cc -E runs the code through the compiler's parser,
7060 # not just through cpp. "Syntax error" is here to catch this case.
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7064 # include <limits.h>
7066 # include <assert.h>
7070 if ac_fn_c_try_cpp "$LINENO"; then :
7073 # Broken: fails on valid input.
7076 rm -f conftest.err conftest.i conftest.$ac_ext
7078 # OK, works on sane cases. Now check whether nonexistent headers
7079 # can be detected and how.
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #include <ac_nonexistent.h>
7084 if ac_fn_c_try_cpp "$LINENO"; then :
7085 # Broken: success on invalid input.
7088 # Passes both tests.
7092 rm -f conftest.err conftest.i conftest.$ac_ext
7095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7096 rm -f conftest.i conftest.err conftest.$ac_ext
7097 if $ac_preproc_ok; then :
7100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7102 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7103 See \`config.log' for more details" "$LINENO" 5; }
7107 ac_cpp='$CPP $CPPFLAGS'
7108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7113 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7114 if ${ac_cv_path_SED+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7118 for ac_i in 1 2 3 4 5 6 7; do
7119 ac_script="$ac_script$as_nl$ac_script"
7121 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7122 { ac_script=; unset ac_script;}
7123 if test -z "$SED"; then
7124 ac_path_SED_found=false
7125 # Loop through the user's path and test for each of PROGNAME-LIST
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 test -z "$as_dir" && as_dir=.
7131 for ac_prog in sed gsed; do
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7134 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7135 # Check for GNU ac_path_SED and select it if it is found.
7136 # Check for GNU $ac_path_SED
7137 case `"$ac_path_SED" --version 2>&1` in
7139 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7142 $as_echo_n 0123456789 >"conftest.in"
7145 cat "conftest.in" "conftest.in" >"conftest.tmp"
7146 mv "conftest.tmp" "conftest.in"
7147 cp "conftest.in" "conftest.nl"
7148 $as_echo '' >> "conftest.nl"
7149 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7151 as_fn_arith $ac_count + 1 && ac_count=$as_val
7152 if test $ac_count -gt ${ac_path_SED_max-0}; then
7153 # Best one so far, save it but keep looking for a better one
7154 ac_cv_path_SED="$ac_path_SED"
7155 ac_path_SED_max=$ac_count
7157 # 10*(2^10) chars as input seems more than enough
7158 test $ac_count -gt 10 && break
7160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7163 $ac_path_SED_found && break 3
7168 if test -z "$ac_cv_path_SED"; then
7169 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7177 $as_echo "$ac_cv_path_SED" >&6; }
7178 SED="$ac_cv_path_SED"
7181 test -z "$SED" && SED=sed
7182 Xsed="$SED -e 1s/^X//"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7195 $as_echo_n "checking for fgrep... " >&6; }
7196 if ${ac_cv_path_FGREP+:} false; then :
7197 $as_echo_n "(cached) " >&6
7199 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7200 then ac_cv_path_FGREP="$GREP -F"
7202 if test -z "$FGREP"; then
7203 ac_path_FGREP_found=false
7204 # Loop through the user's path and test for each of PROGNAME-LIST
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7209 test -z "$as_dir" && as_dir=.
7210 for ac_prog in fgrep; do
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7213 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7214 # Check for GNU ac_path_FGREP and select it if it is found.
7215 # Check for GNU $ac_path_FGREP
7216 case `"$ac_path_FGREP" --version 2>&1` in
7218 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7221 $as_echo_n 0123456789 >"conftest.in"
7224 cat "conftest.in" "conftest.in" >"conftest.tmp"
7225 mv "conftest.tmp" "conftest.in"
7226 cp "conftest.in" "conftest.nl"
7227 $as_echo 'FGREP' >> "conftest.nl"
7228 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7230 as_fn_arith $ac_count + 1 && ac_count=$as_val
7231 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7232 # Best one so far, save it but keep looking for a better one
7233 ac_cv_path_FGREP="$ac_path_FGREP"
7234 ac_path_FGREP_max=$ac_count
7236 # 10*(2^10) chars as input seems more than enough
7237 test $ac_count -gt 10 && break
7239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7242 $ac_path_FGREP_found && break 3
7247 if test -z "$ac_cv_path_FGREP"; then
7248 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7251 ac_cv_path_FGREP=$FGREP
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7257 $as_echo "$ac_cv_path_FGREP" >&6; }
7258 FGREP="$ac_cv_path_FGREP"
7261 test -z "$GREP" && GREP=grep
7279 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7280 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7284 $as_echo_n "checking how to print strings... " >&6; }
7285 # Test print first, because it will be a builtin if present.
7286 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7287 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7289 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7292 # Use this function as a fallback that always works.
7293 func_fallback_echo ()
7295 eval 'cat <<_LTECHO_EOF
7299 ECHO='func_fallback_echo'
7302 # func_echo_all arg...
7303 # Invoke $ECHO with all args, space-separated.
7310 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7311 $as_echo "printf" >&6; } ;;
7312 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7313 $as_echo "print -r" >&6; } ;;
7314 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7315 $as_echo "cat" >&6; } ;;
7333 # Check whether --with-gnu-ld was given.
7334 if test "${with_gnu_ld+set}" = set; then :
7335 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7341 if test "$GCC" = yes; then
7342 # Check if gcc -print-prog-name=ld gives a path.
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7344 $as_echo_n "checking for ld used by $CC... " >&6; }
7347 # gcc leaves a trailing carriage return which upsets mingw
7348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7353 # Accept absolute paths.
7355 re_direlt='/[^/][^/]*/\.\./'
7356 # Canonicalize the pathname of ld
7357 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7358 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7359 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7361 test -z "$LD" && LD="$ac_prog"
7364 # If it fails, then pretend we aren't using GCC.
7368 # If it is relative, then search for the first ld in PATH.
7372 elif test "$with_gnu_ld" = yes; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7374 $as_echo_n "checking for GNU ld... " >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7377 $as_echo_n "checking for non-GNU ld... " >&6; }
7379 if ${lt_cv_path_LD+:} false; then :
7380 $as_echo_n "(cached) " >&6
7382 if test -z "$LD"; then
7383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384 for ac_dir in $PATH; do
7386 test -z "$ac_dir" && ac_dir=.
7387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7388 lt_cv_path_LD="$ac_dir/$ac_prog"
7389 # Check to see if the program is GNU ld. I'd rather use --version,
7390 # but apparently some variants of GNU ld only accept -v.
7391 # Break only if it was the GNU/non-GNU ld that we prefer.
7392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7393 *GNU* | *'with BFD'*)
7394 test "$with_gnu_ld" != no && break
7397 test "$with_gnu_ld" != yes && break
7404 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7409 if test -n "$LD"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7411 $as_echo "$LD" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7416 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7418 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7419 if ${lt_cv_prog_gnu_ld+:} false; then :
7420 $as_echo_n "(cached) " >&6
7422 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7423 case `$LD -v 2>&1 </dev/null` in
7424 *GNU* | *'with BFD'*)
7425 lt_cv_prog_gnu_ld=yes
7428 lt_cv_prog_gnu_ld=no
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7433 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7434 with_gnu_ld=$lt_cv_prog_gnu_ld
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7446 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7447 if ${ac_cv_prog_cc_c99+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 ac_cv_prog_cc_c99=no
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7455 #include <stdbool.h>
7460 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7461 #define debug(...) fprintf (stderr, __VA_ARGS__)
7462 #define showlist(...) puts (#__VA_ARGS__)
7463 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7465 test_varargs_macros (void)
7470 debug ("X = %d\n", x);
7471 showlist (The first, second, and third items.);
7472 report (x>y, "x is %d but y is %d", x, y);
7475 // Check long long types.
7476 #define BIG64 18446744073709551615ull
7477 #define BIG32 4294967295ul
7478 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7480 your preprocessor is broken;
7484 your preprocessor is broken;
7486 static long long int bignum = -9223372036854775807LL;
7487 static unsigned long long int ubignum = BIG64;
7489 struct incomplete_array
7497 const wchar_t *name;
7501 typedef const char *ccp;
7504 test_restrict (ccp restrict text)
7506 // See if C++-style comments work.
7507 // Iterate through items via the restricted pointer.
7508 // Also check for declarations in for loops.
7509 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7514 // Check varargs and va_copy.
7516 test_varargs (const char *format, ...)
7519 va_start (args, format);
7521 va_copy (args_copy, args);
7532 str = va_arg (args_copy, const char *);
7535 number = va_arg (args_copy, int);
7538 fnumber = va_arg (args_copy, double);
7553 _Bool success = false;
7556 if (test_restrict ("String literal") == 0)
7558 char *restrict newvar = "Another string";
7561 test_varargs ("s, d' f .", "string", 65, 34.234);
7562 test_varargs_macros ();
7564 // Check flexible array members.
7565 struct incomplete_array *ia =
7566 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7568 for (int i = 0; i < ia->datasize; ++i)
7569 ia->data[i] = i * 1.234;
7571 // Check named initializers.
7572 struct named_init ni = {
7574 .name = L"Test wide string",
7575 .average = 543.34343,
7580 int dynamic_array[ni.number];
7581 dynamic_array[ni.number - 1] = 543;
7583 // work around unused variable warnings
7584 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7585 || dynamic_array[ni.number - 1] != 543);
7591 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7593 CC="$ac_save_CC $ac_arg"
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 ac_cv_prog_cc_c99=$ac_arg
7597 rm -f core conftest.err conftest.$ac_objext
7598 test "x$ac_cv_prog_cc_c99" != "xno" && break
7600 rm -f conftest.$ac_ext
7605 case "x$ac_cv_prog_cc_c99" in
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7608 $as_echo "none needed" >&6; } ;;
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7611 $as_echo "unsupported" >&6; } ;;
7613 CC="$CC $ac_cv_prog_cc_c99"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7615 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7617 if test "x$ac_cv_prog_cc_c99" != xno; then :
7622 if test "x$CC" != xcc; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7624 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7627 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7629 set dummy $CC; ac_cc=`$as_echo "$2" |
7630 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7631 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7645 # Make sure it works both with $CC and with simple cc.
7646 # We do the test twice because some compilers refuse to overwrite an
7647 # existing .o file with -o, though they will create one.
7648 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7650 if { { case "(($ac_try" in
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7655 $as_echo "$ac_try_echo"; } >&5
7656 (eval "$ac_try") 2>&5
7658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7659 test $ac_status = 0; } &&
7660 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7665 $as_echo "$ac_try_echo"; } >&5
7666 (eval "$ac_try") 2>&5
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; };
7671 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7672 if test "x$CC" != xcc; then
7673 # Test first that cc exists at all.
7674 if { ac_try='cc -c conftest.$ac_ext >&5'
7675 { { case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7680 $as_echo "$ac_try_echo"; } >&5
7681 (eval "$ac_try") 2>&5
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; }; then
7685 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7687 if { { case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7692 $as_echo "$ac_try_echo"; } >&5
7693 (eval "$ac_try") 2>&5
7695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696 test $ac_status = 0; } &&
7697 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7702 $as_echo "$ac_try_echo"; } >&5
7703 (eval "$ac_try") 2>&5
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; };
7711 # cc exists but doesn't like -o.
7712 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7717 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7719 rm -f core conftest*
7722 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7724 $as_echo "yes" >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7729 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7733 # FIXME: we rely on the cache variable name because
7734 # there is no other way.
7736 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7737 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7738 if test "$am_t" != yes; then
7739 # Losing compiler, so override with the script.
7740 # FIXME: It is wrong to rewrite CC.
7741 # But if we don't then we get into trouble of one sort or another.
7742 # A longer-term fix would be to have automake use am__CC in this case,
7743 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7744 CC="$am_aux_dir/compile $CC"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7749 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7750 if ${ac_cv_cflags_warn_all+:} false; then :
7751 $as_echo_n "(cached) " >&6
7753 ac_cv_cflags_warn_all="no, unknown"
7755 ac_cpp='$CPP $CPPFLAGS'
7756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760 ac_save_CFLAGS="$CFLAGS"
7761 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" #
7762 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7774 if ac_fn_c_try_compile "$LINENO"; then :
7775 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 CFLAGS="$ac_save_CFLAGS"
7781 ac_cpp='$CPP $CPPFLAGS'
7782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7789 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7790 case ".$ac_cv_cflags_warn_all" in
7795 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7796 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7797 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7800 test $ac_status = 0; }
7801 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7802 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }
7806 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7813 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7815 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7816 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7817 $as_echo_n "(cached) " >&6
7819 cat >conftest.make <<\_ACEOF
7822 @echo '@@@%%%=$(MAKE)=@@@%%%'
7824 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7827 eval ac_cv_prog_make_${ac_make}_set=yes;;
7829 eval ac_cv_prog_make_${ac_make}_set=no;;
7833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7835 $as_echo "yes" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 SET_MAKE="MAKE=${MAKE-make}"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7844 $as_echo_n "checking whether ln -s works... " >&6; }
7846 if test "$LN_S" = "ln -s"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7848 $as_echo "yes" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7851 $as_echo "no, using $LN_S" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7855 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7857 # Check whether --with-dmalloc was given.
7858 if test "${with_dmalloc+set}" = set; then :
7859 withval=$with_dmalloc; if test "$withval" = yes; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7861 $as_echo "yes" >&6; }
7863 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7865 LIBS="$LIBS -ldmalloc"
7866 LDFLAGS="$LDFLAGS -g"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7879 $as_echo_n "checking for __attribute__... " >&6; }
7880 if ${ax_cv___attribute__+:} false; then :
7881 $as_echo_n "(cached) " >&6
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7886 static void foo(void) __attribute__ ((unused));
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 ax_cv___attribute__=yes
7903 ax_cv___attribute__=no
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7910 $as_echo "$ax_cv___attribute__" >&6; }
7911 if test "$ax_cv___attribute__" = "yes"; then
7913 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7919 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7926 $as_echo_n "(cached) " >&6
7930 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7952 if test -n "$PKG_CONFIG"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7954 $as_echo "$PKG_CONFIG" >&6; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7962 if test -z "$ac_cv_path_PKG_CONFIG"; then
7963 ac_pt_PKG_CONFIG=$PKG_CONFIG
7964 # Extract the first word of "pkg-config", so it can be a program name with args.
7965 set dummy pkg-config; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7969 $as_echo_n "(cached) " >&6
7971 case $ac_pt_PKG_CONFIG in
7973 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7995 if test -n "$ac_pt_PKG_CONFIG"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7997 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8003 if test "x$ac_pt_PKG_CONFIG" = x; then
8006 case $cross_compiling:$ac_tool_warned in
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8012 PKG_CONFIG=$ac_pt_PKG_CONFIG
8015 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8019 if test -n "$PKG_CONFIG"; then
8020 _pkg_min_version=0.9.0
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8022 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8023 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8025 $as_echo "yes" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8035 # Enable run-time checking.
8037 # Check whether --enable-bounds-checking was given.
8038 if test "${enable_bounds_checking+set}" = set; then :
8039 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8041 enable_bounds_checking='no'
8045 if test "$enable_bounds_checking" = yes; then
8047 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8057 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8058 if ${ax_cv_c_compiler_ms+:} false; then :
8059 $as_echo_n "(cached) " >&6
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8075 if ac_fn_c_try_compile "$LINENO"; then :
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 ax_cv_c_compiler_ms=$ax_compiler_ms
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8085 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8088 native_win32_build='no'
8090 case "${host_os}" in
8093 GDI32_LIBS='-lgdi32'
8096 native_win32_build='yes'
8097 GDI32_LIBS='-lgdi32'
8100 if test "${GDI32_LIBS}x" != 'x'; then
8102 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8106 if test "${GDI32_LIBS}x" != 'x' ; then
8107 WINGDI32_DELEGATE_TRUE=
8108 WINGDI32_DELEGATE_FALSE='#'
8110 WINGDI32_DELEGATE_TRUE='#'
8111 WINGDI32_DELEGATE_FALSE=
8114 if test "${native_win32_build}" = 'yes' ; then
8115 WIN32_NATIVE_BUILD_TRUE=
8116 WIN32_NATIVE_BUILD_FALSE='#'
8118 WIN32_NATIVE_BUILD_TRUE='#'
8119 WIN32_NATIVE_BUILD_FALSE=
8122 if test "${cygwin_build}" = 'yes' ; then
8124 CYGWIN_BUILD_FALSE='#'
8126 CYGWIN_BUILD_TRUE='#'
8130 if test "x${CC}" = 'xcl.exe' ; then
8139 WinPathScript="${srcdirfull}/winpath.sh"
8143 # Compiler flags tweaks
8145 if test "${GCC}" != "yes"; then
8148 # aCC: HP ANSI C++ B3910B A.03.34
8149 CFLAGS="${CFLAGS} -Wp,-H30000"
8150 if test -n "${CXXFLAGS}"; then
8153 CXXFLAGS="${CXXFLAGS} -AA"
8157 # Compaq alphaev68-dec-osf5.1 compiler
8158 if test -n "${CXXFLAGS}"; then
8159 CXXFLAGS='-std strict_ansi -noimplicit_include'
8161 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8166 # Check for lazy-loading.
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8168 $as_echo_n "checking for linker lazyload option... " >&6; }
8169 if ${im_cv_ld_lazyload+:} false; then :
8170 $as_echo_n "(cached) " >&6
8173 im_cv_ld_lazyload='none'
8175 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8176 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8177 im_cv_ld_lazyload='-Wl,-zlazyload'
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8184 $as_echo "$im_cv_ld_lazyload" >&6; }
8185 if test "${im_cv_ld_lazyload}" != 'none' ; then
8186 if test -z "${LDFLAGS}" ; then
8187 LDFLAGS="${im_cv_ld_lazyload}"
8189 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8194 *darwin* | *-macos10*)
8195 # Check whether --enable-osx-universal-binary was given.
8196 if test "${enable_osx_universal_binary+set}" = set; then :
8197 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8199 build_osxuniversal=no
8203 if test "${build_osxuniversal}" != no ; then
8204 if test "$enable_dependency_tracking" != no ; then
8205 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8206 Please re-run configure with these options:
8207 --disable-dependency-tracking --enable-osx-universal-binary
8210 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8211 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8212 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8217 # Enable support for threads
8219 # Check whether --with-threads was given.
8220 if test "${with_threads+set}" = set; then :
8221 withval=$with_threads; with_threads=$withval
8228 if test "$with_threads" != 'no'; then
8233 ac_cpp='$CPP $CPPFLAGS'
8234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8240 # We used to check for pthread.h first, but this fails if pthread.h
8241 # requires special compiler flags (e.g. on True64 or Sequent).
8242 # It gets checked for in the link test anyway.
8244 # First of all, check if the user has set any of the PTHREAD_LIBS,
8245 # etcetera environment variables, and if threads linking works using
8247 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8248 save_CFLAGS="$CFLAGS"
8249 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8251 LIBS="$PTHREAD_LIBS $LIBS"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8253 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8257 /* Override any GCC internal prototype to avoid an error.
8258 Use char because int might match the return type of a GCC
8259 builtin and then its argument prototype would still apply. */
8263 char pthread_join ();
8267 return pthread_join ();
8272 if ac_fn_c_try_link "$LINENO"; then :
8275 rm -f core conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8278 $as_echo "$ax_pthread_ok" >&6; }
8279 if test x"$ax_pthread_ok" = xno; then
8284 CFLAGS="$save_CFLAGS"
8287 # We must check for the threads library under a number of different
8288 # names; the ordering is very important because some systems
8289 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8290 # libraries is broken (non-POSIX).
8292 # Create a list of thread flags to try. Items starting with a "-" are
8293 # C compiler flags, and other items are library names, except for "none"
8294 # which indicates that we try without any flags at all, and "pthread-config"
8295 # which is a program returning the flags for the Pth emulation library.
8297 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8299 # The ordering *is* (sometimes) important. Some notes on the
8300 # individual items follow:
8302 # pthreads: AIX (must check this before -lpthread)
8303 # none: in case threads are in libc; should be tried before -Kthread and
8304 # other compiler flags to prevent continual compiler warnings
8305 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8306 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8307 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8308 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8309 # -pthreads: Solaris/gcc
8310 # -mthreads: Mingw32/gcc, Lynx/gcc
8311 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8312 # doesn't hurt to check since this sometimes defines pthreads too;
8313 # also defines -D_REENTRANT)
8314 # ... -mt is also the pthreads flag for HP/aCC
8315 # pthread: Linux, etcetera
8316 # --thread-safe: KAI C++
8317 # pthread-config: use pthread-config program (for GNU Pth library)
8319 case "${host_cpu}-${host_os}" in
8322 # On Solaris (at least, for some versions), libc contains stubbed
8323 # (non-functional) versions of the pthreads routines, so link-based
8324 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8325 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8326 # a function called by this macro, so we could check for that, but
8327 # who knows whether they'll stub that too in a future libc.) So,
8328 # we'll just look for -pthreads and -lpthread first:
8330 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8334 ax_pthread_flags="-pthread $ax_pthread_flags"
8338 if test x"$ax_pthread_ok" = xno; then
8339 for flag in $ax_pthread_flags; do
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8344 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8349 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8350 PTHREAD_CFLAGS="$flag"
8354 # Extract the first word of "pthread-config", so it can be a program name with args.
8355 set dummy pthread-config; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -n "$ax_pthread_config"; then
8362 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_ax_pthread_config="yes"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8382 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8383 if test -n "$ax_pthread_config"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8385 $as_echo "$ax_pthread_config" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8392 if test x"$ax_pthread_config" = xno; then continue; fi
8393 PTHREAD_CFLAGS="`pthread-config --cflags`"
8394 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8399 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8400 PTHREAD_LIBS="-l$flag"
8405 save_CFLAGS="$CFLAGS"
8406 LIBS="$PTHREAD_LIBS $LIBS"
8407 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8409 # Check for various functions. We must include pthread.h,
8410 # since some functions may be macros. (On the Sequent, we
8411 # need a special flag -Kthread to make this header compile.)
8412 # We check for pthread_join because it is in -lpthread on IRIX
8413 # while pthread_create is in libc. We check for pthread_attr_init
8414 # due to DEC craziness with -lpthreads. We check for
8415 # pthread_cleanup_push because it is one of the few pthread
8416 # functions on Solaris that doesn't have a non-functional libc stub.
8417 # We try pthread_create on general principles.
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 #include <pthread.h>
8421 static void routine(void* a) {a=0;}
8422 static void* start_routine(void* a) {return a;}
8426 pthread_t th; pthread_attr_t attr;
8427 pthread_create(&th,0,start_routine,0);
8428 pthread_join(th, 0);
8429 pthread_attr_init(&attr);
8430 pthread_cleanup_push(routine, 0);
8431 pthread_cleanup_pop(0);
8436 if ac_fn_c_try_link "$LINENO"; then :
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8443 CFLAGS="$save_CFLAGS"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8446 $as_echo "$ax_pthread_ok" >&6; }
8447 if test "x$ax_pthread_ok" = xyes; then
8456 # Various other checks:
8457 if test "x$ax_pthread_ok" = xyes; then
8459 LIBS="$PTHREAD_LIBS $LIBS"
8460 save_CFLAGS="$CFLAGS"
8461 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8463 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8465 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8467 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469 /* end confdefs.h. */
8470 #include <pthread.h>
8474 int attr=$attr; return attr;
8479 if ac_fn_c_try_link "$LINENO"; then :
8480 attr_name=$attr; break
8482 rm -f core conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8486 $as_echo "$attr_name" >&6; }
8487 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8489 cat >>confdefs.h <<_ACEOF
8490 #define PTHREAD_CREATE_JOINABLE $attr_name
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8496 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8498 case "${host_cpu}-${host_os}" in
8499 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8500 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8503 $as_echo "${flag}" >&6; }
8504 if test "x$flag" != xno; then
8505 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8509 CFLAGS="$save_CFLAGS"
8511 # More AIX lossage: must compile with xlc_r or cc_r
8512 if test x"$GCC" != xyes; then
8513 for ac_prog in xlc_r cc_r
8515 # Extract the first word of "$ac_prog", so it can be a program name with args.
8516 set dummy $ac_prog; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8520 $as_echo_n "(cached) " >&6
8522 if test -n "$PTHREAD_CC"; then
8523 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_prog_PTHREAD_CC="$ac_prog"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8543 if test -n "$PTHREAD_CC"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8545 $as_echo "$PTHREAD_CC" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8552 test -n "$PTHREAD_CC" && break
8554 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8567 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8568 if test x"$ax_pthread_ok" = xyes; then
8570 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8578 ac_cpp='$CPP $CPPFLAGS'
8579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8584 if test "$ax_pthread_ok" = yes; then
8586 DEF_THREAD="$PTHREAD_CFLAGS"
8587 CFLAGS="$CFLAGS $DEF_THREAD"
8588 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8589 if test "$CC" != "$PTHREAD_CC"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8591 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8595 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8600 # Enable support for OpenMP
8601 if test "$have_threads" != 'yes'; then
8602 ac_cv_prog_c_openmp=unsupported
8606 # Check whether --enable-openmp was given.
8607 if test "${enable_openmp+set}" = set; then :
8608 enableval=$enable_openmp;
8611 if test "$enable_openmp" != no; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8613 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8614 if ${ac_cv_prog_c_openmp+:} false; then :
8615 $as_echo_n "(cached) " >&6
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8624 int main () { return omp_get_num_threads (); }
8627 if ac_fn_c_try_link "$LINENO"; then :
8628 ac_cv_prog_c_openmp='none needed'
8630 ac_cv_prog_c_openmp='unsupported'
8631 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8632 ac_save_CFLAGS=$CFLAGS
8633 CFLAGS="$CFLAGS $ac_option"
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8641 int main () { return omp_get_num_threads (); }
8644 if ac_fn_c_try_link "$LINENO"; then :
8645 ac_cv_prog_c_openmp=$ac_option
8647 rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
8649 CFLAGS=$ac_save_CFLAGS
8650 if test "$ac_cv_prog_c_openmp" != unsupported; then
8655 rm -f core conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8659 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8660 case $ac_cv_prog_c_openmp in #(
8661 "none needed" | unsupported)
8664 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8669 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8670 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8672 if test "$enable_openmp" != no; then
8673 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8674 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8678 # Enable support for OpenCL
8683 ac_cpp='$CPP $CPPFLAGS'
8684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8690 # We used to check for pthread.h first, but this fails if pthread.h
8691 # requires special compiler flags (e.g. on True64 or Sequent).
8692 # It gets checked for in the link test anyway.
8694 # First of all, check if the user has set any of the PTHREAD_LIBS,
8695 # etcetera environment variables, and if threads linking works using
8697 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8698 save_CFLAGS="$CFLAGS"
8699 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8701 LIBS="$PTHREAD_LIBS $LIBS"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8703 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8707 /* Override any GCC internal prototype to avoid an error.
8708 Use char because int might match the return type of a GCC
8709 builtin and then its argument prototype would still apply. */
8713 char pthread_join ();
8717 return pthread_join ();
8722 if ac_fn_c_try_link "$LINENO"; then :
8725 rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8728 $as_echo "$ax_pthread_ok" >&6; }
8729 if test x"$ax_pthread_ok" = xno; then
8734 CFLAGS="$save_CFLAGS"
8737 # We must check for the threads library under a number of different
8738 # names; the ordering is very important because some systems
8739 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8740 # libraries is broken (non-POSIX).
8742 # Create a list of thread flags to try. Items starting with a "-" are
8743 # C compiler flags, and other items are library names, except for "none"
8744 # which indicates that we try without any flags at all, and "pthread-config"
8745 # which is a program returning the flags for the Pth emulation library.
8747 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8749 # The ordering *is* (sometimes) important. Some notes on the
8750 # individual items follow:
8752 # pthreads: AIX (must check this before -lpthread)
8753 # none: in case threads are in libc; should be tried before -Kthread and
8754 # other compiler flags to prevent continual compiler warnings
8755 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8756 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8757 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8758 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8759 # -pthreads: Solaris/gcc
8760 # -mthreads: Mingw32/gcc, Lynx/gcc
8761 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8762 # doesn't hurt to check since this sometimes defines pthreads too;
8763 # also defines -D_REENTRANT)
8764 # ... -mt is also the pthreads flag for HP/aCC
8765 # pthread: Linux, etcetera
8766 # --thread-safe: KAI C++
8767 # pthread-config: use pthread-config program (for GNU Pth library)
8769 case "${host_cpu}-${host_os}" in
8772 # On Solaris (at least, for some versions), libc contains stubbed
8773 # (non-functional) versions of the pthreads routines, so link-based
8774 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8775 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8776 # a function called by this macro, so we could check for that, but
8777 # who knows whether they'll stub that too in a future libc.) So,
8778 # we'll just look for -pthreads and -lpthread first:
8780 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8784 ax_pthread_flags="-pthread $ax_pthread_flags"
8788 if test x"$ax_pthread_ok" = xno; then
8789 for flag in $ax_pthread_flags; do
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8794 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8799 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8800 PTHREAD_CFLAGS="$flag"
8804 # Extract the first word of "pthread-config", so it can be a program name with args.
8805 set dummy pthread-config; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8809 $as_echo_n "(cached) " >&6
8811 if test -n "$ax_pthread_config"; then
8812 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_prog_ax_pthread_config="yes"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8829 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8832 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8833 if test -n "$ax_pthread_config"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8835 $as_echo "$ax_pthread_config" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8842 if test x"$ax_pthread_config" = xno; then continue; fi
8843 PTHREAD_CFLAGS="`pthread-config --cflags`"
8844 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8849 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8850 PTHREAD_LIBS="-l$flag"
8855 save_CFLAGS="$CFLAGS"
8856 LIBS="$PTHREAD_LIBS $LIBS"
8857 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8859 # Check for various functions. We must include pthread.h,
8860 # since some functions may be macros. (On the Sequent, we
8861 # need a special flag -Kthread to make this header compile.)
8862 # We check for pthread_join because it is in -lpthread on IRIX
8863 # while pthread_create is in libc. We check for pthread_attr_init
8864 # due to DEC craziness with -lpthreads. We check for
8865 # pthread_cleanup_push because it is one of the few pthread
8866 # functions on Solaris that doesn't have a non-functional libc stub.
8867 # We try pthread_create on general principles.
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #include <pthread.h>
8871 static void routine(void* a) {a=0;}
8872 static void* start_routine(void* a) {return a;}
8876 pthread_t th; pthread_attr_t attr;
8877 pthread_create(&th,0,start_routine,0);
8878 pthread_join(th, 0);
8879 pthread_attr_init(&attr);
8880 pthread_cleanup_push(routine, 0);
8881 pthread_cleanup_pop(0);
8886 if ac_fn_c_try_link "$LINENO"; then :
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8893 CFLAGS="$save_CFLAGS"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8896 $as_echo "$ax_pthread_ok" >&6; }
8897 if test "x$ax_pthread_ok" = xyes; then
8906 # Various other checks:
8907 if test "x$ax_pthread_ok" = xyes; then
8909 LIBS="$PTHREAD_LIBS $LIBS"
8910 save_CFLAGS="$CFLAGS"
8911 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8913 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8915 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8917 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 #include <pthread.h>
8924 int attr=$attr; return attr;
8929 if ac_fn_c_try_link "$LINENO"; then :
8930 attr_name=$attr; break
8932 rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8936 $as_echo "$attr_name" >&6; }
8937 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8939 cat >>confdefs.h <<_ACEOF
8940 #define PTHREAD_CREATE_JOINABLE $attr_name
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8946 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8948 case "${host_cpu}-${host_os}" in
8949 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8950 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8953 $as_echo "${flag}" >&6; }
8954 if test "x$flag" != xno; then
8955 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8959 CFLAGS="$save_CFLAGS"
8961 # More AIX lossage: must compile with xlc_r or cc_r
8962 if test x"$GCC" != xyes; then
8963 for ac_prog in xlc_r cc_r
8965 # Extract the first word of "$ac_prog", so it can be a program name with args.
8966 set dummy $ac_prog; ac_word=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8970 $as_echo_n "(cached) " >&6
8972 if test -n "$PTHREAD_CC"; then
8973 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982 ac_cv_prog_PTHREAD_CC="$ac_prog"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8993 if test -n "$PTHREAD_CC"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8995 $as_echo "$PTHREAD_CC" >&6; }
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
9002 test -n "$PTHREAD_CC" && break
9004 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9017 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9018 if test x"$ax_pthread_ok" = xyes; then
9020 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9028 ac_cpp='$CPP $CPPFLAGS'
9029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9035 # Check whether --enable-opencl was given.
9036 if test "${enable_opencl+set}" = set; then :
9037 enableval=$enable_opencl; disable_opencl=$enableval
9039 disable_opencl='yes'
9043 if test "$disable_opencl" = 'yes'; then
9045 ac_cpp='$CPP $CPPFLAGS'
9046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9051 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9052 if ${ax_cv_c_compiler_ms+:} false; then :
9053 $as_echo_n "(cached) " >&6
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9069 if ac_fn_c_try_compile "$LINENO"; then :
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 ax_cv_c_compiler_ms=$ax_compiler_ms
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9079 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9080 if test X$ax_compiler_ms = Xno; then :
9081 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9084 ax_save_CPPFLAGS=$CPPFLAGS
9085 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9086 for ac_header in CL/cl.h OpenCL/cl.h
9088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9091 cat >>confdefs.h <<_ACEOF
9092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9099 CPPFLAGS=$ax_save_CPPFLAGS
9101 for ac_header in windows.h
9103 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9104 if test "x$ac_cv_header_windows_h" = xyes; then :
9105 cat >>confdefs.h <<_ACEOF
9106 #define HAVE_WINDOWS_H 1
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9117 $as_echo_n "checking for OpenCL library... " >&6; }
9118 if ${ax_cv_check_cl_libcl+:} false; then :
9119 $as_echo_n "(cached) " >&6
9121 ax_cv_check_cl_libcl=no
9123 x86_64) ax_check_cl_libdir=lib64 ;;
9124 *) ax_check_cl_libdir=lib ;;
9126 ax_save_CPPFLAGS=$CPPFLAGS
9127 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9130 ax_check_libs="-lOpenCL -lCL -lclparser"
9131 for ax_lib in $ax_check_libs; do
9132 if test X$ax_compiler_ms = Xyes; then :
9133 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9137 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9141 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9142 # include <windows.h>
9144 # ifdef HAVE_CL_CL_H
9146 # elif defined(HAVE_OPENCL_CL_H)
9147 # include <OpenCL/cl.h>
9154 clCreateContextFromType(0,0,0,0,0)
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 ax_cv_check_cl_libcl=$ax_try_lib; break
9162 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"
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9166 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9167 # include <windows.h>
9169 # ifdef HAVE_CL_CL_H
9171 # elif defined(HAVE_OPENCL_CL_H)
9172 # include <OpenCL/cl.h>
9179 clCreateContextFromType(0,0,0,0,0)
9184 if ac_fn_c_try_link "$LINENO"; then :
9185 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9187 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"
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9191 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9192 # include <windows.h>
9194 # ifdef HAVE_CL_CL_H
9196 # elif defined(HAVE_OPENCL_CL_H)
9197 # include <OpenCL/cl.h>
9204 clCreateContextFromType(0,0,0,0,0)
9209 if ac_fn_c_try_link "$LINENO"; then :
9210 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9222 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9223 LIBS='-Wl,-framework,OpenCL'
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9227 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9228 # include <windows.h>
9230 # ifdef HAVE_CL_CL_H
9232 # elif defined(HAVE_OPENCL_CL_H)
9233 # include <OpenCL/cl.h>
9240 clCreateContextFromType(0,0,0,0,0)
9245 if ac_fn_c_try_link "$LINENO"; then :
9246 ax_cv_check_cl_libcl=$LIBS
9248 rm -f core conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9253 CPPFLAGS=$ax_save_CPPFLAGS
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9256 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9258 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9259 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9261 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9262 $as_echo "#define _OPENCL 1" >>confdefs.h
9266 ac_cpp='$CPP $CPPFLAGS'
9267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9276 CFLAGS="$CL_CFLAGS $CFLAGS"
9277 LIBS="$CL_LIBS $LIBS"
9279 if test "$enable_opencl" != no; then
9280 if test "_OPENCL" = '1'; then
9281 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9287 # Check for large file support
9290 # Check whether --enable-largefile was given.
9291 if test "${enable_largefile+set}" = set; then :
9292 enableval=$enable_largefile;
9295 if test "$enable_largefile" != no; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9298 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9299 if ${ac_cv_sys_largefile_CC+:} false; then :
9300 $as_echo_n "(cached) " >&6
9302 ac_cv_sys_largefile_CC=no
9303 if test "$GCC" != yes; then
9306 # IRIX 6.2 and later do not support large files by default,
9307 # so use the C compiler's -n32 option if that helps.
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 #include <sys/types.h>
9311 /* Check that off_t can represent 2**63 - 1 correctly.
9312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9313 since some C++ compilers masquerading as C compilers
9314 incorrectly reject 9223372036854775807. */
9315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9317 && LARGE_OFF_T % 2147483647 == 1)
9327 if ac_fn_c_try_compile "$LINENO"; then :
9330 rm -f core conftest.err conftest.$ac_objext
9332 if ac_fn_c_try_compile "$LINENO"; then :
9333 ac_cv_sys_largefile_CC=' -n32'; break
9335 rm -f core conftest.err conftest.$ac_objext
9339 rm -f conftest.$ac_ext
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9343 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9344 if test "$ac_cv_sys_largefile_CC" != no; then
9345 CC=$CC$ac_cv_sys_largefile_CC
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9349 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9350 if ${ac_cv_sys_file_offset_bits+:} false; then :
9351 $as_echo_n "(cached) " >&6
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 #include <sys/types.h>
9357 /* Check that off_t can represent 2**63 - 1 correctly.
9358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9359 since some C++ compilers masquerading as C compilers
9360 incorrectly reject 9223372036854775807. */
9361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9363 && LARGE_OFF_T % 2147483647 == 1)
9373 if ac_fn_c_try_compile "$LINENO"; then :
9374 ac_cv_sys_file_offset_bits=no; break
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 #define _FILE_OFFSET_BITS 64
9380 #include <sys/types.h>
9381 /* Check that off_t can represent 2**63 - 1 correctly.
9382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9383 since some C++ compilers masquerading as C compilers
9384 incorrectly reject 9223372036854775807. */
9385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9387 && LARGE_OFF_T % 2147483647 == 1)
9397 if ac_fn_c_try_compile "$LINENO"; then :
9398 ac_cv_sys_file_offset_bits=64; break
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 ac_cv_sys_file_offset_bits=unknown
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9406 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9407 case $ac_cv_sys_file_offset_bits in #(
9410 cat >>confdefs.h <<_ACEOF
9411 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9416 if test $ac_cv_sys_file_offset_bits = unknown; then
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9418 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9419 if ${ac_cv_sys_large_files+:} false; then :
9420 $as_echo_n "(cached) " >&6
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <sys/types.h>
9426 /* Check that off_t can represent 2**63 - 1 correctly.
9427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9428 since some C++ compilers masquerading as C compilers
9429 incorrectly reject 9223372036854775807. */
9430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9432 && LARGE_OFF_T % 2147483647 == 1)
9442 if ac_fn_c_try_compile "$LINENO"; then :
9443 ac_cv_sys_large_files=no; break
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9448 #define _LARGE_FILES 1
9449 #include <sys/types.h>
9450 /* Check that off_t can represent 2**63 - 1 correctly.
9451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9452 since some C++ compilers masquerading as C compilers
9453 incorrectly reject 9223372036854775807. */
9454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9456 && LARGE_OFF_T % 2147483647 == 1)
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 ac_cv_sys_large_files=1; break
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9470 ac_cv_sys_large_files=unknown
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9475 $as_echo "$ac_cv_sys_large_files" >&6; }
9476 case $ac_cv_sys_large_files in #(
9479 cat >>confdefs.h <<_ACEOF
9480 #define _LARGE_FILES $ac_cv_sys_large_files
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9489 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9490 if ${ac_cv_sys_largefile_source+:} false; then :
9491 $as_echo_n "(cached) " >&6
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 #include <sys/types.h> /* for off_t */
9501 int (*fp) (FILE *, off_t, int) = fseeko;
9502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9507 if ac_fn_c_try_link "$LINENO"; then :
9508 ac_cv_sys_largefile_source=no; break
9510 rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514 #define _LARGEFILE_SOURCE 1
9515 #include <sys/types.h> /* for off_t */
9520 int (*fp) (FILE *, off_t, int) = fseeko;
9521 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9526 if ac_fn_c_try_link "$LINENO"; then :
9527 ac_cv_sys_largefile_source=1; break
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9531 ac_cv_sys_largefile_source=unknown
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9536 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9537 case $ac_cv_sys_largefile_source in #(
9540 cat >>confdefs.h <<_ACEOF
9541 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9547 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9548 # in glibc 2.1.3, but that breaks too many other things.
9549 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9550 if test $ac_cv_sys_largefile_source != unknown; then
9552 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9557 if test "$enable_largefile" != no; then
9558 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9559 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9562 $as_echo_n "checking for native large file support... " >&6; }
9563 if test "$cross_compiling" = yes; then :
9564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9566 as_fn_error $? "cannot run test program while cross compiling
9567 See \`config.log' for more details" "$LINENO" 5; }
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9573 exit(!(sizeof(off_t) == 8));
9583 if ac_fn_c_try_run "$LINENO"; then :
9584 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9587 $as_echo "yes" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9593 conftest.$ac_objext conftest.beam conftest.$ac_ext
9597 if test "$ac_cv_sys_large_files" != 'no'; then
9598 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9600 if test "$ac_cv_sys_largefile_source" != 'no'; then
9601 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9607 # Configure libtool & libltdl
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9617 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9623 macro_revision='1.3293'
9637 ltmain="$ac_aux_dir/ltmain.sh"
9639 # Backslashify metacharacters that are still active within
9640 # double-quoted strings.
9641 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9643 # Same as above, but do not quote variable references.
9644 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9646 # Sed substitution to delay expansion of an escaped shell variable in a
9647 # double_quote_subst'ed string.
9648 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9650 # Sed substitution to delay expansion of an escaped single quote.
9651 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9653 # Sed substitution to avoid accidental globbing in evaled expressions
9654 no_glob_subst='s/\*/\\\*/g'
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9657 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9658 if ${lt_cv_path_NM+:} false; then :
9659 $as_echo_n "(cached) " >&6
9661 if test -n "$NM"; then
9662 # Let the user override the test.
9665 lt_nm_to_check="${ac_tool_prefix}nm"
9666 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9667 lt_nm_to_check="$lt_nm_to_check nm"
9669 for lt_tmp_nm in $lt_nm_to_check; do
9670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9671 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9673 test -z "$ac_dir" && ac_dir=.
9674 tmp_nm="$ac_dir/$lt_tmp_nm"
9675 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9676 # Check to see if the nm accepts a BSD-compat flag.
9677 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9678 # nm: unknown option "B" ignored
9679 # Tru64's nm complains that /dev/null is an invalid object file
9680 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9681 */dev/null* | *'Invalid file or object type'*)
9682 lt_cv_path_NM="$tmp_nm -B"
9686 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9688 lt_cv_path_NM="$tmp_nm -p"
9692 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9693 continue # so that we can try to find one that supports BSD flags
9702 : ${lt_cv_path_NM=no}
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9706 $as_echo "$lt_cv_path_NM" >&6; }
9707 if test "$lt_cv_path_NM" != "no"; then
9710 # Didn't find any BSD compatible name lister, look for dumpbin.
9711 if test -n "$DUMPBIN"; then :
9712 # Let the user override the test.
9714 if test -n "$ac_tool_prefix"; then
9715 for ac_prog in dumpbin "link -dump"
9717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9720 $as_echo_n "checking for $ac_word... " >&6; }
9721 if ${ac_cv_prog_DUMPBIN+:} false; then :
9722 $as_echo_n "(cached) " >&6
9724 if test -n "$DUMPBIN"; then
9725 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
9733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9734 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 DUMPBIN=$ac_cv_prog_DUMPBIN
9745 if test -n "$DUMPBIN"; then
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9747 $as_echo "$DUMPBIN" >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750 $as_echo "no" >&6; }
9754 test -n "$DUMPBIN" && break
9757 if test -z "$DUMPBIN"; then
9758 ac_ct_DUMPBIN=$DUMPBIN
9759 for ac_prog in dumpbin "link -dump"
9761 # Extract the first word of "$ac_prog", so it can be a program name with args.
9762 set dummy $ac_prog; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9766 $as_echo_n "(cached) " >&6
9768 if test -n "$ac_ct_DUMPBIN"; then
9769 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9789 if test -n "$ac_ct_DUMPBIN"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9791 $as_echo "$ac_ct_DUMPBIN" >&6; }
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9798 test -n "$ac_ct_DUMPBIN" && break
9801 if test "x$ac_ct_DUMPBIN" = x; then
9804 case $cross_compiling:$ac_tool_warned in
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9808 ac_tool_warned=yes ;;
9810 DUMPBIN=$ac_ct_DUMPBIN
9814 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9816 DUMPBIN="$DUMPBIN -symbols"
9824 if test "$DUMPBIN" != ":"; then
9828 test -z "$NM" && NM=nm
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9836 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9837 if ${lt_cv_nm_interface+:} false; then :
9838 $as_echo_n "(cached) " >&6
9840 lt_cv_nm_interface="BSD nm"
9841 echo "int some_variable = 0;" > conftest.$ac_ext
9842 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9843 (eval "$ac_compile" 2>conftest.err)
9844 cat conftest.err >&5
9845 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9847 cat conftest.err >&5
9848 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9849 cat conftest.out >&5
9850 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9851 lt_cv_nm_interface="MS dumpbin"
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9856 $as_echo "$lt_cv_nm_interface" >&6; }
9858 # find the maximum length of command line arguments
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9860 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9861 if ${lt_cv_sys_max_cmd_len+:} false; then :
9862 $as_echo_n "(cached) " >&6
9869 # On DJGPP, this test can blow up pretty badly due to problems in libc
9870 # (any single argument exceeding 2000 bytes causes a buffer overrun
9871 # during glob expansion). Even if it were fixed, the result of this
9872 # check would be larger than it should be.
9873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9877 # Under GNU Hurd, this test is not required because there is
9878 # no limit to the length of command line arguments.
9879 # Libtool will interpret -1 as no limit whatsoever
9880 lt_cv_sys_max_cmd_len=-1;
9883 cygwin* | mingw* | cegcc*)
9884 # On Win9x/ME, this test blows up -- it succeeds, but takes
9885 # about 5 minutes as the teststring grows exponentially.
9886 # Worse, since 9x/ME are not pre-emptively multitasking,
9887 # you end up with a "frozen" computer, even though with patience
9888 # the test eventually succeeds (with a max line length of 256k).
9889 # Instead, let's just punt: use the minimum linelength reported by
9890 # all of the supported platforms: 8192 (on NT/2K/XP).
9891 lt_cv_sys_max_cmd_len=8192;
9895 # On MiNT this can take a long time and run out of memory.
9896 lt_cv_sys_max_cmd_len=8192;
9900 # On AmigaOS with pdksh, this test takes hours, literally.
9901 # So we just punt and use a minimum line length of 8192.
9902 lt_cv_sys_max_cmd_len=8192;
9905 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9906 # This has been around since 386BSD, at least. Likely further.
9907 if test -x /sbin/sysctl; then
9908 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9909 elif test -x /usr/sbin/sysctl; then
9910 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9912 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9914 # And add a safety zone
9915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9921 lt_cv_sys_max_cmd_len=196608
9925 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9926 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9927 # nice to cause kernel panics so lets avoid the loop below.
9928 # First set a reasonable default.
9929 lt_cv_sys_max_cmd_len=16384
9931 if test -x /sbin/sysconfig; then
9932 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9933 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9938 lt_cv_sys_max_cmd_len=102400
9940 sysv5* | sco5v6* | sysv4.2uw2*)
9941 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9942 if test -n "$kargmax"; then
9943 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9945 lt_cv_sys_max_cmd_len=32768
9949 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9950 if test -n "$lt_cv_sys_max_cmd_len"; then
9951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9954 # Make teststring a little bigger before we do anything with it.
9955 # a 1K string should be a reasonable start.
9956 for i in 1 2 3 4 5 6 7 8 ; do
9957 teststring=$teststring$teststring
9959 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9960 # If test is not a shell built-in, we'll probably end up computing a
9961 # maximum length that is only half of the actual maximum length, but
9963 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9964 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9965 test $i != 17 # 1/2 MB should be enough
9968 teststring=$teststring$teststring
9970 # Only check the string length outside the loop.
9971 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9973 # Add a significant safety factor because C++ compilers can tack on
9974 # massive amounts of additional arguments before passing them to the
9975 # linker. It appears as though 1/2 is a usable value.
9976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9983 if test -n $lt_cv_sys_max_cmd_len ; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9985 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9988 $as_echo "none" >&6; }
9990 max_cmd_len=$lt_cv_sys_max_cmd_len
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10002 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10003 # Try some XSI features
10005 ( _lt_dummy="a/b/c"
10006 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10008 && eval 'test $(( 1 + 1 )) -eq 2 \
10009 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10012 $as_echo "$xsi_shell" >&6; }
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10016 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10018 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10020 && lt_shell_append=yes
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10022 $as_echo "$lt_shell_append" >&6; }
10025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10035 # test EBCDIC or ASCII
10036 case `echo X|tr X '\101'` in
10037 A) # ASCII based system
10038 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10039 lt_SP2NL='tr \040 \012'
10040 lt_NL2SP='tr \015\012 \040\040'
10042 *) # EBCDIC based system
10043 lt_SP2NL='tr \100 \n'
10044 lt_NL2SP='tr \r\n \100\100'
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10057 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10058 if ${lt_cv_to_host_file_cmd+:} false; then :
10059 $as_echo_n "(cached) " >&6
10064 *-*-mingw* ) # actually msys
10065 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10068 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10070 * ) # otherwise, assume *nix
10071 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10077 *-*-mingw* ) # actually msys
10078 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10081 lt_cv_to_host_file_cmd=func_convert_file_noop
10083 * ) # otherwise, assume *nix
10084 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10088 * ) # unhandled hosts (and "normal" native builds)
10089 lt_cv_to_host_file_cmd=func_convert_file_noop
10095 to_host_file_cmd=$lt_cv_to_host_file_cmd
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10097 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10104 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10105 if ${lt_cv_to_tool_file_cmd+:} false; then :
10106 $as_echo_n "(cached) " >&6
10108 #assume ordinary cross tools, or native build.
10109 lt_cv_to_tool_file_cmd=func_convert_file_noop
10113 *-*-mingw* ) # actually msys
10114 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10122 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10124 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10131 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10132 if ${lt_cv_ld_reload_flag+:} false; then :
10133 $as_echo_n "(cached) " >&6
10135 lt_cv_ld_reload_flag='-r'
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10138 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10139 reload_flag=$lt_cv_ld_reload_flag
10140 case $reload_flag in
10142 *) reload_flag=" $reload_flag" ;;
10144 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10146 cygwin* | mingw* | pw32* | cegcc*)
10147 if test "$GCC" != yes; then
10152 if test "$GCC" = yes; then
10153 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10155 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10168 if test -n "$ac_tool_prefix"; then
10169 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10170 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 $as_echo_n "checking for $ac_word... " >&6; }
10173 if ${ac_cv_prog_OBJDUMP+:} false; then :
10174 $as_echo_n "(cached) " >&6
10176 if test -n "$OBJDUMP"; then
10177 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10183 test -z "$as_dir" && as_dir=.
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10186 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 OBJDUMP=$ac_cv_prog_OBJDUMP
10197 if test -n "$OBJDUMP"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10199 $as_echo "$OBJDUMP" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10207 if test -z "$ac_cv_prog_OBJDUMP"; then
10208 ac_ct_OBJDUMP=$OBJDUMP
10209 # Extract the first word of "objdump", so it can be a program name with args.
10210 set dummy objdump; ac_word=$2
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10214 $as_echo_n "(cached) " >&6
10216 if test -n "$ac_ct_OBJDUMP"; then
10217 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10220 for as_dir in $PATH
10223 test -z "$as_dir" && as_dir=.
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10226 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10237 if test -n "$ac_ct_OBJDUMP"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10239 $as_echo "$ac_ct_OBJDUMP" >&6; }
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10245 if test "x$ac_ct_OBJDUMP" = x; then
10248 case $cross_compiling:$ac_tool_warned in
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10252 ac_tool_warned=yes ;;
10254 OBJDUMP=$ac_ct_OBJDUMP
10257 OBJDUMP="$ac_cv_prog_OBJDUMP"
10260 test -z "$OBJDUMP" && OBJDUMP=objdump
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10268 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10269 if ${lt_cv_deplibs_check_method+:} false; then :
10270 $as_echo_n "(cached) " >&6
10272 lt_cv_file_magic_cmd='$MAGIC_CMD'
10273 lt_cv_file_magic_test_file=
10274 lt_cv_deplibs_check_method='unknown'
10275 # Need to set the preceding variable on all platforms that support
10276 # interlibrary dependencies.
10277 # 'none' -- dependencies not supported.
10278 # `unknown' -- same as none, but documents that we really don't know.
10279 # 'pass_all' -- all dependencies passed with no checks.
10280 # 'test_compile' -- check by making test program.
10281 # 'file_magic [[regex]]' -- check by looking for files in library path
10282 # which responds to the $file_magic_cmd with a given extended regex.
10283 # If you have `file' or equivalent on your system and you're not sure
10284 # whether `pass_all' will *always* work, you probably want this one.
10288 lt_cv_deplibs_check_method=pass_all
10292 lt_cv_deplibs_check_method=pass_all
10296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10297 lt_cv_file_magic_cmd='/usr/bin/file -L'
10298 lt_cv_file_magic_test_file=/shlib/libc.so
10302 # func_win32_libid is a shell function defined in ltmain.sh
10303 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10304 lt_cv_file_magic_cmd='func_win32_libid'
10308 # Base MSYS/MinGW do not provide the 'file' command needed by
10309 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10310 # unless we find 'file', for example because we are cross-compiling.
10311 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10312 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10314 lt_cv_file_magic_cmd='func_win32_libid'
10316 # Keep this pattern in sync with the one in func_win32_libid.
10317 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10318 lt_cv_file_magic_cmd='$OBJDUMP -f'
10323 # use the weaker test based on 'objdump'. See mingw*.
10324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10325 lt_cv_file_magic_cmd='$OBJDUMP -f'
10328 darwin* | rhapsody*)
10329 lt_cv_deplibs_check_method=pass_all
10332 freebsd* | dragonfly*)
10333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10336 # Not sure whether the presence of OpenBSD here was a mistake.
10337 # Let's accept both of them until this is cleared up.
10338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10339 lt_cv_file_magic_cmd=/usr/bin/file
10340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10344 lt_cv_deplibs_check_method=pass_all
10349 lt_cv_deplibs_check_method=pass_all
10353 lt_cv_deplibs_check_method=pass_all
10356 hpux10.20* | hpux11*)
10357 lt_cv_file_magic_cmd=/usr/bin/file
10360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10361 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10364 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]'
10365 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10369 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10375 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10379 irix5* | irix6* | nonstopux*)
10381 *-32|*"-32 ") libmagic=32-bit;;
10382 *-n32|*"-n32 ") libmagic=N32;;
10383 *-64|*"-64 ") libmagic=64-bit;;
10384 *) libmagic=never-match;;
10386 lt_cv_deplibs_check_method=pass_all
10389 # This must be Linux ELF.
10390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10391 lt_cv_deplibs_check_method=pass_all
10395 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10404 lt_cv_file_magic_cmd=/usr/bin/file
10405 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10409 lt_cv_deplibs_check_method=pass_all
10413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10420 osf3* | osf4* | osf5*)
10421 lt_cv_deplibs_check_method=pass_all
10425 lt_cv_deplibs_check_method=pass_all
10429 lt_cv_deplibs_check_method=pass_all
10432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433 lt_cv_deplibs_check_method=pass_all
10437 case $host_vendor in
10439 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]'
10440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10443 lt_cv_deplibs_check_method=pass_all
10446 lt_cv_file_magic_cmd='/bin/file'
10447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10450 lt_cv_file_magic_cmd='/bin/file'
10451 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10452 lt_cv_file_magic_test_file=/lib/libc.so
10455 lt_cv_deplibs_check_method=pass_all
10458 lt_cv_deplibs_check_method=pass_all
10464 lt_cv_deplibs_check_method=pass_all
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10470 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10474 if test "$build" = "$host"; then
10477 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10478 want_nocaseglob=yes
10480 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10486 file_magic_cmd=$lt_cv_file_magic_cmd
10487 deplibs_check_method=$lt_cv_deplibs_check_method
10488 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10511 if test -n "$ac_tool_prefix"; then
10512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10513 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515 $as_echo_n "checking for $ac_word... " >&6; }
10516 if ${ac_cv_prog_DLLTOOL+:} false; then :
10517 $as_echo_n "(cached) " >&6
10519 if test -n "$DLLTOOL"; then
10520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523 for as_dir in $PATH
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10529 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 DLLTOOL=$ac_cv_prog_DLLTOOL
10540 if test -n "$DLLTOOL"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10542 $as_echo "$DLLTOOL" >&6; }
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; }
10550 if test -z "$ac_cv_prog_DLLTOOL"; then
10551 ac_ct_DLLTOOL=$DLLTOOL
10552 # Extract the first word of "dlltool", so it can be a program name with args.
10553 set dummy dlltool; ac_word=$2
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555 $as_echo_n "checking for $ac_word... " >&6; }
10556 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10557 $as_echo_n "(cached) " >&6
10559 if test -n "$ac_ct_DLLTOOL"; then
10560 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563 for as_dir in $PATH
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10580 if test -n "$ac_ct_DLLTOOL"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10582 $as_echo "$ac_ct_DLLTOOL" >&6; }
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10588 if test "x$ac_ct_DLLTOOL" = x; then
10591 case $cross_compiling:$ac_tool_warned in
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10595 ac_tool_warned=yes ;;
10597 DLLTOOL=$ac_ct_DLLTOOL
10600 DLLTOOL="$ac_cv_prog_DLLTOOL"
10603 test -z "$DLLTOOL" && DLLTOOL=dlltool
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10612 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10613 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10614 $as_echo_n "(cached) " >&6
10616 lt_cv_sharedlib_from_linklib_cmd='unknown'
10619 cygwin* | mingw* | pw32* | cegcc*)
10620 # two different shell functions defined in ltmain.sh
10621 # decide which to use based on capabilities of $DLLTOOL
10622 case `$DLLTOOL --help 2>&1` in
10623 *--identify-strict*)
10624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10632 # fallback: assume linklib IS sharedlib
10633 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10639 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10640 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10641 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10649 if test -n "$ac_tool_prefix"; then
10652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if ${ac_cv_prog_AR+:} false; then :
10657 $as_echo_n "(cached) " >&6
10659 if test -n "$AR"; then
10660 ac_cv_prog_AR="$AR" # Let the user override the test.
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 if test -n "$AR"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10682 $as_echo "$AR" >&6; }
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10689 test -n "$AR" && break
10692 if test -z "$AR"; then
10696 # Extract the first word of "$ac_prog", so it can be a program name with args.
10697 set dummy $ac_prog; ac_word=$2
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10699 $as_echo_n "checking for $ac_word... " >&6; }
10700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10701 $as_echo_n "(cached) " >&6
10703 if test -n "$ac_ct_AR"; then
10704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in $PATH
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_prog_ac_ct_AR="$ac_prog"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10724 if test -n "$ac_ct_AR"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10726 $as_echo "$ac_ct_AR" >&6; }
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729 $as_echo "no" >&6; }
10733 test -n "$ac_ct_AR" && break
10736 if test "x$ac_ct_AR" = x; then
10739 case $cross_compiling:$ac_tool_warned in
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10743 ac_tool_warned=yes ;;
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10763 $as_echo_n "checking for archiver @FILE support... " >&6; }
10764 if ${lt_cv_ar_at_file+:} false; then :
10765 $as_echo_n "(cached) " >&6
10767 lt_cv_ar_at_file=no
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10779 if ac_fn_c_try_compile "$LINENO"; then :
10780 echo conftest.$ac_objext > conftest.lst
10781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10783 (eval $lt_ar_try) 2>&5
10785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786 test $ac_status = 0; }
10787 if test "$ac_status" -eq 0; then
10788 # Ensure the archiver fails upon bogus file names.
10789 rm -f conftest.$ac_objext libconftest.a
10790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10791 (eval $lt_ar_try) 2>&5
10793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10794 test $ac_status = 0; }
10795 if test "$ac_status" -ne 0; then
10799 rm -f conftest.* libconftest.a
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10806 $as_echo "$lt_cv_ar_at_file" >&6; }
10808 if test "x$lt_cv_ar_at_file" = xno; then
10809 archiver_list_spec=
10811 archiver_list_spec=$lt_cv_ar_at_file
10820 if test -n "$ac_tool_prefix"; then
10821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10822 set dummy ${ac_tool_prefix}strip; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if ${ac_cv_prog_STRIP+:} false; then :
10826 $as_echo_n "(cached) " >&6
10828 if test -n "$STRIP"; then
10829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832 for as_dir in $PATH
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 STRIP=$ac_cv_prog_STRIP
10849 if test -n "$STRIP"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10851 $as_echo "$STRIP" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10859 if test -z "$ac_cv_prog_STRIP"; then
10861 # Extract the first word of "strip", so it can be a program name with args.
10862 set dummy strip; ac_word=$2
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864 $as_echo_n "checking for $ac_word... " >&6; }
10865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10866 $as_echo_n "(cached) " >&6
10868 if test -n "$ac_ct_STRIP"; then
10869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_prog_ac_ct_STRIP="strip"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10889 if test -n "$ac_ct_STRIP"; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10891 $as_echo "$ac_ct_STRIP" >&6; }
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894 $as_echo "no" >&6; }
10897 if test "x$ac_ct_STRIP" = x; then
10900 case $cross_compiling:$ac_tool_warned in
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10904 ac_tool_warned=yes ;;
10909 STRIP="$ac_cv_prog_STRIP"
10912 test -z "$STRIP" && STRIP=:
10919 if test -n "$ac_tool_prefix"; then
10920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923 $as_echo_n "checking for $ac_word... " >&6; }
10924 if ${ac_cv_prog_RANLIB+:} false; then :
10925 $as_echo_n "(cached) " >&6
10927 if test -n "$RANLIB"; then
10928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 RANLIB=$ac_cv_prog_RANLIB
10948 if test -n "$RANLIB"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10950 $as_echo "$RANLIB" >&6; }
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10958 if test -z "$ac_cv_prog_RANLIB"; then
10959 ac_ct_RANLIB=$RANLIB
10960 # Extract the first word of "ranlib", so it can be a program name with args.
10961 set dummy ranlib; ac_word=$2
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963 $as_echo_n "checking for $ac_word... " >&6; }
10964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10965 $as_echo_n "(cached) " >&6
10967 if test -n "$ac_ct_RANLIB"; then
10968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_prog_ac_ct_RANLIB="ranlib"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10988 if test -n "$ac_ct_RANLIB"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10990 $as_echo "$ac_ct_RANLIB" >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993 $as_echo "no" >&6; }
10996 if test "x$ac_ct_RANLIB" = x; then
10999 case $cross_compiling:$ac_tool_warned in
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11003 ac_tool_warned=yes ;;
11005 RANLIB=$ac_ct_RANLIB
11008 RANLIB="$ac_cv_prog_RANLIB"
11011 test -z "$RANLIB" && RANLIB=:
11018 # Determine commands to create old-style static archives.
11019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11020 old_postinstall_cmds='chmod 644 $oldlib'
11021 old_postuninstall_cmds=
11023 if test -n "$RANLIB"; then
11026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11037 lock_old_archive_extraction=yes ;;
11039 lock_old_archive_extraction=no ;;
11080 # If no C compiler was specified, use CC.
11083 # If no C compiler flags were specified, use CFLAGS.
11084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11086 # Allow CC to be a program name with arguments.
11090 # Check for command to grab the raw symbol name followed by C symbol from nm.
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11094 $as_echo_n "(cached) " >&6
11097 # These are sane defaults that work on at least a few old systems.
11098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11100 # Character class describing NM global symbol codes.
11101 symcode='[BCDEGRST]'
11103 # Regexp to match symbols that can be accessed directly from C.
11104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11106 # Define system-specific variables.
11111 cygwin* | mingw* | pw32* | cegcc*)
11112 symcode='[ABCDGISTW]'
11115 if test "$host_cpu" = ia64; then
11116 symcode='[ABCDEGRST]'
11119 irix* | nonstopux*)
11120 symcode='[BCDEGRST]'
11123 symcode='[BCDEGQRST]'
11134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11142 # If we're using GNU nm, then use its standard symbol codes.
11143 case `$NM -V 2>&1` in
11144 *GNU* | *'with BFD'*)
11145 symcode='[ABCDGIRSTW]' ;;
11148 # Transform an extracted symbol line into a proper C declaration.
11149 # Some systems (esp. on ia64) link data and code symbols differently,
11150 # so use this general approach.
11151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11153 # Transform an extracted symbol line into symbol name and symbol address
11154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11155 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'"
11157 # Handle CRLF in mingw tool chain
11161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11165 # Try without a prefix underscore, then with it.
11166 for ac_symprfx in "" "_"; do
11168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11169 symxfrm="\\1 $ac_symprfx\\2 \\2"
11171 # Write the raw and C identifiers.
11172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11173 # Fake it for dumpbin and say T for any non-static function
11174 # and D for any global variable.
11175 # Also find C++ and __fastcall symbols from MSVC++,
11176 # which start with @ or ?.
11177 lt_cv_sys_global_symbol_pipe="$AWK '"\
11178 " {last_section=section; section=\$ 3};"\
11179 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11180 " \$ 0!~/External *\|/{next};"\
11181 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11182 " {if(hide[section]) next};"\
11183 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11184 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11185 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11186 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11187 " ' prfx=^$ac_symprfx"
11189 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11191 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11193 # Check to see that the pipe works correctly.
11197 cat > conftest.$ac_ext <<_LT_EOF
11202 void nm_test_func(void);
11203 void nm_test_func(void){}
11207 int main(){nm_test_var='a';nm_test_func();return(0);}
11210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11211 (eval $ac_compile) 2>&5
11213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11214 test $ac_status = 0; }; then
11215 # Now try to grab the symbols.
11217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11218 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; } && test -s "$nlist"; then
11222 # Try sorting and uniquifying the output.
11223 if sort "$nlist" | uniq > "$nlist"T; then
11224 mv -f "$nlist"T "$nlist"
11229 # Make sure that we snagged all the symbols we need.
11230 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11231 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11232 cat <<_LT_EOF > conftest.$ac_ext
11233 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11234 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11235 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11236 relocations are performed -- see ld's documentation on pseudo-relocs. */
11237 # define LT_DLSYM_CONST
11238 #elif defined(__osf__)
11239 /* This system does not cope well with relocations in const data. */
11240 # define LT_DLSYM_CONST
11242 # define LT_DLSYM_CONST const
11250 # Now generate the symbol file.
11251 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11253 cat <<_LT_EOF >> conftest.$ac_ext
11255 /* The mapping between symbol names and symbols. */
11256 LT_DLSYM_CONST struct {
11260 lt__PROGRAM__LTX_preloaded_symbols[] =
11262 { "@PROGRAM@", (void *) 0 },
11264 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11265 cat <<\_LT_EOF >> conftest.$ac_ext
11269 /* This works around a problem in FreeBSD linker */
11270 #ifdef FREEBSD_WORKAROUND
11271 static const void *lt_preloaded_setup() {
11272 return lt__PROGRAM__LTX_preloaded_symbols;
11280 # Now try linking the two files.
11281 mv conftest.$ac_objext conftstm.$ac_objext
11282 lt_globsym_save_LIBS=$LIBS
11283 lt_globsym_save_CFLAGS=$CFLAGS
11284 LIBS="conftstm.$ac_objext"
11285 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11287 (eval $ac_link) 2>&5
11289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11290 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11293 LIBS=$lt_globsym_save_LIBS
11294 CFLAGS=$lt_globsym_save_CFLAGS
11296 echo "cannot find nm_test_func in $nlist" >&5
11299 echo "cannot find nm_test_var in $nlist" >&5
11302 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11305 echo "$progname: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11308 rm -rf conftest* conftst*
11310 # Do not use the global_symbol_pipe unless it works.
11311 if test "$pipe_works" = yes; then
11314 lt_cv_sys_global_symbol_pipe=
11320 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11321 lt_cv_sys_global_symbol_to_cdecl=
11323 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11325 $as_echo "failed" >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11328 $as_echo "ok" >&6; }
11331 # Response file support.
11332 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11333 nm_file_list_spec='@'
11334 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11335 nm_file_list_spec='@'
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11365 $as_echo_n "checking for sysroot... " >&6; }
11367 # Check whether --with-sysroot was given.
11368 if test "${with_sysroot+set}" = set; then :
11369 withval=$with_sysroot;
11376 case ${with_sysroot} in #(
11378 if test "$GCC" = yes; then
11379 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11383 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11389 $as_echo "${with_sysroot}" >&6; }
11390 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11395 $as_echo "${lt_sysroot:-no}" >&6; }
11401 # Check whether --enable-libtool-lock was given.
11402 if test "${enable_libtool_lock+set}" = set; then :
11403 enableval=$enable_libtool_lock;
11406 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11408 # Some flags need to be propagated to the compiler or linker for good
11412 # Find out which ABI we are using.
11413 echo 'int i;' > conftest.$ac_ext
11414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11415 (eval $ac_compile) 2>&5
11417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11418 test $ac_status = 0; }; then
11419 case `/usr/bin/file conftest.$ac_objext` in
11421 HPUX_IA64_MODE="32"
11424 HPUX_IA64_MODE="64"
11431 # Find out which ABI we are using.
11432 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11434 (eval $ac_compile) 2>&5
11436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; }; then
11438 if test "$lt_cv_prog_gnu_ld" = yes; then
11439 case `/usr/bin/file conftest.$ac_objext` in
11441 LD="${LD-ld} -melf32bsmip"
11444 LD="${LD-ld} -melf32bmipn32"
11447 LD="${LD-ld} -melf64bmip"
11451 case `/usr/bin/file conftest.$ac_objext` in
11467 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11468 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11469 # Find out which ABI we are using.
11470 echo 'int i;' > conftest.$ac_ext
11471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11472 (eval $ac_compile) 2>&5
11474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475 test $ac_status = 0; }; then
11476 case `/usr/bin/file conftest.o` in
11479 x86_64-*kfreebsd*-gnu)
11480 LD="${LD-ld} -m elf_i386_fbsd"
11483 LD="${LD-ld} -m elf_i386"
11485 ppc64-*linux*|powerpc64-*linux*)
11486 LD="${LD-ld} -m elf32ppclinux"
11489 LD="${LD-ld} -m elf_s390"
11492 LD="${LD-ld} -m elf32_sparc"
11498 x86_64-*kfreebsd*-gnu)
11499 LD="${LD-ld} -m elf_x86_64_fbsd"
11502 LD="${LD-ld} -m elf_x86_64"
11504 ppc*-*linux*|powerpc*-*linux*)
11505 LD="${LD-ld} -m elf64ppc"
11507 s390*-*linux*|s390*-*tpf*)
11508 LD="${LD-ld} -m elf64_s390"
11511 LD="${LD-ld} -m elf64_sparc"
11521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11522 SAVE_CFLAGS="$CFLAGS"
11523 CFLAGS="$CFLAGS -belf"
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11525 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11526 if ${lt_cv_cc_needs_belf+:} false; then :
11527 $as_echo_n "(cached) " >&6
11530 ac_cpp='$CPP $CPPFLAGS'
11531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11546 if ac_fn_c_try_link "$LINENO"; then :
11547 lt_cv_cc_needs_belf=yes
11549 lt_cv_cc_needs_belf=no
11551 rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11554 ac_cpp='$CPP $CPPFLAGS'
11555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11561 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11562 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11563 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11564 CFLAGS="$SAVE_CFLAGS"
11568 # Find out which ABI we are using.
11569 echo 'int i;' > conftest.$ac_ext
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11571 (eval $ac_compile) 2>&5
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; }; then
11575 case `/usr/bin/file conftest.o` in
11577 case $lt_cv_prog_gnu_ld in
11578 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11580 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11592 need_locks="$enable_libtool_lock"
11594 if test -n "$ac_tool_prefix"; then
11595 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11596 set dummy ${ac_tool_prefix}mt; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11600 $as_echo_n "(cached) " >&6
11602 if test -n "$MANIFEST_TOOL"; then
11603 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606 for as_dir in $PATH
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11612 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11622 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11623 if test -n "$MANIFEST_TOOL"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11625 $as_echo "$MANIFEST_TOOL" >&6; }
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 $as_echo "no" >&6; }
11633 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11634 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11635 # Extract the first word of "mt", so it can be a program name with args.
11636 set dummy mt; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11640 $as_echo_n "(cached) " >&6
11642 if test -n "$ac_ct_MANIFEST_TOOL"; then
11643 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11652 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11663 if test -n "$ac_ct_MANIFEST_TOOL"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11665 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11671 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11674 case $cross_compiling:$ac_tool_warned in
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11678 ac_tool_warned=yes ;;
11680 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11683 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11686 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11688 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11689 if ${lt_cv_path_mainfest_tool+:} false; then :
11690 $as_echo_n "(cached) " >&6
11692 lt_cv_path_mainfest_tool=no
11693 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11694 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11695 cat conftest.err >&5
11696 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11697 lt_cv_path_mainfest_tool=yes
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11702 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11703 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11713 rhapsody* | darwin*)
11714 if test -n "$ac_tool_prefix"; then
11715 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11720 $as_echo_n "(cached) " >&6
11722 if test -n "$DSYMUTIL"; then
11723 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11743 if test -n "$DSYMUTIL"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11745 $as_echo "$DSYMUTIL" >&6; }
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11753 if test -z "$ac_cv_prog_DSYMUTIL"; then
11754 ac_ct_DSYMUTIL=$DSYMUTIL
11755 # Extract the first word of "dsymutil", so it can be a program name with args.
11756 set dummy dsymutil; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11760 $as_echo_n "(cached) " >&6
11762 if test -n "$ac_ct_DSYMUTIL"; then
11763 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11783 if test -n "$ac_ct_DSYMUTIL"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11791 if test "x$ac_ct_DSYMUTIL" = x; then
11794 case $cross_compiling:$ac_tool_warned in
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11798 ac_tool_warned=yes ;;
11800 DSYMUTIL=$ac_ct_DSYMUTIL
11803 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11806 if test -n "$ac_tool_prefix"; then
11807 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if ${ac_cv_prog_NMEDIT+:} false; then :
11812 $as_echo_n "(cached) " >&6
11814 if test -n "$NMEDIT"; then
11815 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 NMEDIT=$ac_cv_prog_NMEDIT
11835 if test -n "$NMEDIT"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11837 $as_echo "$NMEDIT" >&6; }
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11845 if test -z "$ac_cv_prog_NMEDIT"; then
11846 ac_ct_NMEDIT=$NMEDIT
11847 # Extract the first word of "nmedit", so it can be a program name with args.
11848 set dummy nmedit; ac_word=$2
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11850 $as_echo_n "checking for $ac_word... " >&6; }
11851 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11852 $as_echo_n "(cached) " >&6
11854 if test -n "$ac_ct_NMEDIT"; then
11855 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11875 if test -n "$ac_ct_NMEDIT"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11877 $as_echo "$ac_ct_NMEDIT" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11883 if test "x$ac_ct_NMEDIT" = x; then
11886 case $cross_compiling:$ac_tool_warned in
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11890 ac_tool_warned=yes ;;
11892 NMEDIT=$ac_ct_NMEDIT
11895 NMEDIT="$ac_cv_prog_NMEDIT"
11898 if test -n "$ac_tool_prefix"; then
11899 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902 $as_echo_n "checking for $ac_word... " >&6; }
11903 if ${ac_cv_prog_LIPO+:} false; then :
11904 $as_echo_n "(cached) " >&6
11906 if test -n "$LIPO"; then
11907 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 LIPO=$ac_cv_prog_LIPO
11927 if test -n "$LIPO"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11929 $as_echo "$LIPO" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11937 if test -z "$ac_cv_prog_LIPO"; then
11939 # Extract the first word of "lipo", so it can be a program name with args.
11940 set dummy lipo; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11944 $as_echo_n "(cached) " >&6
11946 if test -n "$ac_ct_LIPO"; then
11947 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11953 test -z "$as_dir" && as_dir=.
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11956 ac_cv_prog_ac_ct_LIPO="lipo"
11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11967 if test -n "$ac_ct_LIPO"; then
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11969 $as_echo "$ac_ct_LIPO" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11975 if test "x$ac_ct_LIPO" = x; then
11978 case $cross_compiling:$ac_tool_warned in
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11982 ac_tool_warned=yes ;;
11987 LIPO="$ac_cv_prog_LIPO"
11990 if test -n "$ac_tool_prefix"; then
11991 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11992 set dummy ${ac_tool_prefix}otool; ac_word=$2
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994 $as_echo_n "checking for $ac_word... " >&6; }
11995 if ${ac_cv_prog_OTOOL+:} false; then :
11996 $as_echo_n "(cached) " >&6
11998 if test -n "$OTOOL"; then
11999 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 OTOOL=$ac_cv_prog_OTOOL
12019 if test -n "$OTOOL"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12021 $as_echo "$OTOOL" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12029 if test -z "$ac_cv_prog_OTOOL"; then
12031 # Extract the first word of "otool", so it can be a program name with args.
12032 set dummy otool; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12036 $as_echo_n "(cached) " >&6
12038 if test -n "$ac_ct_OTOOL"; then
12039 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_prog_ac_ct_OTOOL="otool"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12059 if test -n "$ac_ct_OTOOL"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12061 $as_echo "$ac_ct_OTOOL" >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12067 if test "x$ac_ct_OTOOL" = x; then
12070 case $cross_compiling:$ac_tool_warned in
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12074 ac_tool_warned=yes ;;
12079 OTOOL="$ac_cv_prog_OTOOL"
12082 if test -n "$ac_tool_prefix"; then
12083 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if ${ac_cv_prog_OTOOL64+:} false; then :
12088 $as_echo_n "(cached) " >&6
12090 if test -n "$OTOOL64"; then
12091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 OTOOL64=$ac_cv_prog_OTOOL64
12111 if test -n "$OTOOL64"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12113 $as_echo "$OTOOL64" >&6; }
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12121 if test -z "$ac_cv_prog_OTOOL64"; then
12122 ac_ct_OTOOL64=$OTOOL64
12123 # Extract the first word of "otool64", so it can be a program name with args.
12124 set dummy otool64; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12128 $as_echo_n "(cached) " >&6
12130 if test -n "$ac_ct_OTOOL64"; then
12131 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_ac_ct_OTOOL64="otool64"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12151 if test -n "$ac_ct_OTOOL64"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12153 $as_echo "$ac_ct_OTOOL64" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12159 if test "x$ac_ct_OTOOL64" = x; then
12162 case $cross_compiling:$ac_tool_warned in
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12166 ac_tool_warned=yes ;;
12168 OTOOL64=$ac_ct_OTOOL64
12171 OTOOL64="$ac_cv_prog_OTOOL64"
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12201 $as_echo_n "checking for -single_module linker flag... " >&6; }
12202 if ${lt_cv_apple_cc_single_mod+:} false; then :
12203 $as_echo_n "(cached) " >&6
12205 lt_cv_apple_cc_single_mod=no
12206 if test -z "${LT_MULTI_MODULE}"; then
12207 # By default we will add the -single_module flag. You can override
12208 # by either setting the environment variable LT_MULTI_MODULE
12209 # non-empty at configure time, or by adding -multi_module to the
12211 rm -rf libconftest.dylib*
12212 echo "int foo(void){return 1;}" > conftest.c
12213 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12214 -dynamiclib -Wl,-single_module conftest.c" >&5
12215 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12216 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12218 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12219 lt_cv_apple_cc_single_mod=yes
12221 cat conftest.err >&5
12223 rm -rf libconftest.dylib*
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12228 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12230 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12231 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12232 $as_echo_n "(cached) " >&6
12234 lt_cv_ld_exported_symbols_list=no
12235 save_LDFLAGS=$LDFLAGS
12236 echo "_main" > conftest.sym
12237 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 lt_cv_ld_exported_symbols_list=yes
12252 lt_cv_ld_exported_symbols_list=no
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LDFLAGS="$save_LDFLAGS"
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12260 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12262 $as_echo_n "checking for -force_load linker flag... " >&6; }
12263 if ${lt_cv_ld_force_load+:} false; then :
12264 $as_echo_n "(cached) " >&6
12266 lt_cv_ld_force_load=no
12267 cat > conftest.c << _LT_EOF
12268 int forced_loaded() { return 2;}
12270 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12271 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12272 echo "$AR cru libconftest.a conftest.o" >&5
12273 $AR cru libconftest.a conftest.o 2>&5
12274 echo "$RANLIB libconftest.a" >&5
12275 $RANLIB libconftest.a 2>&5
12276 cat > conftest.c << _LT_EOF
12277 int main() { return 0;}
12279 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12280 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12282 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12283 lt_cv_ld_force_load=yes
12285 cat conftest.err >&5
12287 rm -f conftest.err libconftest.a conftest conftest.c
12288 rm -rf conftest.dSYM
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12292 $as_echo "$lt_cv_ld_force_load" >&6; }
12294 rhapsody* | darwin1.[012])
12295 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12298 darwin*) # darwin 5.x on
12299 # if running on 10.5 or later, the deployment target defaults
12300 # to the OS version, if on x86, and 10.4, the deployment
12301 # target defaults to 10.4. Don't you love it?
12302 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12303 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12304 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12306 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12308 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12312 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12313 _lt_dar_single_mod='$single_module'
12315 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12316 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12318 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12320 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12321 _lt_dsymutil='~$DSYMUTIL $lib || :'
12328 for ac_header in dlfcn.h
12330 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12332 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12333 cat >>confdefs.h <<_ACEOF
12334 #define HAVE_DLFCN_H 1
12344 func_stripname_cnf ()
12347 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12348 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12350 } # func_stripname_cnf
12357 enable_win32_dll=yes
12360 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12361 if test -n "$ac_tool_prefix"; then
12362 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12363 set dummy ${ac_tool_prefix}as; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_prog_AS+:} false; then :
12367 $as_echo_n "(cached) " >&6
12369 if test -n "$AS"; then
12370 ac_cv_prog_AS="$AS" # Let the user override the test.
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373 for as_dir in $PATH
12376 test -z "$as_dir" && as_dir=.
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379 ac_cv_prog_AS="${ac_tool_prefix}as"
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 if test -n "$AS"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12392 $as_echo "$AS" >&6; }
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12400 if test -z "$ac_cv_prog_AS"; then
12402 # Extract the first word of "as", so it can be a program name with args.
12403 set dummy as; ac_word=$2
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405 $as_echo_n "checking for $ac_word... " >&6; }
12406 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12407 $as_echo_n "(cached) " >&6
12409 if test -n "$ac_ct_AS"; then
12410 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 for as_dir in $PATH
12416 test -z "$as_dir" && as_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12419 ac_cv_prog_ac_ct_AS="as"
12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12429 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12430 if test -n "$ac_ct_AS"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12432 $as_echo "$ac_ct_AS" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435 $as_echo "no" >&6; }
12438 if test "x$ac_ct_AS" = x; then
12441 case $cross_compiling:$ac_tool_warned in
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12445 ac_tool_warned=yes ;;
12450 AS="$ac_cv_prog_AS"
12453 if test -n "$ac_tool_prefix"; then
12454 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12455 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_prog_DLLTOOL+:} false; then :
12459 $as_echo_n "(cached) " >&6
12461 if test -n "$DLLTOOL"; then
12462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 DLLTOOL=$ac_cv_prog_DLLTOOL
12482 if test -n "$DLLTOOL"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12484 $as_echo "$DLLTOOL" >&6; }
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12492 if test -z "$ac_cv_prog_DLLTOOL"; then
12493 ac_ct_DLLTOOL=$DLLTOOL
12494 # Extract the first word of "dlltool", so it can be a program name with args.
12495 set dummy dlltool; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12499 $as_echo_n "(cached) " >&6
12501 if test -n "$ac_ct_DLLTOOL"; then
12502 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12522 if test -n "$ac_ct_DLLTOOL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12524 $as_echo "$ac_ct_DLLTOOL" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12530 if test "x$ac_ct_DLLTOOL" = x; then
12533 case $cross_compiling:$ac_tool_warned in
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12537 ac_tool_warned=yes ;;
12539 DLLTOOL=$ac_ct_DLLTOOL
12542 DLLTOOL="$ac_cv_prog_DLLTOOL"
12545 if test -n "$ac_tool_prefix"; then
12546 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12547 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12549 $as_echo_n "checking for $ac_word... " >&6; }
12550 if ${ac_cv_prog_OBJDUMP+:} false; then :
12551 $as_echo_n "(cached) " >&6
12553 if test -n "$OBJDUMP"; then
12554 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12557 for as_dir in $PATH
12560 test -z "$as_dir" && as_dir=.
12561 for ac_exec_ext in '' $ac_executable_extensions; do
12562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12563 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 OBJDUMP=$ac_cv_prog_OBJDUMP
12574 if test -n "$OBJDUMP"; then
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12576 $as_echo "$OBJDUMP" >&6; }
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12579 $as_echo "no" >&6; }
12584 if test -z "$ac_cv_prog_OBJDUMP"; then
12585 ac_ct_OBJDUMP=$OBJDUMP
12586 # Extract the first word of "objdump", so it can be a program name with args.
12587 set dummy objdump; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12591 $as_echo_n "(cached) " >&6
12593 if test -n "$ac_ct_OBJDUMP"; then
12594 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12614 if test -n "$ac_ct_OBJDUMP"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12616 $as_echo "$ac_ct_OBJDUMP" >&6; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12622 if test "x$ac_ct_OBJDUMP" = x; then
12625 case $cross_compiling:$ac_tool_warned in
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12629 ac_tool_warned=yes ;;
12631 OBJDUMP=$ac_ct_OBJDUMP
12634 OBJDUMP="$ac_cv_prog_OBJDUMP"
12640 test -z "$AS" && AS=as
12646 test -z "$DLLTOOL" && DLLTOOL=dlltool
12652 test -z "$OBJDUMP" && OBJDUMP=objdump
12662 # Check whether --enable-shared was given.
12663 if test "${enable_shared+set}" = set; then :
12664 enableval=$enable_shared; p=${PACKAGE-default}
12666 yes) enable_shared=yes ;;
12667 no) enable_shared=no ;;
12670 # Look at the argument we got. We use all the common list separators.
12671 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12672 for pkg in $enableval; do
12674 if test "X$pkg" = "X$p"; then
12693 # Check whether --enable-static was given.
12694 if test "${enable_static+set}" = set; then :
12695 enableval=$enable_static; p=${PACKAGE-default}
12697 yes) enable_static=yes ;;
12698 no) enable_static=no ;;
12701 # Look at the argument we got. We use all the common list separators.
12702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12703 for pkg in $enableval; do
12705 if test "X$pkg" = "X$p"; then
12725 # Check whether --with-pic was given.
12726 if test "${with_pic+set}" = set; then :
12727 withval=$with_pic; pic_mode="$withval"
12733 test -z "$pic_mode" && pic_mode=default
12741 # Check whether --enable-fast-install was given.
12742 if test "${enable_fast_install+set}" = set; then :
12743 enableval=$enable_fast_install; p=${PACKAGE-default}
12745 yes) enable_fast_install=yes ;;
12746 no) enable_fast_install=no ;;
12748 enable_fast_install=no
12749 # Look at the argument we got. We use all the common list separators.
12750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12751 for pkg in $enableval; do
12753 if test "X$pkg" = "X$p"; then
12754 enable_fast_install=yes
12761 enable_fast_install=yes
12774 # This can be used to rebuild libtool when needed
12775 LIBTOOL_DEPS="$ltmain"
12777 # Always use our own libtool.
12778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12805 test -z "$LN_S" && LN_S="ln -s"
12820 if test -n "${ZSH_VERSION+set}" ; then
12821 setopt NO_GLOB_SUBST
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12825 $as_echo_n "checking for objdir... " >&6; }
12826 if ${lt_cv_objdir+:} false; then :
12827 $as_echo_n "(cached) " >&6
12829 rm -f .libs 2>/dev/null
12830 mkdir .libs 2>/dev/null
12831 if test -d .libs; then
12834 # MS-DOS does not allow filenames that begin with a dot.
12837 rmdir .libs 2>/dev/null
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12840 $as_echo "$lt_cv_objdir" >&6; }
12841 objdir=$lt_cv_objdir
12847 cat >>confdefs.h <<_ACEOF
12848 #define LT_OBJDIR "$lt_cv_objdir/"
12856 # AIX sometimes has problems with the GCC collect2 program. For some
12857 # reason, if we set the COLLECT_NAMES environment variable, the problems
12858 # vanish in a puff of smoke.
12859 if test "X${COLLECT_NAMES+set}" != Xset; then
12861 export COLLECT_NAMES
12866 # Global variables:
12868 can_build_shared=yes
12870 # All known linkers require a `.a' archive for static linking (except MSVC,
12871 # which needs '.lib').
12874 with_gnu_ld="$lt_cv_prog_gnu_ld"
12877 old_CFLAGS="$CFLAGS"
12879 # Set sane defaults for various variables
12880 test -z "$CC" && CC=cc
12881 test -z "$LTCC" && LTCC=$CC
12882 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12883 test -z "$LD" && LD=ld
12884 test -z "$ac_objext" && ac_objext=o
12886 for cc_temp in $compiler""; do
12888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12894 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12897 # Only perform the check for file, if the check method requires it
12898 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12899 case $deplibs_check_method in
12901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12903 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12904 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12905 $as_echo_n "(cached) " >&6
12909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12912 lt_save_MAGIC_CMD="$MAGIC_CMD"
12913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12915 for ac_dir in $ac_dummy; do
12917 test -z "$ac_dir" && ac_dir=.
12918 if test -f $ac_dir/${ac_tool_prefix}file; then
12919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12920 if test -n "$file_magic_test_file"; then
12921 case $deplibs_check_method in
12923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12926 $EGREP "$file_magic_regex" > /dev/null; then
12931 *** Warning: the command libtool uses to detect shared libraries,
12932 *** $file_magic_cmd, produces output that libtool cannot recognize.
12933 *** The result is that libtool may fail to recognize shared libraries
12934 *** as such. This will affect the creation of libtool libraries that
12935 *** depend on shared libraries, but programs linked with such libtool
12936 *** libraries will work regardless of this problem. Nevertheless, you
12937 *** may want to report the problem to your system manager and/or to
12938 *** bug-libtool@gnu.org
12948 MAGIC_CMD="$lt_save_MAGIC_CMD"
12953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12954 if test -n "$MAGIC_CMD"; then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12956 $as_echo "$MAGIC_CMD" >&6; }
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12966 if test -z "$lt_cv_path_MAGIC_CMD"; then
12967 if test -n "$ac_tool_prefix"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12969 $as_echo_n "checking for file... " >&6; }
12970 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12971 $as_echo_n "(cached) " >&6
12975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12978 lt_save_MAGIC_CMD="$MAGIC_CMD"
12979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12981 for ac_dir in $ac_dummy; do
12983 test -z "$ac_dir" && ac_dir=.
12984 if test -f $ac_dir/file; then
12985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12986 if test -n "$file_magic_test_file"; then
12987 case $deplibs_check_method in
12989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12992 $EGREP "$file_magic_regex" > /dev/null; then
12997 *** Warning: the command libtool uses to detect shared libraries,
12998 *** $file_magic_cmd, produces output that libtool cannot recognize.
12999 *** The result is that libtool may fail to recognize shared libraries
13000 *** as such. This will affect the creation of libtool libraries that
13001 *** depend on shared libraries, but programs linked with such libtool
13002 *** libraries will work regardless of this problem. Nevertheless, you
13003 *** may want to report the problem to your system manager and/or to
13004 *** bug-libtool@gnu.org
13014 MAGIC_CMD="$lt_save_MAGIC_CMD"
13019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13020 if test -n "$MAGIC_CMD"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13022 $as_echo "$MAGIC_CMD" >&6; }
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13038 # Use C for the default configuration in the libtool script
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13048 # Source file extension for C test sources.
13051 # Object file extension for compiled C test sources.
13055 # Code to be used in simple compile tests
13056 lt_simple_compile_test_code="int some_variable = 0;"
13058 # Code to be used in simple link tests
13059 lt_simple_link_test_code='int main(){return(0);}'
13067 # If no C compiler was specified, use CC.
13070 # If no C compiler flags were specified, use CFLAGS.
13071 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13073 # Allow CC to be a program name with arguments.
13076 # Save the default compiler, since it gets overwritten when the other
13077 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13078 compiler_DEFAULT=$CC
13080 # save warnings/boilerplate of simple test code
13081 ac_outfile=conftest.$ac_objext
13082 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13084 _lt_compiler_boilerplate=`cat conftest.err`
13087 ac_outfile=conftest.$ac_objext
13088 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13090 _lt_linker_boilerplate=`cat conftest.err`
13095 ## There is no encapsulation within the following macros, do not change
13096 ## the running order or otherwise move them around unless you know exactly
13097 ## what you are doing...
13098 if test -n "$compiler"; then
13100 lt_prog_compiler_no_builtin_flag=
13102 if test "$GCC" = yes; then
13103 case $cc_basename in
13105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13111 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13112 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13113 $as_echo_n "(cached) " >&6
13115 lt_cv_prog_compiler_rtti_exceptions=no
13116 ac_outfile=conftest.$ac_objext
13117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13118 lt_compiler_flag="-fno-rtti -fno-exceptions"
13119 # Insert the option either (1) after the last *FLAGS variable, or
13120 # (2) before a word containing "conftest.", or (3) at the end.
13121 # Note that $ac_compile itself does not contain backslashes and begins
13122 # with a dollar sign (not a hyphen), so the echo should work correctly.
13123 # The option is referenced via a variable to avoid confusing sed.
13124 lt_compile=`echo "$ac_compile" | $SED \
13125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13127 -e 's:$: $lt_compiler_flag:'`
13128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13129 (eval "$lt_compile" 2>conftest.err)
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 if (exit $ac_status) && test -s "$ac_outfile"; then
13134 # The compiler can only warn and ignore the option if not recognized
13135 # So say no if there are warnings other than the usual output.
13136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13139 lt_cv_prog_compiler_rtti_exceptions=yes
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13146 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13161 lt_prog_compiler_wl=
13162 lt_prog_compiler_pic=
13163 lt_prog_compiler_static=
13166 if test "$GCC" = yes; then
13167 lt_prog_compiler_wl='-Wl,'
13168 lt_prog_compiler_static='-static'
13172 # All AIX code is PIC.
13173 if test "$host_cpu" = ia64; then
13174 # AIX 5 now supports IA64 processor
13175 lt_prog_compiler_static='-Bstatic'
13182 # see comment about AmigaOS4 .so support
13183 lt_prog_compiler_pic='-fPIC'
13186 # FIXME: we need at least 68020 code to build shared libraries, but
13187 # adding the `-m68020' flag to GCC prevents building anything better,
13189 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13194 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13195 # PIC is the default for these OSes.
13198 mingw* | cygwin* | pw32* | os2* | cegcc*)
13199 # This hack is so that the source file can tell whether it is being
13200 # built for inclusion in a dll (and should export symbols for example).
13201 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13202 # (--disable-auto-import) libraries
13203 lt_prog_compiler_pic='-DDLL_EXPORT'
13206 darwin* | rhapsody*)
13207 # PIC is the default on this platform
13208 # Common symbols not allowed in MH_DYLIB files
13209 lt_prog_compiler_pic='-fno-common'
13213 # PIC is the default for Haiku.
13214 # The "-static" flag exists, but is broken.
13215 lt_prog_compiler_static=
13219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13221 # sets the default TLS model and affects inlining.
13227 lt_prog_compiler_pic='-fPIC'
13233 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13234 # Instead, we relocate shared libraries at runtime.
13238 # Just because we use GCC doesn't mean we suddenly get shared libraries
13239 # on systems that don't support them.
13240 lt_prog_compiler_can_build_shared=no
13245 # QNX uses GNU C++, but need to define -shared option too, otherwise
13246 # it will coredump.
13247 lt_prog_compiler_pic='-fPIC -shared'
13251 if test -d /usr/nec; then
13252 lt_prog_compiler_pic=-Kconform_pic
13257 lt_prog_compiler_pic='-fPIC'
13261 case $cc_basename in
13262 nvcc*) # Cuda Compiler Driver 2.2
13263 lt_prog_compiler_wl='-Xlinker '
13264 lt_prog_compiler_pic='-Xcompiler -fPIC'
13268 # PORTME Check for flag to pass linker flags through the system compiler.
13271 lt_prog_compiler_wl='-Wl,'
13272 if test "$host_cpu" = ia64; then
13273 # AIX 5 now supports IA64 processor
13274 lt_prog_compiler_static='-Bstatic'
13276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13280 mingw* | cygwin* | pw32* | os2* | cegcc*)
13281 # This hack is so that the source file can tell whether it is being
13282 # built for inclusion in a dll (and should export symbols for example).
13283 lt_prog_compiler_pic='-DDLL_EXPORT'
13286 hpux9* | hpux10* | hpux11*)
13287 lt_prog_compiler_wl='-Wl,'
13288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13289 # not for PA HP-UX.
13295 lt_prog_compiler_pic='+Z'
13298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13299 lt_prog_compiler_static='${wl}-a ${wl}archive'
13302 irix5* | irix6* | nonstopux*)
13303 lt_prog_compiler_wl='-Wl,'
13304 # PIC (with -KPIC) is the default.
13305 lt_prog_compiler_static='-non_shared'
13308 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13309 case $cc_basename in
13310 # old Intel for x86_64 which still supported -KPIC.
13312 lt_prog_compiler_wl='-Wl,'
13313 lt_prog_compiler_pic='-KPIC'
13314 lt_prog_compiler_static='-static'
13316 # icc used to be incompatible with GCC.
13317 # ICC 10 doesn't accept -KPIC any more.
13319 lt_prog_compiler_wl='-Wl,'
13320 lt_prog_compiler_pic='-fPIC'
13321 lt_prog_compiler_static='-static'
13323 # Lahey Fortran 8.1.
13325 lt_prog_compiler_wl='-Wl,'
13326 lt_prog_compiler_pic='--shared'
13327 lt_prog_compiler_static='--static'
13330 # NAG Fortran compiler
13331 lt_prog_compiler_wl='-Wl,-Wl,,'
13332 lt_prog_compiler_pic='-PIC'
13333 lt_prog_compiler_static='-Bstatic'
13335 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13336 # Portland Group compilers (*not* the Pentium gcc compiler,
13337 # which looks to be a dead project)
13338 lt_prog_compiler_wl='-Wl,'
13339 lt_prog_compiler_pic='-fpic'
13340 lt_prog_compiler_static='-Bstatic'
13343 lt_prog_compiler_wl='-Wl,'
13344 # All Alpha code is PIC.
13345 lt_prog_compiler_static='-non_shared'
13347 xl* | bgxl* | bgf* | mpixl*)
13348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13349 lt_prog_compiler_wl='-Wl,'
13350 lt_prog_compiler_pic='-qpic'
13351 lt_prog_compiler_static='-qstaticlink'
13354 case `$CC -V 2>&1 | sed 5q` in
13355 *Sun\ F* | *Sun*Fortran*)
13356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13357 lt_prog_compiler_pic='-KPIC'
13358 lt_prog_compiler_static='-Bstatic'
13359 lt_prog_compiler_wl=''
13363 lt_prog_compiler_pic='-KPIC'
13364 lt_prog_compiler_static='-Bstatic'
13365 lt_prog_compiler_wl='-Wl,'
13373 lt_prog_compiler_pic='-KPIC'
13374 lt_prog_compiler_static='-Bstatic'
13378 # QNX uses GNU C++, but need to define -shared option too, otherwise
13379 # it will coredump.
13380 lt_prog_compiler_pic='-fPIC -shared'
13383 osf3* | osf4* | osf5*)
13384 lt_prog_compiler_wl='-Wl,'
13385 # All OSF/1 code is PIC.
13386 lt_prog_compiler_static='-non_shared'
13390 lt_prog_compiler_static='-non_shared'
13394 lt_prog_compiler_pic='-KPIC'
13395 lt_prog_compiler_static='-Bstatic'
13396 case $cc_basename in
13397 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13398 lt_prog_compiler_wl='-Qoption ld ';;
13400 lt_prog_compiler_wl='-Wl,';;
13405 lt_prog_compiler_wl='-Qoption ld '
13406 lt_prog_compiler_pic='-PIC'
13407 lt_prog_compiler_static='-Bstatic'
13410 sysv4 | sysv4.2uw2* | sysv4.3*)
13411 lt_prog_compiler_wl='-Wl,'
13412 lt_prog_compiler_pic='-KPIC'
13413 lt_prog_compiler_static='-Bstatic'
13417 if test -d /usr/nec ;then
13418 lt_prog_compiler_pic='-Kconform_pic'
13419 lt_prog_compiler_static='-Bstatic'
13423 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13424 lt_prog_compiler_wl='-Wl,'
13425 lt_prog_compiler_pic='-KPIC'
13426 lt_prog_compiler_static='-Bstatic'
13430 lt_prog_compiler_wl='-Wl,'
13431 lt_prog_compiler_can_build_shared=no
13435 lt_prog_compiler_pic='-pic'
13436 lt_prog_compiler_static='-Bstatic'
13440 lt_prog_compiler_can_build_shared=no
13446 # For platforms which do not support PIC, -DPIC is meaningless:
13448 lt_prog_compiler_pic=
13451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13456 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13457 if ${lt_cv_prog_compiler_pic+:} false; then :
13458 $as_echo_n "(cached) " >&6
13460 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13463 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13464 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13467 # Check to make sure the PIC flag actually works.
13469 if test -n "$lt_prog_compiler_pic"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13472 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13473 $as_echo_n "(cached) " >&6
13475 lt_cv_prog_compiler_pic_works=no
13476 ac_outfile=conftest.$ac_objext
13477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13479 # Insert the option either (1) after the last *FLAGS variable, or
13480 # (2) before a word containing "conftest.", or (3) at the end.
13481 # Note that $ac_compile itself does not contain backslashes and begins
13482 # with a dollar sign (not a hyphen), so the echo should work correctly.
13483 # The option is referenced via a variable to avoid confusing sed.
13484 lt_compile=`echo "$ac_compile" | $SED \
13485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13487 -e 's:$: $lt_compiler_flag:'`
13488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13489 (eval "$lt_compile" 2>conftest.err)
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 if (exit $ac_status) && test -s "$ac_outfile"; then
13494 # The compiler can only warn and ignore the option if not recognized
13495 # So say no if there are warnings other than the usual output.
13496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13499 lt_cv_prog_compiler_pic_works=yes
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13509 case $lt_prog_compiler_pic in
13511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13514 lt_prog_compiler_pic=
13515 lt_prog_compiler_can_build_shared=no
13531 # Check to make sure the static flag actually works.
13533 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13535 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13536 if ${lt_cv_prog_compiler_static_works+:} false; then :
13537 $as_echo_n "(cached) " >&6
13539 lt_cv_prog_compiler_static_works=no
13540 save_LDFLAGS="$LDFLAGS"
13541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13544 # The linker can only warn and ignore the option if not recognized
13545 # So say no if there are warnings
13546 if test -s conftest.err; then
13547 # Append any errors to the config.log.
13548 cat conftest.err 1>&5
13549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551 if diff conftest.exp conftest.er2 >/dev/null; then
13552 lt_cv_prog_compiler_static_works=yes
13555 lt_cv_prog_compiler_static_works=yes
13559 LDFLAGS="$save_LDFLAGS"
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13563 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13565 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13568 lt_prog_compiler_static=
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13579 if ${lt_cv_prog_compiler_c_o+:} false; then :
13580 $as_echo_n "(cached) " >&6
13582 lt_cv_prog_compiler_c_o=no
13583 $RM -r conftest 2>/dev/null
13587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13589 lt_compiler_flag="-o out/conftest2.$ac_objext"
13590 # Insert the option either (1) after the last *FLAGS variable, or
13591 # (2) before a word containing "conftest.", or (3) at the end.
13592 # Note that $ac_compile itself does not contain backslashes and begins
13593 # with a dollar sign (not a hyphen), so the echo should work correctly.
13594 lt_compile=`echo "$ac_compile" | $SED \
13595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13597 -e 's:$: $lt_compiler_flag:'`
13598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13599 (eval "$lt_compile" 2>out/conftest.err)
13601 cat out/conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13605 # The compiler can only warn and ignore the option if not recognized
13606 # So say no if there are warnings
13607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13610 lt_cv_prog_compiler_c_o=yes
13615 # SGI C++ compiler will create directory out/ii_files/ for
13616 # template instantiation
13617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13618 $RM out/* && rmdir out
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13625 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13634 if ${lt_cv_prog_compiler_c_o+:} false; then :
13635 $as_echo_n "(cached) " >&6
13637 lt_cv_prog_compiler_c_o=no
13638 $RM -r conftest 2>/dev/null
13642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13644 lt_compiler_flag="-o out/conftest2.$ac_objext"
13645 # Insert the option either (1) after the last *FLAGS variable, or
13646 # (2) before a word containing "conftest.", or (3) at the end.
13647 # Note that $ac_compile itself does not contain backslashes and begins
13648 # with a dollar sign (not a hyphen), so the echo should work correctly.
13649 lt_compile=`echo "$ac_compile" | $SED \
13650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13652 -e 's:$: $lt_compiler_flag:'`
13653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13654 (eval "$lt_compile" 2>out/conftest.err)
13656 cat out/conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13660 # The compiler can only warn and ignore the option if not recognized
13661 # So say no if there are warnings
13662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13665 lt_cv_prog_compiler_c_o=yes
13670 # SGI C++ compiler will create directory out/ii_files/ for
13671 # template instantiation
13672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13673 $RM out/* && rmdir out
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13680 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13685 hard_links="nottested"
13686 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13687 # do not overwrite the value of need_locks provided by the user
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13689 $as_echo_n "checking if we can lock with hard links... " >&6; }
13692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13694 ln conftest.a conftest.b 2>&5 || hard_links=no
13695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13697 $as_echo "$hard_links" >&6; }
13698 if test "$hard_links" = no; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13700 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13713 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13716 allow_undefined_flag=
13717 always_export_symbols=no
13719 archive_expsym_cmds=
13720 compiler_needs_object=no
13721 enable_shared_with_static_runtimes=no
13722 export_dynamic_flag_spec=
13723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13724 hardcode_automatic=no
13726 hardcode_direct_absolute=no
13727 hardcode_libdir_flag_spec=
13728 hardcode_libdir_flag_spec_ld=
13729 hardcode_libdir_separator=
13730 hardcode_minus_L=no
13731 hardcode_shlibpath_var=unsupported
13733 link_all_deplibs=unknown
13735 module_expsym_cmds=
13736 old_archive_from_new_cmds=
13737 old_archive_from_expsyms_cmds=
13738 thread_safe_flag_spec=
13739 whole_archive_flag_spec=
13740 # include_expsyms should be a list of space-separated symbols to be *always*
13741 # included in the symbol list
13743 # exclude_expsyms can be an extended regexp of symbols to exclude
13744 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13745 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13746 # as well as any symbol that contains `d'.
13747 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13748 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13749 # platforms (ab)use it in PIC code, but their linkers get confused if
13750 # the symbol is explicitly referenced. Since portable code cannot
13751 # rely on this symbol name, it's probably fine to never include it in
13752 # preloaded symbol tables.
13753 # Exclude shared library initialization/finalization symbols.
13754 extract_expsyms_cmds=
13757 cygwin* | mingw* | pw32* | cegcc*)
13758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13759 # When not using gcc, we currently assume that we are using
13760 # Microsoft Visual C++.
13761 if test "$GCC" != yes; then
13766 # we just hope/assume this is gcc and not c89 (= MSVC++)
13776 # On some targets, GNU ld is compatible enough with the native linker
13777 # that we're better off using the native interface for both.
13778 lt_use_gnu_ld_interface=no
13779 if test "$with_gnu_ld" = yes; then
13782 # The AIX port of GNU ld has always aspired to compatibility
13783 # with the native linker. However, as the warning in the GNU ld
13784 # block says, versions before 2.19.5* couldn't really create working
13785 # shared libraries, regardless of the interface used.
13786 case `$LD -v 2>&1` in
13787 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13788 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13789 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13791 lt_use_gnu_ld_interface=yes
13796 lt_use_gnu_ld_interface=yes
13801 if test "$lt_use_gnu_ld_interface" = yes; then
13802 # If archive_cmds runs LD, not CC, wlarc should be empty
13805 # Set some defaults for GNU ld with shared library support. These
13806 # are reset later if shared libraries are not supported. Putting them
13807 # here allows them to be overridden if necessary.
13808 runpath_var=LD_RUN_PATH
13809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13810 export_dynamic_flag_spec='${wl}--export-dynamic'
13811 # ancient GNU ld didn't support --whole-archive et. al.
13812 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13813 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13815 whole_archive_flag_spec=
13817 supports_anon_versioning=no
13818 case `$LD -v 2>&1` in
13819 *GNU\ gold*) supports_anon_versioning=yes ;;
13820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13823 *\ 2.11.*) ;; # other 2.11 versions
13824 *) supports_anon_versioning=yes ;;
13827 # See if GNU ld supports shared libraries.
13830 # On AIX/PPC, the GNU linker is very broken
13831 if test "$host_cpu" != ia64; then
13835 *** Warning: the GNU linker, at least up to release 2.19, is reported
13836 *** to be unable to reliably create shared libraries on AIX.
13837 *** Therefore, libtool is disabling shared libraries support. If you
13838 *** really care for shared libraries, you may want to install binutils
13839 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13840 *** You will then need to restart the configuration process.
13849 # see comment about AmigaOS4 .so support
13850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851 archive_expsym_cmds=''
13854 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)'
13855 hardcode_libdir_flag_spec='-L$libdir'
13856 hardcode_minus_L=yes
13862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13863 allow_undefined_flag=unsupported
13864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13865 # support --undefined. This deserves some investigation. FIXME
13866 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13872 cygwin* | mingw* | pw32* | cegcc*)
13873 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13874 # as there is no search path for DLLs.
13875 hardcode_libdir_flag_spec='-L$libdir'
13876 export_dynamic_flag_spec='${wl}--export-all-symbols'
13877 allow_undefined_flag=unsupported
13878 always_export_symbols=no
13879 enable_shared_with_static_runtimes=yes
13880 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'
13881 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13885 # If the export-symbols file already is a .def file (1st line
13886 # is EXPORTS), use it as is; otherwise, prepend...
13887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13888 cp $export_symbols $output_objdir/$soname.def;
13890 echo EXPORTS > $output_objdir/$soname.def;
13891 cat $export_symbols >> $output_objdir/$soname.def;
13893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 link_all_deplibs=yes
13906 hardcode_shlibpath_var=no
13907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13908 export_dynamic_flag_spec='${wl}-E'
13909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13910 # Instead, shared libraries are loaded at an image base (0x10000000 by
13911 # default) and relocated if they conflict, which is a slow very memory
13912 # consuming and fragmenting process. To avoid this, we pick a random,
13913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13916 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'
13919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13921 if test "$host_os" = linux-dietlibc; then
13922 case $cc_basename in
13923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13927 && test "$tmp_diet" = no
13929 tmp_addflag=' $pic_flag'
13930 tmp_sharedflag='-shared'
13931 case $cc_basename,$host_cpu in
13932 pgcc*) # Portland Group C compiler
13933 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'
13934 tmp_addflag=' $pic_flag'
13936 pgf77* | pgf90* | pgf95* | pgfortran*)
13937 # Portland Group f77 and f90 compilers
13938 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'
13939 tmp_addflag=' $pic_flag -Mnomain' ;;
13940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13941 tmp_addflag=' -i_dynamic' ;;
13942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13943 tmp_addflag=' -i_dynamic -nofor_main' ;;
13944 ifc* | ifort*) # Intel Fortran compiler
13945 tmp_addflag=' -nofor_main' ;;
13946 lf95*) # Lahey Fortran 8.1
13947 whole_archive_flag_spec=
13948 tmp_sharedflag='--shared' ;;
13949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13950 tmp_sharedflag='-qmkshrobj'
13952 nvcc*) # Cuda Compiler Driver 2.2
13953 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'
13954 compiler_needs_object=yes
13957 case `$CC -V 2>&1 | sed 5q` in
13958 *Sun\ C*) # Sun C 5.9
13959 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'
13960 compiler_needs_object=yes
13961 tmp_sharedflag='-G' ;;
13962 *Sun\ F*) # Sun Fortran 8.3
13963 tmp_sharedflag='-G' ;;
13965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13967 if test "x$supports_anon_versioning" = xyes; then
13968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13970 echo "local: *; };" >> $output_objdir/$libname.ver~
13971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13974 case $cc_basename in
13975 xlf* | bgf* | bgxlf* | mpixlf*)
13976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13978 hardcode_libdir_flag_spec=
13979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13980 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13981 if test "x$supports_anon_versioning" = xyes; then
13982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13984 echo "local: *; };" >> $output_objdir/$libname.ver~
13985 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14010 *** create shared libraries on Solaris systems. Therefore, libtool
14011 *** is disabling shared libraries support. We urge you to upgrade GNU
14012 *** binutils to release 2.9.1 or newer. Another option is to modify
14013 *** your PATH or compiler configuration so that the native linker is
14014 *** used, and then restart.
14017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14018 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14026 case `$LD -v 2>&1` in
14027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14032 *** reliably create shared libraries on SCO systems. Therefore, libtool
14033 *** is disabling shared libraries support. We urge you to upgrade GNU
14034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14035 *** your PATH or compiler configuration so that the native linker is
14036 *** used, and then restart.
14041 # For security reasons, it is highly recommended that you always
14042 # use absolute paths for naming shared libraries, and exclude the
14043 # DT_RUNPATH tag from executables and libraries. But doing so
14044 # requires that you compile everything twice, which is a pain.
14045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14059 hardcode_direct=yes
14060 hardcode_shlibpath_var=no
14064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14073 if test "$ld_shlibs" = no; then
14075 hardcode_libdir_flag_spec=
14076 export_dynamic_flag_spec=
14077 whole_archive_flag_spec=
14080 # PORTME fill in a description of your system's linker (not GNU ld)
14083 allow_undefined_flag=unsupported
14084 always_export_symbols=yes
14085 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'
14086 # Note: this linker hardcodes the directories in LIBPATH if there
14087 # are no directories specified by -L.
14088 hardcode_minus_L=yes
14089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14090 # Neither direct hardcoding nor static linking is supported with a
14092 hardcode_direct=unsupported
14097 if test "$host_cpu" = ia64; then
14098 # On IA64, the linker does run time linking by default, so we don't
14099 # have to do anything special.
14100 aix_use_runtimelinking=no
14101 exp_sym_flag='-Bexport'
14104 # If we're using GNU nm, then we don't want the "-C" option.
14105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14106 # Also, AIX nm treats weak defined symbols like other global
14107 # defined symbols, whereas GNU nm marks them as "W".
14108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14109 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'
14111 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'
14113 aix_use_runtimelinking=no
14115 # Test if we are trying to use run time linking or normal
14116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14117 # need to do runtime linking.
14118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14119 for ld_flag in $LDFLAGS; do
14120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14121 aix_use_runtimelinking=yes
14128 exp_sym_flag='-bexport'
14129 no_entry_flag='-bnoentry'
14132 # When large executables or shared objects are built, AIX ld can
14133 # have problems creating the table of contents. If linking a library
14134 # or program results in "error TOC overflow" add -mminimal-toc to
14135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14139 hardcode_direct=yes
14140 hardcode_direct_absolute=yes
14141 hardcode_libdir_separator=':'
14142 link_all_deplibs=yes
14143 file_list_spec='${wl}-f,'
14145 if test "$GCC" = yes; then
14146 case $host_os in aix4.[012]|aix4.[012].*)
14147 # We only want to do this on AIX 4.2 and lower, the check
14148 # below for broken collect2 doesn't work under 4.3+
14149 collect2name=`${CC} -print-prog-name=collect2`
14150 if test -f "$collect2name" &&
14151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14153 # We have reworked collect2
14156 # We have old collect2
14157 hardcode_direct=unsupported
14158 # It fails to find uninstalled libraries when the uninstalled
14159 # path is not listed in the libpath. Setting hardcode_minus_L
14160 # to unsupported forces relinking
14161 hardcode_minus_L=yes
14162 hardcode_libdir_flag_spec='-L$libdir'
14163 hardcode_libdir_separator=
14167 shared_flag='-shared'
14168 if test "$aix_use_runtimelinking" = yes; then
14169 shared_flag="$shared_flag "'${wl}-G'
14173 if test "$host_cpu" = ia64; then
14174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14175 # chokes on -Wl,-G. The following line is correct:
14178 if test "$aix_use_runtimelinking" = yes; then
14179 shared_flag='${wl}-G'
14181 shared_flag='${wl}-bM:SRE'
14186 export_dynamic_flag_spec='${wl}-bexpall'
14187 # It seems that -bexpall does not export symbols beginning with
14188 # underscore (_), so it is better to generate a list of symbols to export.
14189 always_export_symbols=yes
14190 if test "$aix_use_runtimelinking" = yes; then
14191 # Warning - without using the other runtime loading flags (-brtl),
14192 # -berok will link without error, but may produce a broken library.
14193 allow_undefined_flag='-berok'
14194 # Determine the default libpath from the value encoded in an
14195 # empty executable.
14196 if test "${lt_cv_aix_libpath+set}" = set; then
14197 aix_libpath=$lt_cv_aix_libpath
14199 if ${lt_cv_aix_libpath_+:} false; then :
14200 $as_echo_n "(cached) " >&6
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14213 if ac_fn_c_try_link "$LINENO"; then :
14215 lt_aix_libpath_sed='
14216 /Import File Strings/,/^$/ {
14218 s/^0 *\([^ ]*\) *$/\1/
14222 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14223 # Check for a 64-bit object if we didn't find anything.
14224 if test -z "$lt_cv_aix_libpath_"; then
14225 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14228 rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14230 if test -z "$lt_cv_aix_libpath_"; then
14231 lt_cv_aix_libpath_="/usr/lib:/lib"
14236 aix_libpath=$lt_cv_aix_libpath_
14239 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14240 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"
14242 if test "$host_cpu" = ia64; then
14243 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14244 allow_undefined_flag="-z nodefs"
14245 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"
14247 # Determine the default libpath from the value encoded in an
14248 # empty executable.
14249 if test "${lt_cv_aix_libpath+set}" = set; then
14250 aix_libpath=$lt_cv_aix_libpath
14252 if ${lt_cv_aix_libpath_+:} false; then :
14253 $as_echo_n "(cached) " >&6
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14266 if ac_fn_c_try_link "$LINENO"; then :
14268 lt_aix_libpath_sed='
14269 /Import File Strings/,/^$/ {
14271 s/^0 *\([^ ]*\) *$/\1/
14275 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276 # Check for a 64-bit object if we didn't find anything.
14277 if test -z "$lt_cv_aix_libpath_"; then
14278 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 if test -z "$lt_cv_aix_libpath_"; then
14284 lt_cv_aix_libpath_="/usr/lib:/lib"
14289 aix_libpath=$lt_cv_aix_libpath_
14292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14293 # Warning - without using the other run time loading flags,
14294 # -berok will link without error, but may produce a broken library.
14295 no_undefined_flag=' ${wl}-bernotok'
14296 allow_undefined_flag=' ${wl}-berok'
14297 if test "$with_gnu_ld" = yes; then
14298 # We only use this code for GNU lds that support --whole-archive.
14299 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14301 # Exported symbols can be pulled into shared objects from archives
14302 whole_archive_flag_spec='$convenience'
14304 archive_cmds_need_lc=yes
14305 # This is similar to how AIX traditionally builds its shared libraries.
14306 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'
14314 # see comment about AmigaOS4 .so support
14315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14316 archive_expsym_cmds=''
14319 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)'
14320 hardcode_libdir_flag_spec='-L$libdir'
14321 hardcode_minus_L=yes
14327 export_dynamic_flag_spec=-rdynamic
14330 cygwin* | mingw* | pw32* | cegcc*)
14331 # When not using gcc, we currently assume that we are using
14332 # Microsoft Visual C++.
14333 # hardcode_libdir_flag_spec is actually meaningless, as there is
14334 # no search path for DLLs.
14335 case $cc_basename in
14338 hardcode_libdir_flag_spec=' '
14339 allow_undefined_flag=unsupported
14340 always_export_symbols=yes
14342 # Tell ltmain to make .lib files, not .a files.
14344 # Tell ltmain to make .dll files, not .so files.
14346 # FIXME: Setting linknames here is a bad hack.
14347 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14348 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14349 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14351 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14353 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14355 # The linker will not automatically build a static lib if we build a DLL.
14356 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14357 enable_shared_with_static_runtimes=yes
14358 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14360 old_postinstall_cmds='chmod 644 $oldlib'
14361 postlink_cmds='lt_outputfile="@OUTPUT@"~
14362 lt_tool_outputfile="@TOOL_OUTPUT@"~
14363 case $lt_outputfile in
14366 lt_outputfile="$lt_outputfile.exe"
14367 lt_tool_outputfile="$lt_tool_outputfile.exe"
14370 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14371 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14372 $RM "$lt_outputfile.manifest";
14376 # Assume MSVC wrapper
14377 hardcode_libdir_flag_spec=' '
14378 allow_undefined_flag=unsupported
14379 # Tell ltmain to make .lib files, not .a files.
14381 # Tell ltmain to make .dll files, not .so files.
14383 # FIXME: Setting linknames here is a bad hack.
14384 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14385 # The linker will automatically build a .lib file if we build a DLL.
14386 old_archive_from_new_cmds='true'
14387 # FIXME: Should let the user specify the lib program.
14388 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14389 enable_shared_with_static_runtimes=yes
14394 darwin* | rhapsody*)
14397 archive_cmds_need_lc=no
14399 hardcode_automatic=yes
14400 hardcode_shlibpath_var=unsupported
14401 if test "$lt_cv_ld_force_load" = "yes"; then
14402 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\"`'
14404 whole_archive_flag_spec=''
14406 link_all_deplibs=yes
14407 allow_undefined_flag="$_lt_dar_allow_undefined"
14408 case $cc_basename in
14409 ifort*) _lt_dar_can_shared=yes ;;
14410 *) _lt_dar_can_shared=$GCC ;;
14412 if test "$_lt_dar_can_shared" = "yes"; then
14413 output_verbose_link_cmd=func_echo_all
14414 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14415 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14416 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}"
14417 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}"
14426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14427 hardcode_libdir_flag_spec='-L$libdir'
14428 hardcode_shlibpath_var=no
14435 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14436 # support. Future versions do this automatically, but an explicit c++rt0.o
14437 # does not break anything, and helps significantly (at the cost of a little
14440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14441 hardcode_libdir_flag_spec='-R$libdir'
14442 hardcode_direct=yes
14443 hardcode_shlibpath_var=no
14446 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_direct=yes
14450 hardcode_minus_L=yes
14451 hardcode_shlibpath_var=no
14454 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14455 freebsd* | dragonfly*)
14456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14457 hardcode_libdir_flag_spec='-R$libdir'
14458 hardcode_direct=yes
14459 hardcode_shlibpath_var=no
14463 if test "$GCC" = yes; then
14464 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'
14466 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'
14468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14469 hardcode_libdir_separator=:
14470 hardcode_direct=yes
14472 # hardcode_minus_L: Not really in the search PATH,
14473 # but as the default location of the library.
14474 hardcode_minus_L=yes
14475 export_dynamic_flag_spec='${wl}-E'
14479 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14480 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14482 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14484 if test "$with_gnu_ld" = no; then
14485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14486 hardcode_libdir_flag_spec_ld='+b $libdir'
14487 hardcode_libdir_separator=:
14488 hardcode_direct=yes
14489 hardcode_direct_absolute=yes
14490 export_dynamic_flag_spec='${wl}-E'
14491 # hardcode_minus_L: Not really in the search PATH,
14492 # but as the default location of the library.
14493 hardcode_minus_L=yes
14498 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14501 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14504 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14507 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14513 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14520 # Older versions of the 11.00 compiler do not understand -b yet
14521 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14523 $as_echo_n "checking if $CC understands -b... " >&6; }
14524 if ${lt_cv_prog_compiler__b+:} false; then :
14525 $as_echo_n "(cached) " >&6
14527 lt_cv_prog_compiler__b=no
14528 save_LDFLAGS="$LDFLAGS"
14529 LDFLAGS="$LDFLAGS -b"
14530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14532 # The linker can only warn and ignore the option if not recognized
14533 # So say no if there are warnings
14534 if test -s conftest.err; then
14535 # Append any errors to the config.log.
14536 cat conftest.err 1>&5
14537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14539 if diff conftest.exp conftest.er2 >/dev/null; then
14540 lt_cv_prog_compiler__b=yes
14543 lt_cv_prog_compiler__b=yes
14547 LDFLAGS="$save_LDFLAGS"
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14551 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14553 if test x"$lt_cv_prog_compiler__b" = xyes; then
14554 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14562 if test "$with_gnu_ld" = no; then
14563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14564 hardcode_libdir_separator=:
14569 hardcode_shlibpath_var=no
14572 hardcode_direct=yes
14573 hardcode_direct_absolute=yes
14574 export_dynamic_flag_spec='${wl}-E'
14576 # hardcode_minus_L: Not really in the search PATH,
14577 # but as the default location of the library.
14578 hardcode_minus_L=yes
14584 irix5* | irix6* | nonstopux*)
14585 if test "$GCC" = yes; then
14586 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'
14587 # Try to use the -exported_symbol ld option, if it does not
14588 # work, assume that -exports_file does not work either and
14589 # implicitly export all symbols.
14590 # This should be the same for all languages, so no per-tag cache variable.
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14592 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14593 if ${lt_cv_irix_exported_symbol+:} false; then :
14594 $as_echo_n "(cached) " >&6
14596 save_LDFLAGS="$LDFLAGS"
14597 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14600 int foo (void) { return 0; }
14602 if ac_fn_c_try_link "$LINENO"; then :
14603 lt_cv_irix_exported_symbol=yes
14605 lt_cv_irix_exported_symbol=no
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609 LDFLAGS="$save_LDFLAGS"
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14612 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14613 if test "$lt_cv_irix_exported_symbol" = yes; then
14614 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'
14617 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'
14618 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'
14620 archive_cmds_need_lc='no'
14621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator=:
14624 link_all_deplibs=yes
14628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14631 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14633 hardcode_libdir_flag_spec='-R$libdir'
14634 hardcode_direct=yes
14635 hardcode_shlibpath_var=no
14639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14640 hardcode_direct=yes
14641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14642 hardcode_libdir_separator=:
14643 hardcode_shlibpath_var=no
14650 if test -f /usr/libexec/ld.so; then
14651 hardcode_direct=yes
14652 hardcode_shlibpath_var=no
14653 hardcode_direct_absolute=yes
14654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14655 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14656 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14657 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14658 export_dynamic_flag_spec='${wl}-E'
14661 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_libdir_flag_spec='-R$libdir'
14666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14667 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14677 hardcode_libdir_flag_spec='-L$libdir'
14678 hardcode_minus_L=yes
14679 allow_undefined_flag=unsupported
14680 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'
14681 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14685 if test "$GCC" = yes; then
14686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14687 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'
14689 allow_undefined_flag=' -expect_unresolved \*'
14690 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'
14692 archive_cmds_need_lc='no'
14693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14694 hardcode_libdir_separator=:
14697 osf4* | osf5*) # as osf3* with the addition of -msym flag
14698 if test "$GCC" = yes; then
14699 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14700 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'
14701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14703 allow_undefined_flag=' -expect_unresolved \*'
14704 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'
14705 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~
14706 $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'
14708 # Both c and cxx compiler support -rpath directly
14709 hardcode_libdir_flag_spec='-rpath $libdir'
14711 archive_cmds_need_lc='no'
14712 hardcode_libdir_separator=:
14716 no_undefined_flag=' -z defs'
14717 if test "$GCC" = yes; then
14719 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14721 $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'
14723 case `$CC -V 2>&1` in
14726 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14728 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14732 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14734 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14738 hardcode_libdir_flag_spec='-R$libdir'
14739 hardcode_shlibpath_var=no
14741 solaris2.[0-5] | solaris2.[0-5].*) ;;
14743 # The compiler driver will combine and reorder linker options,
14744 # but understands `-z linker_flag'. GCC discards it without `$wl',
14745 # but is careful enough not to reorder.
14746 # Supported since Solaris 2.6 (maybe 2.5.1?)
14747 if test "$GCC" = yes; then
14748 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14750 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14754 link_all_deplibs=yes
14758 if test "x$host_vendor" = xsequent; then
14759 # Use $CC to link under sequent, because it throws in some extra .o
14760 # files that make .init and .fini sections work.
14761 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14765 hardcode_libdir_flag_spec='-L$libdir'
14766 hardcode_direct=yes
14767 hardcode_minus_L=yes
14768 hardcode_shlibpath_var=no
14772 case $host_vendor in
14774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14775 hardcode_direct=yes # is this really true???
14778 ## LD is ld it makes a PLAMLIB
14779 ## CC just makes a GrossModule.
14780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14781 reload_cmds='$CC -r -o $output$reload_objs'
14785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14789 runpath_var='LD_RUN_PATH'
14790 hardcode_shlibpath_var=no
14794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14795 hardcode_shlibpath_var=no
14796 export_dynamic_flag_spec='-Bexport'
14800 if test -d /usr/nec; then
14801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802 hardcode_shlibpath_var=no
14803 runpath_var=LD_RUN_PATH
14804 hardcode_runpath_var=yes
14809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14810 no_undefined_flag='${wl}-z,text'
14811 archive_cmds_need_lc=no
14812 hardcode_shlibpath_var=no
14813 runpath_var='LD_RUN_PATH'
14815 if test "$GCC" = yes; then
14816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824 sysv5* | sco3.2v5* | sco5v6*)
14825 # Note: We can NOT use -z defs as we might desire, because we do not
14826 # link with -lc, and that would cause any symbols used from libc to
14827 # always be unresolved, which means just about no library would
14828 # ever link correctly. If we're not using GNU ld we use -z text
14829 # though, which does catch some bad symbols but isn't as heavy-handed
14831 no_undefined_flag='${wl}-z,text'
14832 allow_undefined_flag='${wl}-z,nodefs'
14833 archive_cmds_need_lc=no
14834 hardcode_shlibpath_var=no
14835 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14836 hardcode_libdir_separator=':'
14837 link_all_deplibs=yes
14838 export_dynamic_flag_spec='${wl}-Bexport'
14839 runpath_var='LD_RUN_PATH'
14841 if test "$GCC" = yes; then
14842 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14845 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14852 hardcode_libdir_flag_spec='-L$libdir'
14853 hardcode_shlibpath_var=no
14861 if test x$host_vendor = xsni; then
14863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14864 export_dynamic_flag_spec='${wl}-Blargedynsym'
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14871 $as_echo "$ld_shlibs" >&6; }
14872 test "$ld_shlibs" = no && can_build_shared=no
14874 with_gnu_ld=$with_gnu_ld
14891 # Do we need to explicitly link libc?
14893 case "x$archive_cmds_need_lc" in
14895 # Assume -lc should be added
14896 archive_cmds_need_lc=yes
14898 if test "$enable_shared" = yes && test "$GCC" = yes; then
14899 case $archive_cmds in
14901 # FIXME: we may have to deal with multi-command sequences.
14904 # Test whether the compiler implicitly links with -lc since on some
14905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14906 # to ld, don't add -lc before -lgcc.
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14909 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14910 $as_echo_n "(cached) " >&6
14913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14916 (eval $ac_compile) 2>&5
14918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14919 test $ac_status = 0; } 2>conftest.err; then
14922 libobjs=conftest.$ac_objext
14924 wl=$lt_prog_compiler_wl
14925 pic_flag=$lt_prog_compiler_pic
14931 lt_save_allow_undefined_flag=$allow_undefined_flag
14932 allow_undefined_flag=
14933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14934 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; }
14939 lt_cv_archive_cmds_need_lc=no
14941 lt_cv_archive_cmds_need_lc=yes
14943 allow_undefined_flag=$lt_save_allow_undefined_flag
14945 cat conftest.err 1>&5
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14951 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14952 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15116 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15118 if test "$GCC" = yes; then
15120 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15121 *) lt_awk_arg="/^libraries:/" ;;
15124 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15125 *) lt_sed_strip_eq="s,=/,/,g" ;;
15127 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15128 case $lt_search_path_spec in
15130 # if the path contains ";" then we assume it to be the separator
15131 # otherwise default to the standard path separator (i.e. ":") - it is
15132 # assumed that no part of a normal pathname contains ";" but that should
15133 # okay in the real world where ";" in dirpaths is itself problematic.
15134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15140 # Ok, now we have the path, separated by spaces, we can step through it
15141 # and add multilib dir if necessary.
15142 lt_tmp_lt_search_path_spec=
15143 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15144 for lt_sys_path in $lt_search_path_spec; do
15145 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15146 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15148 test -d "$lt_sys_path" && \
15149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15152 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15153 BEGIN {RS=" "; FS="/|\n";} {
15156 for (lt_i = NF; lt_i > 0; lt_i--) {
15157 if ($lt_i != "" && $lt_i != ".") {
15158 if ($lt_i == "..") {
15161 if (lt_count == 0) {
15162 lt_foo="/" $lt_i lt_foo;
15169 if (lt_foo != "") { lt_freq[lt_foo]++; }
15170 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15172 # AWK program above erroneously prepends '/' to C:/dos/paths
15175 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15176 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15178 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15182 library_names_spec=
15183 libname_spec='lib$name'
15187 postuninstall_cmds=
15191 shlibpath_overrides_runpath=unknown
15193 dynamic_linker="$host_os ld.so"
15194 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15195 need_lib_prefix=unknown
15196 hardcode_into_libs=no
15198 # when you set need_version to no, make sure it does not cause -set_version
15199 # flags to be left without arguments
15200 need_version=unknown
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15206 shlibpath_var=LIBPATH
15208 # AIX 3 has no versioning support, so we append a major version to the name.
15209 soname_spec='${libname}${release}${shared_ext}$major'
15216 hardcode_into_libs=yes
15217 if test "$host_cpu" = ia64; then
15218 # AIX 5 supports IA64
15219 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15220 shlibpath_var=LD_LIBRARY_PATH
15222 # With GCC up to 2.95.x, collect2 would create an import file
15223 # for dependence libraries. The import file would start with
15224 # the line `#! .'. This would cause the generated library to
15225 # depend on `.', always an invalid library. This was fixed in
15226 # development snapshots of GCC prior to 3.0.
15228 aix4 | aix4.[01] | aix4.[01].*)
15229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15231 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15234 can_build_shared=no
15238 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15239 # soname into executable. Probably we can add versioning support to
15240 # collect2, so additional links can be useful in future.
15241 if test "$aix_use_runtimelinking" = yes; then
15242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15243 # instead of lib<name>.a to let people know that these are not
15244 # typical AIX shared libraries.
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 # We preserve .a as extension for shared libraries through AIX4.2
15248 # and later when we are not doing run time linking.
15249 library_names_spec='${libname}${release}.a $libname.a'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LIBPATH
15259 # Since July 2007 AmigaOS4 officially supports .so libraries.
15260 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 library_names_spec='$libname.ixlibrary $libname.a'
15265 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15266 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'
15272 library_names_spec='${libname}${shared_ext}'
15273 dynamic_linker="$host_os ld.so"
15274 shlibpath_var=LIBRARY_PATH
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281 soname_spec='${libname}${release}${shared_ext}$major'
15282 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15285 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15286 # the default ld.so.conf also contains /usr/contrib/lib and
15287 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15288 # libtool to hard-code these into programs
15291 cygwin* | mingw* | pw32* | cegcc*)
15292 version_type=windows
15297 case $GCC,$cc_basename in
15300 library_names_spec='$libname.dll.a'
15301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15302 postinstall_cmds='base_file=`basename \${file}`~
15303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15304 dldir=$destdir/`dirname \$dlpath`~
15305 test -d \$dldir || mkdir -p \$dldir~
15306 $install_prog $dir/$dlname \$dldir/$dlname~
15307 chmod a+x \$dldir/$dlname~
15308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15312 dlpath=$dir/\$dldll~
15314 shlibpath_overrides_runpath=yes
15318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15324 # MinGW DLLs use traditional 'lib' prefix
15325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15328 # pw32 DLLs use 'pw' prefix rather than 'lib'
15329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15332 dynamic_linker='Win32 ld.exe'
15337 libname_spec='$name'
15338 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15339 library_names_spec='${libname}.dll.lib'
15343 sys_lib_search_path_spec=
15346 for lt_path in $LIB
15349 # Let DOS variable expansion print the short 8.3 style file name.
15350 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15351 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15354 # Convert to MSYS style.
15355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15358 # Convert to unix form, then to dos form, then back to unix form
15359 # but this time dos style (no spaces!) so that the unix form looks
15360 # like /cygdrive/c/PROGRA~1:/cygdr...
15361 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15362 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15363 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15366 sys_lib_search_path_spec="$LIB"
15367 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15368 # It is most probably a Windows format PATH.
15369 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15371 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15373 # FIXME: find the short name or the path components, as spaces are
15374 # common. (e.g. "Program Files" -> "PROGRA~1")
15378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15379 postinstall_cmds='base_file=`basename \${file}`~
15380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15381 dldir=$destdir/`dirname \$dlpath`~
15382 test -d \$dldir || mkdir -p \$dldir~
15383 $install_prog $dir/$dlname \$dldir/$dlname'
15384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15385 dlpath=$dir/\$dldll~
15387 shlibpath_overrides_runpath=yes
15388 dynamic_linker='Win32 link.exe'
15392 # Assume MSVC wrapper
15393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15394 dynamic_linker='Win32 ld.exe'
15397 # FIXME: first we should search . and the directory the executable is in
15401 darwin* | rhapsody*)
15402 dynamic_linker="$host_os dyld"
15403 version_type=darwin
15406 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15407 soname_spec='${libname}${release}${major}$shared_ext'
15408 shlibpath_overrides_runpath=yes
15409 shlibpath_var=DYLD_LIBRARY_PATH
15410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15412 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15421 soname_spec='${libname}${release}${shared_ext}$major'
15422 shlibpath_var=LD_LIBRARY_PATH
15429 freebsd* | dragonfly*)
15430 # DragonFly does not have aout. When/if they implement a new
15431 # versioning mechanism, adjust this.
15432 if test -x /usr/bin/objformat; then
15433 objformat=`/usr/bin/objformat`
15436 freebsd[123]*) objformat=aout ;;
15437 *) objformat=elf ;;
15440 version_type=freebsd-$objformat
15441 case $version_type in
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15452 shlibpath_var=LD_LIBRARY_PATH
15455 shlibpath_overrides_runpath=yes
15457 freebsd3.[01]* | freebsdelf3.[01]*)
15458 shlibpath_overrides_runpath=yes
15459 hardcode_into_libs=yes
15461 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463 shlibpath_overrides_runpath=no
15464 hardcode_into_libs=yes
15466 *) # from 4.6 on, and DragonFly
15467 shlibpath_overrides_runpath=yes
15468 hardcode_into_libs=yes
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 hardcode_into_libs=yes
15487 dynamic_linker="$host_os runtime_loader"
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LIBRARY_PATH
15491 shlibpath_overrides_runpath=yes
15492 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15493 hardcode_into_libs=yes
15496 hpux9* | hpux10* | hpux11*)
15497 # Give a soname corresponding to the major version so that dld.sl refuses to
15498 # link against other versions.
15505 hardcode_into_libs=yes
15506 dynamic_linker="$host_os dld.so"
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 if test "X$HPUX_IA64_MODE" = X32; then
15512 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15514 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15520 hardcode_into_libs=yes
15521 dynamic_linker="$host_os dld.sl"
15522 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15523 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15531 dynamic_linker="$host_os dld.sl"
15532 shlibpath_var=SHLIB_PATH
15533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15538 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15539 postinstall_cmds='chmod 555 $lib'
15540 # or fails outright, so override atomically:
15541 install_override_mode=555
15548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15549 soname_spec='${libname}${release}${shared_ext}$major'
15550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15556 irix5* | irix6* | nonstopux*)
15558 nonstopux*) version_type=nonstopux ;;
15560 if test "$lt_cv_prog_gnu_ld" = yes; then
15568 soname_spec='${libname}${release}${shared_ext}$major'
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15571 irix5* | nonstopux*)
15572 libsuff= shlibsuff=
15575 case $LD in # libtool.m4 will add one of these switches to LD
15576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15577 libsuff= shlibsuff= libmagic=32-bit;;
15578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15579 libsuff=32 shlibsuff=N32 libmagic=N32;;
15580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15582 *) libsuff= shlibsuff= libmagic=never-match;;
15586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15587 shlibpath_overrides_runpath=no
15588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15590 hardcode_into_libs=yes
15593 # No shared lib support for Linux oldld, aout, or coff.
15594 linux*oldld* | linux*aout* | linux*coff*)
15598 # This must be Linux ELF.
15599 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=no
15609 # Some binutils ld are patched to set DT_RUNPATH
15610 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15611 $as_echo_n "(cached) " >&6
15613 lt_cv_shlibpath_overrides_runpath=no
15614 save_LDFLAGS=$LDFLAGS
15615 save_libdir=$libdir
15616 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15617 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15629 if ac_fn_c_try_link "$LINENO"; then :
15630 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15631 lt_cv_shlibpath_overrides_runpath=yes
15634 rm -f core conftest.err conftest.$ac_objext \
15635 conftest$ac_exeext conftest.$ac_ext
15636 LDFLAGS=$save_LDFLAGS
15637 libdir=$save_libdir
15641 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15643 # This implies no fast_install, which is unacceptable.
15644 # Some rework will be needed to allow for fast_install
15645 # before this can be enabled.
15646 hardcode_into_libs=yes
15648 # Add ABI-specific directories to the system library path.
15649 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15651 # Append ld.so.conf contents to the search path
15652 if test -f /etc/ld.so.conf; then
15653 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' ' '`
15654 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15658 # We used to test for /lib/ld.so.1 and disable shared libraries on
15659 # powerpc, because MkLinux only supported shared libraries with the
15660 # GNU dynamic linker. Since this was broken with cross compilers,
15661 # most powerpc-linux boxes support dynamic linking these days and
15662 # people can always --disable-shared, the test was removed, and we
15663 # assume the GNU/Linux dynamic linker is in use.
15664 dynamic_linker='GNU/Linux ld.so'
15671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15674 dynamic_linker='NetBSD (a.out) ld.so'
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 dynamic_linker='NetBSD ld.elf_so'
15680 shlibpath_var=LD_LIBRARY_PATH
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=yes
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 soname_spec='${libname}${release}${shared_ext}$major'
15698 shlibpath_var=LD_LIBRARY_PATH
15699 shlibpath_overrides_runpath=no
15700 hardcode_into_libs=yes
15701 dynamic_linker='ldqnx.so'
15706 sys_lib_dlsearch_path_spec="/usr/lib"
15708 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15710 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15711 *) need_version=no ;;
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15718 openbsd2.[89] | openbsd2.[89].*)
15719 shlibpath_overrides_runpath=no
15722 shlibpath_overrides_runpath=yes
15726 shlibpath_overrides_runpath=yes
15731 libname_spec='$name'
15734 library_names_spec='$libname${shared_ext} $libname.a'
15735 dynamic_linker='OS/2 ld.exe'
15736 shlibpath_var=LIBPATH
15739 osf3* | osf4* | osf5*)
15743 soname_spec='${libname}${release}${shared_ext}$major'
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 shlibpath_var=LD_LIBRARY_PATH
15746 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15747 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 shlibpath_overrides_runpath=yes
15762 hardcode_into_libs=yes
15763 # ldd complains unless libraries are executable
15764 postinstall_cmds='chmod +x $lib'
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15770 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15773 if test "$with_gnu_ld" = yes; then
15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782 soname_spec='${libname}${release}${shared_ext}$major'
15783 shlibpath_var=LD_LIBRARY_PATH
15784 case $host_vendor in
15786 shlibpath_overrides_runpath=no
15788 runpath_var=LD_RUN_PATH
15796 shlibpath_overrides_runpath=no
15797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15803 if test -d /usr/nec ;then
15805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15806 soname_spec='$libname${shared_ext}.$major'
15807 shlibpath_var=LD_LIBRARY_PATH
15811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15812 version_type=freebsd-elf
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 shlibpath_var=LD_LIBRARY_PATH
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15820 if test "$with_gnu_ld" = yes; then
15821 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15823 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15830 sys_lib_dlsearch_path_spec='/usr/lib'
15834 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15839 shlibpath_var=LD_LIBRARY_PATH
15840 shlibpath_overrides_runpath=no
15841 hardcode_into_libs=yes
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 soname_spec='${libname}${release}${shared_ext}$major'
15848 shlibpath_var=LD_LIBRARY_PATH
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15856 $as_echo "$dynamic_linker" >&6; }
15857 test "$dynamic_linker" = no && can_build_shared=no
15859 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15860 if test "$GCC" = yes; then
15861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15864 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15865 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15867 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15868 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15963 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15965 if test -n "$hardcode_libdir_flag_spec" ||
15966 test -n "$runpath_var" ||
15967 test "X$hardcode_automatic" = "Xyes" ; then
15969 # We can hardcode non-existent directories.
15970 if test "$hardcode_direct" != no &&
15971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15972 # have to relink, otherwise we might link with an installed library
15973 # when we should be linking with a yet-to-be-installed one
15974 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15975 test "$hardcode_minus_L" != no; then
15976 # Linking always hardcodes the temporary library directory.
15977 hardcode_action=relink
15979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15980 hardcode_action=immediate
15983 # We cannot hardcode anything, or else we can only hardcode existing
15985 hardcode_action=unsupported
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15988 $as_echo "$hardcode_action" >&6; }
15990 if test "$hardcode_action" = relink ||
15991 test "$inherit_rpath" = yes; then
15992 # Fast installation is not supported
15993 enable_fast_install=no
15994 elif test "$shlibpath_overrides_runpath" = yes ||
15995 test "$enable_shared" = no; then
15996 # Fast installation is not necessary
15997 enable_fast_install=needless
16005 if test "x$enable_dlopen" != xyes; then
16006 enable_dlopen=unknown
16007 enable_dlopen_self=unknown
16008 enable_dlopen_self_static=unknown
16015 lt_cv_dlopen="load_add_on"
16017 lt_cv_dlopen_self=yes
16020 mingw* | pw32* | cegcc*)
16021 lt_cv_dlopen="LoadLibrary"
16026 lt_cv_dlopen="dlopen"
16031 # if libdl is installed we need to link against it
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16034 if ${ac_cv_lib_dl_dlopen+:} false; then :
16035 $as_echo_n "(cached) " >&6
16037 ac_check_lib_save_LIBS=$LIBS
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16042 /* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply. */
16057 if ac_fn_c_try_link "$LINENO"; then :
16058 ac_cv_lib_dl_dlopen=yes
16060 ac_cv_lib_dl_dlopen=no
16062 rm -f core conftest.err conftest.$ac_objext \
16063 conftest$ac_exeext conftest.$ac_ext
16064 LIBS=$ac_check_lib_save_LIBS
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16068 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16072 lt_cv_dlopen="dyld"
16074 lt_cv_dlopen_self=yes
16081 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16082 if test "x$ac_cv_func_shl_load" = xyes; then :
16083 lt_cv_dlopen="shl_load"
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16086 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16087 if ${ac_cv_lib_dld_shl_load+:} false; then :
16088 $as_echo_n "(cached) " >&6
16090 ac_check_lib_save_LIBS=$LIBS
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16095 /* Override any GCC internal prototype to avoid an error.
16096 Use char because int might match the return type of a GCC
16097 builtin and then its argument prototype would still apply. */
16105 return shl_load ();
16110 if ac_fn_c_try_link "$LINENO"; then :
16111 ac_cv_lib_dld_shl_load=yes
16113 ac_cv_lib_dld_shl_load=no
16115 rm -f core conftest.err conftest.$ac_objext \
16116 conftest$ac_exeext conftest.$ac_ext
16117 LIBS=$ac_check_lib_save_LIBS
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16120 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16121 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16122 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16125 if test "x$ac_cv_func_dlopen" = xyes; then :
16126 lt_cv_dlopen="dlopen"
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16130 if ${ac_cv_lib_dl_dlopen+:} false; then :
16131 $as_echo_n "(cached) " >&6
16133 ac_check_lib_save_LIBS=$LIBS
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16153 if ac_fn_c_try_link "$LINENO"; then :
16154 ac_cv_lib_dl_dlopen=yes
16156 ac_cv_lib_dl_dlopen=no
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16164 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16168 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16169 if ${ac_cv_lib_svld_dlopen+:} false; then :
16170 $as_echo_n "(cached) " >&6
16172 ac_check_lib_save_LIBS=$LIBS
16173 LIBS="-lsvld $LIBS"
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16177 /* Override any GCC internal prototype to avoid an error.
16178 Use char because int might match the return type of a GCC
16179 builtin and then its argument prototype would still apply. */
16192 if ac_fn_c_try_link "$LINENO"; then :
16193 ac_cv_lib_svld_dlopen=yes
16195 ac_cv_lib_svld_dlopen=no
16197 rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_lib_save_LIBS
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16203 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16207 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16208 if ${ac_cv_lib_dld_dld_link+:} false; then :
16209 $as_echo_n "(cached) " >&6
16211 ac_check_lib_save_LIBS=$LIBS
16213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16216 /* Override any GCC internal prototype to avoid an error.
16217 Use char because int might match the return type of a GCC
16218 builtin and then its argument prototype would still apply. */
16226 return dld_link ();
16231 if ac_fn_c_try_link "$LINENO"; then :
16232 ac_cv_lib_dld_dld_link=yes
16234 ac_cv_lib_dld_dld_link=no
16236 rm -f core conftest.err conftest.$ac_objext \
16237 conftest$ac_exeext conftest.$ac_ext
16238 LIBS=$ac_check_lib_save_LIBS
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16241 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16242 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16243 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16264 if test "x$lt_cv_dlopen" != xno; then
16270 case $lt_cv_dlopen in
16272 save_CPPFLAGS="$CPPFLAGS"
16273 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16275 save_LDFLAGS="$LDFLAGS"
16276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16279 LIBS="$lt_cv_dlopen_libs $LIBS"
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16282 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16283 if ${lt_cv_dlopen_self+:} false; then :
16284 $as_echo_n "(cached) " >&6
16286 if test "$cross_compiling" = yes; then :
16287 lt_cv_dlopen_self=cross
16289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16290 lt_status=$lt_dlunknown
16291 cat > conftest.$ac_ext <<_LT_EOF
16292 #line $LINENO "configure"
16293 #include "confdefs.h"
16302 # define LT_DLGLOBAL RTLD_GLOBAL
16305 # define LT_DLGLOBAL DL_GLOBAL
16307 # define LT_DLGLOBAL 0
16311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16312 find out it does not work in some platform. */
16313 #ifndef LT_DLLAZY_OR_NOW
16315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16318 # define LT_DLLAZY_OR_NOW DL_LAZY
16321 # define LT_DLLAZY_OR_NOW RTLD_NOW
16324 # define LT_DLLAZY_OR_NOW DL_NOW
16326 # define LT_DLLAZY_OR_NOW 0
16333 /* When -fvisbility=hidden is used, assume the code has been annotated
16334 correspondingly for the symbols needed. */
16335 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16336 int fnord () __attribute__((visibility("default")));
16339 int fnord () { return 42; }
16342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16343 int status = $lt_dlunknown;
16347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16351 else puts (dlerror ());
16353 /* dlclose (self); */
16361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16362 (eval $ac_link) 2>&5
16364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16365 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16366 (./conftest; exit; ) >&5 2>/dev/null
16368 case x$lt_status in
16369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16374 # compilation failed
16375 lt_cv_dlopen_self=no
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16383 $as_echo "$lt_cv_dlopen_self" >&6; }
16385 if test "x$lt_cv_dlopen_self" = xyes; then
16386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16388 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16389 if ${lt_cv_dlopen_self_static+:} false; then :
16390 $as_echo_n "(cached) " >&6
16392 if test "$cross_compiling" = yes; then :
16393 lt_cv_dlopen_self_static=cross
16395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16396 lt_status=$lt_dlunknown
16397 cat > conftest.$ac_ext <<_LT_EOF
16398 #line $LINENO "configure"
16399 #include "confdefs.h"
16408 # define LT_DLGLOBAL RTLD_GLOBAL
16411 # define LT_DLGLOBAL DL_GLOBAL
16413 # define LT_DLGLOBAL 0
16417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16418 find out it does not work in some platform. */
16419 #ifndef LT_DLLAZY_OR_NOW
16421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16424 # define LT_DLLAZY_OR_NOW DL_LAZY
16427 # define LT_DLLAZY_OR_NOW RTLD_NOW
16430 # define LT_DLLAZY_OR_NOW DL_NOW
16432 # define LT_DLLAZY_OR_NOW 0
16439 /* When -fvisbility=hidden is used, assume the code has been annotated
16440 correspondingly for the symbols needed. */
16441 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16442 int fnord () __attribute__((visibility("default")));
16445 int fnord () { return 42; }
16448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16449 int status = $lt_dlunknown;
16453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16457 else puts (dlerror ());
16459 /* dlclose (self); */
16467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16468 (eval $ac_link) 2>&5
16470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16471 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16472 (./conftest; exit; ) >&5 2>/dev/null
16474 case x$lt_status in
16475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16480 # compilation failed
16481 lt_cv_dlopen_self_static=no
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16489 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16492 CPPFLAGS="$save_CPPFLAGS"
16493 LDFLAGS="$save_LDFLAGS"
16498 case $lt_cv_dlopen_self in
16499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16500 *) enable_dlopen_self=unknown ;;
16503 case $lt_cv_dlopen_self_static in
16504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16505 *) enable_dlopen_self_static=unknown ;;
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16528 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16529 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16530 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16531 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16533 $as_echo "yes" >&6; }
16535 # FIXME - insert some real tests, host_os isn't really good enough
16538 if test -n "$STRIP" ; then
16539 striplib="$STRIP -x"
16540 old_striplib="$STRIP -S"
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16542 $as_echo "yes" >&6; }
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545 $as_echo "no" >&6; }
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550 $as_echo "no" >&6; }
16566 # Report which library types will actually be built
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16568 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16570 $as_echo "$can_build_shared" >&6; }
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16573 $as_echo_n "checking whether to build shared libraries... " >&6; }
16574 test "$can_build_shared" = "no" && enable_shared=no
16576 # On AIX, shared libraries and static libraries use the same namespace, and
16577 # are all built from PIC.
16580 test "$enable_shared" = yes && enable_static=no
16581 if test -n "$RANLIB"; then
16582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16583 postinstall_cmds='$RANLIB $lib'
16588 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16589 test "$enable_shared" = yes && enable_static=no
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16594 $as_echo "$enable_shared" >&6; }
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16597 $as_echo_n "checking whether to build static libraries... " >&6; }
16598 # Make sure either enable_shared or enable_static is yes.
16599 test "$enable_shared" = yes || enable_static=yes
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16601 $as_echo "$enable_static" >&6; }
16608 ac_cpp='$CPP $CPPFLAGS'
16609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16615 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16616 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16617 (test "X$CXX" != "Xg++"))) ; then
16619 ac_cpp='$CXXCPP $CPPFLAGS'
16620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16624 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16625 if test -z "$CXXCPP"; then
16626 if ${ac_cv_prog_CXXCPP+:} false; then :
16627 $as_echo_n "(cached) " >&6
16629 # Double quotes because CXXCPP needs to be expanded
16630 for CXXCPP in "$CXX -E" "/lib/cpp"
16632 ac_preproc_ok=false
16633 for ac_cxx_preproc_warn_flag in '' yes
16635 # Use a header file that comes with gcc, so configuring glibc
16636 # with a fresh cross-compiler works.
16637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16638 # <limits.h> exists even on freestanding compilers.
16639 # On the NeXT, cc -E runs the code through the compiler's parser,
16640 # not just through cpp. "Syntax error" is here to catch this case.
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16644 # include <limits.h>
16646 # include <assert.h>
16650 if ac_fn_cxx_try_cpp "$LINENO"; then :
16653 # Broken: fails on valid input.
16656 rm -f conftest.err conftest.i conftest.$ac_ext
16658 # OK, works on sane cases. Now check whether nonexistent headers
16659 # can be detected and how.
16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16662 #include <ac_nonexistent.h>
16664 if ac_fn_cxx_try_cpp "$LINENO"; then :
16665 # Broken: success on invalid input.
16668 # Passes both tests.
16672 rm -f conftest.err conftest.i conftest.$ac_ext
16675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16676 rm -f conftest.i conftest.err conftest.$ac_ext
16677 if $ac_preproc_ok; then :
16682 ac_cv_prog_CXXCPP=$CXXCPP
16685 CXXCPP=$ac_cv_prog_CXXCPP
16687 ac_cv_prog_CXXCPP=$CXXCPP
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16690 $as_echo "$CXXCPP" >&6; }
16691 ac_preproc_ok=false
16692 for ac_cxx_preproc_warn_flag in '' yes
16694 # Use a header file that comes with gcc, so configuring glibc
16695 # with a fresh cross-compiler works.
16696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16697 # <limits.h> exists even on freestanding compilers.
16698 # On the NeXT, cc -E runs the code through the compiler's parser,
16699 # not just through cpp. "Syntax error" is here to catch this case.
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16703 # include <limits.h>
16705 # include <assert.h>
16709 if ac_fn_cxx_try_cpp "$LINENO"; then :
16712 # Broken: fails on valid input.
16715 rm -f conftest.err conftest.i conftest.$ac_ext
16717 # OK, works on sane cases. Now check whether nonexistent headers
16718 # can be detected and how.
16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720 /* end confdefs.h. */
16721 #include <ac_nonexistent.h>
16723 if ac_fn_cxx_try_cpp "$LINENO"; then :
16724 # Broken: success on invalid input.
16727 # Passes both tests.
16731 rm -f conftest.err conftest.i conftest.$ac_ext
16734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16735 rm -f conftest.i conftest.err conftest.$ac_ext
16736 if $ac_preproc_ok; then :
16739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16741 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16742 See \`config.log' for more details" "$LINENO" 5; }
16746 ac_cpp='$CPP $CPPFLAGS'
16747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16752 _lt_caught_CXX_error=yes
16756 ac_cpp='$CXXCPP $CPPFLAGS'
16757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16761 archive_cmds_need_lc_CXX=no
16762 allow_undefined_flag_CXX=
16763 always_export_symbols_CXX=no
16764 archive_expsym_cmds_CXX=
16765 compiler_needs_object_CXX=no
16766 export_dynamic_flag_spec_CXX=
16767 hardcode_direct_CXX=no
16768 hardcode_direct_absolute_CXX=no
16769 hardcode_libdir_flag_spec_CXX=
16770 hardcode_libdir_flag_spec_ld_CXX=
16771 hardcode_libdir_separator_CXX=
16772 hardcode_minus_L_CXX=no
16773 hardcode_shlibpath_var_CXX=unsupported
16774 hardcode_automatic_CXX=no
16775 inherit_rpath_CXX=no
16777 module_expsym_cmds_CXX=
16778 link_all_deplibs_CXX=unknown
16779 old_archive_cmds_CXX=$old_archive_cmds
16780 reload_flag_CXX=$reload_flag
16781 reload_cmds_CXX=$reload_cmds
16782 no_undefined_flag_CXX=
16783 whole_archive_flag_spec_CXX=
16784 enable_shared_with_static_runtimes_CXX=no
16786 # Source file extension for C++ test sources.
16789 # Object file extension for compiled C++ test sources.
16793 # No sense in running all these tests if we already determined that
16794 # the CXX compiler isn't working. Some variables (like enable_shared)
16795 # are currently assumed to apply to all compilers on this platform,
16796 # and will be corrupted by setting them based on a non-working compiler.
16797 if test "$_lt_caught_CXX_error" != yes; then
16798 # Code to be used in simple compile tests
16799 lt_simple_compile_test_code="int some_variable = 0;"
16801 # Code to be used in simple link tests
16802 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16804 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16811 # If no C compiler was specified, use CC.
16814 # If no C compiler flags were specified, use CFLAGS.
16815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16817 # Allow CC to be a program name with arguments.
16821 # save warnings/boilerplate of simple test code
16822 ac_outfile=conftest.$ac_objext
16823 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16825 _lt_compiler_boilerplate=`cat conftest.err`
16828 ac_outfile=conftest.$ac_objext
16829 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16831 _lt_linker_boilerplate=`cat conftest.err`
16835 # Allow CC to be a program name with arguments.
16837 lt_save_CFLAGS=$CFLAGS
16841 lt_save_with_gnu_ld=$with_gnu_ld
16842 lt_save_path_LD=$lt_cv_path_LD
16843 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16844 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16846 $as_unset lt_cv_prog_gnu_ld
16848 if test -n "${lt_cv_path_LDCXX+set}"; then
16849 lt_cv_path_LD=$lt_cv_path_LDCXX
16851 $as_unset lt_cv_path_LD
16853 test -z "${LDCXX+set}" || LD=$LDCXX
16858 for cc_temp in $compiler""; do
16860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16866 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16869 if test -n "$compiler"; then
16870 # We don't want -fno-exception when compiling C++ code, so set the
16871 # no_builtin_flag separately
16872 if test "$GXX" = yes; then
16873 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16875 lt_prog_compiler_no_builtin_flag_CXX=
16878 if test "$GXX" = yes; then
16879 # Set up default GNU C++ configuration
16883 # Check whether --with-gnu-ld was given.
16884 if test "${with_gnu_ld+set}" = set; then :
16885 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16891 if test "$GCC" = yes; then
16892 # Check if gcc -print-prog-name=ld gives a path.
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16894 $as_echo_n "checking for ld used by $CC... " >&6; }
16897 # gcc leaves a trailing carriage return which upsets mingw
16898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16903 # Accept absolute paths.
16905 re_direlt='/[^/][^/]*/\.\./'
16906 # Canonicalize the pathname of ld
16907 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16908 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16909 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16911 test -z "$LD" && LD="$ac_prog"
16914 # If it fails, then pretend we aren't using GCC.
16918 # If it is relative, then search for the first ld in PATH.
16919 with_gnu_ld=unknown
16922 elif test "$with_gnu_ld" = yes; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16924 $as_echo_n "checking for GNU ld... " >&6; }
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16927 $as_echo_n "checking for non-GNU ld... " >&6; }
16929 if ${lt_cv_path_LD+:} false; then :
16930 $as_echo_n "(cached) " >&6
16932 if test -z "$LD"; then
16933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16934 for ac_dir in $PATH; do
16936 test -z "$ac_dir" && ac_dir=.
16937 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16938 lt_cv_path_LD="$ac_dir/$ac_prog"
16939 # Check to see if the program is GNU ld. I'd rather use --version,
16940 # but apparently some variants of GNU ld only accept -v.
16941 # Break only if it was the GNU/non-GNU ld that we prefer.
16942 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16943 *GNU* | *'with BFD'*)
16944 test "$with_gnu_ld" != no && break
16947 test "$with_gnu_ld" != yes && break
16954 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16958 LD="$lt_cv_path_LD"
16959 if test -n "$LD"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16961 $as_echo "$LD" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964 $as_echo "no" >&6; }
16966 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16968 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16969 if ${lt_cv_prog_gnu_ld+:} false; then :
16970 $as_echo_n "(cached) " >&6
16972 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16973 case `$LD -v 2>&1 </dev/null` in
16974 *GNU* | *'with BFD'*)
16975 lt_cv_prog_gnu_ld=yes
16978 lt_cv_prog_gnu_ld=no
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16983 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16984 with_gnu_ld=$lt_cv_prog_gnu_ld
16992 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16993 # archiving commands below assume that GNU ld is being used.
16994 if test "$with_gnu_ld" = yes; then
16995 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16996 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'
16998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16999 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17001 # If archive_cmds runs LD, not CC, wlarc should be empty
17002 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17003 # investigate it a little bit more. (MM)
17006 # ancient GNU ld didn't support --whole-archive et. al.
17007 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17008 $GREP 'no-whole-archive' > /dev/null; then
17009 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17011 whole_archive_flag_spec_CXX=
17017 # A generic and very simple default shared library creation
17018 # command for GNU C++ for the case where it uses the native
17019 # linker, instead of GNU ld. If possible, this setting should
17020 # overridden to take advantage of the native linker features on
17021 # the platform it is being used on.
17022 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17025 # Commands to make compiler produce verbose output that lists
17026 # what "hidden" libraries, object files and flags are used when
17027 # linking a shared library.
17028 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17036 # PORTME: fill in a description of your system's C++ link characteristics
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17038 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17042 # FIXME: insert proper C++ library support
17046 if test "$host_cpu" = ia64; then
17047 # On IA64, the linker does run time linking by default, so we don't
17048 # have to do anything special.
17049 aix_use_runtimelinking=no
17050 exp_sym_flag='-Bexport'
17053 aix_use_runtimelinking=no
17055 # Test if we are trying to use run time linking or normal
17056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17057 # need to do runtime linking.
17058 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17059 for ld_flag in $LDFLAGS; do
17062 aix_use_runtimelinking=yes
17070 exp_sym_flag='-bexport'
17071 no_entry_flag='-bnoentry'
17074 # When large executables or shared objects are built, AIX ld can
17075 # have problems creating the table of contents. If linking a library
17076 # or program results in "error TOC overflow" add -mminimal-toc to
17077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17080 archive_cmds_CXX=''
17081 hardcode_direct_CXX=yes
17082 hardcode_direct_absolute_CXX=yes
17083 hardcode_libdir_separator_CXX=':'
17084 link_all_deplibs_CXX=yes
17085 file_list_spec_CXX='${wl}-f,'
17087 if test "$GXX" = yes; then
17088 case $host_os in aix4.[012]|aix4.[012].*)
17089 # We only want to do this on AIX 4.2 and lower, the check
17090 # below for broken collect2 doesn't work under 4.3+
17091 collect2name=`${CC} -print-prog-name=collect2`
17092 if test -f "$collect2name" &&
17093 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17095 # We have reworked collect2
17098 # We have old collect2
17099 hardcode_direct_CXX=unsupported
17100 # It fails to find uninstalled libraries when the uninstalled
17101 # path is not listed in the libpath. Setting hardcode_minus_L
17102 # to unsupported forces relinking
17103 hardcode_minus_L_CXX=yes
17104 hardcode_libdir_flag_spec_CXX='-L$libdir'
17105 hardcode_libdir_separator_CXX=
17108 shared_flag='-shared'
17109 if test "$aix_use_runtimelinking" = yes; then
17110 shared_flag="$shared_flag "'${wl}-G'
17114 if test "$host_cpu" = ia64; then
17115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17116 # chokes on -Wl,-G. The following line is correct:
17119 if test "$aix_use_runtimelinking" = yes; then
17120 shared_flag='${wl}-G'
17122 shared_flag='${wl}-bM:SRE'
17127 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17128 # It seems that -bexpall does not export symbols beginning with
17129 # underscore (_), so it is better to generate a list of symbols to
17131 always_export_symbols_CXX=yes
17132 if test "$aix_use_runtimelinking" = yes; then
17133 # Warning - without using the other runtime loading flags (-brtl),
17134 # -berok will link without error, but may produce a broken library.
17135 allow_undefined_flag_CXX='-berok'
17136 # Determine the default libpath from the value encoded in an empty
17138 if test "${lt_cv_aix_libpath+set}" = set; then
17139 aix_libpath=$lt_cv_aix_libpath
17141 if ${lt_cv_aix_libpath__CXX+:} false; then :
17142 $as_echo_n "(cached) " >&6
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17155 if ac_fn_cxx_try_link "$LINENO"; then :
17157 lt_aix_libpath_sed='
17158 /Import File Strings/,/^$/ {
17160 s/^0 *\([^ ]*\) *$/\1/
17164 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17165 # Check for a 64-bit object if we didn't find anything.
17166 if test -z "$lt_cv_aix_libpath__CXX"; then
17167 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17170 rm -f core conftest.err conftest.$ac_objext \
17171 conftest$ac_exeext conftest.$ac_ext
17172 if test -z "$lt_cv_aix_libpath__CXX"; then
17173 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17178 aix_libpath=$lt_cv_aix_libpath__CXX
17181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17183 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"
17185 if test "$host_cpu" = ia64; then
17186 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17187 allow_undefined_flag_CXX="-z nodefs"
17188 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"
17190 # Determine the default libpath from the value encoded in an
17191 # empty executable.
17192 if test "${lt_cv_aix_libpath+set}" = set; then
17193 aix_libpath=$lt_cv_aix_libpath
17195 if ${lt_cv_aix_libpath__CXX+:} false; then :
17196 $as_echo_n "(cached) " >&6
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17209 if ac_fn_cxx_try_link "$LINENO"; then :
17211 lt_aix_libpath_sed='
17212 /Import File Strings/,/^$/ {
17214 s/^0 *\([^ ]*\) *$/\1/
17218 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17219 # Check for a 64-bit object if we didn't find anything.
17220 if test -z "$lt_cv_aix_libpath__CXX"; then
17221 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 if test -z "$lt_cv_aix_libpath__CXX"; then
17227 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17232 aix_libpath=$lt_cv_aix_libpath__CXX
17235 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17236 # Warning - without using the other run time loading flags,
17237 # -berok will link without error, but may produce a broken library.
17238 no_undefined_flag_CXX=' ${wl}-bernotok'
17239 allow_undefined_flag_CXX=' ${wl}-berok'
17240 if test "$with_gnu_ld" = yes; then
17241 # We only use this code for GNU lds that support --whole-archive.
17242 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17244 # Exported symbols can be pulled into shared objects from archives
17245 whole_archive_flag_spec_CXX='$convenience'
17247 archive_cmds_need_lc_CXX=yes
17248 # This is similar to how AIX traditionally builds its shared
17250 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'
17256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17257 allow_undefined_flag_CXX=unsupported
17258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17259 # support --undefined. This deserves some investigation. FIXME
17260 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17267 case $cc_basename in
17269 # FIXME: insert proper C++ library support
17275 cygwin* | mingw* | pw32* | cegcc*)
17276 case $GXX,$cc_basename in
17279 # hardcode_libdir_flag_spec is actually meaningless, as there is
17280 # no search path for DLLs.
17281 hardcode_libdir_flag_spec_CXX=' '
17282 allow_undefined_flag_CXX=unsupported
17283 always_export_symbols_CXX=yes
17284 file_list_spec_CXX='@'
17285 # Tell ltmain to make .lib files, not .a files.
17287 # Tell ltmain to make .dll files, not .so files.
17289 # FIXME: Setting linknames here is a bad hack.
17290 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17291 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17292 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17294 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17296 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17298 # The linker will not automatically build a static lib if we build a DLL.
17299 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17300 enable_shared_with_static_runtimes_CXX=yes
17302 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17303 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17304 lt_tool_outputfile="@TOOL_OUTPUT@"~
17305 case $lt_outputfile in
17308 lt_outputfile="$lt_outputfile.exe"
17309 lt_tool_outputfile="$lt_tool_outputfile.exe"
17312 func_to_tool_file "$lt_outputfile"~
17313 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17315 $RM "$lt_outputfile.manifest";
17320 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17321 # as there is no search path for DLLs.
17322 hardcode_libdir_flag_spec_CXX='-L$libdir'
17323 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17324 allow_undefined_flag_CXX=unsupported
17325 always_export_symbols_CXX=no
17326 enable_shared_with_static_runtimes_CXX=yes
17328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17329 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'
17330 # If the export-symbols file already is a .def file (1st line
17331 # is EXPORTS), use it as is; otherwise, prepend...
17332 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17333 cp $export_symbols $output_objdir/$soname.def;
17335 echo EXPORTS > $output_objdir/$soname.def;
17336 cat $export_symbols >> $output_objdir/$soname.def;
17338 $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'
17345 darwin* | rhapsody*)
17348 archive_cmds_need_lc_CXX=no
17349 hardcode_direct_CXX=no
17350 hardcode_automatic_CXX=yes
17351 hardcode_shlibpath_var_CXX=unsupported
17352 if test "$lt_cv_ld_force_load" = "yes"; then
17353 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\"`'
17355 whole_archive_flag_spec_CXX=''
17357 link_all_deplibs_CXX=yes
17358 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17359 case $cc_basename in
17360 ifort*) _lt_dar_can_shared=yes ;;
17361 *) _lt_dar_can_shared=$GCC ;;
17363 if test "$_lt_dar_can_shared" = "yes"; then
17364 output_verbose_link_cmd=func_echo_all
17365 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}"
17366 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17367 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}"
17368 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}"
17369 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17370 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}"
17371 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}"
17381 case $cc_basename in
17383 # FIXME: insert proper C++ library support
17387 # Green Hills C++ Compiler
17388 # FIXME: insert proper C++ library support
17392 # FIXME: insert proper C++ library support
17399 # C++ shared libraries reported to be fairly broken before
17405 archive_cmds_need_lc_CXX=no
17408 freebsd* | dragonfly*)
17409 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17418 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419 link_all_deplibs_CXX=yes
17423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17424 hardcode_libdir_separator_CXX=:
17425 export_dynamic_flag_spec_CXX='${wl}-E'
17426 hardcode_direct_CXX=yes
17427 hardcode_minus_L_CXX=yes # Not in the search PATH,
17428 # but as the default
17429 # location of the library.
17431 case $cc_basename in
17433 # FIXME: insert proper C++ library support
17437 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'
17438 # Commands to make compiler produce verbose output that lists
17439 # what "hidden" libraries, object files and flags are used when
17440 # linking a shared library.
17442 # There doesn't appear to be a way to prevent this compiler from
17443 # explicitly linking system object files so we need to strip them
17444 # from the output so that they don't get included in the library
17446 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"'
17449 if test "$GXX" = yes; then
17450 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'
17452 # FIXME: insert proper C++ library support
17460 if test $with_gnu_ld = no; then
17461 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17462 hardcode_libdir_separator_CXX=:
17468 export_dynamic_flag_spec_CXX='${wl}-E'
17474 hardcode_direct_CXX=no
17475 hardcode_shlibpath_var_CXX=no
17478 hardcode_direct_CXX=yes
17479 hardcode_direct_absolute_CXX=yes
17480 hardcode_minus_L_CXX=yes # Not in the search PATH,
17481 # but as the default
17482 # location of the library.
17486 case $cc_basename in
17488 # FIXME: insert proper C++ library support
17494 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17500 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17503 # Commands to make compiler produce verbose output that lists
17504 # what "hidden" libraries, object files and flags are used when
17505 # linking a shared library.
17507 # There doesn't appear to be a way to prevent this compiler from
17508 # explicitly linking system object files so we need to strip them
17509 # from the output so that they don't get included in the library
17511 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"'
17514 if test "$GXX" = yes; then
17515 if test $with_gnu_ld = no; then
17518 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17521 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17524 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'
17529 # FIXME: insert proper C++ library support
17537 hardcode_direct_CXX=no
17538 hardcode_shlibpath_var_CXX=no
17539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17540 export_dynamic_flag_spec_CXX='${wl}-E'
17541 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17542 # Instead, shared libraries are loaded at an image base (0x10000000 by
17543 # default) and relocated if they conflict, which is a slow very memory
17544 # consuming and fragmenting process. To avoid this, we pick a random,
17545 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17546 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17547 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'
17548 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'
17551 case $cc_basename in
17554 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'
17556 # Archives containing C++ object files must be created using
17557 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17558 # necessary to make sure instantiated templates are included
17560 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17563 if test "$GXX" = yes; then
17564 if test "$with_gnu_ld" = no; then
17565 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'
17567 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'
17570 link_all_deplibs_CXX=yes
17573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17574 hardcode_libdir_separator_CXX=:
17575 inherit_rpath_CXX=yes
17578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17579 case $cc_basename in
17581 # Kuck and Associates, Inc. (KAI) C++ Compiler
17583 # KCC will only create a shared library if the output file
17584 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17585 # to its proper name (with version) after linking.
17586 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'
17587 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'
17588 # Commands to make compiler produce verbose output that lists
17589 # what "hidden" libraries, object files and flags are used when
17590 # linking a shared library.
17592 # There doesn't appear to be a way to prevent this compiler from
17593 # explicitly linking system object files so we need to strip them
17594 # from the output so that they don't get included in the library
17596 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"'
17598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17601 # Archives containing C++ object files must be created using
17602 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17603 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17608 # version 8.0 and above of icpc choke on multiply defined symbols
17609 # if we add $predep_objects and $postdep_objects, however 7.1 and
17610 # earlier do not add the objects themselves.
17611 case `$CC -V 2>&1` in
17613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17614 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'
17616 *) # Version 8.0 or newer
17619 ia64*) tmp_idyn=' -i_dynamic';;
17621 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622 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'
17625 archive_cmds_need_lc_CXX=no
17626 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17627 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17628 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17631 # Portland Group C++ compiler
17633 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17634 prelink_cmds_CXX='tpldir=Template.dir~
17636 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17637 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17638 old_archive_cmds_CXX='tpldir=Template.dir~
17640 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17641 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17643 archive_cmds_CXX='tpldir=Template.dir~
17645 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17646 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17647 archive_expsym_cmds_CXX='tpldir=Template.dir~
17649 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17650 $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'
17652 *) # Version 6 and above use weak symbols
17653 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17654 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'
17658 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17660 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'
17664 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17665 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'
17667 runpath_var=LD_RUN_PATH
17668 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17669 hardcode_libdir_separator_CXX=:
17671 # Commands to make compiler produce verbose output that lists
17672 # what "hidden" libraries, object files and flags are used when
17673 # linking a shared library.
17675 # There doesn't appear to be a way to prevent this compiler from
17676 # explicitly linking system object files so we need to strip them
17677 # from the output so that they don't get included in the library
17679 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'
17681 xl* | mpixl* | bgxl*)
17682 # IBM XL 8.0 on PPC, with GNU ld
17683 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17684 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17685 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686 if test "x$supports_anon_versioning" = xyes; then
17687 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17689 echo "local: *; };" >> $output_objdir/$libname.ver~
17690 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17694 case `$CC -V 2>&1 | sed 5q` in
17697 no_undefined_flag_CXX=' -zdefs'
17698 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17699 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'
17700 hardcode_libdir_flag_spec_CXX='-R$libdir'
17701 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'
17702 compiler_needs_object_CXX=yes
17704 # Not sure whether something based on
17705 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17707 output_verbose_link_cmd='func_echo_all'
17709 # Archives containing C++ object files must be created using
17710 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17711 # necessary to make sure instantiated templates are included
17713 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17721 # FIXME: insert proper C++ library support
17726 # FIXME: insert proper C++ library support
17731 case $cc_basename in
17733 # FIXME: insert proper C++ library support
17737 # FIXME: insert proper C++ library support
17744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17745 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17747 hardcode_libdir_flag_spec_CXX='-R$libdir'
17748 hardcode_direct_CXX=yes
17749 hardcode_shlibpath_var_CXX=no
17751 # Workaround some broken pre-1.5 toolchains
17752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17760 # C++ shared libraries are fairly broken
17765 if test -f /usr/libexec/ld.so; then
17766 hardcode_direct_CXX=yes
17767 hardcode_shlibpath_var_CXX=no
17768 hardcode_direct_absolute_CXX=yes
17769 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17772 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17773 export_dynamic_flag_spec_CXX='${wl}-E'
17774 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17776 output_verbose_link_cmd=func_echo_all
17782 osf3* | osf4* | osf5*)
17783 case $cc_basename in
17785 # Kuck and Associates, Inc. (KAI) C++ Compiler
17787 # KCC will only create a shared library if the output file
17788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17789 # to its proper name (with version) after linking.
17790 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'
17792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17793 hardcode_libdir_separator_CXX=:
17795 # Archives containing C++ object files must be created using
17796 # the KAI C++ compiler.
17798 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17799 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17803 # Rational C++ 2.4.1
17804 # FIXME: insert proper C++ library support
17810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17811 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'
17812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17815 allow_undefined_flag_CXX=' -expect_unresolved \*'
17816 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'
17817 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17818 echo "-hidden">> $lib.exp~
17819 $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~
17821 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17825 hardcode_libdir_separator_CXX=:
17827 # Commands to make compiler produce verbose output that lists
17828 # what "hidden" libraries, object files and flags are used when
17829 # linking a shared library.
17831 # There doesn't appear to be a way to prevent this compiler from
17832 # explicitly linking system object files so we need to strip them
17833 # from the output so that they don't get included in the library
17835 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"'
17838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17842 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'
17845 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'
17849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17850 hardcode_libdir_separator_CXX=:
17852 # Commands to make compiler produce verbose output that lists
17853 # what "hidden" libraries, object files and flags are used when
17854 # linking a shared library.
17855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17858 # FIXME: insert proper C++ library support
17866 # FIXME: insert proper C++ library support
17871 case $cc_basename in
17874 # FIXME: insert proper C++ library support
17879 # FIXME: insert proper C++ library support
17883 # FIXME: insert proper C++ library support
17890 case $cc_basename in
17892 # Sun C++ 4.2, 5.x and Centerline C++
17893 archive_cmds_need_lc_CXX=yes
17894 no_undefined_flag_CXX=' -zdefs'
17895 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17896 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17897 $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'
17899 hardcode_libdir_flag_spec_CXX='-R$libdir'
17900 hardcode_shlibpath_var_CXX=no
17902 solaris2.[0-5] | solaris2.[0-5].*) ;;
17904 # The compiler driver will combine and reorder linker options,
17905 # but understands `-z linker_flag'.
17906 # Supported since Solaris 2.6 (maybe 2.5.1?)
17907 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17910 link_all_deplibs_CXX=yes
17912 output_verbose_link_cmd='func_echo_all'
17914 # Archives containing C++ object files must be created using
17915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17916 # necessary to make sure instantiated templates are included
17918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17921 # Green Hills C++ Compiler
17922 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17924 # The C++ compiler must be used to create the archive.
17925 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17928 # GNU C++ compiler with Solaris linker
17929 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17930 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17931 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17932 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17933 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17934 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17936 # Commands to make compiler produce verbose output that lists
17937 # what "hidden" libraries, object files and flags are used when
17938 # linking a shared library.
17939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17941 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17943 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17944 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17945 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17947 # Commands to make compiler produce verbose output that lists
17948 # what "hidden" libraries, object files and flags are used when
17949 # linking a shared library.
17950 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17953 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17955 solaris2.[0-5] | solaris2.[0-5].*) ;;
17957 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17966 no_undefined_flag_CXX='${wl}-z,text'
17967 archive_cmds_need_lc_CXX=no
17968 hardcode_shlibpath_var_CXX=no
17969 runpath_var='LD_RUN_PATH'
17971 case $cc_basename in
17973 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17974 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17977 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17983 sysv5* | sco3.2v5* | sco5v6*)
17984 # Note: We can NOT use -z defs as we might desire, because we do not
17985 # link with -lc, and that would cause any symbols used from libc to
17986 # always be unresolved, which means just about no library would
17987 # ever link correctly. If we're not using GNU ld we use -z text
17988 # though, which does catch some bad symbols but isn't as heavy-handed
17990 no_undefined_flag_CXX='${wl}-z,text'
17991 allow_undefined_flag_CXX='${wl}-z,nodefs'
17992 archive_cmds_need_lc_CXX=no
17993 hardcode_shlibpath_var_CXX=no
17994 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17995 hardcode_libdir_separator_CXX=':'
17996 link_all_deplibs_CXX=yes
17997 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17998 runpath_var='LD_RUN_PATH'
18000 case $cc_basename in
18002 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18005 '"$old_archive_cmds_CXX"
18006 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18007 '"$reload_cmds_CXX"
18010 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18017 case $cc_basename in
18019 # NonStop-UX NCC 3.20
18020 # FIXME: insert proper C++ library support
18024 # FIXME: insert proper C++ library support
18031 # FIXME: insert proper C++ library support
18036 # FIXME: insert proper C++ library support
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18042 $as_echo "$ld_shlibs_CXX" >&6; }
18043 test "$ld_shlibs_CXX" = no && can_build_shared=no
18049 ## There is no encapsulation within the following macros, do not change
18050 ## the running order or otherwise move them around unless you know exactly
18051 ## what you are doing...
18052 # Dependencies to place before and after the object being linked:
18053 predep_objects_CXX=
18054 postdep_objects_CXX=
18057 compiler_lib_search_path_CXX=
18059 cat > conftest.$ac_ext <<_LT_EOF
18063 Foo (void) { a = 0; }
18070 _lt_libdeps_save_CFLAGS=$CFLAGS
18071 case "$CC $CFLAGS " in #(
18072 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18073 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18077 (eval $ac_compile) 2>&5
18079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18080 test $ac_status = 0; }; then
18081 # Parse the compiler output and extract the necessary
18082 # objects, libraries and library flags.
18084 # Sentinel used to keep track of whether or not we are before
18085 # the conftest object file.
18086 pre_test_object_deps_done=no
18088 for p in `eval "$output_verbose_link_cmd"`; do
18089 case ${prev}${p} in
18092 # Some compilers place space between "-{L,R}" and the path.
18093 # Remove the space.
18094 if test $p = "-L" ||
18095 test $p = "-R"; then
18100 # Expand the sysroot to ease extracting the directories later.
18101 if test -z "$prev"; then
18103 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18104 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18105 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18109 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18111 if test "$pre_test_object_deps_done" = no; then
18114 # Internal compiler library paths should come after those
18115 # provided the user. The postdeps already come after the
18116 # user supplied libs so there is no need to process them.
18117 if test -z "$compiler_lib_search_path_CXX"; then
18118 compiler_lib_search_path_CXX="${prev}${p}"
18120 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18123 # The "-l" case would never come before the object being
18124 # linked, so don't bother handling this case.
18127 if test -z "$postdeps_CXX"; then
18128 postdeps_CXX="${prev}${p}"
18130 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18136 *.lto.$objext) ;; # Ignore GCC LTO objects
18138 # This assumes that the test object file only shows up
18139 # once in the compiler output.
18140 if test "$p" = "conftest.$objext"; then
18141 pre_test_object_deps_done=yes
18145 if test "$pre_test_object_deps_done" = no; then
18146 if test -z "$predep_objects_CXX"; then
18147 predep_objects_CXX="$p"
18149 predep_objects_CXX="$predep_objects_CXX $p"
18152 if test -z "$postdep_objects_CXX"; then
18153 postdep_objects_CXX="$p"
18155 postdep_objects_CXX="$postdep_objects_CXX $p"
18160 *) ;; # Ignore the rest.
18168 echo "libtool.m4: error: problem compiling CXX test program"
18171 $RM -f confest.$objext
18172 CFLAGS=$_lt_libdeps_save_CFLAGS
18174 # PORTME: override above test on systems where it is broken
18177 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18178 # hack all around it, let's just trust "g++" to DTRT.
18179 predep_objects_CXX=
18180 postdep_objects_CXX=
18185 case `$CC -V 2>&1 | sed 5q` in
18189 # The more standards-conforming stlport4 library is
18190 # incompatible with the Cstd library. Avoid specifying
18191 # it if it's in CXXFLAGS. Ignore libCrun as
18192 # -library=stlport4 depends on it.
18193 case " $CXX $CXXFLAGS " in
18194 *" -library=stlport4 "*)
18195 solaris_use_stlport4=yes
18199 if test "$solaris_use_stlport4" != yes; then
18200 postdeps_CXX='-library=Cstd -library=Crun'
18207 case $cc_basename in
18209 # The more standards-conforming stlport4 library is
18210 # incompatible with the Cstd library. Avoid specifying
18211 # it if it's in CXXFLAGS. Ignore libCrun as
18212 # -library=stlport4 depends on it.
18213 case " $CXX $CXXFLAGS " in
18214 *" -library=stlport4 "*)
18215 solaris_use_stlport4=yes
18219 # Adding this requires a known-good setup of shared libraries for
18220 # Sun compiler versions before 5.6, else PIC objects from an old
18221 # archive will be linked into the output, leading to subtle bugs.
18222 if test "$solaris_use_stlport4" != yes; then
18223 postdeps_CXX='-library=Cstd -library=Crun'
18231 case " $postdeps_CXX " in
18232 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18234 compiler_lib_search_dirs_CXX=
18235 if test -n "${compiler_lib_search_path_CXX}"; then
18236 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18269 lt_prog_compiler_wl_CXX=
18270 lt_prog_compiler_pic_CXX=
18271 lt_prog_compiler_static_CXX=
18274 # C++ specific cases for pic, static, wl, etc.
18275 if test "$GXX" = yes; then
18276 lt_prog_compiler_wl_CXX='-Wl,'
18277 lt_prog_compiler_static_CXX='-static'
18281 # All AIX code is PIC.
18282 if test "$host_cpu" = ia64; then
18283 # AIX 5 now supports IA64 processor
18284 lt_prog_compiler_static_CXX='-Bstatic'
18291 # see comment about AmigaOS4 .so support
18292 lt_prog_compiler_pic_CXX='-fPIC'
18295 # FIXME: we need at least 68020 code to build shared libraries, but
18296 # adding the `-m68020' flag to GCC prevents building anything better,
18298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18304 # PIC is the default for these OSes.
18306 mingw* | cygwin* | os2* | pw32* | cegcc*)
18307 # This hack is so that the source file can tell whether it is being
18308 # built for inclusion in a dll (and should export symbols for example).
18309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18310 # (--disable-auto-import) libraries
18311 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18313 darwin* | rhapsody*)
18314 # PIC is the default on this platform
18315 # Common symbols not allowed in MH_DYLIB files
18316 lt_prog_compiler_pic_CXX='-fno-common'
18319 # DJGPP does not support shared libraries at all
18320 lt_prog_compiler_pic_CXX=
18323 # PIC is the default for Haiku.
18324 # The "-static" flag exists, but is broken.
18325 lt_prog_compiler_static_CXX=
18328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18329 # Instead, we relocate shared libraries at runtime.
18332 if test -d /usr/nec; then
18333 lt_prog_compiler_pic_CXX=-Kconform_pic
18337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18339 # sets the default TLS model and affects inlining.
18344 lt_prog_compiler_pic_CXX='-fPIC'
18349 # QNX uses GNU C++, but need to define -shared option too, otherwise
18350 # it will coredump.
18351 lt_prog_compiler_pic_CXX='-fPIC -shared'
18354 lt_prog_compiler_pic_CXX='-fPIC'
18360 # All AIX code is PIC.
18361 if test "$host_cpu" = ia64; then
18362 # AIX 5 now supports IA64 processor
18363 lt_prog_compiler_static_CXX='-Bstatic'
18365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18369 case $cc_basename in
18371 # Green Hills C++ Compiler
18372 # _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"
18376 mingw* | cygwin* | os2* | pw32* | cegcc*)
18377 # This hack is so that the source file can tell whether it is being
18378 # built for inclusion in a dll (and should export symbols for example).
18379 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18382 case $cc_basename in
18384 lt_prog_compiler_pic_CXX='-KPIC'
18387 # Green Hills C++ Compiler
18388 lt_prog_compiler_pic_CXX='-pic'
18394 freebsd* | dragonfly*)
18395 # FreeBSD uses GNU C++
18397 hpux9* | hpux10* | hpux11*)
18398 case $cc_basename in
18400 lt_prog_compiler_wl_CXX='-Wl,'
18401 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18402 if test "$host_cpu" != ia64; then
18403 lt_prog_compiler_pic_CXX='+Z'
18407 lt_prog_compiler_wl_CXX='-Wl,'
18408 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18414 lt_prog_compiler_pic_CXX='+Z'
18423 # This is c89, which is MS Visual C++ (no shared libs)
18424 # Anyone wants to do a port?
18426 irix5* | irix6* | nonstopux*)
18427 case $cc_basename in
18429 lt_prog_compiler_wl_CXX='-Wl,'
18430 lt_prog_compiler_static_CXX='-non_shared'
18431 # CC pic flag -KPIC is the default.
18437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18438 case $cc_basename in
18441 lt_prog_compiler_wl_CXX='--backend -Wl,'
18442 lt_prog_compiler_pic_CXX='-fPIC'
18445 # old Intel C++ for x86_64 which still supported -KPIC.
18446 lt_prog_compiler_wl_CXX='-Wl,'
18447 lt_prog_compiler_pic_CXX='-KPIC'
18448 lt_prog_compiler_static_CXX='-static'
18451 # Intel C++, used to be incompatible with GCC.
18452 # ICC 10 doesn't accept -KPIC any more.
18453 lt_prog_compiler_wl_CXX='-Wl,'
18454 lt_prog_compiler_pic_CXX='-fPIC'
18455 lt_prog_compiler_static_CXX='-static'
18458 # Portland Group C++ compiler
18459 lt_prog_compiler_wl_CXX='-Wl,'
18460 lt_prog_compiler_pic_CXX='-fpic'
18461 lt_prog_compiler_static_CXX='-Bstatic'
18465 # Make sure the PIC flag is empty. It appears that all Alpha
18466 # Linux and Compaq Tru64 Unix objects are PIC.
18467 lt_prog_compiler_pic_CXX=
18468 lt_prog_compiler_static_CXX='-non_shared'
18470 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18471 # IBM XL 8.0, 9.0 on PPC and BlueGene
18472 lt_prog_compiler_wl_CXX='-Wl,'
18473 lt_prog_compiler_pic_CXX='-qpic'
18474 lt_prog_compiler_static_CXX='-qstaticlink'
18477 case `$CC -V 2>&1 | sed 5q` in
18480 lt_prog_compiler_pic_CXX='-KPIC'
18481 lt_prog_compiler_static_CXX='-Bstatic'
18482 lt_prog_compiler_wl_CXX='-Qoption ld '
18493 case $cc_basename in
18495 lt_prog_compiler_pic_CXX='-W c,exportall'
18504 # QNX uses GNU C++, but need to define -shared option too, otherwise
18505 # it will coredump.
18506 lt_prog_compiler_pic_CXX='-fPIC -shared'
18508 osf3* | osf4* | osf5*)
18509 case $cc_basename in
18511 lt_prog_compiler_wl_CXX='--backend -Wl,'
18514 # Rational C++ 2.4.1
18515 lt_prog_compiler_pic_CXX='-pic'
18518 # Digital/Compaq C++
18519 lt_prog_compiler_wl_CXX='-Wl,'
18520 # Make sure the PIC flag is empty. It appears that all Alpha
18521 # Linux and Compaq Tru64 Unix objects are PIC.
18522 lt_prog_compiler_pic_CXX=
18523 lt_prog_compiler_static_CXX='-non_shared'
18532 case $cc_basename in
18534 # Sun C++ 4.2, 5.x and Centerline C++
18535 lt_prog_compiler_pic_CXX='-KPIC'
18536 lt_prog_compiler_static_CXX='-Bstatic'
18537 lt_prog_compiler_wl_CXX='-Qoption ld '
18540 # Green Hills C++ Compiler
18541 lt_prog_compiler_pic_CXX='-PIC'
18548 case $cc_basename in
18551 lt_prog_compiler_pic_CXX='-pic'
18552 lt_prog_compiler_static_CXX='-Bstatic'
18556 lt_prog_compiler_pic_CXX='-pic'
18562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18563 case $cc_basename in
18565 lt_prog_compiler_wl_CXX='-Wl,'
18566 lt_prog_compiler_pic_CXX='-KPIC'
18567 lt_prog_compiler_static_CXX='-Bstatic'
18572 case $cc_basename in
18574 # NonStop-UX NCC 3.20
18575 lt_prog_compiler_pic_CXX='-KPIC'
18584 lt_prog_compiler_can_build_shared_CXX=no
18590 # For platforms which do not support PIC, -DPIC is meaningless:
18592 lt_prog_compiler_pic_CXX=
18595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18601 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18602 $as_echo_n "(cached) " >&6
18604 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18607 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18608 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18611 # Check to make sure the PIC flag actually works.
18613 if test -n "$lt_prog_compiler_pic_CXX"; then
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18615 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18616 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18617 $as_echo_n "(cached) " >&6
18619 lt_cv_prog_compiler_pic_works_CXX=no
18620 ac_outfile=conftest.$ac_objext
18621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18622 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18623 # Insert the option either (1) after the last *FLAGS variable, or
18624 # (2) before a word containing "conftest.", or (3) at the end.
18625 # Note that $ac_compile itself does not contain backslashes and begins
18626 # with a dollar sign (not a hyphen), so the echo should work correctly.
18627 # The option is referenced via a variable to avoid confusing sed.
18628 lt_compile=`echo "$ac_compile" | $SED \
18629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18631 -e 's:$: $lt_compiler_flag:'`
18632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18633 (eval "$lt_compile" 2>conftest.err)
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 if (exit $ac_status) && test -s "$ac_outfile"; then
18638 # The compiler can only warn and ignore the option if not recognized
18639 # So say no if there are warnings other than the usual output.
18640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18643 lt_cv_prog_compiler_pic_works_CXX=yes
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18650 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18652 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18653 case $lt_prog_compiler_pic_CXX in
18655 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18658 lt_prog_compiler_pic_CXX=
18659 lt_prog_compiler_can_build_shared_CXX=no
18669 # Check to make sure the static flag actually works.
18671 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18674 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18675 $as_echo_n "(cached) " >&6
18677 lt_cv_prog_compiler_static_works_CXX=no
18678 save_LDFLAGS="$LDFLAGS"
18679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18682 # The linker can only warn and ignore the option if not recognized
18683 # So say no if there are warnings
18684 if test -s conftest.err; then
18685 # Append any errors to the config.log.
18686 cat conftest.err 1>&5
18687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18689 if diff conftest.exp conftest.er2 >/dev/null; then
18690 lt_cv_prog_compiler_static_works_CXX=yes
18693 lt_cv_prog_compiler_static_works_CXX=yes
18697 LDFLAGS="$save_LDFLAGS"
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18701 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18703 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18706 lt_prog_compiler_static_CXX=
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18714 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18715 $as_echo_n "(cached) " >&6
18717 lt_cv_prog_compiler_c_o_CXX=no
18718 $RM -r conftest 2>/dev/null
18722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18724 lt_compiler_flag="-o out/conftest2.$ac_objext"
18725 # Insert the option either (1) after the last *FLAGS variable, or
18726 # (2) before a word containing "conftest.", or (3) at the end.
18727 # Note that $ac_compile itself does not contain backslashes and begins
18728 # with a dollar sign (not a hyphen), so the echo should work correctly.
18729 lt_compile=`echo "$ac_compile" | $SED \
18730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18732 -e 's:$: $lt_compiler_flag:'`
18733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18734 (eval "$lt_compile" 2>out/conftest.err)
18736 cat out/conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18740 # The compiler can only warn and ignore the option if not recognized
18741 # So say no if there are warnings
18742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18745 lt_cv_prog_compiler_c_o_CXX=yes
18750 # SGI C++ compiler will create directory out/ii_files/ for
18751 # template instantiation
18752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18753 $RM out/* && rmdir out
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18766 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18767 $as_echo_n "(cached) " >&6
18769 lt_cv_prog_compiler_c_o_CXX=no
18770 $RM -r conftest 2>/dev/null
18774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18776 lt_compiler_flag="-o out/conftest2.$ac_objext"
18777 # Insert the option either (1) after the last *FLAGS variable, or
18778 # (2) before a word containing "conftest.", or (3) at the end.
18779 # Note that $ac_compile itself does not contain backslashes and begins
18780 # with a dollar sign (not a hyphen), so the echo should work correctly.
18781 lt_compile=`echo "$ac_compile" | $SED \
18782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18784 -e 's:$: $lt_compiler_flag:'`
18785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18786 (eval "$lt_compile" 2>out/conftest.err)
18788 cat out/conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18792 # The compiler can only warn and ignore the option if not recognized
18793 # So say no if there are warnings
18794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18797 lt_cv_prog_compiler_c_o_CXX=yes
18802 # SGI C++ compiler will create directory out/ii_files/ for
18803 # template instantiation
18804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18805 $RM out/* && rmdir out
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18812 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18817 hard_links="nottested"
18818 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18819 # do not overwrite the value of need_locks provided by the user
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18821 $as_echo_n "checking if we can lock with hard links... " >&6; }
18824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18826 ln conftest.a conftest.b 2>&5 || hard_links=no
18827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18829 $as_echo "$hard_links" >&6; }
18830 if test "$hard_links" = no; then
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18832 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18844 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18845 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18848 # If we're using GNU nm, then we don't want the "-C" option.
18849 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18850 # Also, AIX nm treats weak defined symbols like other global defined
18851 # symbols, whereas GNU nm marks them as "W".
18852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18853 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'
18855 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'
18859 export_symbols_cmds_CXX="$ltdll_cmds"
18861 cygwin* | mingw* | cegcc*)
18862 case $cc_basename in
18865 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'
18866 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18876 $as_echo "$ld_shlibs_CXX" >&6; }
18877 test "$ld_shlibs_CXX" = no && can_build_shared=no
18879 with_gnu_ld_CXX=$with_gnu_ld
18887 # Do we need to explicitly link libc?
18889 case "x$archive_cmds_need_lc_CXX" in
18891 # Assume -lc should be added
18892 archive_cmds_need_lc_CXX=yes
18894 if test "$enable_shared" = yes && test "$GCC" = yes; then
18895 case $archive_cmds_CXX in
18897 # FIXME: we may have to deal with multi-command sequences.
18900 # Test whether the compiler implicitly links with -lc since on some
18901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18902 # to ld, don't add -lc before -lgcc.
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18904 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18905 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18906 $as_echo_n "(cached) " >&6
18909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18912 (eval $ac_compile) 2>&5
18914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915 test $ac_status = 0; } 2>conftest.err; then
18918 libobjs=conftest.$ac_objext
18920 wl=$lt_prog_compiler_wl_CXX
18921 pic_flag=$lt_prog_compiler_pic_CXX
18927 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18928 allow_undefined_flag_CXX=
18929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18930 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18933 test $ac_status = 0; }
18935 lt_cv_archive_cmds_need_lc_CXX=no
18937 lt_cv_archive_cmds_need_lc_CXX=yes
18939 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18941 cat conftest.err 1>&5
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18947 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18948 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19019 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19021 library_names_spec=
19022 libname_spec='lib$name'
19026 postuninstall_cmds=
19030 shlibpath_overrides_runpath=unknown
19032 dynamic_linker="$host_os ld.so"
19033 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19034 need_lib_prefix=unknown
19035 hardcode_into_libs=no
19037 # when you set need_version to no, make sure it does not cause -set_version
19038 # flags to be left without arguments
19039 need_version=unknown
19044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19045 shlibpath_var=LIBPATH
19047 # AIX 3 has no versioning support, so we append a major version to the name.
19048 soname_spec='${libname}${release}${shared_ext}$major'
19055 hardcode_into_libs=yes
19056 if test "$host_cpu" = ia64; then
19057 # AIX 5 supports IA64
19058 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19059 shlibpath_var=LD_LIBRARY_PATH
19061 # With GCC up to 2.95.x, collect2 would create an import file
19062 # for dependence libraries. The import file would start with
19063 # the line `#! .'. This would cause the generated library to
19064 # depend on `.', always an invalid library. This was fixed in
19065 # development snapshots of GCC prior to 3.0.
19067 aix4 | aix4.[01] | aix4.[01].*)
19068 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19070 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19073 can_build_shared=no
19077 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19078 # soname into executable. Probably we can add versioning support to
19079 # collect2, so additional links can be useful in future.
19080 if test "$aix_use_runtimelinking" = yes; then
19081 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19082 # instead of lib<name>.a to let people know that these are not
19083 # typical AIX shared libraries.
19084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19086 # We preserve .a as extension for shared libraries through AIX4.2
19087 # and later when we are not doing run time linking.
19088 library_names_spec='${libname}${release}.a $libname.a'
19089 soname_spec='${libname}${release}${shared_ext}$major'
19091 shlibpath_var=LIBPATH
19098 # Since July 2007 AmigaOS4 officially supports .so libraries.
19099 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19103 library_names_spec='$libname.ixlibrary $libname.a'
19104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19105 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'
19111 library_names_spec='${libname}${shared_ext}'
19112 dynamic_linker="$host_os ld.so"
19113 shlibpath_var=LIBRARY_PATH
19119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19120 soname_spec='${libname}${release}${shared_ext}$major'
19121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19122 shlibpath_var=LD_LIBRARY_PATH
19123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19125 # the default ld.so.conf also contains /usr/contrib/lib and
19126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19127 # libtool to hard-code these into programs
19130 cygwin* | mingw* | pw32* | cegcc*)
19131 version_type=windows
19136 case $GCC,$cc_basename in
19139 library_names_spec='$libname.dll.a'
19140 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19141 postinstall_cmds='base_file=`basename \${file}`~
19142 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19143 dldir=$destdir/`dirname \$dlpath`~
19144 test -d \$dldir || mkdir -p \$dldir~
19145 $install_prog $dir/$dlname \$dldir/$dlname~
19146 chmod a+x \$dldir/$dlname~
19147 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19148 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19151 dlpath=$dir/\$dldll~
19153 shlibpath_overrides_runpath=yes
19157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19162 # MinGW DLLs use traditional 'lib' prefix
19163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19166 # pw32 DLLs use 'pw' prefix rather than 'lib'
19167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19170 dynamic_linker='Win32 ld.exe'
19175 libname_spec='$name'
19176 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19177 library_names_spec='${libname}.dll.lib'
19181 sys_lib_search_path_spec=
19184 for lt_path in $LIB
19187 # Let DOS variable expansion print the short 8.3 style file name.
19188 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19189 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19192 # Convert to MSYS style.
19193 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19196 # Convert to unix form, then to dos form, then back to unix form
19197 # but this time dos style (no spaces!) so that the unix form looks
19198 # like /cygdrive/c/PROGRA~1:/cygdr...
19199 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19200 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19201 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19204 sys_lib_search_path_spec="$LIB"
19205 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19206 # It is most probably a Windows format PATH.
19207 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19209 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19211 # FIXME: find the short name or the path components, as spaces are
19212 # common. (e.g. "Program Files" -> "PROGRA~1")
19216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19217 postinstall_cmds='base_file=`basename \${file}`~
19218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19219 dldir=$destdir/`dirname \$dlpath`~
19220 test -d \$dldir || mkdir -p \$dldir~
19221 $install_prog $dir/$dlname \$dldir/$dlname'
19222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19223 dlpath=$dir/\$dldll~
19225 shlibpath_overrides_runpath=yes
19226 dynamic_linker='Win32 link.exe'
19230 # Assume MSVC wrapper
19231 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19232 dynamic_linker='Win32 ld.exe'
19235 # FIXME: first we should search . and the directory the executable is in
19239 darwin* | rhapsody*)
19240 dynamic_linker="$host_os dyld"
19241 version_type=darwin
19244 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19245 soname_spec='${libname}${release}${major}$shared_ext'
19246 shlibpath_overrides_runpath=yes
19247 shlibpath_var=DYLD_LIBRARY_PATH
19248 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19258 soname_spec='${libname}${release}${shared_ext}$major'
19259 shlibpath_var=LD_LIBRARY_PATH
19266 freebsd* | dragonfly*)
19267 # DragonFly does not have aout. When/if they implement a new
19268 # versioning mechanism, adjust this.
19269 if test -x /usr/bin/objformat; then
19270 objformat=`/usr/bin/objformat`
19273 freebsd[123]*) objformat=aout ;;
19274 *) objformat=elf ;;
19277 version_type=freebsd-$objformat
19278 case $version_type in
19280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19289 shlibpath_var=LD_LIBRARY_PATH
19292 shlibpath_overrides_runpath=yes
19294 freebsd3.[01]* | freebsdelf3.[01]*)
19295 shlibpath_overrides_runpath=yes
19296 hardcode_into_libs=yes
19298 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19299 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19300 shlibpath_overrides_runpath=no
19301 hardcode_into_libs=yes
19303 *) # from 4.6 on, and DragonFly
19304 shlibpath_overrides_runpath=yes
19305 hardcode_into_libs=yes
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 shlibpath_var=LD_LIBRARY_PATH
19317 hardcode_into_libs=yes
19324 dynamic_linker="$host_os runtime_loader"
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19326 soname_spec='${libname}${release}${shared_ext}$major'
19327 shlibpath_var=LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19330 hardcode_into_libs=yes
19333 hpux9* | hpux10* | hpux11*)
19334 # Give a soname corresponding to the major version so that dld.sl refuses to
19335 # link against other versions.
19342 hardcode_into_libs=yes
19343 dynamic_linker="$host_os dld.so"
19344 shlibpath_var=LD_LIBRARY_PATH
19345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19347 soname_spec='${libname}${release}${shared_ext}$major'
19348 if test "X$HPUX_IA64_MODE" = X32; then
19349 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19357 hardcode_into_libs=yes
19358 dynamic_linker="$host_os dld.sl"
19359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19362 soname_spec='${libname}${release}${shared_ext}$major'
19363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19368 dynamic_linker="$host_os dld.sl"
19369 shlibpath_var=SHLIB_PATH
19370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19375 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19376 postinstall_cmds='chmod 555 $lib'
19377 # or fails outright, so override atomically:
19378 install_override_mode=555
19385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19386 soname_spec='${libname}${release}${shared_ext}$major'
19387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19388 shlibpath_var=LD_LIBRARY_PATH
19389 shlibpath_overrides_runpath=no
19390 hardcode_into_libs=yes
19393 irix5* | irix6* | nonstopux*)
19395 nonstopux*) version_type=nonstopux ;;
19397 if test "$lt_cv_prog_gnu_ld" = yes; then
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19408 irix5* | nonstopux*)
19409 libsuff= shlibsuff=
19412 case $LD in # libtool.m4 will add one of these switches to LD
19413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19414 libsuff= shlibsuff= libmagic=32-bit;;
19415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19416 libsuff=32 shlibsuff=N32 libmagic=N32;;
19417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19418 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19419 *) libsuff= shlibsuff= libmagic=never-match;;
19423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19424 shlibpath_overrides_runpath=no
19425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19427 hardcode_into_libs=yes
19430 # No shared lib support for Linux oldld, aout, or coff.
19431 linux*oldld* | linux*aout* | linux*coff*)
19435 # This must be Linux ELF.
19436 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19441 soname_spec='${libname}${release}${shared_ext}$major'
19442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19443 shlibpath_var=LD_LIBRARY_PATH
19444 shlibpath_overrides_runpath=no
19446 # Some binutils ld are patched to set DT_RUNPATH
19447 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19448 $as_echo_n "(cached) " >&6
19450 lt_cv_shlibpath_overrides_runpath=no
19451 save_LDFLAGS=$LDFLAGS
19452 save_libdir=$libdir
19453 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19454 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19456 /* end confdefs.h. */
19466 if ac_fn_cxx_try_link "$LINENO"; then :
19467 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19468 lt_cv_shlibpath_overrides_runpath=yes
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19473 LDFLAGS=$save_LDFLAGS
19474 libdir=$save_libdir
19478 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19480 # This implies no fast_install, which is unacceptable.
19481 # Some rework will be needed to allow for fast_install
19482 # before this can be enabled.
19483 hardcode_into_libs=yes
19485 # Add ABI-specific directories to the system library path.
19486 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19488 # Append ld.so.conf contents to the search path
19489 if test -f /etc/ld.so.conf; then
19490 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' ' '`
19491 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19495 # We used to test for /lib/ld.so.1 and disable shared libraries on
19496 # powerpc, because MkLinux only supported shared libraries with the
19497 # GNU dynamic linker. Since this was broken with cross compilers,
19498 # most powerpc-linux boxes support dynamic linking these days and
19499 # people can always --disable-shared, the test was removed, and we
19500 # assume the GNU/Linux dynamic linker is in use.
19501 dynamic_linker='GNU/Linux ld.so'
19508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19511 dynamic_linker='NetBSD (a.out) ld.so'
19513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19514 soname_spec='${libname}${release}${shared_ext}$major'
19515 dynamic_linker='NetBSD ld.elf_so'
19517 shlibpath_var=LD_LIBRARY_PATH
19518 shlibpath_overrides_runpath=yes
19519 hardcode_into_libs=yes
19524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19525 shlibpath_var=LD_LIBRARY_PATH
19526 shlibpath_overrides_runpath=yes
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19534 soname_spec='${libname}${release}${shared_ext}$major'
19535 shlibpath_var=LD_LIBRARY_PATH
19536 shlibpath_overrides_runpath=no
19537 hardcode_into_libs=yes
19538 dynamic_linker='ldqnx.so'
19543 sys_lib_dlsearch_path_spec="/usr/lib"
19545 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19547 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19548 *) need_version=no ;;
19550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19552 shlibpath_var=LD_LIBRARY_PATH
19553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19555 openbsd2.[89] | openbsd2.[89].*)
19556 shlibpath_overrides_runpath=no
19559 shlibpath_overrides_runpath=yes
19563 shlibpath_overrides_runpath=yes
19568 libname_spec='$name'
19571 library_names_spec='$libname${shared_ext} $libname.a'
19572 dynamic_linker='OS/2 ld.exe'
19573 shlibpath_var=LIBPATH
19576 osf3* | osf4* | osf5*)
19580 soname_spec='${libname}${release}${shared_ext}$major'
19581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19582 shlibpath_var=LD_LIBRARY_PATH
19583 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19584 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19596 soname_spec='${libname}${release}${shared_ext}$major'
19597 shlibpath_var=LD_LIBRARY_PATH
19598 shlibpath_overrides_runpath=yes
19599 hardcode_into_libs=yes
19600 # ldd complains unless libraries are executable
19601 postinstall_cmds='chmod +x $lib'
19606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19608 shlibpath_var=LD_LIBRARY_PATH
19609 shlibpath_overrides_runpath=yes
19610 if test "$with_gnu_ld" = yes; then
19618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19619 soname_spec='${libname}${release}${shared_ext}$major'
19620 shlibpath_var=LD_LIBRARY_PATH
19621 case $host_vendor in
19623 shlibpath_overrides_runpath=no
19625 runpath_var=LD_RUN_PATH
19633 shlibpath_overrides_runpath=no
19634 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19640 if test -d /usr/nec ;then
19642 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19643 soname_spec='$libname${shared_ext}.$major'
19644 shlibpath_var=LD_LIBRARY_PATH
19648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19649 version_type=freebsd-elf
19652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19653 soname_spec='${libname}${release}${shared_ext}$major'
19654 shlibpath_var=LD_LIBRARY_PATH
19655 shlibpath_overrides_runpath=yes
19656 hardcode_into_libs=yes
19657 if test "$with_gnu_ld" = yes; then
19658 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19660 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19663 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19667 sys_lib_dlsearch_path_spec='/usr/lib'
19671 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19676 shlibpath_var=LD_LIBRARY_PATH
19677 shlibpath_overrides_runpath=no
19678 hardcode_into_libs=yes
19683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19684 soname_spec='${libname}${release}${shared_ext}$major'
19685 shlibpath_var=LD_LIBRARY_PATH
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19693 $as_echo "$dynamic_linker" >&6; }
19694 test "$dynamic_linker" = no && can_build_shared=no
19696 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19697 if test "$GCC" = yes; then
19698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19701 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19702 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19704 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19705 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19746 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19747 hardcode_action_CXX=
19748 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19749 test -n "$runpath_var_CXX" ||
19750 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19752 # We can hardcode non-existent directories.
19753 if test "$hardcode_direct_CXX" != no &&
19754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19755 # have to relink, otherwise we might link with an installed library
19756 # when we should be linking with a yet-to-be-installed one
19757 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19758 test "$hardcode_minus_L_CXX" != no; then
19759 # Linking always hardcodes the temporary library directory.
19760 hardcode_action_CXX=relink
19762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19763 hardcode_action_CXX=immediate
19766 # We cannot hardcode anything, or else we can only hardcode existing
19768 hardcode_action_CXX=unsupported
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19771 $as_echo "$hardcode_action_CXX" >&6; }
19773 if test "$hardcode_action_CXX" = relink ||
19774 test "$inherit_rpath_CXX" = yes; then
19775 # Fast installation is not supported
19776 enable_fast_install=no
19777 elif test "$shlibpath_overrides_runpath" = yes ||
19778 test "$enable_shared" = no; then
19779 # Fast installation is not necessary
19780 enable_fast_install=needless
19789 fi # test -n "$compiler"
19792 CFLAGS=$lt_save_CFLAGS
19796 with_gnu_ld=$lt_save_with_gnu_ld
19797 lt_cv_path_LDCXX=$lt_cv_path_LD
19798 lt_cv_path_LD=$lt_save_path_LD
19799 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19800 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19801 fi # test "$_lt_caught_CXX_error" != yes
19804 ac_cpp='$CPP $CPPFLAGS'
19805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19821 ac_config_commands="$ac_config_commands libtool"
19826 # Only expand once:
19832 # Configure libltdl
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19841 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19842 if ${libltdl_cv_shlibext+:} false; then :
19843 $as_echo_n "(cached) " >&6
19847 eval libltdl_cv_shlibext=$shrext_cmds
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19851 $as_echo "$libltdl_cv_shlibext" >&6; }
19852 if test -n "$libltdl_cv_shlibext"; then
19854 cat >>confdefs.h <<_ACEOF
19855 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19861 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19862 if ${lt_cv_module_path_var+:} false; then :
19863 $as_echo_n "(cached) " >&6
19865 lt_cv_module_path_var="$shlibpath_var"
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19868 $as_echo "$lt_cv_module_path_var" >&6; }
19869 if test -n "$lt_cv_module_path_var"; then
19871 cat >>confdefs.h <<_ACEOF
19872 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19878 $as_echo_n "checking for the default library search path... " >&6; }
19879 if ${lt_cv_sys_dlsearch_path+:} false; then :
19880 $as_echo_n "(cached) " >&6
19882 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19885 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19886 if test -n "$lt_cv_sys_dlsearch_path"; then
19888 for dir in $lt_cv_sys_dlsearch_path; do
19889 if test -z "$sys_dlsearch_path"; then
19890 sys_dlsearch_path="$dir"
19892 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19896 cat >>confdefs.h <<_ACEOF
19897 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19907 ac_cpp='$CPP $CPPFLAGS'
19908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19915 $as_echo_n "checking for library containing dlopen... " >&6; }
19916 if ${ac_cv_search_dlopen+:} false; then :
19917 $as_echo_n "(cached) " >&6
19919 ac_func_search_save_LIBS=$LIBS
19920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19921 /* end confdefs.h. */
19923 /* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19938 for ac_lib in '' dl; do
19939 if test -z "$ac_lib"; then
19940 ac_res="none required"
19943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19945 if ac_fn_c_try_link "$LINENO"; then :
19946 ac_cv_search_dlopen=$ac_res
19948 rm -f core conftest.err conftest.$ac_objext \
19950 if ${ac_cv_search_dlopen+:} false; then :
19954 if ${ac_cv_search_dlopen+:} false; then :
19957 ac_cv_search_dlopen=no
19959 rm conftest.$ac_ext
19960 LIBS=$ac_func_search_save_LIBS
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19963 $as_echo "$ac_cv_search_dlopen" >&6; }
19964 ac_res=$ac_cv_search_dlopen
19965 if test "$ac_res" != no; then :
19966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19968 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19970 if test "$ac_cv_search_dlopen" != "none required" ; then
19971 LIBADD_DLOPEN="-ldl"
19973 libltdl_cv_lib_dl_dlopen="yes"
19974 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977 /* end confdefs.h. */
19979 # include <dlfcn.h>
19990 if ac_fn_c_try_link "$LINENO"; then :
19992 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19994 libltdl_cv_func_dlopen="yes"
19995 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19998 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19999 if ${ac_cv_lib_svld_dlopen+:} false; then :
20000 $as_echo_n "(cached) " >&6
20002 ac_check_lib_save_LIBS=$LIBS
20003 LIBS="-lsvld $LIBS"
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h. */
20007 /* Override any GCC internal prototype to avoid an error.
20008 Use char because int might match the return type of a GCC
20009 builtin and then its argument prototype would still apply. */
20022 if ac_fn_c_try_link "$LINENO"; then :
20023 ac_cv_lib_svld_dlopen=yes
20025 ac_cv_lib_svld_dlopen=no
20027 rm -f core conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20032 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20033 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20035 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20037 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20038 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20042 rm -f core conftest.err conftest.$ac_objext \
20043 conftest$ac_exeext conftest.$ac_ext
20046 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20048 lt_save_LIBS="$LIBS"
20049 LIBS="$LIBS $LIBADD_DLOPEN"
20050 for ac_func in dlerror
20052 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20053 if test "x$ac_cv_func_dlerror" = xyes; then :
20054 cat >>confdefs.h <<_ACEOF
20055 #define HAVE_DLERROR 1
20061 LIBS="$lt_save_LIBS"
20066 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20067 if test "x$ac_cv_func_shl_load" = xyes; then :
20069 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20071 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20074 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20075 if ${ac_cv_lib_dld_shl_load+:} false; then :
20076 $as_echo_n "(cached) " >&6
20078 ac_check_lib_save_LIBS=$LIBS
20080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20081 /* end confdefs.h. */
20083 /* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20093 return shl_load ();
20098 if ac_fn_c_try_link "$LINENO"; then :
20099 ac_cv_lib_dld_shl_load=yes
20101 ac_cv_lib_dld_shl_load=no
20103 rm -f core conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20108 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20109 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20111 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20113 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20114 LIBADD_SHL_LOAD="-ldld"
20123 # We only want this for pre-Mac OS X 10.4.
20124 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20125 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20127 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20129 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20136 cygwin* | mingw* | os2* | pw32*)
20137 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20139 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20149 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20154 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20155 if ${ac_cv_lib_dld_dld_link+:} false; then :
20156 $as_echo_n "(cached) " >&6
20158 ac_check_lib_save_LIBS=$LIBS
20160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20173 return dld_link ();
20178 if ac_fn_c_try_link "$LINENO"; then :
20179 ac_cv_lib_dld_dld_link=yes
20181 ac_cv_lib_dld_dld_link=no
20183 rm -f core conftest.err conftest.$ac_objext \
20184 conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20188 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20189 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20191 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20193 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20200 if test -n "$LT_DLLOADERS"
20202 for lt_loader in $LT_DLLOADERS; do
20203 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20206 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20211 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20215 ac_cpp='$CPP $CPPFLAGS'
20216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20222 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20223 if ${lt_cv_sys_symbol_underscore+:} false; then :
20224 $as_echo_n "(cached) " >&6
20226 lt_cv_sys_symbol_underscore=no
20227 cat > conftest.$ac_ext <<_LT_EOF
20228 void nm_test_func(){}
20229 int main(){nm_test_func;return 0;}
20231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20232 (eval $ac_compile) 2>&5
20234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20235 test $ac_status = 0; }; then
20236 # Now try to grab the symbols.
20237 ac_nlist=conftest.nm
20238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20242 test $ac_status = 0; } && test -s "$ac_nlist"; then
20243 # See whether the symbols have a leading underscore.
20244 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20245 lt_cv_sys_symbol_underscore=yes
20247 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20250 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20254 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20257 echo "configure: failed program was:" >&5
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20264 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20265 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20268 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20269 if test x"$libltdl_cv_func_dlopen" = xyes ||
20270 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20272 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20273 if ${libltdl_cv_need_uscore+:} false; then :
20274 $as_echo_n "(cached) " >&6
20276 libltdl_cv_need_uscore=unknown
20278 LIBS="$LIBS $LIBADD_DLOPEN"
20279 if test "$cross_compiling" = yes; then :
20280 libltdl_cv_need_uscore=cross
20282 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20283 lt_status=$lt_dlunknown
20284 cat > conftest.$ac_ext <<_LT_EOF
20285 #line $LINENO "configure"
20286 #include "confdefs.h"
20295 # define LT_DLGLOBAL RTLD_GLOBAL
20298 # define LT_DLGLOBAL DL_GLOBAL
20300 # define LT_DLGLOBAL 0
20304 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20305 find out it does not work in some platform. */
20306 #ifndef LT_DLLAZY_OR_NOW
20308 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20311 # define LT_DLLAZY_OR_NOW DL_LAZY
20314 # define LT_DLLAZY_OR_NOW RTLD_NOW
20317 # define LT_DLLAZY_OR_NOW DL_NOW
20319 # define LT_DLLAZY_OR_NOW 0
20326 /* When -fvisbility=hidden is used, assume the code has been annotated
20327 correspondingly for the symbols needed. */
20328 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20329 int fnord () __attribute__((visibility("default")));
20332 int fnord () { return 42; }
20335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20336 int status = $lt_dlunknown;
20340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20343 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20344 else puts (dlerror ());
20346 /* dlclose (self); */
20354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20355 (eval $ac_link) 2>&5
20357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20358 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20359 (./conftest; exit; ) >&5 2>/dev/null
20361 case x$lt_status in
20362 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20363 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20364 x$lt_dlunknown|x*) ;;
20367 # compilation failed
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20377 $as_echo "$libltdl_cv_need_uscore" >&6; }
20381 if test x"$libltdl_cv_need_uscore" = xyes; then
20383 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20388 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20389 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20390 $as_echo_n "(cached) " >&6
20392 # PORTME does your system automatically load deplibs for dlopen?
20393 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20394 # For now, we just catch OSes we know something about -- in the
20395 # future, we'll try test this programmatically.
20396 lt_cv_sys_dlopen_deplibs=unknown
20398 aix3*|aix4.1.*|aix4.2.*)
20399 # Unknown whether this is true for these versions of AIX, but
20400 # we want this `case' here to explicitly catch those versions.
20401 lt_cv_sys_dlopen_deplibs=unknown
20404 lt_cv_sys_dlopen_deplibs=yes
20409 lt_cv_sys_dlopen_deplibs=no
20414 # Assuming the user has installed a libdl from somewhere, this is true
20415 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20416 lt_cv_sys_dlopen_deplibs=yes
20418 freebsd* | dragonfly*)
20419 lt_cv_sys_dlopen_deplibs=yes
20421 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20422 # GNU and its variants, using gnu ld.so (Glibc)
20423 lt_cv_sys_dlopen_deplibs=yes
20426 lt_cv_sys_dlopen_deplibs=yes
20429 lt_cv_sys_dlopen_deplibs=yes
20431 irix[12345]*|irix6.[01]*)
20432 # Catch all versions of IRIX before 6.2, and indicate that we don't
20433 # know how it worked for any of those versions.
20434 lt_cv_sys_dlopen_deplibs=unknown
20437 # The case above catches anything before 6.2, and it's known that
20438 # at 6.2 and later dlopen does load deplibs.
20439 lt_cv_sys_dlopen_deplibs=yes
20442 lt_cv_sys_dlopen_deplibs=yes
20445 lt_cv_sys_dlopen_deplibs=yes
20448 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20449 # it did *not* use an RPATH in a shared library to find objects the
20450 # library depends on, so we explicitly say `no'.
20451 lt_cv_sys_dlopen_deplibs=no
20453 osf5.0|osf5.0a|osf5.1)
20454 # dlopen *does* load deplibs and with the right loader patch applied
20455 # it even uses RPATH in a shared library to search for shared objects
20456 # that the library depends on, but there's no easy way to know if that
20457 # patch is installed. Since this is the case, all we can really
20458 # say is unknown -- it depends on the patch being installed. If
20459 # it is, this changes to `yes'. Without it, it would be `no'.
20460 lt_cv_sys_dlopen_deplibs=unknown
20463 # the two cases above should catch all versions of osf <= 5.1. Read
20464 # the comments above for what we know about them.
20465 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20466 # is used to find them so we can finally say `yes'.
20467 lt_cv_sys_dlopen_deplibs=yes
20470 lt_cv_sys_dlopen_deplibs=yes
20473 lt_cv_sys_dlopen_deplibs=yes
20475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20476 libltdl_cv_sys_dlopen_deplibs=yes
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20482 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20483 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20485 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20491 for ac_header in argz.h
20493 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20495 if test "x$ac_cv_header_argz_h" = xyes; then :
20496 cat >>confdefs.h <<_ACEOF
20497 #define HAVE_ARGZ_H 1
20505 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20509 if test "x$ac_cv_type_error_t" = xyes; then :
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_ERROR_T 1
20518 $as_echo "#define error_t int" >>confdefs.h
20521 $as_echo "#define __error_t_defined 1" >>confdefs.h
20527 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20528 argz_next argz_stringify
20530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20532 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20533 cat >>confdefs.h <<_ACEOF
20534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20540 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20546 if test -z "$ARGZ_H"; then :
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20548 $as_echo_n "checking if argz actually works... " >&6; }
20549 if ${lt_cv_sys_argz_works+:} false; then :
20550 $as_echo_n "(cached) " >&6
20552 case $host_os in #(
20554 lt_cv_sys_argz_works=no
20555 if test "$cross_compiling" != no; then
20556 lt_cv_sys_argz_works="guessing no"
20558 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20561 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20566 if test "$lt_os_major" -gt 1 \
20567 || { test "$lt_os_major" -eq 1 \
20568 && { test "$lt_os_minor" -gt 5 \
20569 || { test "$lt_os_minor" -eq 5 \
20570 && test "$lt_os_micro" -gt 24; }; }; }; then
20571 lt_cv_sys_argz_works=yes
20575 *) lt_cv_sys_argz_works=yes ;;
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20579 $as_echo "$lt_cv_sys_argz_works" >&6; }
20580 if test "$lt_cv_sys_argz_works" = yes; then :
20582 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20588 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20596 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20597 if ${libltdl_cv_preloaded_symbols+:} false; then :
20598 $as_echo_n "(cached) " >&6
20600 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20601 libltdl_cv_preloaded_symbols=yes
20603 libltdl_cv_preloaded_symbols=no
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20608 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20609 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20611 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20627 # Check whether --with-included_ltdl was given.
20628 if test "${with_included_ltdl+set}" = set; then :
20629 withval=$with_included_ltdl;
20633 if test "x$with_included_ltdl" != xyes; then
20634 # We are not being forced to use the included libltdl sources, so
20635 # decide whether there is a useful installed version we can use.
20636 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20639 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20640 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20643 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20645 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20646 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20647 $as_echo_n "(cached) " >&6
20649 ac_check_lib_save_LIBS=$LIBS
20650 LIBS="-lltdl $LIBS"
20651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652 /* end confdefs.h. */
20654 /* Override any GCC internal prototype to avoid an error.
20655 Use char because int might match the return type of a GCC
20656 builtin and then its argument prototype would still apply. */
20660 char lt_dladvise_preload ();
20664 return lt_dladvise_preload ();
20669 if ac_fn_c_try_link "$LINENO"; then :
20670 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20672 ac_cv_lib_ltdl_lt_dladvise_preload=no
20674 rm -f core conftest.err conftest.$ac_objext \
20675 conftest$ac_exeext conftest.$ac_ext
20676 LIBS=$ac_check_lib_save_LIBS
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20679 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20680 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20681 with_included_ltdl=no
20683 with_included_ltdl=yes
20687 with_included_ltdl=yes
20691 with_included_ltdl=yes
20700 # Check whether --with-ltdl_include was given.
20701 if test "${with_ltdl_include+set}" = set; then :
20702 withval=$with_ltdl_include;
20706 if test -n "$with_ltdl_include"; then
20707 if test -f "$with_ltdl_include/ltdl.h"; then :
20709 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20712 with_ltdl_include=no
20716 # Check whether --with-ltdl_lib was given.
20717 if test "${with_ltdl_lib+set}" = set; then :
20718 withval=$with_ltdl_lib;
20722 if test -n "$with_ltdl_lib"; then
20723 if test -f "$with_ltdl_lib/libltdl.la"; then :
20725 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20731 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20733 case $enable_ltdl_convenience in
20734 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20735 "") enable_ltdl_convenience=yes
20736 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20738 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20740 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20746 # For backwards non-gettext consistent compatibility...
20747 INCLTDL="$LTDLINCL"
20752 # If the included ltdl is not to be used, then use the
20753 # preinstalled libltdl we found.
20755 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20762 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20764 *) with_included_ltdl=no
20765 LIBLTDL="-L$with_ltdl_lib -lltdl"
20767 LTDLINCL="-I$with_ltdl_include"
20770 INCLTDL="$LTDLINCL"
20772 # Report our decision...
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20774 $as_echo_n "checking where to find libltdl headers... " >&6; }
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20776 $as_echo "$LTDLINCL" >&6; }
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20778 $as_echo_n "checking where to find libltdl library... " >&6; }
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20780 $as_echo "$LIBLTDL" >&6; }
20784 # Check whether --enable-ltdl-install was given.
20785 if test "${enable_ltdl_install+set}" = set; then :
20786 enableval=$enable_ltdl_install;
20790 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20792 *) enable_ltdl_convenience=yes ;;
20795 if test x"${enable_ltdl_install-no}" != xno; then
20797 INSTALL_LTDL_FALSE='#'
20799 INSTALL_LTDL_TRUE='#'
20800 INSTALL_LTDL_FALSE=
20803 if test x"${enable_ltdl_convenience-no}" != xno; then
20804 CONVENIENCE_LTDL_TRUE=
20805 CONVENIENCE_LTDL_FALSE='#'
20807 CONVENIENCE_LTDL_TRUE='#'
20808 CONVENIENCE_LTDL_FALSE=
20816 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20817 # the user used. This is so that ltdl.h can pick up the parent projects
20818 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20819 # definitions required by ltdl.c.
20820 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20824 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20827 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20830 cat >>confdefs.h <<_ACEOF
20831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20839 for ac_func in closedir opendir readdir
20841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20843 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20844 cat >>confdefs.h <<_ACEOF
20845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20851 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20856 for ac_func in strlcat strlcpy
20858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20859 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20860 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20861 cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20868 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20875 cat >>confdefs.h <<_ACEOF
20876 #define LT_LIBEXT "$libext"
20881 eval "lt_libprefix=\"$libname_spec\""
20883 cat >>confdefs.h <<_ACEOF
20884 #define LT_LIBPREFIX "$lt_libprefix"
20889 eval "LTDLOPEN=\"$libname_spec\""
20898 # Only expand once:
20902 # Check to see if building shared libraries
20903 libtool_build_shared_libs='no'
20904 if test "$enable_shared" = 'yes'; then
20905 libtool_build_shared_libs='yes'
20908 # Check to see if building static libraries
20909 libtool_build_static_libs='no'
20910 if test "$enable_static" = 'yes'; then
20911 libtool_build_static_libs='yes'
20914 if test "${libtool_build_shared_libs}" = 'yes'; then
20915 WITH_SHARED_LIBS_TRUE=
20916 WITH_SHARED_LIBS_FALSE='#'
20918 WITH_SHARED_LIBS_TRUE='#'
20919 WITH_SHARED_LIBS_FALSE=
20923 # Enable support for building loadable modules
20926 # Check whether --with-modules was given.
20927 if test "${with_modules+set}" = set; then :
20928 withval=$with_modules; with_modules=$withval
20934 # Only allow building loadable modules if we are building shared libraries
20935 if test "$with_modules" != 'no' ; then
20936 if test "$libtool_build_shared_libs" = 'no'; then
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20938 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20942 if test "$with_modules" != 'no'; then
20944 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20947 if test "$with_modules" != 'no'; then
20949 WITH_MODULES_FALSE='#'
20951 WITH_MODULES_TRUE='#'
20952 WITH_MODULES_FALSE=
20956 # Enable building/use of libltdl if we are building shared libraries regardless
20957 # of whether modules are built or not.
20959 if test "$libtool_build_shared_libs" != 'no'; then
20963 if test "$with_ltdl" != 'no'; then
20965 WITH_LTDL_FALSE='#'
20971 if test "$with_ltdl" != 'no'; then
20973 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20977 if test X"$enable_shared" = Xyes; then
20978 DLLDFLAGS=-export-dynamic
20983 # Enable build using delegate libraries built in subdirectories rather than installed
20984 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20985 # Check whether --enable-delegate-build was given.
20986 if test "${enable_delegate_build+set}" = set; then :
20987 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20989 enable_delegate_build='no'
20993 # Check whether --enable-deprecated was given.
20994 if test "${enable_deprecated+set}" = set; then :
20995 enableval=$enable_deprecated; enable_deprecated=$enableval
20997 enable_deprecated='no'
21001 if test "$enable_deprecated" = 'yes'; then
21003 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21006 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21009 # Build a version of ImageMagick which operates uninstalled.
21010 # Used to build distributions located via MAGICK_HOME / executable path
21011 # Check whether --enable-installed was given.
21012 if test "${enable_installed+set}" = set; then :
21013 enableval=$enable_installed; enable_installed=$enableval
21015 enable_installed='yes'
21019 if test "$enable_installed" = 'yes'; then
21021 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21024 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21027 # Permit enciphering and deciphering image pixels.
21028 # Check whether --enable-cipher was given.
21029 if test "${enable_cipher+set}" = set; then :
21030 enableval=$enable_cipher; enable_cipher=$enableval
21032 enable_cipher='yes'
21036 if test "$enable_cipher" = 'yes'; then
21038 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21042 # Build an embeddable version of ImageMagick.
21043 # Check whether --enable-embeddable was given.
21044 if test "${enable_embeddable+set}" = set; then :
21045 enableval=$enable_embeddable; enable_embeddable=$enableval
21047 enable_embeddable='no'
21051 if test "$enable_embeddable" = 'yes'; then
21053 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
21057 # Build a high dynamic range version of ImageMagick.
21058 # Check whether --enable-hdri was given.
21059 if test "${enable_hdri+set}" = set; then :
21060 enableval=$enable_hdri; enable_hdri=$enableval
21067 if test "$enable_hdri" = 'yes'; then
21070 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21072 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21075 # Build a version of ImageMagick with assert statements.
21076 # Check whether --enable-assert was given.
21077 if test "${enable_assert+set}" = set; then :
21078 enableval=$enable_assert; enable_assert=$enableval
21080 enable_assert='yes'
21084 if test "$enable_assert" = 'no'; then
21086 $as_echo "#define NDEBUG 1" >>confdefs.h
21090 # Add configure option --enable-maintainer-mode which enables dependency
21091 # checking and generation useful to package maintainers. This is made an
21092 # option to avoid confusing end users.
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21095 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21096 # Check whether --enable-maintainer-mode was given.
21097 if test "${enable_maintainer_mode+set}" = set; then :
21098 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21100 USE_MAINTAINER_MODE=no
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21104 $as_echo "$USE_MAINTAINER_MODE" >&6; }
21105 if test $USE_MAINTAINER_MODE = yes; then
21106 MAINTAINER_MODE_TRUE=
21107 MAINTAINER_MODE_FALSE='#'
21109 MAINTAINER_MODE_TRUE='#'
21110 MAINTAINER_MODE_FALSE=
21113 MAINT=$MAINTAINER_MODE_TRUE
21118 # Enable ccmalloc memory debugging support
21119 # Check whether --enable-ccmalloc was given.
21120 if test "${enable_ccmalloc+set}" = set; then :
21121 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21123 enable_ccmalloc='no'
21127 # Enable Electric Fence memory debugging support
21128 # Check whether --enable-efence was given.
21129 if test "${enable_efence+set}" = set; then :
21130 enableval=$enable_efence; enable_efence=$enableval
21136 # Enable prof-based profiling support
21137 # Check whether --enable-prof was given.
21138 if test "${enable_prof+set}" = set; then :
21139 enableval=$enable_prof; enable_prof=$enableval
21145 # Enable gprof-based profiling support
21146 # Check whether --enable-gprof was given.
21147 if test "${enable_gprof+set}" = set; then :
21148 enableval=$enable_gprof; enable_gprof=$enableval
21154 # Enable gcov-based profiling support
21155 # Check whether --enable-gcov was given.
21156 if test "${enable_gcov+set}" = set; then :
21157 enableval=$enable_gcov; enable_gcov=$enableval
21163 enable_profiling='no'
21164 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21165 enable_profiling='yes'
21166 if test "$libtool_build_shared_libs" = 'yes'; then
21167 echo "Warning: Can not profile code using shared libraries"
21171 # Magick API method prefix
21173 # Check whether --with-method-prefix was given.
21174 if test "${with_method_prefix+set}" = set; then :
21175 withval=$with_method_prefix; with_method_prefix=$enableval
21177 with_method_prefix=''
21181 if test "$with_method_prefix" != ''; then
21183 cat >>confdefs.h <<_ACEOF
21184 #define NAMESPACE_PREFIX $with_method_prefix
21189 # Number of bits in a Quantum
21191 # Check whether --with-quantum-depth was given.
21192 if test "${with_quantum_depth+set}" = set; then :
21193 withval=$with_quantum_depth; with_quantum_depth=$withval
21195 with_quantum_depth=16
21199 if test "$with_quantum_depth" != '8'; then
21200 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21203 case "${with_quantum_depth}" in
21208 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21210 QUANTUM_DEPTH="$with_quantum_depth"
21212 cat >>confdefs.h <<_ACEOF
21213 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21217 # Set pixel cache threshold
21219 # Check whether --with-cache was given.
21220 if test "${with_cache+set}" = set; then :
21221 withval=$with_cache; with_cache=$withval
21227 if test "$with_cache" != ''; then
21229 cat >>confdefs.h <<_ACEOF
21230 #define PixelCacheThreshold $with_cache
21233 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21236 # Disable/Enable support for full delegate paths
21238 # Check whether --with-frozenpaths was given.
21239 if test "${with_frozenpaths+set}" = set; then :
21240 withval=$with_frozenpaths; with_frozenpaths=$withval
21242 with_frozenpaths='no'
21246 # Enable build/install of Magick++
21248 # Check whether --with-magick-plus-plus was given.
21249 if test "${with_magick_plus_plus+set}" = set; then :
21250 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21252 with_magick_plus_plus='yes'
21256 # Disable build/install of PerlMagick.
21258 # Check whether --with-perl was given.
21259 if test "${with_perl+set}" = set; then :
21260 withval=$with_perl; with_perl=$withval
21266 # Options to pass when configuring PerlMagick
21268 # Check whether --with-perl-options was given.
21269 if test "${with_perl_options+set}" = set; then :
21270 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21275 # Enable umem, object-caching memory allocation library.
21277 # Check whether --with-umem was given.
21278 if test "${with_umem+set}" = set; then :
21279 withval=$with_umem; with_umem=$withval
21284 if test "$with_umem" != 'yes' ; then
21285 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21289 # Specify path to shared libstdc++ if not in normal location
21292 # Check whether --with-libstdc was given.
21293 if test "${with_libstdc+set}" = set; then :
21294 withval=$with_libstdc; with_libstdc=$withval
21300 if test "$with_libstdc" != ''; then
21301 if test -d "$with_libstdc"; then
21302 LIBSTDCLDFLAGS="-L$with_libstdc"
21307 # Does gcc required -traditional?
21308 if test $ac_cv_c_compiler_gnu = yes; then
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21310 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21311 if ${ac_cv_prog_gcc_traditional+:} false; then :
21312 $as_echo_n "(cached) " >&6
21314 ac_pattern="Autoconf.*'x'"
21315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h. */
21320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21321 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21322 ac_cv_prog_gcc_traditional=yes
21324 ac_cv_prog_gcc_traditional=no
21329 if test $ac_cv_prog_gcc_traditional = no; then
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21332 #include <termio.h>
21335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21336 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21337 ac_cv_prog_gcc_traditional=yes
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21344 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21345 if test $ac_cv_prog_gcc_traditional = yes; then
21346 CC="$CC -traditional"
21353 # Set defines required to build DLLs and modules using MinGW
21356 # These options are set for multi-thread DLL module build
21357 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21359 # executable/Magick++: _DLL _MAGICKMOD_
21360 MODULE_EXTRA_CPPFLAGS=''
21361 LIBRARY_EXTRA_CPPFLAGS=''
21362 if test "${native_win32_build}" = 'yes'; then
21363 if test "${libtool_build_shared_libs}" = 'yes'; then
21364 CPPFLAGS="$CPPFLAGS -D_DLL"
21365 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21366 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21367 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21368 if test "$with_modules" = 'yes'; then
21369 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21371 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21374 CPPFLAGS="$CPPFLAGS -D_LIB"
21375 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21376 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21378 if test "$with_threads" = 'yes'; then
21379 CPPFLAGS="$CPPFLAGS -D_MT"
21380 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21381 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21387 # Check standard headers
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21389 $as_echo_n "checking for ANSI C header files... " >&6; }
21390 if ${ac_cv_header_stdc+:} false; then :
21391 $as_echo_n "(cached) " >&6
21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h. */
21395 #include <stdlib.h>
21396 #include <stdarg.h>
21397 #include <string.h>
21408 if ac_fn_c_try_compile "$LINENO"; then :
21409 ac_cv_header_stdc=yes
21411 ac_cv_header_stdc=no
21413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 if test $ac_cv_header_stdc = yes; then
21416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h. */
21419 #include <string.h>
21422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21423 $EGREP "memchr" >/dev/null 2>&1; then :
21426 ac_cv_header_stdc=no
21432 if test $ac_cv_header_stdc = yes; then
21433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21435 /* end confdefs.h. */
21436 #include <stdlib.h>
21439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21440 $EGREP "free" >/dev/null 2>&1; then :
21443 ac_cv_header_stdc=no
21449 if test $ac_cv_header_stdc = yes; then
21450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21451 if test "$cross_compiling" = yes; then :
21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h. */
21457 #include <stdlib.h>
21458 #if ((' ' & 0x0FF) == 0x020)
21459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21462 # define ISLOWER(c) \
21463 (('a' <= (c) && (c) <= 'i') \
21464 || ('j' <= (c) && (c) <= 'r') \
21465 || ('s' <= (c) && (c) <= 'z'))
21466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21474 for (i = 0; i < 256; i++)
21475 if (XOR (islower (i), ISLOWER (i))
21476 || toupper (i) != TOUPPER (i))
21481 if ac_fn_c_try_run "$LINENO"; then :
21484 ac_cv_header_stdc=no
21486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21487 conftest.$ac_objext conftest.beam conftest.$ac_ext
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21493 $as_echo "$ac_cv_header_stdc" >&6; }
21494 if test $ac_cv_header_stdc = yes; then
21496 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21500 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21502 header files. Compilation cannot proceed. Please install the ANSI C
21503 headers and rerun this script." >&5
21504 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21505 header files. Compilation cannot proceed. Please install the ANSI C
21506 headers and rerun this script." >&2;};
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21510 $as_echo_n "checking whether to enable assertions... " >&6; }
21511 # Check whether --enable-assert was given.
21512 if test "${enable_assert+set}" = set; then :
21513 enableval=$enable_assert; ac_enable_assert=$enableval
21514 if test "x$enableval" = xno; then :
21516 $as_echo "#define NDEBUG 1" >>confdefs.h
21518 elif test "x$enableval" != xyes; then :
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21520 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21521 ac_enable_assert=yes
21524 ac_enable_assert=yes
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21528 $as_echo "$ac_enable_assert" >&6; }
21530 ac_header_dirent=no
21531 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21532 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21534 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21535 if eval \${$as_ac_Header+:} false; then :
21536 $as_echo_n "(cached) " >&6
21538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21539 /* end confdefs.h. */
21540 #include <sys/types.h>
21552 if ac_fn_c_try_compile "$LINENO"; then :
21553 eval "$as_ac_Header=yes"
21555 eval "$as_ac_Header=no"
21557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 eval ac_res=\$$as_ac_Header
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21561 $as_echo "$ac_res" >&6; }
21562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21563 cat >>confdefs.h <<_ACEOF
21564 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21567 ac_header_dirent=$ac_hdr; break
21571 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21572 if test $ac_header_dirent = dirent.h; then
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21574 $as_echo_n "checking for library containing opendir... " >&6; }
21575 if ${ac_cv_search_opendir+:} false; then :
21576 $as_echo_n "(cached) " >&6
21578 ac_func_search_save_LIBS=$LIBS
21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h. */
21582 /* Override any GCC internal prototype to avoid an error.
21583 Use char because int might match the return type of a GCC
21584 builtin and then its argument prototype would still apply. */
21597 for ac_lib in '' dir; do
21598 if test -z "$ac_lib"; then
21599 ac_res="none required"
21602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21604 if ac_fn_c_try_link "$LINENO"; then :
21605 ac_cv_search_opendir=$ac_res
21607 rm -f core conftest.err conftest.$ac_objext \
21609 if ${ac_cv_search_opendir+:} false; then :
21613 if ${ac_cv_search_opendir+:} false; then :
21616 ac_cv_search_opendir=no
21618 rm conftest.$ac_ext
21619 LIBS=$ac_func_search_save_LIBS
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21622 $as_echo "$ac_cv_search_opendir" >&6; }
21623 ac_res=$ac_cv_search_opendir
21624 if test "$ac_res" != no; then :
21625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21631 $as_echo_n "checking for library containing opendir... " >&6; }
21632 if ${ac_cv_search_opendir+:} false; then :
21633 $as_echo_n "(cached) " >&6
21635 ac_func_search_save_LIBS=$LIBS
21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h. */
21639 /* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21654 for ac_lib in '' x; do
21655 if test -z "$ac_lib"; then
21656 ac_res="none required"
21659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21661 if ac_fn_c_try_link "$LINENO"; then :
21662 ac_cv_search_opendir=$ac_res
21664 rm -f core conftest.err conftest.$ac_objext \
21666 if ${ac_cv_search_opendir+:} false; then :
21670 if ${ac_cv_search_opendir+:} false; then :
21673 ac_cv_search_opendir=no
21675 rm conftest.$ac_ext
21676 LIBS=$ac_func_search_save_LIBS
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21679 $as_echo "$ac_cv_search_opendir" >&6; }
21680 ac_res=$ac_cv_search_opendir
21681 if test "$ac_res" != no; then :
21682 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21689 # Check additional headers
21690 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
21692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21695 cat >>confdefs.h <<_ACEOF
21696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21706 # Checks for typedefs, structures, and compiler characteristics.
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21711 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21712 if ${ac_cv_header_stdbool_h+:} false; then :
21713 $as_echo_n "(cached) " >&6
21715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716 /* end confdefs.h. */
21718 #include <stdbool.h>
21720 "error: bool is not defined"
21723 "error: false is not defined"
21726 "error: false is not 0"
21729 "error: true is not defined"
21732 "error: true is not 1"
21734 #ifndef __bool_true_false_are_defined
21735 "error: __bool_true_false_are_defined is not defined"
21738 struct s { _Bool s: 1; _Bool t; } s;
21740 char a[true == 1 ? 1 : -1];
21741 char b[false == 0 ? 1 : -1];
21742 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21743 char d[(bool) 0.5 == true ? 1 : -1];
21744 /* See body of main program for 'e'. */
21745 char f[(_Bool) 0.0 == false ? 1 : -1];
21747 char h[sizeof (_Bool)];
21748 char i[sizeof s.t];
21749 enum { j = false, k = true, l = false * true, m = true * 256 };
21750 /* The following fails for
21751 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21753 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21754 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21755 /* Catch a bug in an HP-UX C compiler. See
21756 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21757 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21769 /* Refer to every declared value, to avoid compiler optimizations. */
21770 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21771 + !m + !n + !o + !p + !q + !pq);
21777 if ac_fn_c_try_compile "$LINENO"; then :
21778 ac_cv_header_stdbool_h=yes
21780 ac_cv_header_stdbool_h=no
21782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21785 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21786 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21787 if test "x$ac_cv_type__Bool" = xyes; then :
21789 cat >>confdefs.h <<_ACEOF
21790 #define HAVE__BOOL 1
21796 if test $ac_cv_header_stdbool_h = yes; then
21798 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21803 $as_echo_n "checking for working volatile... " >&6; }
21804 if ${ac_cv_c_volatile+:} false; then :
21805 $as_echo_n "(cached) " >&6
21807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h. */
21815 int * volatile y = (int *) 0;
21821 if ac_fn_c_try_compile "$LINENO"; then :
21822 ac_cv_c_volatile=yes
21824 ac_cv_c_volatile=no
21826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21829 $as_echo "$ac_cv_c_volatile" >&6; }
21830 if test $ac_cv_c_volatile = no; then
21832 $as_echo "#define volatile /**/" >>confdefs.h
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21837 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21838 if ${ac_cv_c_stringize+:} false; then :
21839 $as_echo_n "(cached) " >&6
21841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h. */
21845 char *s = x(teststring);
21847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21848 $EGREP "#teststring" >/dev/null 2>&1; then :
21849 ac_cv_c_stringize=no
21851 ac_cv_c_stringize=yes
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21857 $as_echo "$ac_cv_c_stringize" >&6; }
21858 if test $ac_cv_c_stringize = yes; then
21860 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21865 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21866 if ${ac_cv_header_stat_broken+:} false; then :
21867 $as_echo_n "(cached) " >&6
21869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h. */
21871 #include <sys/types.h>
21872 #include <sys/stat.h>
21874 #if defined S_ISBLK && defined S_IFDIR
21875 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21878 #if defined S_ISBLK && defined S_IFCHR
21879 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21882 #if defined S_ISLNK && defined S_IFREG
21883 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21886 #if defined S_ISSOCK && defined S_IFREG
21887 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21891 if ac_fn_c_try_compile "$LINENO"; then :
21892 ac_cv_header_stat_broken=no
21894 ac_cv_header_stat_broken=yes
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21899 $as_echo "$ac_cv_header_stat_broken" >&6; }
21900 if test $ac_cv_header_stat_broken = yes; then
21902 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21907 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21908 if ${ac_cv_header_time+:} false; then :
21909 $as_echo_n "(cached) " >&6
21911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21912 /* end confdefs.h. */
21913 #include <sys/types.h>
21914 #include <sys/time.h>
21920 if ((struct tm *) 0)
21926 if ac_fn_c_try_compile "$LINENO"; then :
21927 ac_cv_header_time=yes
21929 ac_cv_header_time=no
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21934 $as_echo "$ac_cv_header_time" >&6; }
21935 if test $ac_cv_header_time = yes; then
21937 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21942 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21943 if ${ac_cv_struct_tm+:} false; then :
21944 $as_echo_n "(cached) " >&6
21946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h. */
21948 #include <sys/types.h>
21955 int *p = &tm.tm_sec;
21961 if ac_fn_c_try_compile "$LINENO"; then :
21962 ac_cv_struct_tm=time.h
21964 ac_cv_struct_tm=sys/time.h
21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21969 $as_echo "$ac_cv_struct_tm" >&6; }
21970 if test $ac_cv_struct_tm = sys/time.h; then
21972 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21976 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21977 #include <$ac_cv_struct_tm>
21980 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21982 cat >>confdefs.h <<_ACEOF
21983 #define HAVE_STRUCT_TM_TM_ZONE 1
21989 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21991 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21994 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21996 if test "x$ac_cv_have_decl_tzname" = xyes; then :
22002 cat >>confdefs.h <<_ACEOF
22003 #define HAVE_DECL_TZNAME $ac_have_decl
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22007 $as_echo_n "checking for tzname... " >&6; }
22008 if ${ac_cv_var_tzname+:} false; then :
22009 $as_echo_n "(cached) " >&6
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h. */
22014 #if !HAVE_DECL_TZNAME
22015 extern char *tzname[];
22021 return tzname[0][0];
22026 if ac_fn_c_try_link "$LINENO"; then :
22027 ac_cv_var_tzname=yes
22029 ac_cv_var_tzname=no
22031 rm -f core conftest.err conftest.$ac_objext \
22032 conftest$ac_exeext conftest.$ac_ext
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22035 $as_echo "$ac_cv_var_tzname" >&6; }
22036 if test $ac_cv_var_tzname = yes; then
22038 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22044 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
22045 if ${ac_cv_sys_interpreter+:} false; then :
22046 $as_echo_n "(cached) " >&6
22052 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22053 if test $? -ne 69; then
22054 ac_cv_sys_interpreter=yes
22056 ac_cv_sys_interpreter=no
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22061 $as_echo "$ac_cv_sys_interpreter" >&6; }
22062 interpval=$ac_cv_sys_interpreter
22065 # If the C compiler supports the keyword inline, do nothing. Otherwise
22066 # define inline to __inline__ or __inline if it accepts one of those,
22067 # otherwise define inline to be empty.
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22069 $as_echo_n "checking for inline... " >&6; }
22070 if ${ac_cv_c_inline+:} false; then :
22071 $as_echo_n "(cached) " >&6
22074 for ac_kw in inline __inline__ __inline; do
22075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h. */
22077 #ifndef __cplusplus
22079 static $ac_kw foo_t static_foo () {return 0; }
22080 $ac_kw foo_t foo () {return 0; }
22084 if ac_fn_c_try_compile "$LINENO"; then :
22085 ac_cv_c_inline=$ac_kw
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 test "$ac_cv_c_inline" != no && break
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22093 $as_echo "$ac_cv_c_inline" >&6; }
22095 case $ac_cv_c_inline in
22098 case $ac_cv_c_inline in
22100 *) ac_val=$ac_cv_c_inline;;
22102 cat >>confdefs.h <<_ACEOF
22103 #ifndef __cplusplus
22104 #define inline $ac_val
22111 # If the C compiler supports the keyword restrict, do nothing. Otherwise
22112 # define restrict to __restrict__ or __restrict if it accepts one of those,
22113 # otherwise define restrict to be empty.
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22115 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22116 if ${ac_cv_c_restrict+:} false; then :
22117 $as_echo_n "(cached) " >&6
22119 ac_cv_c_restrict=no
22120 # The order here caters to the fact that C++ does not require restrict.
22121 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h. */
22124 typedef int * int_ptr;
22125 int foo (int_ptr $ac_kw ip) {
22132 int * $ac_kw t = s;
22139 if ac_fn_c_try_compile "$LINENO"; then :
22140 ac_cv_c_restrict=$ac_kw
22142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 test "$ac_cv_c_restrict" != no && break
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22148 $as_echo "$ac_cv_c_restrict" >&6; }
22150 case $ac_cv_c_restrict in
22152 no) $as_echo "#define restrict /**/" >>confdefs.h
22154 *) cat >>confdefs.h <<_ACEOF
22155 #define restrict $ac_cv_c_restrict
22161 # If words are stored with the most significant byte first (like
22162 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22164 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22165 if ${ac_cv_c_bigendian+:} false; then :
22166 $as_echo_n "(cached) " >&6
22168 ac_cv_c_bigendian=unknown
22169 # See if we're dealing with a universal compiler.
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22172 #ifndef __APPLE_CC__
22173 not a universal capable compiler
22178 if ac_fn_c_try_compile "$LINENO"; then :
22180 # Check for potential -arch flags. It is not universal unless
22181 # there are at least two -arch flags with different values.
22184 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22185 if test -n "$ac_prev"; then
22187 i?86 | x86_64 | ppc | ppc64)
22188 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22191 ac_cv_c_bigendian=universal
22197 elif test "x$ac_word" = "x-arch"; then
22202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22203 if test $ac_cv_c_bigendian = unknown; then
22204 # See if sys/param.h defines the BYTE_ORDER macro.
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h. */
22207 #include <sys/types.h>
22208 #include <sys/param.h>
22213 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22214 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22216 bogus endian macros
22223 if ac_fn_c_try_compile "$LINENO"; then :
22224 # It does; now see whether it defined to BIG_ENDIAN or not.
22225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22226 /* end confdefs.h. */
22227 #include <sys/types.h>
22228 #include <sys/param.h>
22233 #if BYTE_ORDER != BIG_ENDIAN
22241 if ac_fn_c_try_compile "$LINENO"; then :
22242 ac_cv_c_bigendian=yes
22244 ac_cv_c_bigendian=no
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 if test $ac_cv_c_bigendian = unknown; then
22251 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22254 #include <limits.h>
22259 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22260 bogus endian macros
22267 if ac_fn_c_try_compile "$LINENO"; then :
22268 # It does; now see whether it defined to _BIG_ENDIAN or not.
22269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h. */
22271 #include <limits.h>
22276 #ifndef _BIG_ENDIAN
22284 if ac_fn_c_try_compile "$LINENO"; then :
22285 ac_cv_c_bigendian=yes
22287 ac_cv_c_bigendian=no
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 if test $ac_cv_c_bigendian = unknown; then
22294 # Compile a test program.
22295 if test "$cross_compiling" = yes; then :
22296 # Try to guess by grepping values from an object file.
22297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22298 /* end confdefs.h. */
22299 short int ascii_mm[] =
22300 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22301 short int ascii_ii[] =
22302 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22303 int use_ascii (int i) {
22304 return ascii_mm[i] + ascii_ii[i];
22306 short int ebcdic_ii[] =
22307 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22308 short int ebcdic_mm[] =
22309 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22310 int use_ebcdic (int i) {
22311 return ebcdic_mm[i] + ebcdic_ii[i];
22318 return use_ascii (foo) == use_ebcdic (foo);
22323 if ac_fn_c_try_compile "$LINENO"; then :
22324 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22325 ac_cv_c_bigendian=yes
22327 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22328 if test "$ac_cv_c_bigendian" = unknown; then
22329 ac_cv_c_bigendian=no
22331 # finding both strings is unlikely to happen, but who knows?
22332 ac_cv_c_bigendian=unknown
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22339 /* end confdefs.h. */
22340 $ac_includes_default
22345 /* Are we little or big endian? From Harbison&Steele. */
22349 char c[sizeof (long int)];
22352 return u.c[sizeof (long int) - 1] == 1;
22358 if ac_fn_c_try_run "$LINENO"; then :
22359 ac_cv_c_bigendian=no
22361 ac_cv_c_bigendian=yes
22363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22364 conftest.$ac_objext conftest.beam conftest.$ac_ext
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22370 $as_echo "$ac_cv_c_bigendian" >&6; }
22371 case $ac_cv_c_bigendian in #(
22373 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22379 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22383 as_fn_error $? "unknown endianness
22384 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22388 # Define to a suitable type, if standard headers do not define it.
22389 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22390 case $ac_cv_c_int8_t in #(
22394 cat >>confdefs.h <<_ACEOF
22395 #define int8_t $ac_cv_c_int8_t
22400 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22401 case $ac_cv_c_int16_t in #(
22405 cat >>confdefs.h <<_ACEOF
22406 #define int16_t $ac_cv_c_int16_t
22411 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22412 case $ac_cv_c_int32_t in #(
22416 cat >>confdefs.h <<_ACEOF
22417 #define int32_t $ac_cv_c_int32_t
22422 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22423 case $ac_cv_c_int64_t in #(
22427 cat >>confdefs.h <<_ACEOF
22428 #define int64_t $ac_cv_c_int64_t
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22435 $as_echo_n "checking for long long int... " >&6; }
22436 if ${ac_cv_type_long_long_int+:} false; then :
22437 $as_echo_n "(cached) " >&6
22439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22440 /* end confdefs.h. */
22442 /* For now, do not test the preprocessor; as of 2007 there are too many
22443 implementations with broken preprocessors. Perhaps this can
22444 be revisited in 2012. In the meantime, code should not expect
22445 #if to work with literals wider than 32 bits. */
22446 /* Test literals. */
22447 long long int ll = 9223372036854775807ll;
22448 long long int nll = -9223372036854775807LL;
22449 unsigned long long int ull = 18446744073709551615ULL;
22450 /* Test constant expressions. */
22451 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22453 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22459 /* Test availability of runtime routines for shift and division. */
22460 long long int llmax = 9223372036854775807ll;
22461 unsigned long long int ullmax = 18446744073709551615ull;
22462 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22463 | (llmax / ll) | (llmax % ll)
22464 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22465 | (ullmax / ull) | (ullmax % ull));
22471 if ac_fn_c_try_link "$LINENO"; then :
22472 if test "$cross_compiling" = yes; then :
22473 ac_cv_type_long_long_int=yes
22475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22476 /* end confdefs.h. */
22477 #include <limits.h>
22480 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22481 # define LLONG_MAX (HALF - 1 + HALF)
22486 long long int n = 1;
22490 long long int m = n << i;
22493 if (LLONG_MAX / 2 < m)
22501 if ac_fn_c_try_run "$LINENO"; then :
22502 ac_cv_type_long_long_int=yes
22504 ac_cv_type_long_long_int=no
22506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22507 conftest.$ac_objext conftest.beam conftest.$ac_ext
22511 ac_cv_type_long_long_int=no
22513 rm -f core conftest.err conftest.$ac_objext \
22514 conftest$ac_exeext conftest.$ac_ext
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22517 $as_echo "$ac_cv_type_long_long_int" >&6; }
22518 if test $ac_cv_type_long_long_int = yes; then
22520 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22526 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22527 if test "x$ac_cv_type_intmax_t" = xyes; then :
22529 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22532 test $ac_cv_type_long_long_int = yes \
22533 && ac_type='long long int' \
22534 || ac_type='long int'
22536 cat >>confdefs.h <<_ACEOF
22537 #define intmax_t $ac_type
22544 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22545 if test "x$ac_cv_type_intptr_t" = xyes; then :
22547 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22550 for ac_type in 'int' 'long int' 'long long int'; do
22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22552 /* end confdefs.h. */
22553 $ac_includes_default
22557 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22564 if ac_fn_c_try_compile "$LINENO"; then :
22566 cat >>confdefs.h <<_ACEOF
22567 #define intptr_t $ac_type
22572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22573 test -z "$ac_type" && break
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22580 $as_echo_n "checking for long double... " >&6; }
22581 if ${ac_cv_type_long_double+:} false; then :
22582 $as_echo_n "(cached) " >&6
22584 if test "$GCC" = yes; then
22585 ac_cv_type_long_double=yes
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589 /* The Stardent Vistra knows sizeof (long double), but does
22591 long double foo = 0.0L;
22595 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22596 sizeof (double) <= sizeof (long double))];
22603 if ac_fn_c_try_compile "$LINENO"; then :
22604 ac_cv_type_long_double=yes
22606 ac_cv_type_long_double=no
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22612 $as_echo "$ac_cv_type_long_double" >&6; }
22613 if test $ac_cv_type_long_double = yes; then
22615 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22621 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22622 if ${ac_cv_type_long_double_wider+:} false; then :
22623 $as_echo_n "(cached) " >&6
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22628 long double const a[] =
22630 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22631 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22636 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22637 + (x ? f (x) : 'c'));
22643 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22644 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22645 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22646 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22647 && (int) LDBL_EPSILON == 0
22655 if ac_fn_c_try_compile "$LINENO"; then :
22656 ac_cv_type_long_double_wider=yes
22658 ac_cv_type_long_double_wider=no
22660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22663 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22664 if test $ac_cv_type_long_double_wider = yes; then
22666 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22672 $as_echo_n "checking for long long int... " >&6; }
22673 if ${ac_cv_type_long_long_int+:} false; then :
22674 $as_echo_n "(cached) " >&6
22676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677 /* end confdefs.h. */
22679 /* For now, do not test the preprocessor; as of 2007 there are too many
22680 implementations with broken preprocessors. Perhaps this can
22681 be revisited in 2012. In the meantime, code should not expect
22682 #if to work with literals wider than 32 bits. */
22683 /* Test literals. */
22684 long long int ll = 9223372036854775807ll;
22685 long long int nll = -9223372036854775807LL;
22686 unsigned long long int ull = 18446744073709551615ULL;
22687 /* Test constant expressions. */
22688 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22690 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22696 /* Test availability of runtime routines for shift and division. */
22697 long long int llmax = 9223372036854775807ll;
22698 unsigned long long int ullmax = 18446744073709551615ull;
22699 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22700 | (llmax / ll) | (llmax % ll)
22701 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22702 | (ullmax / ull) | (ullmax % ull));
22708 if ac_fn_c_try_link "$LINENO"; then :
22709 if test "$cross_compiling" = yes; then :
22710 ac_cv_type_long_long_int=yes
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22714 #include <limits.h>
22717 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22718 # define LLONG_MAX (HALF - 1 + HALF)
22723 long long int n = 1;
22727 long long int m = n << i;
22730 if (LLONG_MAX / 2 < m)
22738 if ac_fn_c_try_run "$LINENO"; then :
22739 ac_cv_type_long_long_int=yes
22741 ac_cv_type_long_long_int=no
22743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22744 conftest.$ac_objext conftest.beam conftest.$ac_ext
22748 ac_cv_type_long_long_int=no
22750 rm -f core conftest.err conftest.$ac_objext \
22751 conftest$ac_exeext conftest.$ac_ext
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22754 $as_echo "$ac_cv_type_long_long_int" >&6; }
22755 if test $ac_cv_type_long_long_int = yes; then
22757 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22762 $as_echo_n "checking for mbstate_t... " >&6; }
22763 if ${ac_cv_type_mbstate_t+:} false; then :
22764 $as_echo_n "(cached) " >&6
22766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22767 /* end confdefs.h. */
22768 $ac_includes_default
22769 # include <wchar.h>
22773 mbstate_t x; return sizeof x;
22778 if ac_fn_c_try_compile "$LINENO"; then :
22779 ac_cv_type_mbstate_t=yes
22781 ac_cv_type_mbstate_t=no
22783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22786 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22787 if test $ac_cv_type_mbstate_t = yes; then
22789 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22793 $as_echo "#define mbstate_t int" >>confdefs.h
22796 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22797 if test "x$ac_cv_type_mode_t" = xyes; then :
22801 cat >>confdefs.h <<_ACEOF
22807 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22808 if test "x$ac_cv_type_off_t" = xyes; then :
22812 cat >>confdefs.h <<_ACEOF
22813 #define off_t long int
22818 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22819 if test "x$ac_cv_type_pid_t" = xyes; then :
22823 cat >>confdefs.h <<_ACEOF
22829 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22830 if test "x$ac_cv_type_size_t" = xyes; then :
22834 cat >>confdefs.h <<_ACEOF
22835 #define size_t unsigned int
22840 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22841 if test "x$ac_cv_type_ssize_t" = xyes; then :
22845 cat >>confdefs.h <<_ACEOF
22846 #define ssize_t int
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22852 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22853 if ${ac_cv_type_uid_t+:} false; then :
22854 $as_echo_n "(cached) " >&6
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h. */
22858 #include <sys/types.h>
22861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22862 $EGREP "uid_t" >/dev/null 2>&1; then :
22863 ac_cv_type_uid_t=yes
22865 ac_cv_type_uid_t=no
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22871 $as_echo "$ac_cv_type_uid_t" >&6; }
22872 if test $ac_cv_type_uid_t = no; then
22874 $as_echo "#define uid_t int" >>confdefs.h
22877 $as_echo "#define gid_t int" >>confdefs.h
22881 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22882 case $ac_cv_c_uint8_t in #(
22886 $as_echo "#define _UINT8_T 1" >>confdefs.h
22889 cat >>confdefs.h <<_ACEOF
22890 #define uint8_t $ac_cv_c_uint8_t
22895 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22896 case $ac_cv_c_uint16_t in #(
22901 cat >>confdefs.h <<_ACEOF
22902 #define uint16_t $ac_cv_c_uint16_t
22907 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22908 case $ac_cv_c_uint32_t in #(
22912 $as_echo "#define _UINT32_T 1" >>confdefs.h
22915 cat >>confdefs.h <<_ACEOF
22916 #define uint32_t $ac_cv_c_uint32_t
22921 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22922 case $ac_cv_c_uint64_t in #(
22926 $as_echo "#define _UINT64_T 1" >>confdefs.h
22929 cat >>confdefs.h <<_ACEOF
22930 #define uint64_t $ac_cv_c_uint64_t
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22937 $as_echo_n "checking for unsigned long long int... " >&6; }
22938 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22939 $as_echo_n "(cached) " >&6
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h. */
22944 /* For now, do not test the preprocessor; as of 2007 there are too many
22945 implementations with broken preprocessors. Perhaps this can
22946 be revisited in 2012. In the meantime, code should not expect
22947 #if to work with literals wider than 32 bits. */
22948 /* Test literals. */
22949 long long int ll = 9223372036854775807ll;
22950 long long int nll = -9223372036854775807LL;
22951 unsigned long long int ull = 18446744073709551615ULL;
22952 /* Test constant expressions. */
22953 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22955 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22961 /* Test availability of runtime routines for shift and division. */
22962 long long int llmax = 9223372036854775807ll;
22963 unsigned long long int ullmax = 18446744073709551615ull;
22964 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22965 | (llmax / ll) | (llmax % ll)
22966 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22967 | (ullmax / ull) | (ullmax % ull));
22973 if ac_fn_c_try_link "$LINENO"; then :
22974 ac_cv_type_unsigned_long_long_int=yes
22976 ac_cv_type_unsigned_long_long_int=no
22978 rm -f core conftest.err conftest.$ac_objext \
22979 conftest$ac_exeext conftest.$ac_ext
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22982 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22983 if test $ac_cv_type_unsigned_long_long_int = yes; then
22985 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22991 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22992 if test "x$ac_cv_type_uintmax_t" = xyes; then :
22994 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22997 test $ac_cv_type_unsigned_long_long_int = yes \
22998 && ac_type='unsigned long long int' \
22999 || ac_type='unsigned long int'
23001 cat >>confdefs.h <<_ACEOF
23002 #define uintmax_t $ac_type
23009 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23010 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23012 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23015 for ac_type in 'unsigned int' 'unsigned long int' \
23016 'unsigned long long int'; do
23017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018 /* end confdefs.h. */
23019 $ac_includes_default
23023 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23030 if ac_fn_c_try_compile "$LINENO"; then :
23032 cat >>confdefs.h <<_ACEOF
23033 #define uintptr_t $ac_type
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039 test -z "$ac_type" && break
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23046 $as_echo_n "checking for unsigned long long int... " >&6; }
23047 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23048 $as_echo_n "(cached) " >&6
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23053 /* For now, do not test the preprocessor; as of 2007 there are too many
23054 implementations with broken preprocessors. Perhaps this can
23055 be revisited in 2012. In the meantime, code should not expect
23056 #if to work with literals wider than 32 bits. */
23057 /* Test literals. */
23058 long long int ll = 9223372036854775807ll;
23059 long long int nll = -9223372036854775807LL;
23060 unsigned long long int ull = 18446744073709551615ULL;
23061 /* Test constant expressions. */
23062 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23064 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23070 /* Test availability of runtime routines for shift and division. */
23071 long long int llmax = 9223372036854775807ll;
23072 unsigned long long int ullmax = 18446744073709551615ull;
23073 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23074 | (llmax / ll) | (llmax % ll)
23075 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23076 | (ullmax / ull) | (ullmax % ull));
23082 if ac_fn_c_try_link "$LINENO"; then :
23083 ac_cv_type_unsigned_long_long_int=yes
23085 ac_cv_type_unsigned_long_long_int=no
23087 rm -f core conftest.err conftest.$ac_objext \
23088 conftest$ac_exeext conftest.$ac_ext
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23091 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23092 if test $ac_cv_type_unsigned_long_long_int = yes; then
23094 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23099 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23100 # C compiler predefines it.
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23102 $as_echo_n "checking whether char is unsigned... " >&6; }
23103 if ${ac_cv_c_char_unsigned+:} false; then :
23104 $as_echo_n "(cached) " >&6
23106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23107 /* end confdefs.h. */
23108 $ac_includes_default
23112 static int test_array [1 - 2 * !(((char) -1) < 0)];
23119 if ac_fn_c_try_compile "$LINENO"; then :
23120 ac_cv_c_char_unsigned=no
23122 ac_cv_c_char_unsigned=yes
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23127 $as_echo "$ac_cv_c_char_unsigned" >&6; }
23128 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23129 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23134 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23135 # The cast to long int works around a bug in the HP C Compiler
23136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23138 # This bug is HP SR number 8606223364.
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23140 $as_echo_n "checking size of signed short... " >&6; }
23141 if ${ac_cv_sizeof_signed_short+:} false; then :
23142 $as_echo_n "(cached) " >&6
23144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
23147 if test "$ac_cv_type_signed_short" = yes; then
23148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23150 as_fn_error 77 "cannot compute sizeof (signed short)
23151 See \`config.log' for more details" "$LINENO" 5; }
23153 ac_cv_sizeof_signed_short=0
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23159 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
23163 cat >>confdefs.h <<_ACEOF
23164 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23169 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23170 # The cast to long int works around a bug in the HP C Compiler
23171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23173 # This bug is HP SR number 8606223364.
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23175 $as_echo_n "checking size of unsigned short... " >&6; }
23176 if ${ac_cv_sizeof_unsigned_short+:} false; then :
23177 $as_echo_n "(cached) " >&6
23179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
23182 if test "$ac_cv_type_unsigned_short" = yes; then
23183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23185 as_fn_error 77 "cannot compute sizeof (unsigned short)
23186 See \`config.log' for more details" "$LINENO" 5; }
23188 ac_cv_sizeof_unsigned_short=0
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23194 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23198 cat >>confdefs.h <<_ACEOF
23199 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23204 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23205 # The cast to long int works around a bug in the HP C Compiler
23206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23208 # This bug is HP SR number 8606223364.
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23210 $as_echo_n "checking size of signed int... " >&6; }
23211 if ${ac_cv_sizeof_signed_int+:} false; then :
23212 $as_echo_n "(cached) " >&6
23214 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
23217 if test "$ac_cv_type_signed_int" = yes; then
23218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23220 as_fn_error 77 "cannot compute sizeof (signed int)
23221 See \`config.log' for more details" "$LINENO" 5; }
23223 ac_cv_sizeof_signed_int=0
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23229 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
23233 cat >>confdefs.h <<_ACEOF
23234 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23239 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23240 # The cast to long int works around a bug in the HP C Compiler
23241 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23242 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23243 # This bug is HP SR number 8606223364.
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23245 $as_echo_n "checking size of unsigned int... " >&6; }
23246 if ${ac_cv_sizeof_unsigned_int+:} false; then :
23247 $as_echo_n "(cached) " >&6
23249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
23252 if test "$ac_cv_type_unsigned_int" = yes; then
23253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23255 as_fn_error 77 "cannot compute sizeof (unsigned int)
23256 See \`config.log' for more details" "$LINENO" 5; }
23258 ac_cv_sizeof_unsigned_int=0
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23264 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23268 cat >>confdefs.h <<_ACEOF
23269 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23274 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23275 # The cast to long int works around a bug in the HP C Compiler
23276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23278 # This bug is HP SR number 8606223364.
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23280 $as_echo_n "checking size of signed long... " >&6; }
23281 if ${ac_cv_sizeof_signed_long+:} false; then :
23282 $as_echo_n "(cached) " >&6
23284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
23287 if test "$ac_cv_type_signed_long" = yes; then
23288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23290 as_fn_error 77 "cannot compute sizeof (signed long)
23291 See \`config.log' for more details" "$LINENO" 5; }
23293 ac_cv_sizeof_signed_long=0
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23299 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
23303 cat >>confdefs.h <<_ACEOF
23304 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23309 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23310 # The cast to long int works around a bug in the HP C Compiler
23311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23313 # This bug is HP SR number 8606223364.
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23315 $as_echo_n "checking size of unsigned long... " >&6; }
23316 if ${ac_cv_sizeof_unsigned_long+:} false; then :
23317 $as_echo_n "(cached) " >&6
23319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
23322 if test "$ac_cv_type_unsigned_long" = yes; then
23323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23325 as_fn_error 77 "cannot compute sizeof (unsigned long)
23326 See \`config.log' for more details" "$LINENO" 5; }
23328 ac_cv_sizeof_unsigned_long=0
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23334 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23338 cat >>confdefs.h <<_ACEOF
23339 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23344 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23345 # 'signed long long' is not supported then the value defined is zero.
23346 # The cast to long int works around a bug in the HP C Compiler
23347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23349 # This bug is HP SR number 8606223364.
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23351 $as_echo_n "checking size of signed long long... " >&6; }
23352 if ${ac_cv_sizeof_signed_long_long+:} false; then :
23353 $as_echo_n "(cached) " >&6
23355 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
23358 if test "$ac_cv_type_signed_long_long" = yes; then
23359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23361 as_fn_error 77 "cannot compute sizeof (signed long long)
23362 See \`config.log' for more details" "$LINENO" 5; }
23364 ac_cv_sizeof_signed_long_long=0
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23370 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23374 cat >>confdefs.h <<_ACEOF
23375 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23380 # Obtain size of a 'unsigned long long' and define as
23381 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23382 # supported then the value defined is zero.
23383 # The cast to long int works around a bug in the HP C Compiler
23384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23386 # This bug is HP SR number 8606223364.
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23388 $as_echo_n "checking size of unsigned long long... " >&6; }
23389 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23390 $as_echo_n "(cached) " >&6
23392 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
23395 if test "$ac_cv_type_unsigned_long_long" = yes; then
23396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23398 as_fn_error 77 "cannot compute sizeof (unsigned long long)
23399 See \`config.log' for more details" "$LINENO" 5; }
23401 ac_cv_sizeof_unsigned_long_long=0
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23407 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23411 cat >>confdefs.h <<_ACEOF
23412 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23417 # Obtain size of off_t and define as SIZEOF_OFF_T
23418 # The cast to long int works around a bug in the HP C Compiler
23419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23421 # This bug is HP SR number 8606223364.
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23423 $as_echo_n "checking size of off_t... " >&6; }
23424 if ${ac_cv_sizeof_off_t+:} false; then :
23425 $as_echo_n "(cached) " >&6
23427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23430 if test "$ac_cv_type_off_t" = yes; then
23431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23433 as_fn_error 77 "cannot compute sizeof (off_t)
23434 See \`config.log' for more details" "$LINENO" 5; }
23436 ac_cv_sizeof_off_t=0
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23442 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23446 cat >>confdefs.h <<_ACEOF
23447 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23452 # Obtain size of size_t and define as SIZEOF_SIZE_T
23453 # The cast to long int works around a bug in the HP C Compiler
23454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23456 # This bug is HP SR number 8606223364.
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23458 $as_echo_n "checking size of size_t... " >&6; }
23459 if ${ac_cv_sizeof_size_t+:} false; then :
23460 $as_echo_n "(cached) " >&6
23462 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23465 if test "$ac_cv_type_size_t" = yes; then
23466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23468 as_fn_error 77 "cannot compute sizeof (size_t)
23469 See \`config.log' for more details" "$LINENO" 5; }
23471 ac_cv_sizeof_size_t=0
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23477 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23481 cat >>confdefs.h <<_ACEOF
23482 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23487 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23488 # The cast to long int works around a bug in the HP C Compiler
23489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23491 # This bug is HP SR number 8606223364.
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23493 $as_echo_n "checking size of ssize_t... " >&6; }
23494 if ${ac_cv_sizeof_ssize_t+:} false; then :
23495 $as_echo_n "(cached) " >&6
23497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23500 if test "$ac_cv_type_ssize_t" = yes; then
23501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23503 as_fn_error 77 "cannot compute sizeof (ssize_t)
23504 See \`config.log' for more details" "$LINENO" 5; }
23506 ac_cv_sizeof_ssize_t=0
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23512 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23516 cat >>confdefs.h <<_ACEOF
23517 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23522 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23523 # The cast to long int works around a bug in the HP C Compiler
23524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23526 # This bug is HP SR number 8606223364.
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23528 $as_echo_n "checking size of unsigned int*... " >&6; }
23529 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23530 $as_echo_n "(cached) " >&6
23532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
23535 if test "$ac_cv_type_unsigned_intp" = yes; then
23536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23538 as_fn_error 77 "cannot compute sizeof (unsigned int*)
23539 See \`config.log' for more details" "$LINENO" 5; }
23541 ac_cv_sizeof_unsigned_intp=0
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23547 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23551 cat >>confdefs.h <<_ACEOF
23552 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23558 # Compute sized types for current CPU and compiler options.
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23562 $as_echo_n "checking for signed 8-bit type... " >&6; }
23563 INT8_T='signed char'
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23565 $as_echo "$INT8_T" >&6; }
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23569 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
23570 UINT8_T='unsigned char'
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23572 $as_echo "$UINT8_T" >&6; }
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23576 $as_echo_n "checking for signed 16-bit type... " >&6; }
23577 INT16_T='signed short'
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23579 $as_echo "$INT16_T" >&6; }
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23583 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
23584 UINT16_T='unsigned short'
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23586 $as_echo "$UINT16_T" >&6; }
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23590 $as_echo_n "checking for signed 32-bit type... " >&6; }
23593 if test $ac_cv_sizeof_signed_int -eq 4; then
23594 INT32_T='signed int'
23596 elif test $ac_cv_sizeof_signed_long -eq 4; then
23597 INT32_T='signed long'
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23601 $as_echo "$INT32_T" >&6; }
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23606 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
23609 if test $ac_cv_sizeof_unsigned_int -eq 4; then
23610 UINT32_T='unsigned int'
23612 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23613 UINT32_T='unsigned long'
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23617 $as_echo "$UINT32_T" >&6; }
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23622 $as_echo_n "checking for signed 64-bit type... " >&6; }
23625 if test $ac_cv_sizeof_signed_long -eq 8; then
23626 INT64_T='signed long'
23628 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23629 INT64_T='signed long long'
23632 case "${build_os}" in
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23638 $as_echo "$INT64_T" >&6; }
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23643 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
23646 if test $ac_cv_sizeof_unsigned_long -eq 8; then
23647 UINT64_T='unsigned long'
23649 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23650 UINT64_T='unsigned long long'
23653 case "${build_os}" in
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23659 $as_echo "$UINT64_T" >&6; }
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23664 $as_echo_n "checking for unsigned maximum type... " >&6; }
23667 if test "$UINT64_T" != 'none'; then
23668 UINTMAX_T=$UINT64_T
23669 UINTMAX_F=$UINT64_F
23670 elif test "$UINT32_T" != 'none'; then
23671 UINTMAX_T=$UINT32_T
23672 UINTMAX_F=$UINT32_F
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23675 $as_echo "$UINTMAX_T" >&6; }
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23680 $as_echo_n "checking for pointer difference type... " >&6; }
23683 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23684 UINTPTR_T='unsigned long'
23686 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23687 UINTPTR_T='unsigned long long'
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23691 $as_echo "$UINTPTR_T" >&6; }
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23696 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
23697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23698 /* end confdefs.h. */
23703 { const char *func = __func__; return(func != 0 ? 0 : 1); }
23708 if ac_fn_c_try_compile "$LINENO"; then :
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23710 $as_echo "yes" >&6; }
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23713 $as_echo "no" >&6; }
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
23715 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
23716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23717 /* end confdefs.h. */
23722 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23727 if ac_fn_c_try_compile "$LINENO"; then :
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23729 $as_echo "yes" >&6; }
23731 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23735 $as_echo "no" >&6; }
23737 $as_echo "#define __func__ __FILE__" >>confdefs.h
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746 # Check for functions
23749 for ac_header in stdlib.h unistd.h
23751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23754 cat >>confdefs.h <<_ACEOF
23755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23762 for ac_func in getpagesize
23764 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23765 if test "x$ac_cv_func_getpagesize" = xyes; then :
23766 cat >>confdefs.h <<_ACEOF
23767 #define HAVE_GETPAGESIZE 1
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23774 $as_echo_n "checking for working mmap file i/o... " >&6; }
23775 if ${magick_cv_func_mmap_fileio+:} false; then :
23776 $as_echo_n "(cached) " >&6
23778 if test "$cross_compiling" = yes; then :
23779 magick_cv_func_mmap_fileio=no
23781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23782 /* end confdefs.h. */
23783 $ac_includes_default
23784 /* malloc might have been renamed as rpl_malloc. */
23788 This test is derived from GNU Autoconf's similar macro.
23789 The purpose of this test is to verify that files may be memory
23790 mapped, and that memory mapping and file I/O are coherent.
23792 The test creates a test file, memory maps the file, updates
23793 the file using the memory map, and then reads the file using
23794 file I/O to verify that the file contains the updates.
23798 #include <sys/mman.h>
23800 #if !STDC_HEADERS && !HAVE_STDLIB_H
23804 /* This mess was copied from the GNU getpagesize.h. */
23805 #if !HAVE_GETPAGESIZE
23806 /* Assume that all systems that can run configure have sys/param.h. */
23807 # if !HAVE_SYS_PARAM_H
23808 # define HAVE_SYS_PARAM_H 1
23811 # ifdef _SC_PAGESIZE
23812 # define getpagesize() sysconf(_SC_PAGESIZE)
23813 # else /* no _SC_PAGESIZE */
23814 # if HAVE_SYS_PARAM_H
23815 # include <sys/param.h>
23816 # ifdef EXEC_PAGESIZE
23817 # define getpagesize() EXEC_PAGESIZE
23818 # else /* no EXEC_PAGESIZE */
23820 # define getpagesize() NBPG * CLSIZE
23823 # endif /* no CLSIZE */
23824 # else /* no NBPG */
23826 # define getpagesize() NBPC
23827 # else /* no NBPC */
23829 # define getpagesize() PAGESIZE
23830 # endif /* PAGESIZE */
23831 # endif /* no NBPC */
23832 # endif /* no NBPG */
23833 # endif /* no EXEC_PAGESIZE */
23834 # else /* no HAVE_SYS_PARAM_H */
23835 # define getpagesize() 8192 /* punt totally */
23836 # endif /* no HAVE_SYS_PARAM_H */
23837 # endif /* no _SC_PAGESIZE */
23839 #endif /* no HAVE_GETPAGESIZE */
23844 char *data, *data2, *data3;
23848 pagesize = getpagesize ();
23850 /* First, make a file with some known garbage in it. */
23851 data = (char *) malloc (pagesize);
23854 for (i = 0; i < pagesize; ++i)
23855 *(data + i) = rand ();
23857 fd = creat ("conftest.mmap", 0600);
23860 if (write (fd, data, pagesize) != pagesize)
23864 /* Mmap the file as read/write/shared and verify that we see the
23866 fd = open ("conftest.mmap", O_RDWR);
23869 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23872 for (i = 0; i < pagesize; ++i)
23873 if (*(data + i) != *(data2 + i))
23876 /* Finally, make sure that changes to the mapped area
23877 percolate back to the file as seen by read(). */
23878 for (i = 0; i < pagesize; ++i)
23879 *(data2 + i) = *(data2 + i) + 1;
23880 data3 = (char *) malloc (pagesize);
23883 if (read (fd, data3, pagesize) != pagesize)
23885 for (i = 0; i < pagesize; ++i)
23886 if (*(data2 + i) != *(data3 + i))
23892 if ac_fn_c_try_run "$LINENO"; then :
23893 magick_cv_func_mmap_fileio=yes
23895 magick_cv_func_mmap_fileio=no
23897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23898 conftest.$ac_objext conftest.beam conftest.$ac_ext
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23903 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
23904 if test $magick_cv_func_mmap_fileio = yes; then
23906 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23909 rm -f conftest.mmap
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
23912 $as_echo_n "checking whether closedir returns void... " >&6; }
23913 if ${ac_cv_func_closedir_void+:} false; then :
23914 $as_echo_n "(cached) " >&6
23916 if test "$cross_compiling" = yes; then :
23917 ac_cv_func_closedir_void=yes
23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23920 /* end confdefs.h. */
23921 $ac_includes_default
23922 #include <$ac_header_dirent>
23923 #ifndef __cplusplus
23930 return closedir (opendir (".")) != 0;
23935 if ac_fn_c_try_run "$LINENO"; then :
23936 ac_cv_func_closedir_void=no
23938 ac_cv_func_closedir_void=yes
23940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23941 conftest.$ac_objext conftest.beam conftest.$ac_ext
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
23946 $as_echo "$ac_cv_func_closedir_void" >&6; }
23947 if test $ac_cv_func_closedir_void = yes; then
23949 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
23956 for ac_header in $ac_header_list
23958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23962 cat >>confdefs.h <<_ACEOF
23963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23977 for ac_func in getpagesize
23979 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23980 if test "x$ac_cv_func_getpagesize" = xyes; then :
23981 cat >>confdefs.h <<_ACEOF
23982 #define HAVE_GETPAGESIZE 1
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23989 $as_echo_n "checking for working mmap... " >&6; }
23990 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23991 $as_echo_n "(cached) " >&6
23993 if test "$cross_compiling" = yes; then :
23994 ac_cv_func_mmap_fixed_mapped=no
23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997 /* end confdefs.h. */
23998 $ac_includes_default
23999 /* malloc might have been renamed as rpl_malloc. */
24002 /* Thanks to Mike Haertel and Jim Avera for this test.
24003 Here is a matrix of mmap possibilities:
24004 mmap private not fixed
24005 mmap private fixed at somewhere currently unmapped
24006 mmap private fixed at somewhere already mapped
24007 mmap shared not fixed
24008 mmap shared fixed at somewhere currently unmapped
24009 mmap shared fixed at somewhere already mapped
24010 For private mappings, we should verify that changes cannot be read()
24011 back from the file, nor mmap's back from the file at a different
24012 address. (There have been systems where private was not correctly
24013 implemented like the infamous i386 svr4.0, and systems where the
24014 VM page cache was not coherent with the file system buffer cache
24015 like early versions of FreeBSD and possibly contemporary NetBSD.)
24016 For shared mappings, we should conversely verify that changes get
24017 propagated back to all the places they're supposed to be.
24019 Grep wants private fixed already mapped.
24020 The main things grep needs to know about mmap are:
24021 * does it exist and is it safe to write into the mmap'd area
24022 * how to use it (BSD variants) */
24025 #include <sys/mman.h>
24027 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24031 /* This mess was copied from the GNU getpagesize.h. */
24032 #ifndef HAVE_GETPAGESIZE
24033 # ifdef _SC_PAGESIZE
24034 # define getpagesize() sysconf(_SC_PAGESIZE)
24035 # else /* no _SC_PAGESIZE */
24036 # ifdef HAVE_SYS_PARAM_H
24037 # include <sys/param.h>
24038 # ifdef EXEC_PAGESIZE
24039 # define getpagesize() EXEC_PAGESIZE
24040 # else /* no EXEC_PAGESIZE */
24042 # define getpagesize() NBPG * CLSIZE
24045 # endif /* no CLSIZE */
24046 # else /* no NBPG */
24048 # define getpagesize() NBPC
24049 # else /* no NBPC */
24051 # define getpagesize() PAGESIZE
24052 # endif /* PAGESIZE */
24053 # endif /* no NBPC */
24054 # endif /* no NBPG */
24055 # endif /* no EXEC_PAGESIZE */
24056 # else /* no HAVE_SYS_PARAM_H */
24057 # define getpagesize() 8192 /* punt totally */
24058 # endif /* no HAVE_SYS_PARAM_H */
24059 # endif /* no _SC_PAGESIZE */
24061 #endif /* no HAVE_GETPAGESIZE */
24066 char *data, *data2, *data3;
24067 const char *cdata2;
24071 pagesize = getpagesize ();
24073 /* First, make a file with some known garbage in it. */
24074 data = (char *) malloc (pagesize);
24077 for (i = 0; i < pagesize; ++i)
24078 *(data + i) = rand ();
24080 fd = creat ("conftest.mmap", 0600);
24083 if (write (fd, data, pagesize) != pagesize)
24087 /* Next, check that the tail of a page is zero-filled. File must have
24088 non-zero length, otherwise we risk SIGBUS for entire page. */
24089 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24093 if (write (fd2, cdata2, 1) != 1)
24095 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24096 if (data2 == MAP_FAILED)
24098 for (i = 0; i < pagesize; ++i)
24102 if (munmap (data2, pagesize))
24105 /* Next, try to mmap the file at a fixed address which already has
24106 something else allocated at it. If we can, also make sure that
24107 we see the same garbage. */
24108 fd = open ("conftest.mmap", O_RDWR);
24111 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24112 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24114 for (i = 0; i < pagesize; ++i)
24115 if (*(data + i) != *(data2 + i))
24118 /* Finally, make sure that changes to the mapped area do not
24119 percolate back to the file as seen by read(). (This is a bug on
24120 some variants of i386 svr4.0.) */
24121 for (i = 0; i < pagesize; ++i)
24122 *(data2 + i) = *(data2 + i) + 1;
24123 data3 = (char *) malloc (pagesize);
24126 if (read (fd, data3, pagesize) != pagesize)
24128 for (i = 0; i < pagesize; ++i)
24129 if (*(data + i) != *(data3 + i))
24135 if ac_fn_c_try_run "$LINENO"; then :
24136 ac_cv_func_mmap_fixed_mapped=yes
24138 ac_cv_func_mmap_fixed_mapped=no
24140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24141 conftest.$ac_objext conftest.beam conftest.$ac_ext
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24146 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24147 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24149 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24152 rm -f conftest.mmap conftest.txt
24154 for ac_header in vfork.h
24156 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24157 if test "x$ac_cv_header_vfork_h" = xyes; then :
24158 cat >>confdefs.h <<_ACEOF
24159 #define HAVE_VFORK_H 1
24166 for ac_func in fork vfork
24168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24171 cat >>confdefs.h <<_ACEOF
24172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24178 if test "x$ac_cv_func_fork" = xyes; then
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24180 $as_echo_n "checking for working fork... " >&6; }
24181 if ${ac_cv_func_fork_works+:} false; then :
24182 $as_echo_n "(cached) " >&6
24184 if test "$cross_compiling" = yes; then :
24185 ac_cv_func_fork_works=cross
24187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188 /* end confdefs.h. */
24189 $ac_includes_default
24194 /* By Ruediger Kuhlmann. */
24195 return fork () < 0;
24201 if ac_fn_c_try_run "$LINENO"; then :
24202 ac_cv_func_fork_works=yes
24204 ac_cv_func_fork_works=no
24206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24207 conftest.$ac_objext conftest.beam conftest.$ac_ext
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24212 $as_echo "$ac_cv_func_fork_works" >&6; }
24215 ac_cv_func_fork_works=$ac_cv_func_fork
24217 if test "x$ac_cv_func_fork_works" = xcross; then
24219 *-*-amigaos* | *-*-msdosdjgpp*)
24220 # Override, as these systems have only a dummy fork() stub
24221 ac_cv_func_fork_works=no
24224 ac_cv_func_fork_works=yes
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24228 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24230 ac_cv_func_vfork_works=$ac_cv_func_vfork
24231 if test "x$ac_cv_func_vfork" = xyes; then
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24233 $as_echo_n "checking for working vfork... " >&6; }
24234 if ${ac_cv_func_vfork_works+:} false; then :
24235 $as_echo_n "(cached) " >&6
24237 if test "$cross_compiling" = yes; then :
24238 ac_cv_func_vfork_works=cross
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24242 /* Thanks to Paul Eggert for this test. */
24243 $ac_includes_default
24244 #include <sys/wait.h>
24245 #ifdef HAVE_VFORK_H
24246 # include <vfork.h>
24248 /* On some sparc systems, changes by the child to local and incoming
24249 argument registers are propagated back to the parent. The compiler
24250 is told about this with #include <vfork.h>, but some compilers
24251 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24252 static variable whose address is put into a register that is
24253 clobbered by the vfork. */
24256 sparc_address_test (int arg)
24258 sparc_address_test (arg) int arg;
24261 static pid_t child;
24279 pid_t parent = getpid ();
24282 sparc_address_test (0);
24287 /* Here is another test for sparc vfork register problems. This
24288 test uses lots of local variables, at least as many local
24289 variables as main has allocated so far including compiler
24290 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24291 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24292 reuse the register of parent for one of the local variables,
24293 since it will think that parent can't possibly be used any more
24294 in this routine. Assigning to the local variable will thus
24295 munge parent in the parent process. */
24297 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24298 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24299 /* Convince the compiler that p..p7 are live; otherwise, it might
24300 use the same hardware register for all 8 local variables. */
24301 if (p != p1 || p != p2 || p != p3 || p != p4
24302 || p != p5 || p != p6 || p != p7)
24305 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24306 from child file descriptors. If the child closes a descriptor
24307 before it execs or exits, this munges the parent's descriptor
24308 as well. Test for this by closing stdout in the child. */
24309 _exit(close(fileno(stdout)) != 0);
24314 while (wait(&status) != child)
24317 /* Was there some problem with vforking? */
24320 /* Did the child fail? (This shouldn't happen.) */
24323 /* Did the vfork/compiler bug occur? */
24324 || parent != getpid()
24326 /* Did the file descriptor bug occur? */
24327 || fstat(fileno(stdout), &st) != 0
24332 if ac_fn_c_try_run "$LINENO"; then :
24333 ac_cv_func_vfork_works=yes
24335 ac_cv_func_vfork_works=no
24337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24338 conftest.$ac_objext conftest.beam conftest.$ac_ext
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24343 $as_echo "$ac_cv_func_vfork_works" >&6; }
24346 if test "x$ac_cv_func_fork_works" = xcross; then
24347 ac_cv_func_vfork_works=$ac_cv_func_vfork
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24349 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24352 if test "x$ac_cv_func_vfork_works" = xyes; then
24354 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24358 $as_echo "#define vfork fork" >>confdefs.h
24361 if test "x$ac_cv_func_fork_works" = xyes; then
24363 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24368 $as_echo_n "checking for working memcmp... " >&6; }
24369 if ${ac_cv_func_memcmp_working+:} false; then :
24370 $as_echo_n "(cached) " >&6
24372 if test "$cross_compiling" = yes; then :
24373 ac_cv_func_memcmp_working=no
24375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24377 $ac_includes_default
24382 /* Some versions of memcmp are not 8-bit clean. */
24383 char c0 = '\100', c1 = '\200', c2 = '\201';
24384 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24387 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24388 or more and with at least one buffer not starting on a 4-byte boundary.
24389 William Lewis provided this test program. */
24394 for (i = 0; i < 4; i++)
24398 strcpy (a, "--------01111111");
24399 strcpy (b, "--------10000000");
24400 if (memcmp (a, b, 16) >= 0)
24410 if ac_fn_c_try_run "$LINENO"; then :
24411 ac_cv_func_memcmp_working=yes
24413 ac_cv_func_memcmp_working=no
24415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24416 conftest.$ac_objext conftest.beam conftest.$ac_ext
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24421 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24422 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24423 *" memcmp.$ac_objext "* ) ;;
24424 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24429 for ac_header in sys/select.h sys/socket.h
24431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24434 cat >>confdefs.h <<_ACEOF
24435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24443 $as_echo_n "checking types of arguments for select... " >&6; }
24444 if ${ac_cv_func_select_args+:} false; then :
24445 $as_echo_n "(cached) " >&6
24447 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24448 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24449 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24452 $ac_includes_default
24453 #ifdef HAVE_SYS_SELECT_H
24454 # include <sys/select.h>
24456 #ifdef HAVE_SYS_SOCKET_H
24457 # include <sys/socket.h>
24463 extern int select ($ac_arg1,
24464 $ac_arg234, $ac_arg234, $ac_arg234,
24470 if ac_fn_c_try_compile "$LINENO"; then :
24471 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 # Provide a safe default value.
24478 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24482 $as_echo "$ac_cv_func_select_args" >&6; }
24483 ac_save_IFS=$IFS; IFS=','
24484 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24488 cat >>confdefs.h <<_ACEOF
24489 #define SELECT_TYPE_ARG1 $1
24493 cat >>confdefs.h <<_ACEOF
24494 #define SELECT_TYPE_ARG234 ($2)
24498 cat >>confdefs.h <<_ACEOF
24499 #define SELECT_TYPE_ARG5 ($3)
24504 if ${ac_cv_func_setvbuf_reversed+:} false; then :
24505 $as_echo_n "(cached) " >&6
24507 ac_cv_func_setvbuf_reversed=no
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24512 $as_echo_n "checking return type of signal handlers... " >&6; }
24513 if ${ac_cv_type_signal+:} false; then :
24514 $as_echo_n "(cached) " >&6
24516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24517 /* end confdefs.h. */
24518 #include <sys/types.h>
24519 #include <signal.h>
24524 return *(signal (0, 0)) (0) == 1;
24529 if ac_fn_c_try_compile "$LINENO"; then :
24530 ac_cv_type_signal=int
24532 ac_cv_type_signal=void
24534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24537 $as_echo "$ac_cv_type_signal" >&6; }
24539 cat >>confdefs.h <<_ACEOF
24540 #define RETSIGTYPE $ac_cv_type_signal
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24545 $as_echo_n "checking for working strtod... " >&6; }
24546 if ${ac_cv_func_strtod+:} false; then :
24547 $as_echo_n "(cached) " >&6
24549 if test "$cross_compiling" = yes; then :
24550 ac_cv_func_strtod=no
24552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24553 /* end confdefs.h. */
24555 $ac_includes_default
24563 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24564 char *string = " +69";
24567 value = strtod (string, &term);
24568 if (value != 69 || term != (string + 4))
24573 /* Under Solaris 2.4, strtod returns the wrong value for the
24574 terminating character under some conditions. */
24575 char *string = "NaN";
24577 strtod (string, &term);
24578 if (term != string && *(term - 1) == 0)
24585 if ac_fn_c_try_run "$LINENO"; then :
24586 ac_cv_func_strtod=yes
24588 ac_cv_func_strtod=no
24590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24591 conftest.$ac_objext conftest.beam conftest.$ac_ext
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24596 $as_echo "$ac_cv_func_strtod" >&6; }
24597 if test $ac_cv_func_strtod = no; then
24598 case " $LIBOBJS " in
24599 *" strtod.$ac_objext "* ) ;;
24600 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24604 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24605 if test "x$ac_cv_func_pow" = xyes; then :
24609 if test $ac_cv_func_pow = no; then
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24611 $as_echo_n "checking for pow in -lm... " >&6; }
24612 if ${ac_cv_lib_m_pow+:} false; then :
24613 $as_echo_n "(cached) " >&6
24615 ac_check_lib_save_LIBS=$LIBS
24617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24618 /* end confdefs.h. */
24620 /* Override any GCC internal prototype to avoid an error.
24621 Use char because int might match the return type of a GCC
24622 builtin and then its argument prototype would still apply. */
24635 if ac_fn_c_try_link "$LINENO"; then :
24636 ac_cv_lib_m_pow=yes
24640 rm -f core conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
24642 LIBS=$ac_check_lib_save_LIBS
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24645 $as_echo "$ac_cv_lib_m_pow" >&6; }
24646 if test "x$ac_cv_lib_m_pow" = xyes; then :
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24650 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24657 for ac_func in vprintf
24659 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24660 if test "x$ac_cv_func_vprintf" = xyes; then :
24661 cat >>confdefs.h <<_ACEOF
24662 #define HAVE_VPRINTF 1
24665 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24666 if test "x$ac_cv_func__doprnt" = xyes; then :
24668 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24678 # Find math library
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24682 $as_echo_n "checking for sqrt in -lm... " >&6; }
24683 if ${ac_cv_lib_m_sqrt+:} false; then :
24684 $as_echo_n "(cached) " >&6
24686 ac_check_lib_save_LIBS=$LIBS
24688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24689 /* end confdefs.h. */
24691 /* Override any GCC internal prototype to avoid an error.
24692 Use char because int might match the return type of a GCC
24693 builtin and then its argument prototype would still apply. */
24706 if ac_fn_c_try_link "$LINENO"; then :
24707 ac_cv_lib_m_sqrt=yes
24709 ac_cv_lib_m_sqrt=no
24711 rm -f core conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
24713 LIBS=$ac_check_lib_save_LIBS
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24716 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
24717 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
24721 LIBS="$MATH_LIBS $LIBS"
24724 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 strerror_r 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
24726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24728 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24729 cat >>confdefs.h <<_ACEOF
24730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24738 # Check for clock_gettime().
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24741 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24742 if ${ac_cv_search_clock_gettime+:} false; then :
24743 $as_echo_n "(cached) " >&6
24745 ac_func_search_save_LIBS=$LIBS
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h. */
24749 /* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24755 char clock_gettime ();
24759 return clock_gettime ();
24764 for ac_lib in '' rt; do
24765 if test -z "$ac_lib"; then
24766 ac_res="none required"
24769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24771 if ac_fn_c_try_link "$LINENO"; then :
24772 ac_cv_search_clock_gettime=$ac_res
24774 rm -f core conftest.err conftest.$ac_objext \
24776 if ${ac_cv_search_clock_gettime+:} false; then :
24780 if ${ac_cv_search_clock_gettime+:} false; then :
24783 ac_cv_search_clock_gettime=no
24785 rm conftest.$ac_ext
24786 LIBS=$ac_func_search_save_LIBS
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24789 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24790 ac_res=$ac_cv_search_clock_gettime
24791 if test "$ac_res" != no; then :
24792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24795 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
24798 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
24799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24800 /* end confdefs.h. */
24806 clockid_t clockType = CLOCK_REALTIME;
24811 if ac_fn_c_try_compile "$LINENO"; then :
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24814 $as_echo "yes" >&6; }
24816 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24821 $as_echo "no" >&6; }
24824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 for ac_func in gettimeofday ftime
24830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24833 cat >>confdefs.h <<_ACEOF
24834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24847 # Check for function prototypes
24851 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
24852 #include <unistd.h>
24854 if test "x$ac_cv_have_decl_pread" = xyes; then :
24860 cat >>confdefs.h <<_ACEOF
24861 #define HAVE_DECL_PREAD $ac_have_decl
24863 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
24864 #include <unistd.h>
24866 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
24872 cat >>confdefs.h <<_ACEOF
24873 #define HAVE_DECL_PWRITE $ac_have_decl
24877 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
24878 #include <strings.h>
24880 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
24886 cat >>confdefs.h <<_ACEOF
24887 #define HAVE_DECL_STRLCPY $ac_have_decl
24891 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
24893 #include <stdarg.h>
24895 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24901 cat >>confdefs.h <<_ACEOF
24902 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24908 # C++ Support Tests (For Magick++)
24911 have_magick_plus_plus='no'
24912 if test "$with_magick_plus_plus" = 'yes'; then
24916 ac_cpp='$CXXCPP $CPPFLAGS'
24917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24922 # Full set of headers used...
24923 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24924 # functional iomanip iosfwd iostream iterator list string strstream utility
24926 ac_cpp='$CXXCPP $CPPFLAGS'
24927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24932 ac_cpp='$CXXCPP $CPPFLAGS'
24933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24936 if test -z "$CXX"; then
24937 if test -n "$CCC"; then
24940 if test -n "$ac_tool_prefix"; then
24941 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24946 $as_echo_n "checking for $ac_word... " >&6; }
24947 if ${ac_cv_prog_CXX+:} false; then :
24948 $as_echo_n "(cached) " >&6
24950 if test -n "$CXX"; then
24951 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24954 for as_dir in $PATH
24957 test -z "$as_dir" && as_dir=.
24958 for ac_exec_ext in '' $ac_executable_extensions; do
24959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24960 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
24961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24970 CXX=$ac_cv_prog_CXX
24971 if test -n "$CXX"; then
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
24973 $as_echo "$CXX" >&6; }
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24976 $as_echo "no" >&6; }
24980 test -n "$CXX" && break
24983 if test -z "$CXX"; then
24985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24987 # Extract the first word of "$ac_prog", so it can be a program name with args.
24988 set dummy $ac_prog; ac_word=$2
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24990 $as_echo_n "checking for $ac_word... " >&6; }
24991 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
24992 $as_echo_n "(cached) " >&6
24994 if test -n "$ac_ct_CXX"; then
24995 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24998 for as_dir in $PATH
25001 test -z "$as_dir" && as_dir=.
25002 for ac_exec_ext in '' $ac_executable_extensions; do
25003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25004 ac_cv_prog_ac_ct_CXX="$ac_prog"
25005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25014 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25015 if test -n "$ac_ct_CXX"; then
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25017 $as_echo "$ac_ct_CXX" >&6; }
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25020 $as_echo "no" >&6; }
25024 test -n "$ac_ct_CXX" && break
25027 if test "x$ac_ct_CXX" = x; then
25030 case $cross_compiling:$ac_tool_warned in
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25034 ac_tool_warned=yes ;;
25042 # Provide some information about the compiler.
25043 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25046 for ac_option in --version -v -V -qversion; do
25047 { { ac_try="$ac_compiler $ac_option >&5"
25048 case "(($ac_try" in
25049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050 *) ac_try_echo=$ac_try;;
25052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25053 $as_echo "$ac_try_echo"; } >&5
25054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25056 if test -s conftest.err; then
25058 ... rest of stderr output deleted ...
25059 10q' conftest.err >conftest.er1
25060 cat conftest.er1 >&5
25062 rm -f conftest.er1 conftest.err
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25068 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25069 if ${ac_cv_cxx_compiler_gnu+:} false; then :
25070 $as_echo_n "(cached) " >&6
25072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25073 /* end confdefs.h. */
25086 if ac_fn_cxx_try_compile "$LINENO"; then :
25087 ac_compiler_gnu=yes
25091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25096 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25097 if test $ac_compiler_gnu = yes; then
25102 ac_test_CXXFLAGS=${CXXFLAGS+set}
25103 ac_save_CXXFLAGS=$CXXFLAGS
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25105 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
25106 if ${ac_cv_prog_cxx_g+:} false; then :
25107 $as_echo_n "(cached) " >&6
25109 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25110 ac_cxx_werror_flag=yes
25111 ac_cv_prog_cxx_g=no
25113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114 /* end confdefs.h. */
25124 if ac_fn_cxx_try_compile "$LINENO"; then :
25125 ac_cv_prog_cxx_g=yes
25128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25129 /* end confdefs.h. */
25139 if ac_fn_cxx_try_compile "$LINENO"; then :
25142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25145 /* end confdefs.h. */
25155 if ac_fn_cxx_try_compile "$LINENO"; then :
25156 ac_cv_prog_cxx_g=yes
25158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25166 $as_echo "$ac_cv_prog_cxx_g" >&6; }
25167 if test "$ac_test_CXXFLAGS" = set; then
25168 CXXFLAGS=$ac_save_CXXFLAGS
25169 elif test $ac_cv_prog_cxx_g = yes; then
25170 if test "$GXX" = yes; then
25176 if test "$GXX" = yes; then
25183 ac_cpp='$CXXCPP $CPPFLAGS'
25184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25188 depcc="$CXX" am_compiler_list=
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25191 $as_echo_n "checking dependency style of $depcc... " >&6; }
25192 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25193 $as_echo_n "(cached) " >&6
25195 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25196 # We make a subdir and do the tests there. Otherwise we can end up
25197 # making bogus files that we don't know about and never remove. For
25198 # instance it was reported that on HP-UX the gcc test will end up
25199 # making a dummy file named `D' -- because `-MD' means `put the output
25202 # Copy depcomp to subdir because otherwise we won't find it if we're
25203 # using a relative directory.
25204 cp "$am_depcomp" conftest.dir
25206 # We will build objects and dependencies in a subdirectory because
25207 # it helps to detect inapplicable dependency modes. For instance
25208 # both Tru64's cc and ICC support -MD to output dependencies as a
25209 # side effect of compilation, but ICC will put the dependencies in
25210 # the current directory while Tru64 will put them in the object
25214 am_cv_CXX_dependencies_compiler_type=none
25215 if test "$am_compiler_list" = ""; then
25216 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25218 am__universal=false
25219 case " $depcc " in #(
25220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25223 for depmode in $am_compiler_list; do
25224 # Setup a source with many dependencies, because some compilers
25225 # like to wrap large dependency lists on column 80 (with \), and
25226 # we should not choose a depcomp mode which is confused by this.
25228 # We need to recreate these files for each test, as the compiler may
25229 # overwrite some of them when testing with obscure command lines.
25230 # This happens at least with the AIX C compiler.
25232 for i in 1 2 3 4 5 6; do
25233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25234 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25235 # Solaris 8's {/usr,}/bin/sh.
25236 touch sub/conftst$i.h
25238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25240 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25241 # mode. It turns out that the SunPro C++ compiler does not properly
25242 # handle `-M -o', and we need to detect this. Also, some Intel
25243 # versions had trouble with output in subdirs
25244 am__obj=sub/conftest.${OBJEXT-o}
25245 am__minus_obj="-o $am__obj"
25248 # This depmode causes a compiler race in universal mode.
25249 test "$am__universal" = false || continue
25252 # after this tag, mechanisms are not by side-effect, so they'll
25253 # only be used when explicitly requested
25254 if test "x$enable_dependency_tracking" = xyes; then
25260 msvisualcpp | msvcmsys)
25261 # This compiler won't grok `-c -o', but also, the minuso test has
25262 # not run yet. These depmodes are late enough in the game, and
25263 # so weak that their functioning should not be impacted.
25264 am__obj=conftest.${OBJEXT-o}
25269 if depmode=$depmode \
25270 source=sub/conftest.c object=$am__obj \
25271 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25272 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25273 >/dev/null 2>conftest.err &&
25274 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25275 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25276 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25277 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25278 # icc doesn't choke on unknown options, it will just issue warnings
25279 # or remarks (even with -Werror). So we grep stderr for any message
25280 # that says an option was ignored or not supported.
25281 # When given -MP, icc 7.0 and 7.1 complain thusly:
25282 # icc: Command line warning: ignoring option '-M'; no argument required
25283 # The diagnosis changed in icc 8.0:
25284 # icc: Command line remark: option '-MP' not supported
25285 if (grep 'ignoring option' conftest.err ||
25286 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25287 am_cv_CXX_dependencies_compiler_type=$depmode
25294 rm -rf conftest.dir
25296 am_cv_CXX_dependencies_compiler_type=none
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25301 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25302 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25305 test "x$enable_dependency_tracking" != xno \
25306 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25307 am__fastdepCXX_TRUE=
25308 am__fastdepCXX_FALSE='#'
25310 am__fastdepCXX_TRUE='#'
25311 am__fastdepCXX_FALSE=
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25316 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25317 if ${ax_cv_cxx_bool+:} false; then :
25318 $as_echo_n "(cached) " >&6
25322 ac_cpp='$CXXCPP $CPPFLAGS'
25323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h. */
25330 int f(int x){return 1;}
25331 int f(char x){return 1;}
25332 int f(bool x){return 1;}
25337 bool b = true; return f(b);
25342 if ac_fn_cxx_try_compile "$LINENO"; then :
25347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 ac_cpp='$CXXCPP $CPPFLAGS'
25350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25357 $as_echo "$ax_cv_cxx_bool" >&6; }
25358 if test "$ax_cv_cxx_bool" = yes; then
25360 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25365 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25366 if ${ax_cv_cxx_namespaces+:} false; then :
25367 $as_echo_n "(cached) " >&6
25371 ac_cpp='$CXXCPP $CPPFLAGS'
25372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25377 /* end confdefs.h. */
25378 namespace Outer { namespace Inner { int i = 0; }}
25382 using namespace Outer::Inner; return i;
25387 if ac_fn_cxx_try_compile "$LINENO"; then :
25388 ax_cv_cxx_namespaces=yes
25390 ax_cv_cxx_namespaces=no
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 ac_cpp='$CXXCPP $CPPFLAGS'
25395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25402 $as_echo "$ax_cv_cxx_namespaces" >&6; }
25403 if test "$ax_cv_cxx_namespaces" = yes; then
25405 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25411 $as_echo_n "checking if g++ supports namespace std... " >&6; }
25412 if ${ax_cv_cxx_have_std_namespace+:} false; then :
25413 $as_echo_n "(cached) " >&6
25417 ac_cpp='$CXXCPP $CPPFLAGS'
25418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25423 /* end confdefs.h. */
25424 #include <iostream>
25425 std::istream& is = std::cin;
25434 if ac_fn_cxx_try_compile "$LINENO"; then :
25435 ax_cv_cxx_have_std_namespace=yes
25437 ax_cv_cxx_have_std_namespace=no
25439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25441 ac_cpp='$CXXCPP $CPPFLAGS'
25442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25449 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25450 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25452 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25457 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25458 if ${ac_cv_cxx_have_std_libs+:} false; then :
25459 $as_echo_n "(cached) " >&6
25464 ac_cpp='$CXXCPP $CPPFLAGS'
25465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h. */
25471 #include <iostream>
25475 #ifdef HAVE_NAMESPACES
25476 using namespace std;
25486 if ac_fn_cxx_try_compile "$LINENO"; then :
25487 ac_cv_cxx_have_std_libs=yes
25489 ac_cv_cxx_have_std_libs=no
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 ac_cpp='$CXXCPP $CPPFLAGS'
25494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25501 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25502 if test "$ac_cv_cxx_have_std_libs" = yes; then
25504 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25510 # Check whether --enable-openmp was given.
25511 if test "${enable_openmp+set}" = set; then :
25512 enableval=$enable_openmp;
25515 if test "$enable_openmp" != no; then
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25517 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
25518 if ${ac_cv_prog_cxx_openmp+:} false; then :
25519 $as_echo_n "(cached) " >&6
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25528 int main () { return omp_get_num_threads (); }
25531 if ac_fn_cxx_try_link "$LINENO"; then :
25532 ac_cv_prog_cxx_openmp='none needed'
25534 ac_cv_prog_cxx_openmp='unsupported'
25535 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25536 ac_save_CXXFLAGS=$CXXFLAGS
25537 CXXFLAGS="$CXXFLAGS $ac_option"
25538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h. */
25545 int main () { return omp_get_num_threads (); }
25548 if ac_fn_cxx_try_link "$LINENO"; then :
25549 ac_cv_prog_cxx_openmp=$ac_option
25551 rm -f core conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext conftest.$ac_ext
25553 CXXFLAGS=$ac_save_CXXFLAGS
25554 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25559 rm -f core conftest.err conftest.$ac_objext \
25560 conftest$ac_exeext conftest.$ac_ext
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
25563 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25564 case $ac_cv_prog_cxx_openmp in #(
25565 "none needed" | unsupported)
25568 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
25574 ac_cpp='$CPP $CPPFLAGS'
25575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
25581 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25583 test $ax_cv_cxx_bool = 'yes' && \
25584 test $ax_cv_cxx_namespaces = 'yes' && \
25585 test $ac_cv_cxx_have_std_libs = 'yes' && \
25586 test $ax_cv_cxx_have_std_namespace = 'yes'; then
25587 have_magick_plus_plus='yes'
25589 have_magick_plus_plus='no (failed tests)'
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25592 $as_echo "$have_magick_plus_plus" >&6; }
25595 if test "$have_magick_plus_plus" = 'yes'; then
25596 WITH_MAGICK_PLUS_PLUS_TRUE=
25597 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25599 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25600 WITH_MAGICK_PLUS_PLUS_FALSE=
25604 # Only check for delegate libraries in subdirectories if requested.
25605 if test "$enable_delegate_build" != 'no'; then
25606 # Check for delegate sub-directories and add -I & -L options as required.
25607 # This presumes that delegates are installed as detailed in the ImageMagick
25608 # README. If delegates are installed in a standard location where the
25609 # compiler will automatically find them then these options should not be
25613 # Most delegates have includes in the same directory as the library, but not all...
25616 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
25617 if test -d "$builddir/$dir"; then
25618 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25620 if test -d "$srcdirfull/$dir"; then
25621 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25627 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
25628 if test -d "$builddir/$dir/.libs"; then
25629 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25631 if test -d "$srcdirfull/$dir/.libs"; then
25632 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25635 if test -d "$builddir/$dir"; then
25636 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25638 if test -d "$srcdirfull/$dir"; then
25639 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25645 # Assume that delegate headers reside under same directory as ImageMagick
25646 # installation prefix.
25647 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25650 # Find the X11 RGB database
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
25653 $as_echo_n "checking for X11 configure files... " >&6; }
25654 if ${im_cv_x_configure+:} false; then :
25655 $as_echo_n "(cached) " >&6
25657 # Look for the header file in a standard set of common directories.
25658 # Check X11 before X11Rn because it is often a symlink to the current release.
25667 /usr/XFree86/lib/X11 \
25675 /usr/local/X11/lib \
25676 /usr/local/X11R4/lib \
25677 /usr/local/X11R5/lib \
25678 /usr/local/X11R6/lib \
25680 /usr/local/lib/X11 \
25681 /usr/local/lib/X11R4 \
25682 /usr/local/lib/X11R5 \
25683 /usr/local/lib/X11R6 \
25684 /usr/local/lib/X11R7 \
25685 /usr/local/x11r5/lib \
25686 /usr/lpp/Xamples/lib \
25688 /usr/openwin/share/lib \
25689 /usr/unsupported/lib \
25692 if test -f "$ac_dir/X11/rgb.txt"; then
25693 im_cv_x_configure="$ac_dir/X11/"
25695 elif test -f "$ac_dir/rgb.txt"; then
25696 im_cv_x_configure="$ac_dir/"
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
25703 $as_echo "$im_cv_x_configure" >&6; }
25704 X11_CONFIGURE_PATH="$im_cv_x_configure"
25705 case "${build_os}" in
25707 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25711 cat >>confdefs.h <<_ACEOF
25712 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
25717 # Find OpenMP library
25720 if test "$enable_openmp" != 'no'; then
25721 if test "${GCC}" = "yes"; then
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
25723 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
25724 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
25725 $as_echo_n "(cached) " >&6
25727 ac_check_lib_save_LIBS=$LIBS
25728 LIBS="-lgomp $LIBS"
25729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25730 /* end confdefs.h. */
25732 /* Override any GCC internal prototype to avoid an error.
25733 Use char because int might match the return type of a GCC
25734 builtin and then its argument prototype would still apply. */
25738 char GOMP_parallel_start ();
25742 return GOMP_parallel_start ();
25747 if ac_fn_c_try_link "$LINENO"; then :
25748 ac_cv_lib_gomp_GOMP_parallel_start=yes
25750 ac_cv_lib_gomp_GOMP_parallel_start=no
25752 rm -f core conftest.err conftest.$ac_objext \
25753 conftest$ac_exeext conftest.$ac_ext
25754 LIBS=$ac_check_lib_save_LIBS
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25757 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25758 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
25764 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
25765 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
25766 $as_echo_n "(cached) " >&6
25768 ac_check_lib_save_LIBS=$LIBS
25769 LIBS="-lmtsk $LIBS"
25770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25771 /* end confdefs.h. */
25773 /* Override any GCC internal prototype to avoid an error.
25774 Use char because int might match the return type of a GCC
25775 builtin and then its argument prototype would still apply. */
25779 char sunw_mp_register_warn ();
25783 return sunw_mp_register_warn ();
25788 if ac_fn_c_try_link "$LINENO"; then :
25789 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25791 ac_cv_lib_mtsk_sunw_mp_register_warn=no
25793 rm -f core conftest.err conftest.$ac_objext \
25794 conftest$ac_exeext conftest.$ac_ext
25795 LIBS=$ac_check_lib_save_LIBS
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
25798 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
25799 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
25804 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
25805 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
25806 $as_echo_n "(cached) " >&6
25808 ac_check_lib_save_LIBS=$LIBS
25809 LIBS="-lxlsmp $LIBS"
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25813 /* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25819 char _xlsmpFlush ();
25823 return _xlsmpFlush ();
25828 if ac_fn_c_try_link "$LINENO"; then :
25829 ac_cv_lib_xlsmp__xlsmpFlush=yes
25831 ac_cv_lib_xlsmp__xlsmpFlush=no
25833 rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
25838 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
25839 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
25840 GOMP_LIBS="-lxlsmp"
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
25844 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
25845 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
25846 $as_echo_n "(cached) " >&6
25848 ac_check_lib_save_LIBS=$LIBS
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h. */
25853 /* Override any GCC internal prototype to avoid an error.
25854 Use char because int might match the return type of a GCC
25855 builtin and then its argument prototype would still apply. */
25859 char mp_destroy ();
25863 return mp_destroy ();
25868 if ac_fn_c_try_link "$LINENO"; then :
25869 ac_cv_lib_mp_mp_destroy=yes
25871 ac_cv_lib_mp_mp_destroy=no
25873 rm -f core conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
25875 LIBS=$ac_check_lib_save_LIBS
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
25878 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
25879 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
25882 # SGI IRIX 6.5 MIPSpro C/C++
25884 LIBS="$GOMP_LIBS $LIBS"
25889 # Find Posix threads library
25892 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25894 if test "x$PTHREAD_LIBS" = "x"; then
25895 case "${host_cpu}-${host_os}" in
25901 ac_cpp='$CPP $CPPFLAGS'
25902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25906 magick_pthread_lib_ok=no
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25913 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h. */
25916 #include <pthread.h>
25921 pthread_join(th, 0);
25922 pthread_attr_init(0);
25923 pthread_cleanup_push(0, 0);
25924 pthread_create(0,0,0,0);
25925 pthread_cleanup_pop(0);
25930 if ac_fn_c_try_link "$LINENO"; then :
25931 magick_pthread_lib_ok=yes
25933 rm -f core conftest.err conftest.$ac_objext \
25934 conftest$ac_exeext conftest.$ac_ext
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25937 $as_echo "${magick_pthread_lib_ok}" >&6; }
25938 if test "$magick_pthread_lib_ok" = yes
25950 ac_cpp='$CPP $CPPFLAGS'
25951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25959 for lib in pthread pthreads; do
25960 if test "x$PTHREAD_LIBS" = "x"; then
25965 ac_cpp='$CPP $CPPFLAGS'
25966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25970 magick_pthread_lib_ok=no
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25977 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25979 /* end confdefs.h. */
25980 #include <pthread.h>
25985 pthread_join(th, 0);
25986 pthread_attr_init(0);
25987 pthread_cleanup_push(0, 0);
25988 pthread_create(0,0,0,0);
25989 pthread_cleanup_pop(0);
25994 if ac_fn_c_try_link "$LINENO"; then :
25995 magick_pthread_lib_ok=yes
25997 rm -f core conftest.err conftest.$ac_objext \
25998 conftest$ac_exeext conftest.$ac_ext
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26001 $as_echo "${magick_pthread_lib_ok}" >&6; }
26002 if test "$magick_pthread_lib_ok" = yes
26004 PTHREAD_LIBS=-l$lib
26014 ac_cpp='$CPP $CPPFLAGS'
26015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26023 THREAD_LIBS="$PTHREAD_LIBS"
26024 LIBS="$LIBS $THREAD_LIBS"
26033 if test "$with_umem" != 'no'; then
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26035 $as_echo_n "checking for UMEM support ... " >&6; }
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26040 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26041 if test "x$ac_cv_header_umem_h" = xyes; then :
26042 passed=`expr $passed + 1`
26044 failed=`expr $failed + 1`
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26049 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26050 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26051 $as_echo_n "(cached) " >&6
26053 ac_check_lib_save_LIBS=$LIBS
26054 LIBS="-lumem $LIBS"
26055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h. */
26058 /* Override any GCC internal prototype to avoid an error.
26059 Use char because int might match the return type of a GCC
26060 builtin and then its argument prototype would still apply. */
26064 char umem_alloc ();
26068 return umem_alloc ();
26073 if ac_fn_c_try_link "$LINENO"; then :
26074 ac_cv_lib_umem_umem_alloc=yes
26076 ac_cv_lib_umem_umem_alloc=no
26078 rm -f core conftest.err conftest.$ac_objext \
26079 conftest$ac_exeext conftest.$ac_ext
26080 LIBS=$ac_check_lib_save_LIBS
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26083 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26084 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26085 passed=`expr $passed + 1`
26087 failed=`expr $failed + 1`
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26091 $as_echo_n "checking for umem_free in -lumem... " >&6; }
26092 if ${ac_cv_lib_umem_umem_free+:} false; then :
26093 $as_echo_n "(cached) " >&6
26095 ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-lumem $LIBS"
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26100 /* Override any GCC internal prototype to avoid an error.
26101 Use char because int might match the return type of a GCC
26102 builtin and then its argument prototype would still apply. */
26110 return umem_free ();
26115 if ac_fn_c_try_link "$LINENO"; then :
26116 ac_cv_lib_umem_umem_free=yes
26118 ac_cv_lib_umem_umem_free=no
26120 rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26122 LIBS=$ac_check_lib_save_LIBS
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26125 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26126 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26127 passed=`expr $passed + 1`
26129 failed=`expr $failed + 1`
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26133 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26134 if test $passed -gt 0; then
26135 if test $failed -gt 0; then
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26137 $as_echo "no -- some components failed test" >&6; }
26138 have_umem='no (failed tests)'
26141 LIBS="$UMEM_LIBS $LIBS"
26143 $as_echo "#define HasUMEM 1" >>confdefs.h
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26146 $as_echo "yes" >&6; }
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26151 $as_echo "no" >&6; }
26154 if test "$have_umem" = 'yes'; then
26165 # Add support for ccmalloc memory debugging library if requested
26169 if test "$enable_ccmalloc" = 'yes'; then
26170 # Extract the first word of "ccmalloc", so it can be a program name with args.
26171 set dummy ccmalloc; ac_word=$2
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26173 $as_echo_n "checking for $ac_word... " >&6; }
26174 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26175 $as_echo_n "(cached) " >&6
26177 case $CCMALLOCDelegate in
26179 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26183 for as_dir in $PATH
26186 test -z "$as_dir" && as_dir=.
26187 for ac_exec_ext in '' $ac_executable_extensions; do
26188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26189 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26200 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26201 if test -n "$CCMALLOCDelegate"; then
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26203 $as_echo "$CCMALLOCDelegate" >&6; }
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26206 $as_echo "no" >&6; }
26210 if test -n "$CCMALLOCDelegate"; then
26211 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26213 # Assume that gcc is used with ccmalloc.
26214 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26216 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26217 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26218 $as_echo_n "(cached) " >&6
26220 ac_check_lib_save_LIBS=$LIBS
26221 LIBS="-lccmalloc -ldl $LIBS"
26222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223 /* end confdefs.h. */
26225 /* Override any GCC internal prototype to avoid an error.
26226 Use char because int might match the return type of a GCC
26227 builtin and then its argument prototype would still apply. */
26231 char ccmalloc_malloc ();
26235 return ccmalloc_malloc ();
26240 if ac_fn_c_try_link "$LINENO"; then :
26241 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26243 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26245 rm -f core conftest.err conftest.$ac_objext \
26246 conftest$ac_exeext conftest.$ac_ext
26247 LIBS=$ac_check_lib_save_LIBS
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26250 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26251 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26252 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26255 if test -n "$CCMALLOC_LIBS"; then
26257 LIBS="$LIBS $CCMALLOC_LIBS"
26258 have_ccmalloc='yes'
26266 # Add support for efence memory debugging library if requested
26268 if test "$enable_efence" = 'yes'; then
26269 EFENCE_LIBS='-lefence'
26270 LIBS="$EFENCE_LIBS $LIBS"
26279 # Check whether --with-bzlib was given.
26280 if test "${with_bzlib+set}" = set; then :
26281 withval=$with_bzlib; with_bzlib=$withval
26287 if test "$with_bzlib" != 'yes'; then
26288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26292 if test "$with_bzlib" != 'no'; then
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26295 $as_echo "-------------------------------------------------------------" >&6; }
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26297 $as_echo_n "checking for BZLIB... " >&6; }
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26303 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26304 if test "x$ac_cv_header_bzlib_h" = xyes; then :
26305 passed=`expr $passed + 1`
26307 failed=`expr $failed + 1`
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26312 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26313 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26314 $as_echo_n "(cached) " >&6
26316 ac_check_lib_save_LIBS=$LIBS
26318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26319 /* end confdefs.h. */
26321 /* Override any GCC internal prototype to avoid an error.
26322 Use char because int might match the return type of a GCC
26323 builtin and then its argument prototype would still apply. */
26327 char BZ2_bzDecompress ();
26331 return BZ2_bzDecompress ();
26336 if ac_fn_c_try_link "$LINENO"; then :
26337 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26339 ac_cv_lib_bz2_BZ2_bzDecompress=no
26341 rm -f core conftest.err conftest.$ac_objext \
26342 conftest$ac_exeext conftest.$ac_ext
26343 LIBS=$ac_check_lib_save_LIBS
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26346 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26347 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26348 found_libbz=`expr $found_libbz + 1`
26351 if test "$native_win32_build" = 'yes'; then
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26353 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26354 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26355 $as_echo_n "(cached) " >&6
26357 ac_check_lib_save_LIBS=$LIBS
26359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360 /* end confdefs.h. */
26362 /* Override any GCC internal prototype to avoid an error.
26363 Use char because int might match the return type of a GCC
26364 builtin and then its argument prototype would still apply. */
26368 char _imp__BZ2_decompress ();
26372 return _imp__BZ2_decompress ();
26377 if ac_fn_c_try_link "$LINENO"; then :
26378 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26380 ac_cv_lib_bz2__imp__BZ2_decompress=no
26382 rm -f core conftest.err conftest.$ac_objext \
26383 conftest$ac_exeext conftest.$ac_ext
26384 LIBS=$ac_check_lib_save_LIBS
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26387 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26388 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26389 found_libbz=`expr $found_libbz + 1`
26393 if test $found_libbz -gt 0; then
26394 passed=`expr $passed + 1`
26396 failed=`expr $failed + 1`
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26399 $as_echo_n "checking if BZLIB package is complete... " >&6; }
26400 if test $passed -gt 0; then
26401 if test $failed -gt 0; then
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26403 $as_echo "no -- some components failed test" >&6; }
26404 have_bzlib='no (failed tests)'
26407 LIBS="$BZLIB_LIBS $LIBS"
26409 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26412 $as_echo "yes" >&6; }
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26417 $as_echo "no" >&6; }
26420 if test "$have_bzlib" = 'yes'; then
26421 BZLIB_DELEGATE_TRUE=
26422 BZLIB_DELEGATE_FALSE='#'
26424 BZLIB_DELEGATE_TRUE='#'
26425 BZLIB_DELEGATE_FALSE=
26431 # Find the X11 include and library directories.
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26438 $as_echo_n "checking for X... " >&6; }
26441 # Check whether --with-x was given.
26442 if test "${with_x+set}" = set; then :
26446 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26447 if test "x$with_x" = xno; then
26448 # The user explicitly disabled X.
26451 case $x_includes,$x_libraries in #(
26452 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26453 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26454 $as_echo_n "(cached) " >&6
26456 # One or both of the vars are not set, and there is no cached value.
26457 ac_x_includes=no ac_x_libraries=no
26458 rm -f -r conftest.dir
26459 if mkdir conftest.dir; then
26461 cat >Imakefile <<'_ACEOF'
26463 @echo incroot='${INCROOT}'
26465 @echo usrlibdir='${USRLIBDIR}'
26467 @echo libdir='${LIBDIR}'
26469 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26470 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26471 for ac_var in incroot usrlibdir libdir; do
26472 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26474 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26475 for ac_extension in a so sl dylib la dll; do
26476 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26477 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26478 ac_im_usrlibdir=$ac_im_libdir; break
26481 # Screen out bogus values from the imake configuration. They are
26482 # bogus both because they are the default anyway, and because
26483 # using them would break gcc on systems where it needs fixed includes.
26484 case $ac_im_incroot in
26485 /usr/include) ac_x_includes= ;;
26486 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26488 case $ac_im_usrlibdir in
26489 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26490 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26494 rm -f -r conftest.dir
26497 # Standard set of common directories for X headers.
26498 # Check X11 before X11Rn because it is often a symlink to the current release.
26512 /usr/local/X11/include
26513 /usr/local/X11R7/include
26514 /usr/local/X11R6/include
26515 /usr/local/X11R5/include
26516 /usr/local/X11R4/include
26518 /usr/local/include/X11
26519 /usr/local/include/X11R7
26520 /usr/local/include/X11R6
26521 /usr/local/include/X11R5
26522 /usr/local/include/X11R4
26526 /usr/XFree86/include/X11
26530 /usr/unsupported/include
26531 /usr/athena/include
26532 /usr/local/x11r5/include
26533 /usr/lpp/Xamples/include
26535 /usr/openwin/include
26536 /usr/openwin/share/include'
26538 if test "$ac_x_includes" = no; then
26539 # Guess where to find include files, by looking for Xlib.h.
26540 # First, try using that file with no special directory specified.
26541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h. */
26543 #include <X11/Xlib.h>
26545 if ac_fn_c_try_cpp "$LINENO"; then :
26546 # We can compile using X headers with no special include directory.
26549 for ac_dir in $ac_x_header_dirs; do
26550 if test -r "$ac_dir/X11/Xlib.h"; then
26551 ac_x_includes=$ac_dir
26556 rm -f conftest.err conftest.i conftest.$ac_ext
26557 fi # $ac_x_includes = no
26559 if test "$ac_x_libraries" = no; then
26560 # Check for the libraries.
26561 # See if we find them without any special options.
26562 # Don't add to $LIBS permanently.
26565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26566 /* end confdefs.h. */
26567 #include <X11/Xlib.h>
26576 if ac_fn_c_try_link "$LINENO"; then :
26578 # We can link X programs with no special library path.
26582 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26584 # Don't even attempt the hair of trying to link an X program!
26585 for ac_extension in a so sl dylib la dll; do
26586 if test -r "$ac_dir/libX11.$ac_extension"; then
26587 ac_x_libraries=$ac_dir
26593 rm -f core conftest.err conftest.$ac_objext \
26594 conftest$ac_exeext conftest.$ac_ext
26595 fi # $ac_x_libraries = no
26597 case $ac_x_includes,$ac_x_libraries in #(
26598 no,* | *,no | *\'*)
26599 # Didn't find X, or a directory has "'" in its name.
26600 ac_cv_have_x="have_x=no";; #(
26602 # Record where we found X for the cache.
26603 ac_cv_have_x="have_x=yes\
26604 ac_x_includes='$ac_x_includes'\
26605 ac_x_libraries='$ac_x_libraries'"
26611 eval "$ac_cv_have_x"
26614 if test "$have_x" != yes; then
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
26616 $as_echo "$have_x" >&6; }
26619 # If each of the values was on the command line, it overrides each guess.
26620 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26621 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26622 # Update the cache value to reflect the command line values.
26623 ac_cv_have_x="have_x=yes\
26624 ac_x_includes='$x_includes'\
26625 ac_x_libraries='$x_libraries'"
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
26627 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26630 if test "$no_x" = yes; then
26631 # Not all programs may use this symbol, but it does not hurt to define it.
26633 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
26635 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26637 if test -n "$x_includes"; then
26638 X_CFLAGS="$X_CFLAGS -I$x_includes"
26641 # It would also be nice to do this for all -L options, not just this one.
26642 if test -n "$x_libraries"; then
26643 X_LIBS="$X_LIBS -L$x_libraries"
26644 # For Solaris; some versions of Sun CC require a space after -R and
26645 # others require no space. Words are not sufficient . . . .
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
26647 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
26648 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26649 ac_xsave_c_werror_flag=$ac_c_werror_flag
26650 ac_c_werror_flag=yes
26651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26652 /* end confdefs.h. */
26662 if ac_fn_c_try_link "$LINENO"; then :
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26664 $as_echo "no" >&6; }
26665 X_LIBS="$X_LIBS -R$x_libraries"
26667 LIBS="$ac_xsave_LIBS -R $x_libraries"
26668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26669 /* end confdefs.h. */
26679 if ac_fn_c_try_link "$LINENO"; then :
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26681 $as_echo "yes" >&6; }
26682 X_LIBS="$X_LIBS -R $x_libraries"
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
26685 $as_echo "neither works" >&6; }
26687 rm -f core conftest.err conftest.$ac_objext \
26688 conftest$ac_exeext conftest.$ac_ext
26690 rm -f core conftest.err conftest.$ac_objext \
26691 conftest$ac_exeext conftest.$ac_ext
26692 ac_c_werror_flag=$ac_xsave_c_werror_flag
26693 LIBS=$ac_xsave_LIBS
26696 # Check for system-dependent libraries X programs must link with.
26697 # Do this before checking for the system-independent R6 libraries
26698 # (-lICE), since we may need -lsocket or whatever for X linking.
26700 if test "$ISC" = yes; then
26701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26703 # Martyn Johnson says this is needed for Ultrix, if the X
26704 # libraries were built with DECnet support. And Karl Berry says
26705 # the Alpha needs dnet_stub (dnet does not exist).
26706 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26708 /* end confdefs.h. */
26710 /* Override any GCC internal prototype to avoid an error.
26711 Use char because int might match the return type of a GCC
26712 builtin and then its argument prototype would still apply. */
26716 char XOpenDisplay ();
26720 return XOpenDisplay ();
26725 if ac_fn_c_try_link "$LINENO"; then :
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26729 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26730 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
26731 $as_echo_n "(cached) " >&6
26733 ac_check_lib_save_LIBS=$LIBS
26734 LIBS="-ldnet $LIBS"
26735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26736 /* end confdefs.h. */
26738 /* Override any GCC internal prototype to avoid an error.
26739 Use char because int might match the return type of a GCC
26740 builtin and then its argument prototype would still apply. */
26748 return dnet_ntoa ();
26753 if ac_fn_c_try_link "$LINENO"; then :
26754 ac_cv_lib_dnet_dnet_ntoa=yes
26756 ac_cv_lib_dnet_dnet_ntoa=no
26758 rm -f core conftest.err conftest.$ac_objext \
26759 conftest$ac_exeext conftest.$ac_ext
26760 LIBS=$ac_check_lib_save_LIBS
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26763 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26764 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
26765 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26768 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26770 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26771 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
26772 $as_echo_n "(cached) " >&6
26774 ac_check_lib_save_LIBS=$LIBS
26775 LIBS="-ldnet_stub $LIBS"
26776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26777 /* end confdefs.h. */
26779 /* Override any GCC internal prototype to avoid an error.
26780 Use char because int might match the return type of a GCC
26781 builtin and then its argument prototype would still apply. */
26789 return dnet_ntoa ();
26794 if ac_fn_c_try_link "$LINENO"; then :
26795 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26797 ac_cv_lib_dnet_stub_dnet_ntoa=no
26799 rm -f core conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
26801 LIBS=$ac_check_lib_save_LIBS
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26804 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26805 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
26806 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26811 rm -f core conftest.err conftest.$ac_objext \
26812 conftest$ac_exeext conftest.$ac_ext
26813 LIBS="$ac_xsave_LIBS"
26815 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26816 # to get the SysV transport functions.
26817 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26819 # The nsl library prevents programs from opening the X display
26820 # on Irix 5.2, according to T.E. Dickey.
26821 # The functions gethostbyname, getservbyname, and inet_addr are
26822 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26823 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26824 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26828 if test $ac_cv_func_gethostbyname = no; then
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26830 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26831 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26832 $as_echo_n "(cached) " >&6
26834 ac_check_lib_save_LIBS=$LIBS
26836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26837 /* end confdefs.h. */
26839 /* Override any GCC internal prototype to avoid an error.
26840 Use char because int might match the return type of a GCC
26841 builtin and then its argument prototype would still apply. */
26845 char gethostbyname ();
26849 return gethostbyname ();
26854 if ac_fn_c_try_link "$LINENO"; then :
26855 ac_cv_lib_nsl_gethostbyname=yes
26857 ac_cv_lib_nsl_gethostbyname=no
26859 rm -f core conftest.err conftest.$ac_objext \
26860 conftest$ac_exeext conftest.$ac_ext
26861 LIBS=$ac_check_lib_save_LIBS
26863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26864 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26865 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26869 if test $ac_cv_lib_nsl_gethostbyname = no; then
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26871 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26872 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
26873 $as_echo_n "(cached) " >&6
26875 ac_check_lib_save_LIBS=$LIBS
26877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26878 /* end confdefs.h. */
26880 /* Override any GCC internal prototype to avoid an error.
26881 Use char because int might match the return type of a GCC
26882 builtin and then its argument prototype would still apply. */
26886 char gethostbyname ();
26890 return gethostbyname ();
26895 if ac_fn_c_try_link "$LINENO"; then :
26896 ac_cv_lib_bsd_gethostbyname=yes
26898 ac_cv_lib_bsd_gethostbyname=no
26900 rm -f core conftest.err conftest.$ac_objext \
26901 conftest$ac_exeext conftest.$ac_ext
26902 LIBS=$ac_check_lib_save_LIBS
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26905 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26906 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
26907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26913 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26914 # socket/setsockopt and other routines are undefined under SCO ODT
26915 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26916 # on later versions), says Simon Leinen: it contains gethostby*
26917 # variants that don't use the name server (or something). -lsocket
26918 # must be given before -lnsl if both are needed. We assume that
26919 # if connect needs -lnsl, so does gethostbyname.
26920 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26921 if test "x$ac_cv_func_connect" = xyes; then :
26925 if test $ac_cv_func_connect = no; then
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26927 $as_echo_n "checking for connect in -lsocket... " >&6; }
26928 if ${ac_cv_lib_socket_connect+:} false; then :
26929 $as_echo_n "(cached) " >&6
26931 ac_check_lib_save_LIBS=$LIBS
26932 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26934 /* end confdefs.h. */
26936 /* Override any GCC internal prototype to avoid an error.
26937 Use char because int might match the return type of a GCC
26938 builtin and then its argument prototype would still apply. */
26951 if ac_fn_c_try_link "$LINENO"; then :
26952 ac_cv_lib_socket_connect=yes
26954 ac_cv_lib_socket_connect=no
26956 rm -f core conftest.err conftest.$ac_objext \
26957 conftest$ac_exeext conftest.$ac_ext
26958 LIBS=$ac_check_lib_save_LIBS
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26961 $as_echo "$ac_cv_lib_socket_connect" >&6; }
26962 if test "x$ac_cv_lib_socket_connect" = xyes; then :
26963 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26968 # Guillermo Gomez says -lposix is necessary on A/UX.
26969 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26970 if test "x$ac_cv_func_remove" = xyes; then :
26974 if test $ac_cv_func_remove = no; then
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26976 $as_echo_n "checking for remove in -lposix... " >&6; }
26977 if ${ac_cv_lib_posix_remove+:} false; then :
26978 $as_echo_n "(cached) " >&6
26980 ac_check_lib_save_LIBS=$LIBS
26981 LIBS="-lposix $LIBS"
26982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26983 /* end confdefs.h. */
26985 /* Override any GCC internal prototype to avoid an error.
26986 Use char because int might match the return type of a GCC
26987 builtin and then its argument prototype would still apply. */
27000 if ac_fn_c_try_link "$LINENO"; then :
27001 ac_cv_lib_posix_remove=yes
27003 ac_cv_lib_posix_remove=no
27005 rm -f core conftest.err conftest.$ac_objext \
27006 conftest$ac_exeext conftest.$ac_ext
27007 LIBS=$ac_check_lib_save_LIBS
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27010 $as_echo "$ac_cv_lib_posix_remove" >&6; }
27011 if test "x$ac_cv_lib_posix_remove" = xyes; then :
27012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27017 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27018 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27019 if test "x$ac_cv_func_shmat" = xyes; then :
27023 if test $ac_cv_func_shmat = no; then
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27025 $as_echo_n "checking for shmat in -lipc... " >&6; }
27026 if ${ac_cv_lib_ipc_shmat+:} false; then :
27027 $as_echo_n "(cached) " >&6
27029 ac_check_lib_save_LIBS=$LIBS
27031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27032 /* end confdefs.h. */
27034 /* Override any GCC internal prototype to avoid an error.
27035 Use char because int might match the return type of a GCC
27036 builtin and then its argument prototype would still apply. */
27049 if ac_fn_c_try_link "$LINENO"; then :
27050 ac_cv_lib_ipc_shmat=yes
27052 ac_cv_lib_ipc_shmat=no
27054 rm -f core conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
27056 LIBS=$ac_check_lib_save_LIBS
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27059 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27060 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27061 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27067 # Check for libraries that X11R6 Xt/Xaw programs need.
27068 ac_save_LDFLAGS=$LDFLAGS
27069 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27070 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27071 # check for ICE first), but we must link in the order -lSM -lICE or
27072 # we get undefined symbols. So assume we have SM if we have ICE.
27073 # These have to be linked with before -lX11, unlike the other
27074 # libraries we check for below, so use a different variable.
27075 # John Interrante, Karl Berry
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27077 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27078 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27079 $as_echo_n "(cached) " >&6
27081 ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27086 /* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27092 char IceConnectionNumber ();
27096 return IceConnectionNumber ();
27101 if ac_fn_c_try_link "$LINENO"; then :
27102 ac_cv_lib_ICE_IceConnectionNumber=yes
27104 ac_cv_lib_ICE_IceConnectionNumber=no
27106 rm -f core conftest.err conftest.$ac_objext \
27107 conftest$ac_exeext conftest.$ac_ext
27108 LIBS=$ac_check_lib_save_LIBS
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27111 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27112 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27113 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27116 LDFLAGS=$ac_save_LDFLAGS
27120 if test "$no_x" != 'yes'; then
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27122 $as_echo "-------------------------------------------------------------" >&6; }
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27124 $as_echo_n "checking for X11... " >&6; }
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27127 LDFLAGS="$LDFLAGS $X_LIBS"
27128 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27129 LIBS="$X11_LIBS $LIBS"
27130 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27133 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
27136 # Check for X11 shared memory extension
27138 # shmctl is required to support the shared memory extension
27139 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27140 if test "x$ac_cv_func_shmctl" = xyes; then :
27144 if test "$have_shmctl" != 'yes'; then
27146 LIBS="$LIBS -lcygipc"
27147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27148 /* end confdefs.h. */
27150 /* Override any GCC internal prototype to avoid an error.
27151 Use char because int might match the return type of a GCC
27152 builtin and then its argument prototype would still apply. */
27165 if ac_fn_c_try_link "$LINENO"; then :
27166 have_shmctl='yes'; IPC_LIBS='-lcygipc'
27168 rm -f core conftest.err conftest.$ac_objext \
27169 conftest$ac_exeext conftest.$ac_ext
27173 if test "$have_shmctl" = 'yes'; then
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27175 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27176 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27177 $as_echo_n "(cached) " >&6
27179 ac_check_lib_save_LIBS=$LIBS
27180 LIBS="-lXext $LIBS"
27181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27182 /* end confdefs.h. */
27184 /* Override any GCC internal prototype to avoid an error.
27185 Use char because int might match the return type of a GCC
27186 builtin and then its argument prototype would still apply. */
27190 char XShmAttach ();
27194 return XShmAttach ();
27199 if ac_fn_c_try_link "$LINENO"; then :
27200 ac_cv_lib_Xext_XShmAttach=yes
27202 ac_cv_lib_Xext_XShmAttach=no
27204 rm -f core conftest.err conftest.$ac_objext \
27205 conftest$ac_exeext conftest.$ac_ext
27206 LIBS=$ac_check_lib_save_LIBS
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27209 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27210 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27211 XEXT_LIBS='-lXext' ;
27212 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27219 # Check for X11 shape extension
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27222 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27223 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27224 $as_echo_n "(cached) " >&6
27226 ac_check_lib_save_LIBS=$LIBS
27227 LIBS="-lXext $LIBS"
27228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27229 /* end confdefs.h. */
27231 /* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
27237 char XShapeCombineMask ();
27241 return XShapeCombineMask ();
27246 if ac_fn_c_try_link "$LINENO"; then :
27247 ac_cv_lib_Xext_XShapeCombineMask=yes
27249 ac_cv_lib_Xext_XShapeCombineMask=no
27251 rm -f core conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27256 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27257 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27258 XEXT_LIBS='-lXext' ;
27259 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27264 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27265 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} 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. */
27279 char XtSetEventDispatcher ();
27283 return XtSetEventDispatcher ();
27288 if ac_fn_c_try_link "$LINENO"; then :
27289 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27291 ac_cv_lib_Xt_XtSetEventDispatcher=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_Xt_XtSetEventDispatcher" >&5
27298 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27299 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27303 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27305 if test "$no_x" != 'yes'; then
27310 if test "$have_x" = 'yes'; then
27312 X11_DELEGATE_FALSE='#'
27314 X11_DELEGATE_TRUE='#'
27315 X11_DELEGATE_FALSE=
27326 # Check whether --with-zlib was given.
27327 if test "${with_zlib+set}" = set; then :
27328 withval=$with_zlib; with_zlib=$withval
27334 if test "$with_zlib" != 'yes'; then
27335 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27340 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27342 $as_echo "-------------------------------------------------------------" >&6; }
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27344 $as_echo_n "checking for ZLIB... " >&6; }
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27350 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27351 if test "x$ac_cv_header_zconf_h" = xyes; then :
27352 passed=`expr $passed + 1`
27354 failed=`expr $failed + 1`
27358 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27359 if test "x$ac_cv_header_zlib_h" = xyes; then :
27360 passed=`expr $passed + 1`
27362 failed=`expr $failed + 1`
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27367 $as_echo_n "checking for compress in -lz... " >&6; }
27368 if ${ac_cv_lib_z_compress+:} false; then :
27369 $as_echo_n "(cached) " >&6
27371 ac_check_lib_save_LIBS=$LIBS
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h. */
27376 /* Override any GCC internal prototype to avoid an error.
27377 Use char because int might match the return type of a GCC
27378 builtin and then its argument prototype would still apply. */
27386 return compress ();
27391 if ac_fn_c_try_link "$LINENO"; then :
27392 ac_cv_lib_z_compress=yes
27394 ac_cv_lib_z_compress=no
27396 rm -f core conftest.err conftest.$ac_objext \
27397 conftest$ac_exeext conftest.$ac_ext
27398 LIBS=$ac_check_lib_save_LIBS
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27401 $as_echo "$ac_cv_lib_z_compress" >&6; }
27402 if test "x$ac_cv_lib_z_compress" = xyes; then :
27403 passed=`expr $passed + 1`
27405 failed=`expr $failed + 1`
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27409 $as_echo_n "checking for uncompress in -lz... " >&6; }
27410 if ${ac_cv_lib_z_uncompress+:} false; then :
27411 $as_echo_n "(cached) " >&6
27413 ac_check_lib_save_LIBS=$LIBS
27415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27416 /* end confdefs.h. */
27418 /* Override any GCC internal prototype to avoid an error.
27419 Use char because int might match the return type of a GCC
27420 builtin and then its argument prototype would still apply. */
27424 char uncompress ();
27428 return uncompress ();
27433 if ac_fn_c_try_link "$LINENO"; then :
27434 ac_cv_lib_z_uncompress=yes
27436 ac_cv_lib_z_uncompress=no
27438 rm -f core conftest.err conftest.$ac_objext \
27439 conftest$ac_exeext conftest.$ac_ext
27440 LIBS=$ac_check_lib_save_LIBS
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27443 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
27444 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27445 passed=`expr $passed + 1`
27447 failed=`expr $failed + 1`
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27451 $as_echo_n "checking for deflate in -lz... " >&6; }
27452 if ${ac_cv_lib_z_deflate+:} false; then :
27453 $as_echo_n "(cached) " >&6
27455 ac_check_lib_save_LIBS=$LIBS
27457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h. */
27460 /* Override any GCC internal prototype to avoid an error.
27461 Use char because int might match the return type of a GCC
27462 builtin and then its argument prototype would still apply. */
27475 if ac_fn_c_try_link "$LINENO"; then :
27476 ac_cv_lib_z_deflate=yes
27478 ac_cv_lib_z_deflate=no
27480 rm -f core conftest.err conftest.$ac_objext \
27481 conftest$ac_exeext conftest.$ac_ext
27482 LIBS=$ac_check_lib_save_LIBS
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27485 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27486 if test "x$ac_cv_lib_z_deflate" = xyes; then :
27487 passed=`expr $passed + 1`
27489 failed=`expr $failed + 1`
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
27493 $as_echo_n "checking for inflate in -lz... " >&6; }
27494 if ${ac_cv_lib_z_inflate+:} false; then :
27495 $as_echo_n "(cached) " >&6
27497 ac_check_lib_save_LIBS=$LIBS
27499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27500 /* end confdefs.h. */
27502 /* Override any GCC internal prototype to avoid an error.
27503 Use char because int might match the return type of a GCC
27504 builtin and then its argument prototype would still apply. */
27517 if ac_fn_c_try_link "$LINENO"; then :
27518 ac_cv_lib_z_inflate=yes
27520 ac_cv_lib_z_inflate=no
27522 rm -f core conftest.err conftest.$ac_objext \
27523 conftest$ac_exeext conftest.$ac_ext
27524 LIBS=$ac_check_lib_save_LIBS
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
27527 $as_echo "$ac_cv_lib_z_inflate" >&6; }
27528 if test "x$ac_cv_lib_z_inflate" = xyes; then :
27529 passed=`expr $passed + 1`
27531 failed=`expr $failed + 1`
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
27535 $as_echo_n "checking for gzseek in -lz... " >&6; }
27536 if ${ac_cv_lib_z_gzseek+:} false; then :
27537 $as_echo_n "(cached) " >&6
27539 ac_check_lib_save_LIBS=$LIBS
27541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h. */
27544 /* Override any GCC internal prototype to avoid an error.
27545 Use char because int might match the return type of a GCC
27546 builtin and then its argument prototype would still apply. */
27559 if ac_fn_c_try_link "$LINENO"; then :
27560 ac_cv_lib_z_gzseek=yes
27562 ac_cv_lib_z_gzseek=no
27564 rm -f core conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
27566 LIBS=$ac_check_lib_save_LIBS
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
27569 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
27570 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
27571 passed=`expr $passed + 1`
27573 failed=`expr $failed + 1`
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
27577 $as_echo_n "checking for gztell in -lz... " >&6; }
27578 if ${ac_cv_lib_z_gztell+:} false; then :
27579 $as_echo_n "(cached) " >&6
27581 ac_check_lib_save_LIBS=$LIBS
27583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27584 /* end confdefs.h. */
27586 /* Override any GCC internal prototype to avoid an error.
27587 Use char because int might match the return type of a GCC
27588 builtin and then its argument prototype would still apply. */
27601 if ac_fn_c_try_link "$LINENO"; then :
27602 ac_cv_lib_z_gztell=yes
27604 ac_cv_lib_z_gztell=no
27606 rm -f core conftest.err conftest.$ac_objext \
27607 conftest$ac_exeext conftest.$ac_ext
27608 LIBS=$ac_check_lib_save_LIBS
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
27611 $as_echo "$ac_cv_lib_z_gztell" >&6; }
27612 if test "x$ac_cv_lib_z_gztell" = xyes; then :
27613 passed=`expr $passed + 1`
27615 failed=`expr $failed + 1`
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
27619 $as_echo_n "checking if ZLIB package is complete... " >&6; }
27620 if test $passed -gt 0; then
27621 if test $failed -gt 0; then
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27623 $as_echo "no -- some components failed test" >&6; }
27624 have_zlib='no (failed tests)'
27627 LIBS="$ZLIB_LIBS $LIBS"
27629 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27632 $as_echo "yes" >&6; }
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27637 $as_echo "no" >&6; }
27640 if test "$have_zlib" = 'yes'; then
27641 ZLIB_DELEGATE_TRUE=
27642 ZLIB_DELEGATE_FALSE='#'
27644 ZLIB_DELEGATE_TRUE='#'
27645 ZLIB_DELEGATE_FALSE=
27651 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27654 if test "$enable_profiling" = 'yes'; then
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27656 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27657 if ${ac_cv_lib_dl_dlopen+:} false; then :
27658 $as_echo_n "(cached) " >&6
27660 ac_check_lib_save_LIBS=$LIBS
27662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27663 /* end confdefs.h. */
27665 /* Override any GCC internal prototype to avoid an error.
27666 Use char because int might match the return type of a GCC
27667 builtin and then its argument prototype would still apply. */
27680 if ac_fn_c_try_link "$LINENO"; then :
27681 ac_cv_lib_dl_dlopen=yes
27683 ac_cv_lib_dl_dlopen=no
27685 rm -f core conftest.err conftest.$ac_objext \
27686 conftest$ac_exeext conftest.$ac_ext
27687 LIBS=$ac_check_lib_save_LIBS
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27691 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
27695 LIBS="$LIB_DL $LIBS"
27701 # Check for Autotrace delegate library.
27704 # Check whether --with-autotrace was given.
27705 if test "${with_autotrace+set}" = set; then :
27706 withval=$with_autotrace; with_autotrace=$withval
27708 with_autotrace='no'
27712 if test "$with_autotrace" != 'yes'; then
27713 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27716 have_autotrace='no'
27717 AUTOTRACE_CFLAGS=""
27720 if test "x$with_autotrace" = "xyes"; then
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27722 $as_echo "-------------------------------------------------------------" >&6; }
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27726 $as_echo_n "checking for AUTOTRACE... " >&6; }
27728 if test -n "$AUTOTRACE_CFLAGS"; then
27729 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27730 elif test -n "$PKG_CONFIG"; then
27731 if test -n "$PKG_CONFIG" && \
27732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27733 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736 test $ac_status = 0; }; then
27737 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27744 if test -n "$AUTOTRACE_LIBS"; then
27745 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27746 elif test -n "$PKG_CONFIG"; then
27747 if test -n "$PKG_CONFIG" && \
27748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27749 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27752 test $ac_status = 0; }; then
27753 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27763 if test $pkg_failed = yes; then
27765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27766 _pkg_short_errors_supported=yes
27768 _pkg_short_errors_supported=no
27770 if test $_pkg_short_errors_supported = yes; then
27771 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27773 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27775 # Put the nasty error message in config.log where it belongs
27776 echo "$AUTOTRACE_PKG_ERRORS" >&5
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27779 $as_echo "no" >&6; }
27781 elif test $pkg_failed = untried; then
27784 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27785 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27787 $as_echo "yes" >&6; }
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27794 if test "$have_autotrace" = 'yes'; then
27797 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
27799 if test "$with_modules" = 'no'; then
27800 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27804 if test "$have_autotrace" = 'yes'; then
27805 AUTOTRACE_DELEGATE_TRUE=
27806 AUTOTRACE_DELEGATE_FALSE='#'
27808 AUTOTRACE_DELEGATE_TRUE='#'
27809 AUTOTRACE_DELEGATE_FALSE=
27817 # Check for Display Postscript delegate library.
27820 # Check whether --with-dps was given.
27821 if test "${with_dps+set}" = set; then :
27822 withval=$with_dps; with_dps=$withval
27828 if test "$with_dps" != 'yes'; then
27829 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27834 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27836 $as_echo "-------------------------------------------------------------" >&6; }
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
27838 $as_echo_n "checking for DPS... " >&6; }
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27843 PERSIST_CPPFLAGS="$CPPFLAGS"
27844 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
27845 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
27846 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
27847 passed=`expr $passed + 1`
27849 failed=`expr $failed + 1`
27854 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27855 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27856 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27857 # ImageMagick itself doesn't use -lXt.
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27861 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27862 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27863 $as_echo_n "(cached) " >&6
27865 ac_check_lib_save_LIBS=$LIBS
27867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27868 /* end confdefs.h. */
27870 /* Override any GCC internal prototype to avoid an error.
27871 Use char because int might match the return type of a GCC
27872 builtin and then its argument prototype would still apply. */
27876 char DPSInitialize ();
27880 return DPSInitialize ();
27885 if ac_fn_c_try_link "$LINENO"; then :
27886 ac_cv_lib_dps_DPSInitialize=yes
27888 ac_cv_lib_dps_DPSInitialize=no
27890 rm -f core conftest.err conftest.$ac_objext \
27891 conftest$ac_exeext conftest.$ac_ext
27892 LIBS=$ac_check_lib_save_LIBS
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27895 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27896 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27902 if test "$have_libdps" != 'yes'; then
27903 # Unset cache variable so we can try again.
27904 unset ac_cv_lib_dps_DPSInitialize
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27906 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27907 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27908 $as_echo_n "(cached) " >&6
27910 ac_check_lib_save_LIBS=$LIBS
27911 LIBS="-ldps -lXt $LIBS"
27912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27913 /* end confdefs.h. */
27915 /* Override any GCC internal prototype to avoid an error.
27916 Use char because int might match the return type of a GCC
27917 builtin and then its argument prototype would still apply. */
27921 char DPSInitialize ();
27925 return DPSInitialize ();
27930 if ac_fn_c_try_link "$LINENO"; then :
27931 ac_cv_lib_dps_DPSInitialize=yes
27933 ac_cv_lib_dps_DPSInitialize=no
27935 rm -f core conftest.err conftest.$ac_objext \
27936 conftest$ac_exeext conftest.$ac_ext
27937 LIBS=$ac_check_lib_save_LIBS
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27940 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27941 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27947 if test "$have_libdps" = 'yes'; then
27951 if test "$have_libdps" = 'yes'; then
27952 passed=`expr $passed + 1`
27954 failed=`expr $failed + 1`
27956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
27957 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
27958 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
27959 $as_echo_n "(cached) " >&6
27961 ac_check_lib_save_LIBS=$LIBS
27962 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
27963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27964 /* end confdefs.h. */
27966 /* Override any GCC internal prototype to avoid an error.
27967 Use char because int might match the return type of a GCC
27968 builtin and then its argument prototype would still apply. */
27972 char XDPSPixelsPerPoint ();
27976 return XDPSPixelsPerPoint ();
27981 if ac_fn_c_try_link "$LINENO"; then :
27982 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27984 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
27986 rm -f core conftest.err conftest.$ac_objext \
27987 conftest$ac_exeext conftest.$ac_ext
27988 LIBS=$ac_check_lib_save_LIBS
27990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
27991 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
27992 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
27993 passed=`expr $passed + 1`
27995 failed=`expr $failed + 1`
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
27999 $as_echo_n "checking if DPS package is complete... " >&6; }
28000 if test $passed -gt 0; then
28001 if test $failed -gt 0; then
28002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28003 $as_echo "no -- some components failed test" >&6; }
28004 have_dps='no (failed tests)'
28005 CPPFLAGS="$PERSIST_CPPFLAGS"
28007 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28008 LIBS="$DPS_LIBS $LIBS"
28010 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28013 $as_echo "yes" >&6; }
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28018 $as_echo "no" >&6; }
28019 CPPFLAGS=$PERSIST_CPPFLAGS
28022 if test "$have_dps" = 'yes'; then
28024 DPS_DELEGATE_FALSE='#'
28026 DPS_DELEGATE_TRUE='#'
28027 DPS_DELEGATE_FALSE=
28034 # Check for DJVU delegate library.
28037 # Check whether --with-djvu was given.
28038 if test "${with_djvu+set}" = set; then :
28039 withval=$with_djvu; with_djvu=$withval
28045 if test "$with_djvu" != 'yes'; then
28046 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28051 if test "$with_djvu" != 'no'; then
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28053 $as_echo "-------------------------------------------------------------" >&6; }
28054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28055 $as_echo_n "checking for DJVU... " >&6; }
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28060 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28061 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28062 passed=`expr $passed + 1`
28064 failed=`expr $failed + 1`
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28069 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28070 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28071 $as_echo_n "(cached) " >&6
28073 ac_check_lib_save_LIBS=$LIBS
28074 LIBS="-ldjvulibre $LIBS"
28075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28076 /* end confdefs.h. */
28078 /* Override any GCC internal prototype to avoid an error.
28079 Use char because int might match the return type of a GCC
28080 builtin and then its argument prototype would still apply. */
28084 char ddjvu_context_create ();
28088 return ddjvu_context_create ();
28093 if ac_fn_c_try_link "$LINENO"; then :
28094 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28096 ac_cv_lib_djvulibre_ddjvu_context_create=no
28098 rm -f core conftest.err conftest.$ac_objext \
28099 conftest$ac_exeext conftest.$ac_ext
28100 LIBS=$ac_check_lib_save_LIBS
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28103 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28104 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28105 passed=`expr $passed + 1`
28107 failed=`expr $failed + 1`
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28111 $as_echo_n "checking if DJVU package is complete... " >&6; }
28112 if test $passed -gt 0; then
28113 if test $failed -gt 0; then
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28115 $as_echo "no -- some components failed test" >&6; }
28116 have_djvu='no (failed tests)'
28118 DJVU_LIBS='-ldjvulibre'
28119 LIBS="$DJVU_LIBS $LIBS"
28121 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28124 $as_echo "yes" >&6; }
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28129 $as_echo "no" >&6; }
28132 if test "$have_djvu" = 'yes'; then
28133 DJVU_DELEGATE_TRUE=
28134 DJVU_DELEGATE_FALSE='#'
28136 DJVU_DELEGATE_TRUE='#'
28137 DJVU_DELEGATE_FALSE=
28144 # Set DejaVu font directory.
28147 # Check whether --with-dejavu-font-dir was given.
28148 if test "${with_dejavu_font_dir+set}" = set; then :
28149 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28151 with_dejavu_font_dir='default'
28155 if test "$with_dejavu_font_dir" != 'default'; then
28156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28161 # Check for FFTW delegate library.
28164 # Check whether --with-fftw was given.
28165 if test "${with_fftw+set}" = set; then :
28166 withval=$with_fftw; with_fftw=$withval
28172 if test "$with_fftw" != 'yes'; then
28173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28178 if test "$with_fftw" != 'no'; then
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28180 $as_echo "-------------------------------------------------------------" >&6; }
28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28182 $as_echo_n "checking for FFTW... " >&6; }
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28187 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28188 if test "x$ac_cv_header_fftw3_h" = xyes; then :
28189 passed=`expr $passed + 1`
28191 failed=`expr $failed + 1`
28195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28196 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28197 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28198 $as_echo_n "(cached) " >&6
28200 ac_check_lib_save_LIBS=$LIBS
28201 LIBS="-lfftw3 $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 fftw_execute ();
28215 return fftw_execute ();
28220 if ac_fn_c_try_link "$LINENO"; then :
28221 ac_cv_lib_fftw3_fftw_execute=yes
28223 ac_cv_lib_fftw3_fftw_execute=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_fftw3_fftw_execute" >&5
28230 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28231 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28232 passed=`expr $passed + 1`
28234 failed=`expr $failed + 1`
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28238 $as_echo_n "checking if FFTW 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}: result: no -- some components failed test" >&5
28242 $as_echo "no -- some components failed test" >&6; }
28243 have_fftw='no (failed tests)'
28245 FFTW_LIBS='-lfftw3'
28246 LIBS="$FFTW_LIBS $LIBS"
28248 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28251 $as_echo "yes" >&6; }
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28256 $as_echo "no" >&6; }
28259 if test "$have_fftw" = 'yes'; then
28260 FFTW_DELEGATE_TRUE=
28261 FFTW_DELEGATE_FALSE='#'
28263 FFTW_DELEGATE_TRUE='#'
28264 FFTW_DELEGATE_FALSE=
28271 # Check for FlashPIX delegate library.
28274 # Check whether --with-fpx was given.
28275 if test "${with_fpx+set}" = set; then :
28276 withval=$with_fpx; with_fpx=$withval
28282 if test "$with_fpx" != 'yes'; then
28283 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28288 if test "$with_fpx" != 'no'; then
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28290 $as_echo "-------------------------------------------------------------" >&6; }
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28292 $as_echo_n "checking for FlashPIX... " >&6; }
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28298 ac_cpp='$CXXCPP $CPPFLAGS'
28299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28304 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28305 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28306 passed=`expr $passed + 1`
28308 failed=`expr $failed + 1`
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28313 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28314 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28315 $as_echo_n "(cached) " >&6
28317 ac_check_lib_save_LIBS=$LIBS
28319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28320 /* end confdefs.h. */
28322 /* Override any GCC internal prototype to avoid an error.
28323 Use char because int might match the return type of a GCC
28324 builtin and then its argument prototype would still apply. */
28328 char FPX_OpenImageByFilename ();
28332 return FPX_OpenImageByFilename ();
28337 if ac_fn_cxx_try_link "$LINENO"; then :
28338 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28340 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28342 rm -f core conftest.err conftest.$ac_objext \
28343 conftest$ac_exeext conftest.$ac_ext
28344 LIBS=$ac_check_lib_save_LIBS
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28347 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28348 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28349 passed=`expr $passed + 1`
28351 failed=`expr $failed + 1`
28355 ac_cpp='$CPP $CPPFLAGS'
28356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28361 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
28362 if test $passed -gt 0; then
28363 if test $failed -gt 0; then
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28365 $as_echo "no -- some components failed test" >&6; }
28366 have_fpx='no (failed tests)'
28370 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28373 $as_echo "yes" >&6; }
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28379 $as_echo "no" >&6; }
28382 if test "$have_fpx" = 'yes'; then
28384 FPX_DELEGATE_FALSE='#'
28386 FPX_DELEGATE_TRUE='#'
28387 FPX_DELEGATE_FALSE=
28394 # Check for fontconfig delegate library.
28397 # Check whether --with-fontconfig was given.
28398 if test "${with_fontconfig+set}" = set; then :
28399 withval=$with_fontconfig; with_fontconfig=$withval
28401 with_fontconfig=$have_x
28405 if test "$with_fontconfig" != 'yes'; then
28406 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28409 have_fontconfig='no'
28410 FONTCONFIG_CFLAGS=""
28413 if test "x$with_fontconfig" = "xyes"; then
28414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28415 $as_echo "-------------------------------------------------------------" >&6; }
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28419 $as_echo_n "checking for FONTCONFIG... " >&6; }
28421 if test -n "$FONTCONFIG_CFLAGS"; then
28422 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28423 elif test -n "$PKG_CONFIG"; then
28424 if test -n "$PKG_CONFIG" && \
28425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28426 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28429 test $ac_status = 0; }; then
28430 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28437 if test -n "$FONTCONFIG_LIBS"; then
28438 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28439 elif test -n "$PKG_CONFIG"; then
28440 if test -n "$PKG_CONFIG" && \
28441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28442 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28445 test $ac_status = 0; }; then
28446 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28456 if test $pkg_failed = yes; then
28458 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28459 _pkg_short_errors_supported=yes
28461 _pkg_short_errors_supported=no
28463 if test $_pkg_short_errors_supported = yes; then
28464 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28466 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28468 # Put the nasty error message in config.log where it belongs
28469 echo "$FONTCONFIG_PKG_ERRORS" >&5
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28472 $as_echo "no" >&6; }
28474 elif test $pkg_failed = untried; then
28477 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28478 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28480 $as_echo "yes" >&6; }
28481 have_fontconfig=yes
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28487 if test "$have_fontconfig" = 'yes'; then
28489 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
28491 if test "$with_modules" = 'no'; then
28492 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
28496 if test "$have_fontconfig" = 'yes'; then
28497 FONTCONFIG_DELEGATE_TRUE=
28498 FONTCONFIG_DELEGATE_FALSE='#'
28500 FONTCONFIG_DELEGATE_TRUE='#'
28501 FONTCONFIG_DELEGATE_FALSE=
28509 # Check for freetype delegate library.
28512 # Check whether --with-freetype was given.
28513 if test "${with_freetype+set}" = set; then :
28514 withval=$with_freetype; with_freetype=$withval
28516 with_freetype='yes'
28521 if test "$with_freetype" != 'yes'; then
28522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28527 if test "$with_freetype" != 'no'; then
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28529 $as_echo "-------------------------------------------------------------" >&6; }
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
28531 $as_echo_n "checking for FreeType 2.0... " >&6; }
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28536 PERSIST_LIBS="$LIBS"
28537 PERSIST_CPPFLAGS="$CPPFLAGS"
28538 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28542 for ac_prog in freetype-config
28544 # Extract the first word of "$ac_prog", so it can be a program name with args.
28545 set dummy $ac_prog; ac_word=$2
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28547 $as_echo_n "checking for $ac_word... " >&6; }
28548 if ${ac_cv_prog_freetype_config+:} false; then :
28549 $as_echo_n "(cached) " >&6
28551 if test -n "$freetype_config"; then
28552 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28555 for as_dir in $PATH
28558 test -z "$as_dir" && as_dir=.
28559 for ac_exec_ext in '' $ac_executable_extensions; do
28560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28561 ac_cv_prog_freetype_config="$ac_prog"
28562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28571 freetype_config=$ac_cv_prog_freetype_config
28572 if test -n "$freetype_config"; then
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28574 $as_echo "$freetype_config" >&6; }
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28577 $as_echo "no" >&6; }
28581 test -n "$freetype_config" && break
28583 if test -n "$freetype_config"; then
28584 freetype_cflags=`$freetype_config --cflags`
28585 freetype_libs=`$freetype_config --libs`
28586 LIBS="$LIBS $freetype_libs"
28587 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28591 if test "$FREETYPE_LIBS" = ''; then
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
28593 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28594 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28595 $as_echo_n "(cached) " >&6
28597 ac_check_lib_save_LIBS=$LIBS
28598 LIBS="-lfreetype $LIBS"
28599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28600 /* end confdefs.h. */
28602 /* Override any GCC internal prototype to avoid an error.
28603 Use char because int might match the return type of a GCC
28604 builtin and then its argument prototype would still apply. */
28608 char FT_Init_FreeType ();
28612 return FT_Init_FreeType ();
28617 if ac_fn_c_try_link "$LINENO"; then :
28618 ac_cv_lib_freetype_FT_Init_FreeType=yes
28620 ac_cv_lib_freetype_FT_Init_FreeType=no
28622 rm -f core conftest.err conftest.$ac_objext \
28623 conftest$ac_exeext conftest.$ac_ext
28624 LIBS=$ac_check_lib_save_LIBS
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28627 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28628 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28629 FREETYPE_LIBS='-lfreetype'
28632 if test "$FREETYPE_LIBS" != ''; then
28633 passed=`expr $passed + 1`
28635 failed=`expr $failed + 1`
28636 LIBS="$PERSIST_LIBS"
28640 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28641 if test "x$ac_cv_header_ft2build_h" = xyes; then :
28642 FT2BUILD_H='#include <ft2build.h>'
28648 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28650 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28651 have_freetype_h='yes'
28653 have_freetype_h='no'
28657 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28658 passed=`expr $passed + 1`
28660 failed=`expr $failed + 1`
28661 CPPFLAGS="$PERSIST_CPPFLAGS"
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28665 $as_echo_n "checking if FreeType package is complete... " >&6; }
28666 if test $passed -gt 0; then
28667 if test $failed -gt 0; then
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28670 $as_echo "no -- some components failed test" >&6; }
28671 have_freetype='no (failed tests)'
28673 LIBS="$FREETYPE_LIBS $LIBS"
28675 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
28677 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28679 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28683 $as_echo "yes" >&6; }
28684 have_freetype='yes'
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28688 $as_echo "no" >&6; }
28691 if test "$have_freetype" = 'yes'; then
28692 FREETYPE_DELEGATE_TRUE=
28693 FREETYPE_DELEGATE_FALSE='#'
28695 FREETYPE_DELEGATE_TRUE='#'
28696 FREETYPE_DELEGATE_FALSE=
28704 # Check for Ghostscript library or framework.
28706 # Test for iapi.h & test for gsapi_new_instance in -lgs
28707 # or -framework Ghostscript
28710 # Check whether --with-gslib was given.
28711 if test "${with_gslib+set}" = set; then :
28712 withval=$with_gslib; with_gslib=$withval
28718 gslib_framework='no'
28719 if test "$with_gslib" != 'yes'; then
28720 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28725 if test "$with_gslib" != 'no'; then
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28727 $as_echo "-------------------------------------------------------------" >&6; }
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
28729 $as_echo_n "checking for Ghostscript... " >&6; }
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28735 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
28736 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
28737 passed=`expr $passed + 1`
28739 failed=`expr $failed + 1`
28743 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
28744 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
28745 passed=`expr $passed + 1`
28747 failed=`expr $failed + 1`
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28752 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
28753 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28754 $as_echo_n "(cached) " >&6
28756 ac_check_framework_save_LIBS=$LIBS
28757 LIBS="-framework Ghostscript $LIBS"
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h. */
28761 /* Override any GCC internal prototype to avoid an error.
28762 Use char because int might match the return type of a GCC
28763 builtin and then its argument prototype would still apply. */
28767 char gsapi_new_instance ();
28771 return gsapi_new_instance ();
28776 if ac_fn_c_try_link "$LINENO"; then :
28777 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28779 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28781 rm -f core conftest.err conftest.$ac_objext \
28782 conftest$ac_exeext conftest.$ac_ext
28783 LIBS=$ac_check_framework_save_LIBS
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28786 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28787 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28788 framework=`expr $framework + 1`
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
28791 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
28792 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
28793 $as_echo_n "(cached) " >&6
28795 ac_check_lib_save_LIBS=$LIBS
28797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28798 /* end confdefs.h. */
28800 /* Override any GCC internal prototype to avoid an error.
28801 Use char because int might match the return type of a GCC
28802 builtin and then its argument prototype would still apply. */
28806 char gsapi_new_instance ();
28810 return gsapi_new_instance ();
28815 if ac_fn_c_try_link "$LINENO"; then :
28816 ac_cv_lib_gs_gsapi_new_instance=yes
28818 ac_cv_lib_gs_gsapi_new_instance=no
28820 rm -f core conftest.err conftest.$ac_objext \
28821 conftest$ac_exeext conftest.$ac_ext
28822 LIBS=$ac_check_lib_save_LIBS
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
28825 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
28826 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
28827 passed=`expr $passed + 1`
28829 failed=`expr $failed + 1`
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
28834 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
28835 if test $passed -gt 0; then
28836 if test $failed -gt 0; then
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28838 $as_echo "no -- some components failed test" >&6; }
28839 have_gslib='no (failed tests)'
28841 if test $framework -gt 0; then
28842 GS_LIBS='-framework Ghostscript'
28843 gslib_framework='yes'
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28845 $as_echo "yes, using framework." >&6; }
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28848 $as_echo "yes, using library." >&6; }
28851 LIBS="$GS_LIBS $LIBS"
28853 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28859 $as_echo "no" >&6; }
28862 if test "$have_gslib" = 'yes'; then
28864 GS_DELEGATE_FALSE='#'
28866 GS_DELEGATE_TRUE='#'
28872 # Set default font search path
28874 # Check whether --with-fontpath was given.
28875 if test "${with_fontpath+set}" = set; then :
28876 withval=$with_fontpath; with_fontpath=$withval
28882 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28886 cat >>confdefs.h <<_ACEOF
28887 #define MAGICK_FONT_PATH "$with_fontpath"
28891 if test "$with_fontpath=" != ''; then
28892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28895 # Set Ghostscript font directory
28897 # Check whether --with-gs-font-dir was given.
28898 if test "${with_gs_font_dir+set}" = set; then :
28899 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28901 with_gs_font_dir='default'
28905 if test "$with_gs_font_dir" != 'default'; then
28906 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28911 # Check for GVC delegate library.
28914 # Check whether --with-gvc was given.
28915 if test "${with_gvc+set}" = set; then :
28916 withval=$with_gvc; with_gvc=$withval
28922 if test "$with_gvc" != 'yes'; then
28923 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28927 if test "x$with_gvc" = "xyes"; then
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28929 $as_echo "-------------------------------------------------------------" >&6; }
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28933 $as_echo_n "checking for GVC... " >&6; }
28935 if test -n "$GVC_CFLAGS"; then
28936 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28937 elif test -n "$PKG_CONFIG"; then
28938 if test -n "$PKG_CONFIG" && \
28939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28940 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28943 test $ac_status = 0; }; then
28944 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28951 if test -n "$GVC_LIBS"; then
28952 pkg_cv_GVC_LIBS="$GVC_LIBS"
28953 elif test -n "$PKG_CONFIG"; then
28954 if test -n "$PKG_CONFIG" && \
28955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28956 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28959 test $ac_status = 0; }; then
28960 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28970 if test $pkg_failed = yes; then
28972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28973 _pkg_short_errors_supported=yes
28975 _pkg_short_errors_supported=no
28977 if test $_pkg_short_errors_supported = yes; then
28978 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28980 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28982 # Put the nasty error message in config.log where it belongs
28983 echo "$GVC_PKG_ERRORS" >&5
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28986 $as_echo "no" >&6; }
28988 elif test $pkg_failed = untried; then
28991 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28992 GVC_LIBS=$pkg_cv_GVC_LIBS
28993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28994 $as_echo "yes" >&6; }
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29001 if test "$have_gvc" = 'yes'; then
29003 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29005 if test "$with_modules" = 'no'; then
29006 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29010 if test "$have_gvc" = 'yes'; then
29012 GVC_DELEGATE_FALSE='#'
29014 GVC_DELEGATE_TRUE='#'
29015 GVC_DELEGATE_FALSE=
29023 # Check for JBIG delegate library.
29027 # Check whether --with-jbig was given.
29028 if test "${with_jbig+set}" = set; then :
29029 withval=$with_jbig; with_jbig=$withval
29037 if test "$with_jbig" != 'no'; then
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29039 $as_echo "-------------------------------------------------------------" >&6; }
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29041 $as_echo_n "checking for JBIG... " >&6; }
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29046 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29047 if test "x$ac_cv_header_jbig_h" = xyes; then :
29048 passed=`expr $passed + 1`
29050 failed=`expr $failed + 1`
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29055 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29056 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29057 $as_echo_n "(cached) " >&6
29059 ac_check_lib_save_LIBS=$LIBS
29060 LIBS="-ljbig $LIBS"
29061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062 /* end confdefs.h. */
29064 /* Override any GCC internal prototype to avoid an error.
29065 Use char because int might match the return type of a GCC
29066 builtin and then its argument prototype would still apply. */
29070 char jbg_dec_init ();
29074 return jbg_dec_init ();
29079 if ac_fn_c_try_link "$LINENO"; then :
29080 ac_cv_lib_jbig_jbg_dec_init=yes
29082 ac_cv_lib_jbig_jbg_dec_init=no
29084 rm -f core conftest.err conftest.$ac_objext \
29085 conftest$ac_exeext conftest.$ac_ext
29086 LIBS=$ac_check_lib_save_LIBS
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29089 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29090 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29091 passed=`expr $passed + 1`
29093 failed=`expr $failed + 1`
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29097 $as_echo_n "checking if JBIG package is complete... " >&6; }
29098 if test $passed -gt 0; then
29099 if test $failed -gt 0; then
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29101 $as_echo "no -- some components failed test" >&6; }
29102 have_jbig='no (failed tests)'
29105 LIBS="$JBIG_LIBS $LIBS"
29107 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29110 $as_echo "yes" >&6; }
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29115 $as_echo "no" >&6; }
29118 if test "$have_jbig" = 'yes'; then
29119 JBIG_DELEGATE_TRUE=
29120 JBIG_DELEGATE_FALSE='#'
29122 JBIG_DELEGATE_TRUE='#'
29123 JBIG_DELEGATE_FALSE=
29130 # Check for JPEG delegate library.
29133 # Check whether --with-jpeg was given.
29134 if test "${with_jpeg+set}" = set; then :
29135 withval=$with_jpeg; with_jpeg=$withval
29141 if test "$with_jpeg" != 'yes'; then
29142 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29147 if test "$with_jpeg" != 'no'; then
29148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29149 $as_echo "-------------------------------------------------------------" >&6; }
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29151 $as_echo_n "checking for JPEG... " >&6; }
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29156 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29157 if test "x$ac_cv_header_jconfig_h" = xyes; then :
29158 passed=`expr $passed + 1`
29160 failed=`expr $failed + 1`
29164 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29165 if test "x$ac_cv_header_jerror_h" = xyes; then :
29166 passed=`expr $passed + 1`
29168 failed=`expr $failed + 1`
29172 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29173 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29174 passed=`expr $passed + 1`
29176 failed=`expr $failed + 1`
29180 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29181 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29182 passed=`expr $passed + 1`
29184 failed=`expr $failed + 1`
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29189 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29190 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29191 $as_echo_n "(cached) " >&6
29193 ac_check_lib_save_LIBS=$LIBS
29194 LIBS="-ljpeg $LIBS"
29195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29196 /* end confdefs.h. */
29198 /* Override any GCC internal prototype to avoid an error.
29199 Use char because int might match the return type of a GCC
29200 builtin and then its argument prototype would still apply. */
29204 char jpeg_read_header ();
29208 return jpeg_read_header ();
29213 if ac_fn_c_try_link "$LINENO"; then :
29214 ac_cv_lib_jpeg_jpeg_read_header=yes
29216 ac_cv_lib_jpeg_jpeg_read_header=no
29218 rm -f core conftest.err conftest.$ac_objext \
29219 conftest$ac_exeext conftest.$ac_ext
29220 LIBS=$ac_check_lib_save_LIBS
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29223 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29224 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29225 passed=`expr $passed + 1`
29227 failed=`expr $failed + 1`
29231 # Test for compatible JPEG library
29232 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29234 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29235 if ${ac_cv_jpeg_version_ok+:} false; then :
29236 $as_echo_n "(cached) " >&6
29238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29239 /* end confdefs.h. */
29241 #include <stdlib.h>
29242 #include <jpeglib.h>
29248 #if JPEG_LIB_VERSION < 62
29249 #error IJG JPEG library must be version 6b or newer!
29257 if ac_fn_c_try_compile "$LINENO"; then :
29258 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29260 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29265 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29268 $as_echo_n "checking if JPEG package is complete... " >&6; }
29269 if test $passed -gt 0; then
29270 if test $failed -gt 0; then
29271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29272 $as_echo "no -- some components failed test" >&6; }
29273 have_jpeg='no (failed tests)'
29276 LIBS="$JPEG_LIBS $LIBS"
29278 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281 $as_echo "yes" >&6; }
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29286 $as_echo "no" >&6; }
29289 if test "$have_jpeg" = 'yes'; then
29290 JPEG_DELEGATE_TRUE=
29291 JPEG_DELEGATE_FALSE='#'
29293 JPEG_DELEGATE_TRUE='#'
29294 JPEG_DELEGATE_FALSE=
29301 # Check for JPEG Version 2 delegate library.
29304 # Check whether --with-jp2 was given.
29305 if test "${with_jp2+set}" = set; then :
29306 withval=$with_jp2; with_jp2=$withval
29312 if test "$with_jp2" != 'yes'; then
29313 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29318 if test "$with_jp2" != 'no'; then
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29320 $as_echo "-------------------------------------------------------------" >&6; }
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29322 $as_echo_n "checking for JPEG Version 2... " >&6; }
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29327 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29328 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29329 passed=`expr $passed + 1`
29331 failed=`expr $failed + 1`
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29336 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29337 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29338 $as_echo_n "(cached) " >&6
29340 ac_check_lib_save_LIBS=$LIBS
29341 LIBS="-ljasper $LIBS"
29342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29343 /* end confdefs.h. */
29345 /* Override any GCC internal prototype to avoid an error.
29346 Use char because int might match the return type of a GCC
29347 builtin and then its argument prototype would still apply. */
29351 char jas_stream_fopen ();
29355 return jas_stream_fopen ();
29360 if ac_fn_c_try_link "$LINENO"; then :
29361 ac_cv_lib_jasper_jas_stream_fopen=yes
29363 ac_cv_lib_jasper_jas_stream_fopen=no
29365 rm -f core conftest.err conftest.$ac_objext \
29366 conftest$ac_exeext conftest.$ac_ext
29367 LIBS=$ac_check_lib_save_LIBS
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29370 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29371 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29372 passed=`expr $passed + 1`
29374 failed=`expr $failed + 1`
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29378 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29379 if test $passed -gt 0; then
29380 if test $failed -gt 0; then
29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29382 $as_echo "no -- some components failed test" >&6; }
29383 have_jp2='no (failed tests)'
29385 JP2_LIBS='-ljasper'
29386 LIBS="$JP2_LIBS $LIBS"
29388 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29391 $as_echo "yes" >&6; }
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29396 $as_echo "no" >&6; }
29399 if test "$have_jp2" = 'yes'; then
29401 JP2_DELEGATE_FALSE='#'
29403 JP2_DELEGATE_TRUE='#'
29404 JP2_DELEGATE_FALSE=
29411 # Check for LCMS delegate library.
29415 # Check whether --with-lcms was given.
29416 if test "${with_lcms+set}" = set; then :
29417 withval=$with_lcms; with_lcms=$withval
29422 if test "$with_lcms" != 'yes' ; then
29423 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29428 # Check whether --with-lcms2 was given.
29429 if test "${with_lcms2+set}" = set; then :
29430 withval=$with_lcms2; with_lcms2=$withval
29435 if test "$with_lcms2" != 'yes' ; then
29436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29441 if test "$with_lcms2" != 'no'; then
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29443 $as_echo "-------------------------------------------------------------" >&6; }
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29445 $as_echo_n "checking for LCMS v2... " >&6; }
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29450 have_lcms_header='no'
29452 # Check for <lcms2.h>
29453 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29454 if test "x$ac_cv_header_lcms2_h" = xyes; then :
29455 have_lcms_header='yes'
29459 if test "$have_lcms_header" = 'yes'; then
29461 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29463 passed=`expr $passed + 1`
29466 # Check for <lcms2/lcms2.h)
29467 if test "$have_lcms_header" != 'yes'; then
29468 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29469 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29470 have_lcms_header='yes'
29474 if test "$have_lcms_header" = 'yes'; then
29475 passed=`expr $passed + 1`
29477 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29482 # Failed to find lcms header?
29483 if test "$have_lcms_header" != 'yes'; then
29484 failed=`expr $failed + 1`
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29488 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29489 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29490 $as_echo_n "(cached) " >&6
29492 ac_check_lib_save_LIBS=$LIBS
29493 LIBS="-llcms2 $LIBS"
29494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29495 /* end confdefs.h. */
29497 /* Override any GCC internal prototype to avoid an error.
29498 Use char because int might match the return type of a GCC
29499 builtin and then its argument prototype would still apply. */
29503 char cmsSetLogErrorHandler ();
29507 return cmsSetLogErrorHandler ();
29512 if ac_fn_c_try_link "$LINENO"; then :
29513 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29515 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29517 rm -f core conftest.err conftest.$ac_objext \
29518 conftest$ac_exeext conftest.$ac_ext
29519 LIBS=$ac_check_lib_save_LIBS
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29522 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29523 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29524 passed=`expr $passed + 1`
29526 failed=`expr $failed + 1`
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29530 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29531 if test $passed -gt 0; then
29532 if test $failed -gt 0; then
29533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29534 $as_echo "no -- some components failed test" >&6; }
29535 have_lcms2='no (failed tests)'
29537 LCMS_LIBS='-llcms2'
29538 LIBS="$LCMS_LIBS $LIBS"
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29540 $as_echo "yes" >&6; }
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29545 $as_echo "no" >&6; }
29550 # Check for LCMS v1 (1.11 or later)
29552 if test $have_lcms2 = 'yes'; then
29557 if test "$with_lcms" != 'no'; then
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29559 $as_echo "-------------------------------------------------------------" >&6; }
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29561 $as_echo_n "checking for LCMS v1.1X... " >&6; }
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29566 have_lcms_header='no'
29568 # Check for <lcms.h>
29569 if test "$have_lcms_header" != 'yes'; then
29570 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29571 if test "x$ac_cv_header_lcms_h" = xyes; then :
29572 have_lcms_header='yes'
29576 if test "$have_lcms_header" = 'yes'; then
29577 passed=`expr $passed + 1`
29579 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29584 # Check for <lcms/lcms.h>
29585 if test "$have_lcms_header" != 'yes'; then
29586 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
29587 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
29588 have_lcms_header='yes'
29592 if test "$have_lcms_header" = 'yes'; then
29593 passed=`expr $passed + 1`
29595 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
29600 # Failed to find lcms header?
29601 if test "$have_lcms_header" != 'yes'; then
29602 failed=`expr $failed + 1`
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29606 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
29607 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
29608 $as_echo_n "(cached) " >&6
29610 ac_check_lib_save_LIBS=$LIBS
29611 LIBS="-llcms $LIBS"
29612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29613 /* end confdefs.h. */
29615 /* Override any GCC internal prototype to avoid an error.
29616 Use char because int might match the return type of a GCC
29617 builtin and then its argument prototype would still apply. */
29621 char cmsSetErrorHandler ();
29625 return cmsSetErrorHandler ();
29630 if ac_fn_c_try_link "$LINENO"; then :
29631 ac_cv_lib_lcms_cmsSetErrorHandler=yes
29633 ac_cv_lib_lcms_cmsSetErrorHandler=no
29635 rm -f core conftest.err conftest.$ac_objext \
29636 conftest$ac_exeext conftest.$ac_ext
29637 LIBS=$ac_check_lib_save_LIBS
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29640 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
29641 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
29642 passed=`expr $passed + 1`
29644 failed=`expr $failed + 1`
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
29648 $as_echo_n "checking if LCMS package is complete... " >&6; }
29649 if test $passed -gt 0; then
29650 if test $failed -gt 0; then
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29652 $as_echo "no -- some components failed test" >&6; }
29653 have_lcms='no (failed tests)'
29656 LIBS="$LCMS_LIBS $LIBS"
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29658 $as_echo "yes" >&6; }
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29663 $as_echo "no" >&6; }
29667 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29668 LCMS_DELEGATE_TRUE=
29669 LCMS_DELEGATE_FALSE='#'
29671 LCMS_DELEGATE_TRUE='#'
29672 LCMS_DELEGATE_FALSE=
29675 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29677 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29685 # Check for the LQR (Liquid Rescale) delegate library.
29688 # Check whether --with-lqr was given.
29689 if test "${with_lqr+set}" = set; then :
29690 withval=$with_lqr; with_lqr=$withval
29696 if test "$with_lqr" != 'yes'; then
29697 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29704 if test "x$with_lqr" = "xyes"; then
29705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29706 $as_echo "-------------------------------------------------------------" >&6; }
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29710 $as_echo_n "checking for LQR... " >&6; }
29712 if test -n "$LQR_CFLAGS"; then
29713 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29714 elif test -n "$PKG_CONFIG"; then
29715 if test -n "$PKG_CONFIG" && \
29716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29717 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; then
29721 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29728 if test -n "$LQR_LIBS"; then
29729 pkg_cv_LQR_LIBS="$LQR_LIBS"
29730 elif test -n "$PKG_CONFIG"; then
29731 if test -n "$PKG_CONFIG" && \
29732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29733 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29736 test $ac_status = 0; }; then
29737 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29747 if test $pkg_failed = yes; then
29749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29750 _pkg_short_errors_supported=yes
29752 _pkg_short_errors_supported=no
29754 if test $_pkg_short_errors_supported = yes; then
29755 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29757 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29759 # Put the nasty error message in config.log where it belongs
29760 echo "$LQR_PKG_ERRORS" >&5
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29763 $as_echo "no" >&6; }
29765 elif test $pkg_failed = untried; then
29768 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29769 LQR_LIBS=$pkg_cv_LQR_LIBS
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29771 $as_echo "yes" >&6; }
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29778 if test "$have_lqr" = 'yes'; then
29780 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
29782 CFLAGS="$LQR_CFLAGS $CFLAGS"
29785 if test "$have_lqr" = 'yes'; then
29787 LQR_DELEGATE_FALSE='#'
29789 LQR_DELEGATE_TRUE='#'
29790 LQR_DELEGATE_FALSE=
29797 # Disable LZMA (lzma library)
29799 # Check whether --with-lzma was given.
29800 if test "${with_lzma+set}" = set; then :
29801 withval=$with_lzma; with_lzma=$withval
29806 if test "$with_lzma" != 'yes' ; then
29807 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29815 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29817 $as_echo "-------------------------------------------------------------" >&6; }
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29819 $as_echo_n "checking for LZMA... " >&6; }
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29824 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29825 if test "x$ac_cv_header_lzma_h" = xyes; then :
29826 passed=`expr $passed + 1`
29828 failed=`expr $failed + 1`
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29833 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
29834 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29835 $as_echo_n "(cached) " >&6
29837 ac_check_lib_save_LIBS=$LIBS
29838 LIBS="-llzma $LIBS"
29839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29840 /* end confdefs.h. */
29842 /* Override any GCC internal prototype to avoid an error.
29843 Use char because int might match the return type of a GCC
29844 builtin and then its argument prototype would still apply. */
29852 return lzma_code ();
29857 if ac_fn_c_try_link "$LINENO"; then :
29858 ac_cv_lib_lzma_lzma_code=yes
29860 ac_cv_lib_lzma_lzma_code=no
29862 rm -f core conftest.err conftest.$ac_objext \
29863 conftest$ac_exeext conftest.$ac_ext
29864 LIBS=$ac_check_lib_save_LIBS
29866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29867 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29868 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29869 passed=`expr $passed + 1`
29871 failed=`expr $failed + 1`
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29875 $as_echo_n "checking if LZMA package is complete... " >&6; }
29876 if test $passed -gt 0; then
29877 if test $failed -gt 0; then
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29879 $as_echo "no -- some components failed test" >&6; }
29880 have_lzma='no (failed tests)'
29883 LIBS="$LZMA_LIBS $LIBS"
29885 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29888 $as_echo "yes" >&6; }
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29893 $as_echo "no" >&6; }
29896 if test "$have_lzma" = 'yes'; then
29897 LZMA_DELEGATE_TRUE=
29898 LZMA_DELEGATE_FALSE='#'
29900 LZMA_DELEGATE_TRUE='#'
29901 LZMA_DELEGATE_FALSE=
29908 # Check for the OpenEXR delegate library.
29911 # Check whether --with-openexr was given.
29912 if test "${with_openexr+set}" = set; then :
29913 withval=$with_openexr; with_openexr=$withval
29919 if test "$with_openexr" != 'yes'; then
29920 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29927 if test "x$with_openexr" = "xyes"; then
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29929 $as_echo "-------------------------------------------------------------" >&6; }
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29933 $as_echo_n "checking for OPENEXR... " >&6; }
29935 if test -n "$OPENEXR_CFLAGS"; then
29936 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29937 elif test -n "$PKG_CONFIG"; then
29938 if test -n "$PKG_CONFIG" && \
29939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29940 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29943 test $ac_status = 0; }; then
29944 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29951 if test -n "$OPENEXR_LIBS"; then
29952 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29953 elif test -n "$PKG_CONFIG"; then
29954 if test -n "$PKG_CONFIG" && \
29955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29956 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29959 test $ac_status = 0; }; then
29960 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29970 if test $pkg_failed = yes; then
29972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29973 _pkg_short_errors_supported=yes
29975 _pkg_short_errors_supported=no
29977 if test $_pkg_short_errors_supported = yes; then
29978 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29980 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29982 # Put the nasty error message in config.log where it belongs
29983 echo "$OPENEXR_PKG_ERRORS" >&5
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29986 $as_echo "no" >&6; }
29988 elif test $pkg_failed = untried; then
29991 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29992 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29994 $as_echo "yes" >&6; }
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30001 if test "$have_openexr" = 'yes'; then
30003 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30005 if test "$with_modules" = 'no'; then
30006 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30010 if test "$have_openexr" = 'yes'; then
30011 OPENEXR_DELEGATE_TRUE=
30012 OPENEXR_DELEGATE_FALSE='#'
30014 OPENEXR_DELEGATE_TRUE='#'
30015 OPENEXR_DELEGATE_FALSE=
30023 # Check for PNG delegate library.
30026 # Check whether --with-png was given.
30027 if test "${with_png+set}" = set; then :
30028 withval=$with_png; with_png=$withval
30034 if test "$with_png" != 'yes'; then
30035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30040 if test "$with_png" != 'no'; then
30041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30042 $as_echo "-------------------------------------------------------------" >&6; }
30043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
30044 $as_echo_n "checking for PNG... " >&6; }
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30049 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30050 if test "x$ac_cv_header_png_h" = xyes; then :
30051 passed=`expr $passed + 1`
30053 failed=`expr $failed + 1`
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30058 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30059 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30060 $as_echo_n "(cached) " >&6
30062 ac_check_lib_save_LIBS=$LIBS
30064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30065 /* end confdefs.h. */
30067 /* Override any GCC internal prototype to avoid an error.
30068 Use char because int might match the return type of a GCC
30069 builtin and then its argument prototype would still apply. */
30073 char png_get_io_ptr ();
30077 return png_get_io_ptr ();
30082 if ac_fn_c_try_link "$LINENO"; then :
30083 ac_cv_lib_png_png_get_io_ptr=yes
30085 ac_cv_lib_png_png_get_io_ptr=no
30087 rm -f core conftest.err conftest.$ac_objext \
30088 conftest$ac_exeext conftest.$ac_ext
30089 LIBS=$ac_check_lib_save_LIBS
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30092 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30093 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30094 passed=`expr $passed + 1`
30096 failed=`expr $failed + 1`
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
30100 $as_echo_n "checking if PNG package is complete... " >&6; }
30101 if test $passed -gt 0; then
30102 if test $failed -gt 0; then
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30104 $as_echo "no -- some components failed test" >&6; }
30105 have_png='no (failed tests)'
30108 LIBS="$PNG_LIBS $LIBS"
30110 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30113 $as_echo "yes" >&6; }
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30118 $as_echo "no" >&6; }
30121 if test "$have_png" = 'yes'; then
30123 PNG_DELEGATE_FALSE='#'
30125 PNG_DELEGATE_TRUE='#'
30126 PNG_DELEGATE_FALSE=
30133 # Check for RSVG delegate library.
30136 # Check whether --with-rsvg was given.
30137 if test "${with_rsvg+set}" = set; then :
30138 withval=$with_rsvg; with_rsvg=$withval
30144 if test "$with_rsvg" != 'yes'; then
30145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30153 if test "x$with_rsvg" = "xyes"; then
30154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30155 $as_echo "-------------------------------------------------------------" >&6; }
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30159 $as_echo_n "checking for RSVG... " >&6; }
30161 if test -n "$RSVG_CFLAGS"; then
30162 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30163 elif test -n "$PKG_CONFIG"; then
30164 if test -n "$PKG_CONFIG" && \
30165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30166 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30169 test $ac_status = 0; }; then
30170 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30177 if test -n "$RSVG_LIBS"; then
30178 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
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 \"librsvg-2.0 >= 2.9.0\""; } >&5
30182 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185 test $ac_status = 0; }; then
30186 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30196 if test $pkg_failed = yes; then
30198 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30199 _pkg_short_errors_supported=yes
30201 _pkg_short_errors_supported=no
30203 if test $_pkg_short_errors_supported = yes; then
30204 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30206 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30208 # Put the nasty error message in config.log where it belongs
30209 echo "$RSVG_PKG_ERRORS" >&5
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30212 $as_echo "no" >&6; }
30214 elif test $pkg_failed = untried; then
30217 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30218 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30220 $as_echo "yes" >&6; }
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30228 $as_echo_n "checking for CAIRO_SVG... " >&6; }
30230 if test -n "$CAIRO_SVG_CFLAGS"; then
30231 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30232 elif test -n "$PKG_CONFIG"; then
30233 if test -n "$PKG_CONFIG" && \
30234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30235 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30238 test $ac_status = 0; }; then
30239 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30246 if test -n "$CAIRO_SVG_LIBS"; then
30247 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30248 elif test -n "$PKG_CONFIG"; then
30249 if test -n "$PKG_CONFIG" && \
30250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30251 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30254 test $ac_status = 0; }; then
30255 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30265 if test $pkg_failed = yes; then
30267 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30268 _pkg_short_errors_supported=yes
30270 _pkg_short_errors_supported=no
30272 if test $_pkg_short_errors_supported = yes; then
30273 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30275 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30277 # Put the nasty error message in config.log where it belongs
30278 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30281 $as_echo "no" >&6; }
30283 elif test $pkg_failed = untried; then
30286 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30287 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30289 $as_echo "yes" >&6; }
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30296 if test "$have_rsvg" = 'yes'; then
30298 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
30300 if test "$with_modules" = 'no'; then
30301 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30305 if test "$have_cairo" = 'yes'; then
30307 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
30309 if test "$with_modules" = 'no'; then
30310 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30314 if test "$have_rsvg" = 'yes'; then
30315 RSVG_DELEGATE_TRUE=
30316 RSVG_DELEGATE_FALSE='#'
30318 RSVG_DELEGATE_TRUE='#'
30319 RSVG_DELEGATE_FALSE=
30322 if test "$have_cairo" = 'yes'; then
30323 CAIRO_DELEGATE_TRUE=
30324 CAIRO_DELEGATE_FALSE='#'
30326 CAIRO_DELEGATE_TRUE='#'
30327 CAIRO_DELEGATE_FALSE=
30335 # Check for TIFF delegate library.
30338 # Check whether --with-tiff was given.
30339 if test "${with_tiff+set}" = set; then :
30340 withval=$with_tiff; with_tiff=$withval
30346 if test "$with_tiff" != 'yes'; then
30347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30352 if test "$with_tiff" != 'no'; then
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30354 $as_echo "-------------------------------------------------------------" >&6; }
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
30356 $as_echo_n "checking for TIFF... " >&6; }
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30361 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
30362 if test "x$ac_cv_header_tiff_h" = xyes; then :
30363 passed=`expr $passed + 1`
30365 failed=`expr $failed + 1`
30369 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
30370 if test "x$ac_cv_header_tiffio_h" = xyes; then :
30371 passed=`expr $passed + 1`
30373 failed=`expr $failed + 1`
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
30378 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
30379 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
30380 $as_echo_n "(cached) " >&6
30382 ac_check_lib_save_LIBS=$LIBS
30383 LIBS="-ltiff $LIBS"
30384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30385 /* end confdefs.h. */
30387 /* Override any GCC internal prototype to avoid an error.
30388 Use char because int might match the return type of a GCC
30389 builtin and then its argument prototype would still apply. */
30397 return TIFFOpen ();
30402 if ac_fn_c_try_link "$LINENO"; then :
30403 ac_cv_lib_tiff_TIFFOpen=yes
30405 ac_cv_lib_tiff_TIFFOpen=no
30407 rm -f core conftest.err conftest.$ac_objext \
30408 conftest$ac_exeext conftest.$ac_ext
30409 LIBS=$ac_check_lib_save_LIBS
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
30412 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
30413 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
30414 passed=`expr $passed + 1`
30416 failed=`expr $failed + 1`
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
30420 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
30421 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
30422 $as_echo_n "(cached) " >&6
30424 ac_check_lib_save_LIBS=$LIBS
30425 LIBS="-ltiff $LIBS"
30426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30427 /* end confdefs.h. */
30429 /* Override any GCC internal prototype to avoid an error.
30430 Use char because int might match the return type of a GCC
30431 builtin and then its argument prototype would still apply. */
30435 char TIFFClientOpen ();
30439 return TIFFClientOpen ();
30444 if ac_fn_c_try_link "$LINENO"; then :
30445 ac_cv_lib_tiff_TIFFClientOpen=yes
30447 ac_cv_lib_tiff_TIFFClientOpen=no
30449 rm -f core conftest.err conftest.$ac_objext \
30450 conftest$ac_exeext conftest.$ac_ext
30451 LIBS=$ac_check_lib_save_LIBS
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
30454 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
30455 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
30456 passed=`expr $passed + 1`
30458 failed=`expr $failed + 1`
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30462 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
30463 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
30464 $as_echo_n "(cached) " >&6
30466 ac_check_lib_save_LIBS=$LIBS
30467 LIBS="-ltiff $LIBS"
30468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h. */
30471 /* Override any GCC internal prototype to avoid an error.
30472 Use char because int might match the return type of a GCC
30473 builtin and then its argument prototype would still apply. */
30477 char TIFFIsBigEndian ();
30481 return TIFFIsBigEndian ();
30486 if ac_fn_c_try_link "$LINENO"; then :
30487 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30489 ac_cv_lib_tiff_TIFFIsBigEndian=no
30491 rm -f core conftest.err conftest.$ac_objext \
30492 conftest$ac_exeext conftest.$ac_ext
30493 LIBS=$ac_check_lib_save_LIBS
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30496 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
30497 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
30498 passed=`expr $passed + 1`
30500 failed=`expr $failed + 1`
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
30504 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
30505 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
30506 $as_echo_n "(cached) " >&6
30508 ac_check_lib_save_LIBS=$LIBS
30509 LIBS="-ltiff $LIBS"
30510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30511 /* end confdefs.h. */
30513 /* Override any GCC internal prototype to avoid an error.
30514 Use char because int might match the return type of a GCC
30515 builtin and then its argument prototype would still apply. */
30519 char TIFFIsByteSwapped ();
30523 return TIFFIsByteSwapped ();
30528 if ac_fn_c_try_link "$LINENO"; then :
30529 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30531 ac_cv_lib_tiff_TIFFIsByteSwapped=no
30533 rm -f core conftest.err conftest.$ac_objext \
30534 conftest$ac_exeext conftest.$ac_ext
30535 LIBS=$ac_check_lib_save_LIBS
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
30538 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
30539 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
30540 passed=`expr $passed + 1`
30542 failed=`expr $failed + 1`
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
30546 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
30547 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
30548 $as_echo_n "(cached) " >&6
30550 ac_check_lib_save_LIBS=$LIBS
30551 LIBS="-ltiff $LIBS"
30552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30553 /* end confdefs.h. */
30555 /* Override any GCC internal prototype to avoid an error.
30556 Use char because int might match the return type of a GCC
30557 builtin and then its argument prototype would still apply. */
30561 char TIFFReadRGBATile ();
30565 return TIFFReadRGBATile ();
30570 if ac_fn_c_try_link "$LINENO"; then :
30571 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30573 ac_cv_lib_tiff_TIFFReadRGBATile=no
30575 rm -f core conftest.err conftest.$ac_objext \
30576 conftest$ac_exeext conftest.$ac_ext
30577 LIBS=$ac_check_lib_save_LIBS
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
30580 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
30581 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
30582 passed=`expr $passed + 1`
30584 failed=`expr $failed + 1`
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
30588 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
30589 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
30590 $as_echo_n "(cached) " >&6
30592 ac_check_lib_save_LIBS=$LIBS
30593 LIBS="-ltiff $LIBS"
30594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30595 /* end confdefs.h. */
30597 /* Override any GCC internal prototype to avoid an error.
30598 Use char because int might match the return type of a GCC
30599 builtin and then its argument prototype would still apply. */
30603 char TIFFReadRGBAStrip ();
30607 return TIFFReadRGBAStrip ();
30612 if ac_fn_c_try_link "$LINENO"; then :
30613 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30615 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
30617 rm -f core conftest.err conftest.$ac_objext \
30618 conftest$ac_exeext conftest.$ac_ext
30619 LIBS=$ac_check_lib_save_LIBS
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
30622 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
30623 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
30624 passed=`expr $passed + 1`
30626 failed=`expr $failed + 1`
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
30630 $as_echo_n "checking if TIFF package is complete... " >&6; }
30631 if test $passed -gt 0; then
30632 if test $failed -gt 0; then
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30634 $as_echo "no -- some components failed test" >&6; }
30635 have_tiff='no (failed tests)'
30638 LIBS="$TIFF_LIBS $LIBS"
30640 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30643 $as_echo "yes" >&6; }
30645 for ac_header in tiffconf.h
30647 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
30648 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
30649 cat >>confdefs.h <<_ACEOF
30650 #define HAVE_TIFFCONF_H 1
30657 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
30658 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30659 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
30661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30664 cat >>confdefs.h <<_ACEOF
30665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30674 $as_echo "no" >&6; }
30677 if test "$have_tiff" = 'yes'; then
30678 TIFF_DELEGATE_TRUE=
30679 TIFF_DELEGATE_FALSE='#'
30681 TIFF_DELEGATE_TRUE='#'
30682 TIFF_DELEGATE_FALSE=
30689 # Check for WEBP delegate library.
30692 # Check whether --with-webp was given.
30693 if test "${with_webp+set}" = set; then :
30694 withval=$with_webp; with_webp=$withval
30700 if test "$with_webp" != 'yes'; then
30701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30706 if test "$with_webp" != 'no'; then
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30708 $as_echo "-------------------------------------------------------------" >&6; }
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
30710 $as_echo_n "checking for WEBP... " >&6; }
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30715 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
30716 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
30717 passed=`expr $passed + 1`
30719 failed=`expr $failed + 1`
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
30724 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
30725 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
30726 $as_echo_n "(cached) " >&6
30728 ac_check_lib_save_LIBS=$LIBS
30729 LIBS="-lwebp $LIBS"
30730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30731 /* end confdefs.h. */
30733 /* Override any GCC internal prototype to avoid an error.
30734 Use char because int might match the return type of a GCC
30735 builtin and then its argument prototype would still apply. */
30739 char WebPDecodeRGB ();
30743 return WebPDecodeRGB ();
30748 if ac_fn_c_try_link "$LINENO"; then :
30749 ac_cv_lib_webp_WebPDecodeRGB=yes
30751 ac_cv_lib_webp_WebPDecodeRGB=no
30753 rm -f core conftest.err conftest.$ac_objext \
30754 conftest$ac_exeext conftest.$ac_ext
30755 LIBS=$ac_check_lib_save_LIBS
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30758 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30759 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30760 passed=`expr $passed + 1`
30762 failed=`expr $failed + 1`
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30766 $as_echo_n "checking if WEBP package is complete... " >&6; }
30767 if test $passed -gt 0; then
30768 if test $failed -gt 0; then
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30770 $as_echo "no -- some components failed test" >&6; }
30771 have_webp='no (failed tests)'
30774 LIBS="$WEBP_LIBS $LIBS"
30776 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30779 $as_echo "yes" >&6; }
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30784 $as_echo "no" >&6; }
30787 if test "$have_webp" = 'yes'; then
30788 WEBP_DELEGATE_TRUE=
30789 WEBP_DELEGATE_FALSE='#'
30791 WEBP_DELEGATE_TRUE='#'
30792 WEBP_DELEGATE_FALSE=
30799 # Set Windows font directory.
30802 # Check whether --with-windows-font-dir was given.
30803 if test "${with_windows_font_dir+set}" = set; then :
30804 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30806 with_windows_font_dir=''
30809 if test "$with_windows_font_dir" != '' ; then
30810 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30815 # Check for WMF delegate library.
30818 # Check whether --with-wmf was given.
30819 if test "${with_wmf+set}" = set; then :
30820 withval=$with_wmf; with_wmf=$withval
30826 if test "$with_wmf" != 'yes'; then
30827 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30832 if test "$with_wmf" != 'no'; then
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30834 $as_echo "-------------------------------------------------------------" >&6; }
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
30836 $as_echo_n "checking for WMF... " >&6; }
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30841 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
30842 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
30843 passed=`expr $passed + 1`
30845 failed=`expr $failed + 1`
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30850 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
30851 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
30852 $as_echo_n "(cached) " >&6
30854 ac_check_lib_save_LIBS=$LIBS
30855 LIBS="-lwmf "-lwmflite" $LIBS"
30856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30857 /* end confdefs.h. */
30859 /* Override any GCC internal prototype to avoid an error.
30860 Use char because int might match the return type of a GCC
30861 builtin and then its argument prototype would still apply. */
30865 char wmf_eps_function ();
30869 return wmf_eps_function ();
30874 if ac_fn_c_try_link "$LINENO"; then :
30875 ac_cv_lib_wmf_wmf_eps_function=yes
30877 ac_cv_lib_wmf_wmf_eps_function=no
30879 rm -f core conftest.err conftest.$ac_objext \
30880 conftest$ac_exeext conftest.$ac_ext
30881 LIBS=$ac_check_lib_save_LIBS
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30884 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
30885 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
30886 passed=`expr $passed + 1`
30888 failed=`expr $failed + 1`
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30892 $as_echo_n "checking if WMF package is complete... " >&6; }
30893 if test $passed -gt 0; then
30894 if test $failed -gt 0; then
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30896 $as_echo "no -- some components failed test" >&6; }
30897 have_wmf='no (failed tests)'
30899 WMF_LIBS='-lwmf -lwmflite'
30900 LIBS="$WMF_LIBS $LIBS"
30902 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905 $as_echo "yes" >&6; }
30909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30910 $as_echo "no" >&6; }
30913 if test "$have_wmf" = 'yes'; then
30915 WMF_DELEGATE_FALSE='#'
30917 WMF_DELEGATE_TRUE='#'
30918 WMF_DELEGATE_FALSE=
30927 # Check for XML delegate library.
30930 # Check whether --with-xml was given.
30931 if test "${with_xml+set}" = set; then :
30932 withval=$with_xml; with_xml=$withval
30938 if test "$with_xml" != 'yes' ; then
30939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30944 if test "$with_xml" != 'no'; then
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30946 $as_echo "-------------------------------------------------------------" >&6; }
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
30948 $as_echo_n "checking for XML... " >&6; }
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30951 PERSIST_LDFLAGS=$LDFLAGS
30952 PERSIST_CPPFLAGS=$CPPFLAGS
30954 for ac_prog in xml2-config
30956 # Extract the first word of "$ac_prog", so it can be a program name with args.
30957 set dummy $ac_prog; ac_word=$2
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30959 $as_echo_n "checking for $ac_word... " >&6; }
30960 if ${ac_cv_prog_xml2_config+:} false; then :
30961 $as_echo_n "(cached) " >&6
30963 if test -n "$xml2_config"; then
30964 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30967 for as_dir in $PATH
30970 test -z "$as_dir" && as_dir=.
30971 for ac_exec_ext in '' $ac_executable_extensions; do
30972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30973 ac_cv_prog_xml2_config="$ac_prog"
30974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30983 xml2_config=$ac_cv_prog_xml2_config
30984 if test -n "$xml2_config"; then
30985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
30986 $as_echo "$xml2_config" >&6; }
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989 $as_echo "no" >&6; }
30993 test -n "$xml2_config" && break
30995 if test -n "$xml2_config"; then
30996 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30997 # the shared library installed under /usr/lib, whereas the package
30998 # installs itself under $prefix/libxml and $prefix/lib.
30999 xml2_prefix=`xml2-config --prefix`
31000 if test -d "${xml2_prefix}/include/libxml2"; then
31001 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31003 if test "${xml2_prefix}" != '/usr'; then
31004 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31009 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31010 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31011 passed=`expr $passed + 1`
31013 failed=`expr $failed + 1`
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
31018 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
31019 if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
31020 $as_echo_n "(cached) " >&6
31022 ac_check_lib_save_LIBS=$LIBS
31023 LIBS="-lxml2 $LIBS"
31024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31025 /* end confdefs.h. */
31027 /* Override any GCC internal prototype to avoid an error.
31028 Use char because int might match the return type of a GCC
31029 builtin and then its argument prototype would still apply. */
31033 char xmlParseExternalEntity ();
31037 return xmlParseExternalEntity ();
31042 if ac_fn_c_try_link "$LINENO"; then :
31043 ac_cv_lib_xml2_xmlParseExternalEntity=yes
31045 ac_cv_lib_xml2_xmlParseExternalEntity=no
31047 rm -f core conftest.err conftest.$ac_objext \
31048 conftest$ac_exeext conftest.$ac_ext
31049 LIBS=$ac_check_lib_save_LIBS
31051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
31052 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
31053 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
31054 passed=`expr $passed + 1`
31056 failed=`expr $failed + 1`
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31060 $as_echo_n "checking if XML package is complete... " >&6; }
31061 if test $passed -gt 0; then
31062 if test $failed -gt 0; then
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31064 $as_echo "no -- some components failed test" >&6; }
31065 have_xml='no (failed tests)'
31066 LDFLAGS="$PERSIST_LDFLAGS"
31067 CPPFLAGS="$PERSIST_CPPFLAGS"
31070 LIBS="$XML_LIBS $LIBS"
31072 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31075 $as_echo "yes" >&6; }
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31080 $as_echo "no" >&6; }
31083 if test "$have_xml" = 'yes'; then
31085 XML_DELEGATE_FALSE='#'
31087 XML_DELEGATE_TRUE='#'
31088 XML_DELEGATE_FALSE=
31094 # Substitute compiler name to build/link PerlMagick
31099 # Configure install Paths
31102 # Subdirectory under lib to place ImageMagick lib files
31103 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31105 cat >>confdefs.h <<_ACEOF
31106 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31110 # Path to ImageMagick bin directory
31111 EXECUTABLE_PATH="${BIN_DIR}"
31112 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31113 case "${build_os}" in
31115 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31119 cat >>confdefs.h <<_ACEOF
31120 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31125 # Path to ImageMagick lib
31126 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31127 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31128 case "${build_os}" in
31130 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31134 cat >>confdefs.h <<_ACEOF
31135 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31141 # Subdirectory under lib to place ImageMagick coder module files
31142 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31144 cat >>confdefs.h <<_ACEOF
31145 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31148 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31149 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31150 case "${build_os}" in
31152 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31156 cat >>confdefs.h <<_ACEOF
31157 #define CODER_PATH "$DEFINE_CODER_PATH"
31163 # Subdirectory under lib to place ImageMagick filter module files
31164 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31166 cat >>confdefs.h <<_ACEOF
31167 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31170 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31171 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31172 case "${build_os}" in
31174 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31178 cat >>confdefs.h <<_ACEOF
31179 #define FILTER_PATH "$DEFINE_FILTER_PATH"
31185 # Path to ImageMagick documentation files
31186 DOCUMENTATION_RELATIVE_PATH=""
31187 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31188 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
31189 case "${build_os}" in
31191 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31195 cat >>confdefs.h <<_ACEOF
31196 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31201 # Subdirectory to place ImageMagick configuration files
31202 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
31204 cat >>confdefs.h <<_ACEOF
31205 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31208 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31209 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31210 case "${build_os}" in
31212 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31216 cat >>confdefs.h <<_ACEOF
31217 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31222 # Subdirectory to place ImageMagick configuration files
31223 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
31225 cat >>confdefs.h <<_ACEOF
31226 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
31229 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31230 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
31231 case "${build_os}" in
31233 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
31237 cat >>confdefs.h <<_ACEOF
31238 #define SHARE_PATH "$DEFINE_SHARE_PATH"
31244 # program_transform_name is formed for use in a Makefile, so create a
31245 # modified version for use in a shell script.
31246 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31248 # Default delegate definitions
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31250 $as_echo "-------------------------------------------------------------" >&6; }
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
31252 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
31253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31255 AutotraceDecodeDelegateDefault='autotrace'
31256 BlenderDecodeDelegateDefault='blender'
31257 BZIPDelegateDefault='bzip2'
31258 BrowseDelegateDefault='xdg-open'
31259 CGMDecodeDelegateDefault='ralcgm'
31260 CatDelegateDefault='cat'
31261 DNGDecodeDelegateDefault='ufraw-batch'
31262 GVCDecodeDelegateDefault='dot'
31263 DVIDecodeDelegateDefault='dvips'
31264 EchoDelegateDefault='echo'
31265 EditorDelegateDefault='xterm'
31266 FIGDecodeDelegateDefault='fig2dev'
31267 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31268 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31269 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31270 GnuplotDecodeDelegateDefault='gnuplot'
31271 HPGLDecodeDelegateDefault='hp2xx'
31272 HTMLDecodeDelegateDefault='html2ps'
31273 ILBMDecodeDelegateDefault='ilbmtoppm'
31274 ILBMEncodeDelegateDefault='ppmtoilbm'
31275 LPDelegateDefault='lp'
31276 LPRDelegateDefault='lpr'
31277 LZWDecodeDelegateDefault='uncompress'
31278 LZWEncodeDelegateDefault='compress'
31279 LaunchDelegateDefault='gimp'
31280 MANDelegateDefault='groff'
31281 MPEGDecodeDelegateDefault='ffmpeg'
31282 MPEGEncodeDelegateDefault='ffmpeg'
31283 MrSIDDecodeDelegateDefault='mrsidgeodecode'
31284 MVDelegateDefault='mv'
31285 PCLDelegateDefault='pcl6'
31286 PGPDecodeDelegateDefault='pgpv'
31287 POVDelegateDefault='povray'
31288 if test "$native_win32_build" = 'yes'; then
31289 PSDelegateDefault='gswin32c'
31290 elif test "$gslib_framework" = 'yes'; then
31291 PSDelegateDefault='gsc'
31293 PSDelegateDefault='gs'
31295 RLEEncodeDelegateDefault='rawtorle'
31296 RMDelegateDefault='rm'
31297 RSVGDecodeDelegateDefault='rsvg'
31298 SCANDecodeDelegateDefault='scanimage'
31299 TXTDelegateDefault='enscript'
31300 UniconvertorDelegateDefault='uniconvertor'
31301 WMFDecodeDelegateDefault='wmf2eps'
31302 WWWDecodeDelegateDefault='curl'
31303 XPSDelegateDefault='gxps'
31304 ZipDelegateDefault='gzip'
31306 # Search for delegates
31307 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31308 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31310 $as_echo_n "checking for $ac_word... " >&6; }
31311 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
31312 $as_echo_n "(cached) " >&6
31314 case $AutotraceDecodeDelegate in
31316 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31320 for as_dir in $PATH
31323 test -z "$as_dir" && as_dir=.
31324 for ac_exec_ext in '' $ac_executable_extensions; do
31325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31326 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31334 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31338 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31339 if test -n "$AutotraceDecodeDelegate"; then
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
31341 $as_echo "$AutotraceDecodeDelegate" >&6; }
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31344 $as_echo "no" >&6; }
31348 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31349 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
31350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31351 $as_echo_n "checking for $ac_word... " >&6; }
31352 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
31353 $as_echo_n "(cached) " >&6
31355 case $BlenderDecodeDelegate in
31357 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31361 for as_dir in $PATH
31364 test -z "$as_dir" && as_dir=.
31365 for ac_exec_ext in '' $ac_executable_extensions; do
31366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31367 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31375 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31379 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31380 if test -n "$BlenderDecodeDelegate"; then
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
31382 $as_echo "$BlenderDecodeDelegate" >&6; }
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31385 $as_echo "no" >&6; }
31389 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31390 set dummy "$BZIPDelegateDefault"; ac_word=$2
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31392 $as_echo_n "checking for $ac_word... " >&6; }
31393 if ${ac_cv_path_BZIPDelegate+:} false; then :
31394 $as_echo_n "(cached) " >&6
31396 case $BZIPDelegate in
31398 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31402 for as_dir in $PATH
31405 test -z "$as_dir" && as_dir=.
31406 for ac_exec_ext in '' $ac_executable_extensions; do
31407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31408 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
31409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31416 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31420 BZIPDelegate=$ac_cv_path_BZIPDelegate
31421 if test -n "$BZIPDelegate"; then
31422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
31423 $as_echo "$BZIPDelegate" >&6; }
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31426 $as_echo "no" >&6; }
31430 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31431 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
31432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31433 $as_echo_n "checking for $ac_word... " >&6; }
31434 if ${ac_cv_path_BrowseDelegate+:} false; then :
31435 $as_echo_n "(cached) " >&6
31437 case $BrowseDelegate in
31439 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31443 for as_dir in $PATH
31446 test -z "$as_dir" && as_dir=.
31447 for ac_exec_ext in '' $ac_executable_extensions; do
31448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31449 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
31450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31457 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31461 BrowseDelegate=$ac_cv_path_BrowseDelegate
31462 if test -n "$BrowseDelegate"; then
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
31464 $as_echo "$BrowseDelegate" >&6; }
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31467 $as_echo "no" >&6; }
31471 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31472 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31474 $as_echo_n "checking for $ac_word... " >&6; }
31475 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
31476 $as_echo_n "(cached) " >&6
31478 case $CGMDecodeDelegate in
31480 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31484 for as_dir in $PATH
31487 test -z "$as_dir" && as_dir=.
31488 for ac_exec_ext in '' $ac_executable_extensions; do
31489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31490 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31498 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31502 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31503 if test -n "$CGMDecodeDelegate"; then
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
31505 $as_echo "$CGMDecodeDelegate" >&6; }
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31508 $as_echo "no" >&6; }
31512 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31513 set dummy "$CatDelegateDefault"; ac_word=$2
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31515 $as_echo_n "checking for $ac_word... " >&6; }
31516 if ${ac_cv_path_CatDelegate+:} false; then :
31517 $as_echo_n "(cached) " >&6
31519 case $CatDelegate in
31521 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31525 for as_dir in $PATH
31528 test -z "$as_dir" && as_dir=.
31529 for ac_exec_ext in '' $ac_executable_extensions; do
31530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31531 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
31532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31539 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31543 CatDelegate=$ac_cv_path_CatDelegate
31544 if test -n "$CatDelegate"; then
31545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
31546 $as_echo "$CatDelegate" >&6; }
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31549 $as_echo "no" >&6; }
31553 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31554 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31556 $as_echo_n "checking for $ac_word... " >&6; }
31557 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
31558 $as_echo_n "(cached) " >&6
31560 case $DNGDecodeDelegate in
31562 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31566 for as_dir in $PATH
31569 test -z "$as_dir" && as_dir=.
31570 for ac_exec_ext in '' $ac_executable_extensions; do
31571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31572 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31580 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31584 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31585 if test -n "$DNGDecodeDelegate"; then
31586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
31587 $as_echo "$DNGDecodeDelegate" >&6; }
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31590 $as_echo "no" >&6; }
31594 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31595 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
31596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31597 $as_echo_n "checking for $ac_word... " >&6; }
31598 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
31599 $as_echo_n "(cached) " >&6
31601 case $GVCDecodeDelegate in
31603 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31607 for as_dir in $PATH
31610 test -z "$as_dir" && as_dir=.
31611 for ac_exec_ext in '' $ac_executable_extensions; do
31612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31613 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31621 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31625 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31626 if test -n "$GVCDecodeDelegate"; then
31627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
31628 $as_echo "$GVCDecodeDelegate" >&6; }
31630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31631 $as_echo "no" >&6; }
31635 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31636 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31638 $as_echo_n "checking for $ac_word... " >&6; }
31639 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
31640 $as_echo_n "(cached) " >&6
31642 case $DVIDecodeDelegate in
31644 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31648 for as_dir in $PATH
31651 test -z "$as_dir" && as_dir=.
31652 for ac_exec_ext in '' $ac_executable_extensions; do
31653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31654 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31662 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31666 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31667 if test -n "$DVIDecodeDelegate"; then
31668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
31669 $as_echo "$DVIDecodeDelegate" >&6; }
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31672 $as_echo "no" >&6; }
31676 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31677 set dummy "$EchoDelegateDefault"; ac_word=$2
31678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31679 $as_echo_n "checking for $ac_word... " >&6; }
31680 if ${ac_cv_path_EchoDelegate+:} false; then :
31681 $as_echo_n "(cached) " >&6
31683 case $EchoDelegate in
31685 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31689 for as_dir in $PATH
31692 test -z "$as_dir" && as_dir=.
31693 for ac_exec_ext in '' $ac_executable_extensions; do
31694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31695 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
31696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31703 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31707 EchoDelegate=$ac_cv_path_EchoDelegate
31708 if test -n "$EchoDelegate"; then
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
31710 $as_echo "$EchoDelegate" >&6; }
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31713 $as_echo "no" >&6; }
31717 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
31718 set dummy "$EditorDelegateDefault"; ac_word=$2
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31720 $as_echo_n "checking for $ac_word... " >&6; }
31721 if ${ac_cv_path_EditorDelegate+:} false; then :
31722 $as_echo_n "(cached) " >&6
31724 case $EditorDelegate in
31726 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
31729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31730 for as_dir in $PATH
31733 test -z "$as_dir" && as_dir=.
31734 for ac_exec_ext in '' $ac_executable_extensions; do
31735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31736 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
31737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31744 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31748 EditorDelegate=$ac_cv_path_EditorDelegate
31749 if test -n "$EditorDelegate"; then
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
31751 $as_echo "$EditorDelegate" >&6; }
31753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31754 $as_echo "no" >&6; }
31758 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31759 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
31760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31761 $as_echo_n "checking for $ac_word... " >&6; }
31762 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
31763 $as_echo_n "(cached) " >&6
31765 case $FIGDecodeDelegate in
31767 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31771 for as_dir in $PATH
31774 test -z "$as_dir" && as_dir=.
31775 for ac_exec_ext in '' $ac_executable_extensions; do
31776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31777 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31785 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31789 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31790 if test -n "$FIGDecodeDelegate"; then
31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
31792 $as_echo "$FIGDecodeDelegate" >&6; }
31794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31795 $as_echo "no" >&6; }
31799 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31800 set dummy "$ConvertDelegateDefault"; ac_word=$2
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31802 $as_echo_n "checking for $ac_word... " >&6; }
31803 if ${ac_cv_path_ConvertDelegate+:} false; then :
31804 $as_echo_n "(cached) " >&6
31806 case $ConvertDelegate in
31808 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31812 for as_dir in $PATH
31815 test -z "$as_dir" && as_dir=.
31816 for ac_exec_ext in '' $ac_executable_extensions; do
31817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31818 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
31819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31826 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31830 ConvertDelegate=$ac_cv_path_ConvertDelegate
31831 if test -n "$ConvertDelegate"; then
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
31833 $as_echo "$ConvertDelegate" >&6; }
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31836 $as_echo "no" >&6; }
31840 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31841 set dummy "$DisplayDelegateDefault"; ac_word=$2
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31843 $as_echo_n "checking for $ac_word... " >&6; }
31844 if ${ac_cv_path_DisplayDelegate+:} false; then :
31845 $as_echo_n "(cached) " >&6
31847 case $DisplayDelegate in
31849 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31853 for as_dir in $PATH
31856 test -z "$as_dir" && as_dir=.
31857 for ac_exec_ext in '' $ac_executable_extensions; do
31858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31859 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
31860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31867 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31871 DisplayDelegate=$ac_cv_path_DisplayDelegate
31872 if test -n "$DisplayDelegate"; then
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
31874 $as_echo "$DisplayDelegate" >&6; }
31876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31877 $as_echo "no" >&6; }
31881 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31882 set dummy "$MogrifyDelegateDefault"; ac_word=$2
31883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31884 $as_echo_n "checking for $ac_word... " >&6; }
31885 if ${ac_cv_path_MogrifyDelegate+:} false; then :
31886 $as_echo_n "(cached) " >&6
31888 case $MogrifyDelegate in
31890 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31894 for as_dir in $PATH
31897 test -z "$as_dir" && as_dir=.
31898 for ac_exec_ext in '' $ac_executable_extensions; do
31899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31900 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
31901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31908 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31912 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31913 if test -n "$MogrifyDelegate"; then
31914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
31915 $as_echo "$MogrifyDelegate" >&6; }
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31918 $as_echo "no" >&6; }
31922 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31923 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
31924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31925 $as_echo_n "checking for $ac_word... " >&6; }
31926 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
31927 $as_echo_n "(cached) " >&6
31929 case $GnuplotDecodeDelegate in
31931 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31935 for as_dir in $PATH
31938 test -z "$as_dir" && as_dir=.
31939 for ac_exec_ext in '' $ac_executable_extensions; do
31940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31941 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31949 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31953 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31954 if test -n "$GnuplotDecodeDelegate"; then
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
31956 $as_echo "$GnuplotDecodeDelegate" >&6; }
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31959 $as_echo "no" >&6; }
31963 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31964 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31966 $as_echo_n "checking for $ac_word... " >&6; }
31967 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
31968 $as_echo_n "(cached) " >&6
31970 case $HPGLDecodeDelegate in
31972 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31976 for as_dir in $PATH
31979 test -z "$as_dir" && as_dir=.
31980 for ac_exec_ext in '' $ac_executable_extensions; do
31981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31982 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31990 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31994 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31995 if test -n "$HPGLDecodeDelegate"; then
31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
31997 $as_echo "$HPGLDecodeDelegate" >&6; }
31999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32000 $as_echo "no" >&6; }
32004 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32005 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32007 $as_echo_n "checking for $ac_word... " >&6; }
32008 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
32009 $as_echo_n "(cached) " >&6
32011 case $HTMLDecodeDelegate in
32013 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32017 for as_dir in $PATH
32020 test -z "$as_dir" && as_dir=.
32021 for ac_exec_ext in '' $ac_executable_extensions; do
32022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32023 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32031 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32035 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32036 if test -n "$HTMLDecodeDelegate"; then
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
32038 $as_echo "$HTMLDecodeDelegate" >&6; }
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32045 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32046 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32048 $as_echo_n "checking for $ac_word... " >&6; }
32049 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
32050 $as_echo_n "(cached) " >&6
32052 case $ILBMDecodeDelegate in
32054 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32058 for as_dir in $PATH
32061 test -z "$as_dir" && as_dir=.
32062 for ac_exec_ext in '' $ac_executable_extensions; do
32063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32064 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32072 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32076 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32077 if test -n "$ILBMDecodeDelegate"; then
32078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
32079 $as_echo "$ILBMDecodeDelegate" >&6; }
32081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32082 $as_echo "no" >&6; }
32086 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32087 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32089 $as_echo_n "checking for $ac_word... " >&6; }
32090 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
32091 $as_echo_n "(cached) " >&6
32093 case $ILBMEncodeDelegate in
32095 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32099 for as_dir in $PATH
32102 test -z "$as_dir" && as_dir=.
32103 for ac_exec_ext in '' $ac_executable_extensions; do
32104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32105 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32113 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32117 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32118 if test -n "$ILBMEncodeDelegate"; then
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
32120 $as_echo "$ILBMEncodeDelegate" >&6; }
32122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32123 $as_echo "no" >&6; }
32127 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32128 set dummy "$LPDelegateDefault"; ac_word=$2
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32130 $as_echo_n "checking for $ac_word... " >&6; }
32131 if ${ac_cv_path_LPDelegate+:} false; then :
32132 $as_echo_n "(cached) " >&6
32134 case $LPDelegate in
32136 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32140 for as_dir in $PATH
32143 test -z "$as_dir" && as_dir=.
32144 for ac_exec_ext in '' $ac_executable_extensions; do
32145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32146 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
32147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32154 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32158 LPDelegate=$ac_cv_path_LPDelegate
32159 if test -n "$LPDelegate"; then
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
32161 $as_echo "$LPDelegate" >&6; }
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32164 $as_echo "no" >&6; }
32168 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32169 set dummy "$LPRDelegateDefault"; ac_word=$2
32170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32171 $as_echo_n "checking for $ac_word... " >&6; }
32172 if ${ac_cv_path_LPRDelegate+:} false; then :
32173 $as_echo_n "(cached) " >&6
32175 case $LPRDelegate in
32177 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32181 for as_dir in $PATH
32184 test -z "$as_dir" && as_dir=.
32185 for ac_exec_ext in '' $ac_executable_extensions; do
32186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32187 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
32188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32195 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32199 LPRDelegate=$ac_cv_path_LPRDelegate
32200 if test -n "$LPRDelegate"; then
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
32202 $as_echo "$LPRDelegate" >&6; }
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32205 $as_echo "no" >&6; }
32209 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32210 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32212 $as_echo_n "checking for $ac_word... " >&6; }
32213 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
32214 $as_echo_n "(cached) " >&6
32216 case $LZWDecodeDelegate in
32218 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32222 for as_dir in $PATH
32225 test -z "$as_dir" && as_dir=.
32226 for ac_exec_ext in '' $ac_executable_extensions; do
32227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32228 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32236 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32240 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32241 if test -n "$LZWDecodeDelegate"; then
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
32243 $as_echo "$LZWDecodeDelegate" >&6; }
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32246 $as_echo "no" >&6; }
32250 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32251 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32253 $as_echo_n "checking for $ac_word... " >&6; }
32254 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
32255 $as_echo_n "(cached) " >&6
32257 case $LZWEncodeDelegate in
32259 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32263 for as_dir in $PATH
32266 test -z "$as_dir" && as_dir=.
32267 for ac_exec_ext in '' $ac_executable_extensions; do
32268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32269 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32277 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32281 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32282 if test -n "$LZWEncodeDelegate"; then
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
32284 $as_echo "$LZWEncodeDelegate" >&6; }
32286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32287 $as_echo "no" >&6; }
32291 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32292 set dummy "$LaunchDelegateDefault"; ac_word=$2
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32294 $as_echo_n "checking for $ac_word... " >&6; }
32295 if ${ac_cv_path_LaunchDelegate+:} false; then :
32296 $as_echo_n "(cached) " >&6
32298 case $LaunchDelegate in
32300 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32304 for as_dir in $PATH
32307 test -z "$as_dir" && as_dir=.
32308 for ac_exec_ext in '' $ac_executable_extensions; do
32309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32310 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
32311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32318 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32322 LaunchDelegate=$ac_cv_path_LaunchDelegate
32323 if test -n "$LaunchDelegate"; then
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
32325 $as_echo "$LaunchDelegate" >&6; }
32327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32328 $as_echo "no" >&6; }
32332 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32333 set dummy "$MANDelegateDefault"; ac_word=$2
32334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32335 $as_echo_n "checking for $ac_word... " >&6; }
32336 if ${ac_cv_path_MANDelegate+:} false; then :
32337 $as_echo_n "(cached) " >&6
32339 case $MANDelegate in
32341 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32345 for as_dir in $PATH
32348 test -z "$as_dir" && as_dir=.
32349 for ac_exec_ext in '' $ac_executable_extensions; do
32350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32351 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
32352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32359 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32363 MANDelegate=$ac_cv_path_MANDelegate
32364 if test -n "$MANDelegate"; then
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
32366 $as_echo "$MANDelegate" >&6; }
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32369 $as_echo "no" >&6; }
32373 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32374 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
32375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32376 $as_echo_n "checking for $ac_word... " >&6; }
32377 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
32378 $as_echo_n "(cached) " >&6
32380 case $MPEGDecodeDelegate in
32382 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32386 for as_dir in $PATH
32389 test -z "$as_dir" && as_dir=.
32390 for ac_exec_ext in '' $ac_executable_extensions; do
32391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32392 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32400 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32404 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32405 if test -n "$MPEGDecodeDelegate"; then
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
32407 $as_echo "$MPEGDecodeDelegate" >&6; }
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32410 $as_echo "no" >&6; }
32414 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32415 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32417 $as_echo_n "checking for $ac_word... " >&6; }
32418 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
32419 $as_echo_n "(cached) " >&6
32421 case $MPEGEncodeDelegate in
32423 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32427 for as_dir in $PATH
32430 test -z "$as_dir" && as_dir=.
32431 for ac_exec_ext in '' $ac_executable_extensions; do
32432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32433 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32441 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32445 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32446 if test -n "$MPEGEncodeDelegate"; then
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
32448 $as_echo "$MPEGEncodeDelegate" >&6; }
32450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32451 $as_echo "no" >&6; }
32455 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32456 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32458 $as_echo_n "checking for $ac_word... " >&6; }
32459 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
32460 $as_echo_n "(cached) " >&6
32462 case $MrSIDDecodeDelegate in
32464 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32468 for as_dir in $PATH
32471 test -z "$as_dir" && as_dir=.
32472 for ac_exec_ext in '' $ac_executable_extensions; do
32473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32474 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32482 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32486 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32487 if test -n "$MrSIDDecodeDelegate"; then
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32489 $as_echo "$MrSIDDecodeDelegate" >&6; }
32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32492 $as_echo "no" >&6; }
32496 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32497 set dummy "$MVDelegateDefault"; ac_word=$2
32498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32499 $as_echo_n "checking for $ac_word... " >&6; }
32500 if ${ac_cv_path_MVDelegate+:} false; then :
32501 $as_echo_n "(cached) " >&6
32503 case $MVDelegate in
32505 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32509 for as_dir in $PATH
32512 test -z "$as_dir" && as_dir=.
32513 for ac_exec_ext in '' $ac_executable_extensions; do
32514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32515 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
32516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32523 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32527 MVDelegate=$ac_cv_path_MVDelegate
32528 if test -n "$MVDelegate"; then
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
32530 $as_echo "$MVDelegate" >&6; }
32532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32533 $as_echo "no" >&6; }
32537 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32538 set dummy "$PCLDelegateDefault"; ac_word=$2
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32540 $as_echo_n "checking for $ac_word... " >&6; }
32541 if ${ac_cv_path_PCLDelegate+:} false; then :
32542 $as_echo_n "(cached) " >&6
32544 case $PCLDelegate in
32546 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32550 for as_dir in $PATH
32553 test -z "$as_dir" && as_dir=.
32554 for ac_exec_ext in '' $ac_executable_extensions; do
32555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32556 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
32557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32564 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32568 PCLDelegate=$ac_cv_path_PCLDelegate
32569 if test -n "$PCLDelegate"; then
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
32571 $as_echo "$PCLDelegate" >&6; }
32573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32574 $as_echo "no" >&6; }
32578 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32579 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32581 $as_echo_n "checking for $ac_word... " >&6; }
32582 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
32583 $as_echo_n "(cached) " >&6
32585 case $PGPDecodeDelegate in
32587 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32591 for as_dir in $PATH
32594 test -z "$as_dir" && as_dir=.
32595 for ac_exec_ext in '' $ac_executable_extensions; do
32596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32597 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32605 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32609 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32610 if test -n "$PGPDecodeDelegate"; then
32611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
32612 $as_echo "$PGPDecodeDelegate" >&6; }
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32615 $as_echo "no" >&6; }
32619 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32620 set dummy "$POVDelegateDefault"; ac_word=$2
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32622 $as_echo_n "checking for $ac_word... " >&6; }
32623 if ${ac_cv_path_POVDelegate+:} false; then :
32624 $as_echo_n "(cached) " >&6
32626 case $POVDelegate in
32628 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32632 for as_dir in $PATH
32635 test -z "$as_dir" && as_dir=.
32636 for ac_exec_ext in '' $ac_executable_extensions; do
32637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32638 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
32639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32646 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32650 POVDelegate=$ac_cv_path_POVDelegate
32651 if test -n "$POVDelegate"; then
32652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
32653 $as_echo "$POVDelegate" >&6; }
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32656 $as_echo "no" >&6; }
32660 for ac_prog in gsx gsc "$PSDelegateDefault"
32662 # Extract the first word of "$ac_prog", so it can be a program name with args.
32663 set dummy $ac_prog; ac_word=$2
32664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32665 $as_echo_n "checking for $ac_word... " >&6; }
32666 if ${ac_cv_path_PSDelegate+:} false; then :
32667 $as_echo_n "(cached) " >&6
32669 case $PSDelegate in
32671 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32675 for as_dir in $PATH
32678 test -z "$as_dir" && as_dir=.
32679 for ac_exec_ext in '' $ac_executable_extensions; do
32680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32681 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
32682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32692 PSDelegate=$ac_cv_path_PSDelegate
32693 if test -n "$PSDelegate"; then
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
32695 $as_echo "$PSDelegate" >&6; }
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32698 $as_echo "no" >&6; }
32702 test -n "$PSDelegate" && break
32704 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32706 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32707 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32709 $as_echo_n "checking for $ac_word... " >&6; }
32710 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
32711 $as_echo_n "(cached) " >&6
32713 case $RLEEncodeDelegate in
32715 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
32718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32719 for as_dir in $PATH
32722 test -z "$as_dir" && as_dir=.
32723 for ac_exec_ext in '' $ac_executable_extensions; do
32724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32725 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32733 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
32737 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32738 if test -n "$RLEEncodeDelegate"; then
32739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
32740 $as_echo "$RLEEncodeDelegate" >&6; }
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32743 $as_echo "no" >&6; }
32747 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32748 set dummy "$RMDelegateDefault"; ac_word=$2
32749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32750 $as_echo_n "checking for $ac_word... " >&6; }
32751 if ${ac_cv_path_RMDelegate+:} false; then :
32752 $as_echo_n "(cached) " >&6
32754 case $RMDelegate in
32756 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
32759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32760 for as_dir in $PATH
32763 test -z "$as_dir" && as_dir=.
32764 for ac_exec_ext in '' $ac_executable_extensions; do
32765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32766 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
32767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32774 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32778 RMDelegate=$ac_cv_path_RMDelegate
32779 if test -n "$RMDelegate"; then
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
32781 $as_echo "$RMDelegate" >&6; }
32783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32784 $as_echo "no" >&6; }
32788 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32789 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
32790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32791 $as_echo_n "checking for $ac_word... " >&6; }
32792 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
32793 $as_echo_n "(cached) " >&6
32795 case $RSVGDecodeDelegate in
32797 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
32800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32801 for as_dir in $PATH
32804 test -z "$as_dir" && as_dir=.
32805 for ac_exec_ext in '' $ac_executable_extensions; do
32806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32807 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32815 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32819 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32820 if test -n "$RSVGDecodeDelegate"; then
32821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32822 $as_echo "$RSVGDecodeDelegate" >&6; }
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32825 $as_echo "no" >&6; }
32829 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32830 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
32831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32832 $as_echo_n "checking for $ac_word... " >&6; }
32833 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
32834 $as_echo_n "(cached) " >&6
32836 case $SCANDecodeDelegate in
32838 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
32841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32842 for as_dir in $PATH
32845 test -z "$as_dir" && as_dir=.
32846 for ac_exec_ext in '' $ac_executable_extensions; do
32847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32848 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32856 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32860 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32861 if test -n "$SCANDecodeDelegate"; then
32862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
32863 $as_echo "$SCANDecodeDelegate" >&6; }
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32866 $as_echo "no" >&6; }
32870 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32871 set dummy "$TXTDelegateDefault"; ac_word=$2
32872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32873 $as_echo_n "checking for $ac_word... " >&6; }
32874 if ${ac_cv_path_TXTDelegate+:} false; then :
32875 $as_echo_n "(cached) " >&6
32877 case $TXTDelegate in
32879 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32883 for as_dir in $PATH
32886 test -z "$as_dir" && as_dir=.
32887 for ac_exec_ext in '' $ac_executable_extensions; do
32888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32889 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
32890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32897 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32901 TXTDelegate=$ac_cv_path_TXTDelegate
32902 if test -n "$TXTDelegate"; then
32903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
32904 $as_echo "$TXTDelegate" >&6; }
32906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32907 $as_echo "no" >&6; }
32911 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32912 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32914 $as_echo_n "checking for $ac_word... " >&6; }
32915 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
32916 $as_echo_n "(cached) " >&6
32918 case $UniconvertorDelegate in
32920 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32924 for as_dir in $PATH
32927 test -z "$as_dir" && as_dir=.
32928 for ac_exec_ext in '' $ac_executable_extensions; do
32929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32930 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32938 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32942 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32943 if test -n "$UniconvertorDelegate"; then
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32945 $as_echo "$UniconvertorDelegate" >&6; }
32947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32948 $as_echo "no" >&6; }
32952 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32953 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32955 $as_echo_n "checking for $ac_word... " >&6; }
32956 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
32957 $as_echo_n "(cached) " >&6
32959 case $WMFDecodeDelegate in
32961 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32965 for as_dir in $PATH
32968 test -z "$as_dir" && as_dir=.
32969 for ac_exec_ext in '' $ac_executable_extensions; do
32970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32971 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32979 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32983 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32984 if test -n "$WMFDecodeDelegate"; then
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
32986 $as_echo "$WMFDecodeDelegate" >&6; }
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32989 $as_echo "no" >&6; }
32993 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32994 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
32995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32996 $as_echo_n "checking for $ac_word... " >&6; }
32997 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
32998 $as_echo_n "(cached) " >&6
33000 case $WWWDecodeDelegate in
33002 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006 for as_dir in $PATH
33009 test -z "$as_dir" && as_dir=.
33010 for ac_exec_ext in '' $ac_executable_extensions; do
33011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33012 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33020 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33024 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33025 if test -n "$WWWDecodeDelegate"; then
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
33027 $as_echo "$WWWDecodeDelegate" >&6; }
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030 $as_echo "no" >&6; }
33034 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33035 set dummy "$XPSDelegateDefault"; ac_word=$2
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33037 $as_echo_n "checking for $ac_word... " >&6; }
33038 if ${ac_cv_path_XPSDelegate+:} false; then :
33039 $as_echo_n "(cached) " >&6
33041 case $XPSDelegate in
33043 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047 for as_dir in $PATH
33050 test -z "$as_dir" && as_dir=.
33051 for ac_exec_ext in '' $ac_executable_extensions; do
33052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33053 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
33054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33061 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33065 XPSDelegate=$ac_cv_path_XPSDelegate
33066 if test -n "$XPSDelegate"; then
33067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
33068 $as_echo "$XPSDelegate" >&6; }
33070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071 $as_echo "no" >&6; }
33075 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33076 set dummy "$ZipDelegateDefault"; ac_word=$2
33077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33078 $as_echo_n "checking for $ac_word... " >&6; }
33079 if ${ac_cv_path_ZipDelegate+:} false; then :
33080 $as_echo_n "(cached) " >&6
33082 case $ZipDelegate in
33084 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33088 for as_dir in $PATH
33091 test -z "$as_dir" && as_dir=.
33092 for ac_exec_ext in '' $ac_executable_extensions; do
33093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33094 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
33095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33102 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33106 ZipDelegate=$ac_cv_path_ZipDelegate
33107 if test -n "$ZipDelegate"; then
33108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
33109 $as_echo "$ZipDelegate" >&6; }
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33112 $as_echo "no" >&6; }
33117 # Prefer lpr to lp; lp needs options tacked on.
33118 if test "$LPRDelegate" != no; then
33119 PrintDelegate="$LPRDelegate"
33121 PrintDelegate="$LPDelegate -c -s"
33125 # Installed ImageMagick utiltity paths
33126 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33127 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33128 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33130 # Set delegate booleans
33131 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33132 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33133 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33134 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33135 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
33136 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
33137 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33138 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
33139 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33140 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33143 # Test for font directories
33145 type_include_files=''
33148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33149 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
33151 if test "${with_dejavu_font_dir}" != 'default'; then
33152 dejavu_font_dir="${with_dejavu_font_dir}/"
33154 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33155 if test -f "${font_dir}DejaVuSerif.ttf"; then
33156 dejavu_font_dir="${font_dir}"
33161 if test "${dejavu_font_dir}x" != 'x'; then
33162 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33164 $as_echo "$dejavu_font_dir" >&6; }
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33167 $as_echo "not found!" >&6; };
33172 windows_font_dir=''
33173 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33174 windows_font_dir="${with_windows_font_dir}/"
33176 if test "${windows_font_dir}x" != 'x'; then
33177 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33178 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33180 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33181 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33183 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33184 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33187 if test "${windows_font_dir}x" != 'x'; then
33188 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
33194 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33195 ghostscript_font_dir=''
33196 if test "${with_gs_font_dir}" != 'default'; then
33197 ghostscript_font_dir="${with_gs_font_dir}/"
33199 if test "${native_win32_build}" = 'yes'; then
33200 # Native Windows Build
33201 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33202 if test -f "${font_dir}a010013l.pfb"; then
33203 ghostscript_font_dir="$font_dir"
33207 if test "${PSDelegate}" != 'gswin32c'; then
33208 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33211 # Linux / Mac OS X / Unix Build
33212 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
33213 if test -f "${font_dir}a010013l.pfb"; then
33214 ghostscript_font_dir="${font_dir}"
33218 if test "${ghostscript_font_dir}x" = 'x'; then
33219 if test "$PSDelegate" != 'gs'; then
33220 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33225 if test "${ghostscript_font_dir}x" != 'x'; then
33226 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
33227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
33228 $as_echo "$ghostscript_font_dir" >&6; }
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33231 $as_echo "not found!" >&6; };
33234 case "${build_os}" in
33236 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33243 # Handle case where user doesn't want frozen paths
33245 if test "$with_frozenpaths" != 'yes'; then
33246 # Re-set delegate definitions to default (no paths)
33247 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
33248 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33249 BZIPDelegate="$BZIPDelegateDefault"
33250 BrowseDelegate="$BrowseDelegateDefault"
33251 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33252 CatDelegate="$CatDelegateDefault"
33253 ConvertDelegate="$ConvertDelegateDefault"
33254 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33255 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33256 EchoDelegate="$EchoDelegateDefault"
33257 EditorDelegate="$EditorDelegateDefault"
33258 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33259 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33260 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33261 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33262 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33263 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33264 LPDelegate="$LPDelegateDefault"
33265 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33266 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33267 LaunchDelegate="$LaunchDelegateDefault"
33268 MANDelegate="$MANDelegateDefault"
33269 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33270 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
33271 MogrifyDelegate="$MogrifyDelegateDefault"
33272 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33273 MVDelegate="$MVDelegateDefault"
33274 PCLDelegate="$PCLDelegateDefault"
33275 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33276 POVDelegate="$POVDelegateDefault"
33277 PSDelegate="$PSDelegateDefault"
33278 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33279 RMDelegate="$RMDelegateDefault"
33280 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
33281 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33282 ShowImageDelegate="$ShowImageDelegateDefault"
33283 TXTDelegate="$TXTDelegateDefault"
33284 UniconvertorDelegate="$UniconvertorDelegateDefault"
33285 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33286 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33287 XPSDelegate="$XPSDelegateDefault"
33288 ZipDelegate="$ZipDelegateDefault"
33291 # Delegate substitutions
33338 for ac_prog in gnutar gtar tar
33340 # Extract the first word of "$ac_prog", so it can be a program name with args.
33341 set dummy $ac_prog; ac_word=$2
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33343 $as_echo_n "checking for $ac_word... " >&6; }
33344 if ${ac_cv_prog_TAR+:} false; then :
33345 $as_echo_n "(cached) " >&6
33347 if test -n "$TAR"; then
33348 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33351 for as_dir in $PATH
33354 test -z "$as_dir" && as_dir=.
33355 for ac_exec_ext in '' $ac_executable_extensions; do
33356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33357 ac_cv_prog_TAR="$ac_prog"
33358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33367 TAR=$ac_cv_prog_TAR
33368 if test -n "$TAR"; then
33369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
33370 $as_echo "$TAR" >&6; }
33372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33373 $as_echo "no" >&6; }
33377 test -n "$TAR" && break
33380 for ac_prog in perl
33382 # Extract the first word of "$ac_prog", so it can be a program name with args.
33383 set dummy $ac_prog; ac_word=$2
33384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33385 $as_echo_n "checking for $ac_word... " >&6; }
33386 if ${ac_cv_prog_PERL+:} false; then :
33387 $as_echo_n "(cached) " >&6
33389 if test -n "$PERL"; then
33390 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33393 for as_dir in $PATH
33396 test -z "$as_dir" && as_dir=.
33397 for ac_exec_ext in '' $ac_executable_extensions; do
33398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33399 ac_cv_prog_PERL="$ac_prog"
33400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33409 PERL=$ac_cv_prog_PERL
33410 if test -n "$PERL"; then
33411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33412 $as_echo "$PERL" >&6; }
33414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33415 $as_echo "no" >&6; }
33419 test -n "$PERL" && break
33422 for ac_prog in rpmbuild rpm
33424 # Extract the first word of "$ac_prog", so it can be a program name with args.
33425 set dummy $ac_prog; ac_word=$2
33426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33427 $as_echo_n "checking for $ac_word... " >&6; }
33428 if ${ac_cv_prog_RPM+:} false; then :
33429 $as_echo_n "(cached) " >&6
33431 if test -n "$RPM"; then
33432 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33435 for as_dir in $PATH
33438 test -z "$as_dir" && as_dir=.
33439 for ac_exec_ext in '' $ac_executable_extensions; do
33440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33441 ac_cv_prog_RPM="$ac_prog"
33442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33451 RPM=$ac_cv_prog_RPM
33452 if test -n "$RPM"; then
33453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
33454 $as_echo "$RPM" >&6; }
33456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33457 $as_echo "no" >&6; }
33461 test -n "$RPM" && break
33465 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33468 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33471 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33474 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33477 if test "x$RPM" != "x" ; then
33479 RPM_DELEGATE_FALSE='#'
33481 RPM_DELEGATE_TRUE='#'
33482 RPM_DELEGATE_FALSE=
33487 # 7ZIP support (http://p7zip.sourceforge.net/)
33492 # Extract the first word of "$ac_prog", so it can be a program name with args.
33493 set dummy $ac_prog; ac_word=$2
33494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33495 $as_echo_n "checking for $ac_word... " >&6; }
33496 if ${ac_cv_prog_P7ZIP+:} false; then :
33497 $as_echo_n "(cached) " >&6
33499 if test -n "$P7ZIP"; then
33500 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33503 for as_dir in $PATH
33506 test -z "$as_dir" && as_dir=.
33507 for ac_exec_ext in '' $ac_executable_extensions; do
33508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33509 ac_cv_prog_P7ZIP="$ac_prog"
33510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33519 P7ZIP=$ac_cv_prog_P7ZIP
33520 if test -n "$P7ZIP"; then
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
33522 $as_echo "$P7ZIP" >&6; }
33524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33525 $as_echo "no" >&6; }
33529 test -n "$P7ZIP" && break
33533 if test "x$P7ZIP" != "x" ; then
33534 P7ZIP_DELEGATE_TRUE=
33535 P7ZIP_DELEGATE_FALSE='#'
33537 P7ZIP_DELEGATE_TRUE='#'
33538 P7ZIP_DELEGATE_FALSE=
33543 # ZIP support (http://www.info-zip.org/Zip.html)
33548 # Extract the first word of "$ac_prog", so it can be a program name with args.
33549 set dummy $ac_prog; ac_word=$2
33550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33551 $as_echo_n "checking for $ac_word... " >&6; }
33552 if ${ac_cv_prog_ZIP+:} false; then :
33553 $as_echo_n "(cached) " >&6
33555 if test -n "$ZIP"; then
33556 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33559 for as_dir in $PATH
33562 test -z "$as_dir" && as_dir=.
33563 for ac_exec_ext in '' $ac_executable_extensions; do
33564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33565 ac_cv_prog_ZIP="$ac_prog"
33566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33575 ZIP=$ac_cv_prog_ZIP
33576 if test -n "$ZIP"; then
33577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
33578 $as_echo "$ZIP" >&6; }
33580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33581 $as_echo "no" >&6; }
33585 test -n "$ZIP" && break
33589 if test "x$ZIP" != "x" ; then
33591 ZIP_DELEGATE_FALSE='#'
33593 ZIP_DELEGATE_TRUE='#'
33594 ZIP_DELEGATE_FALSE=
33599 # GhostPCL related configuration.
33601 PCLColorDevice=ppmraw
33602 PCLCMYKDevice=bmpsep8
33603 PCLMonoDevice=pbmraw
33604 if test -z "$PCLVersion"; then
33605 PCLVersion='unknown'
33607 if test $have_pcl = 'yes'; then
33608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33609 $as_echo "-------------------------------------------------------------" >&6; }
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
33611 $as_echo_n "checking for PCL... " >&6; }
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
33616 $as_echo_n "checking for pcl color device... " >&6; }
33617 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33620 PCLColorDevice=ppmraw
33622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
33623 $as_echo "$PCLColorDevice" >&6; }
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
33627 $as_echo_n "checking for pcl CMYK device... " >&6; }
33628 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33631 PCLCMYKDevice=$PCLColorDevice
33633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
33634 $as_echo "$PCLCMYKDevice" >&6; }
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
33638 $as_echo_n "checking for pcl mono device... " >&6; }
33639 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33642 PCLMonoDevice=$PCLColorDevice
33644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
33645 $as_echo "$PCLMonoDevice" >&6; }
33654 # GhostXPS related configuration.
33656 XPSColorDevice=ppmraw
33657 XPSCMYKDevice=bmpsep8
33658 XPSMonoDevice=pbmraw
33659 if test -z "$XPSVersion"; then
33660 XPSVersion='unknown'
33662 if test $have_xps = 'yes'; then
33663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33664 $as_echo "-------------------------------------------------------------" >&6; }
33665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
33666 $as_echo_n "checking for XPS... " >&6; }
33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
33671 $as_echo_n "checking for xps color device... " >&6; }
33672 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33675 XPSColorDevice=ppmraw
33677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
33678 $as_echo "$XPSColorDevice" >&6; }
33681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
33682 $as_echo_n "checking for xps CMYK device... " >&6; }
33683 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33686 XPSCMYKDevice=$XPSColorDevice
33688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
33689 $as_echo "$XPSCMYKDevice" >&6; }
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
33693 $as_echo_n "checking for xps mono device... " >&6; }
33694 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33697 XPSMonoDevice=$XPSColorDevice
33699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
33700 $as_echo "$XPSMonoDevice" >&6; }
33709 # Ghostscript related configuration.
33711 GSAlphaDevice=pngalpha
33712 GSColorDevice=pnmraw
33714 GSMonoDevice=pbmraw
33715 GSPDFDevice=pdfwrite
33717 GSEPSDevice=epswrite
33718 GSVersion='unknown'
33719 if test $have_gs = 'yes'; then
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33721 $as_echo "-------------------------------------------------------------" >&6; }
33722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
33723 $as_echo_n "checking for Ghostscript... " >&6; }
33724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
33727 $as_echo_n "checking for Ghostscript version... " >&6; }
33728 if GSVersion=`$PSDelegate --version`; then
33731 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
33733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
33734 $as_echo "$GSVersion" >&6; }
33737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
33738 $as_echo_n "checking for gs alpha device... " >&6; }
33739 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33742 GSAlphaDevice=pnmraw
33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
33745 $as_echo "$GSAlphaDevice" >&6; }
33748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
33749 $as_echo_n "checking for gs color device... " >&6; }
33750 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33753 GSColorDevice=pnmraw
33755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
33756 $as_echo "$GSColorDevice" >&6; }
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
33760 $as_echo_n "checking for gs CMYK device... " >&6; }
33761 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33764 GSCMYKDevice=bmpsep8
33766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
33767 $as_echo "$GSCMYKDevice" >&6; }
33770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
33771 $as_echo_n "checking for gs mono device... " >&6; }
33772 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33775 GSMonoDevice=$GSColorDevice
33777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
33778 $as_echo "$GSMonoDevice" >&6; }
33781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
33782 $as_echo_n "checking for gs PDF writing device... " >&6; }
33783 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33786 GSPDFDevice=nodevice
33788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
33789 $as_echo "$GSPDFDevice" >&6; }
33792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
33793 $as_echo_n "checking for gs PS writing device... " >&6; }
33794 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33797 GSPSDevice=nodevice
33799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
33800 $as_echo "$GSPSDevice" >&6; }
33803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
33804 $as_echo_n "checking for gs EPS writing device... " >&6; }
33805 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33808 GSEPSDevice=nodevice
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
33811 $as_echo "$GSEPSDevice" >&6; }
33824 # PerlMagick-related configuration
33827 # Look for PERL if PerlMagick requested
33828 # If name/path of desired PERL interpreter is specified, look for that one first
33830 if test "$with_perl" != 'no'; then
33831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33832 $as_echo "-------------------------------------------------------------" >&6; }
33833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
33834 $as_echo_n "checking for Perl... " >&6; }
33835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33837 if test "$with_perl" != 'yes'; then
33838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
33839 $as_echo_n "checking for perl... " >&6; }
33840 if ${ac_cv_path_PERL+:} false; then :
33841 $as_echo_n "(cached) " >&6
33843 ac_cv_path_PERL="$with_perl"
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
33846 $as_echo "$ac_cv_path_PERL" >&6; };
33847 PERL=$ac_cv_path_PERL
33848 have_perl="$ac_cv_path_PERL"
33850 for ac_prog in perl perl5
33852 # Extract the first word of "$ac_prog", so it can be a program name with args.
33853 set dummy $ac_prog; ac_word=$2
33854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33855 $as_echo_n "checking for $ac_word... " >&6; }
33856 if ${ac_cv_path_PERL+:} false; then :
33857 $as_echo_n "(cached) " >&6
33861 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33865 for as_dir in $PATH
33868 test -z "$as_dir" && as_dir=.
33869 for ac_exec_ext in '' $ac_executable_extensions; do
33870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33871 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33882 PERL=$ac_cv_path_PERL
33883 if test -n "$PERL"; then
33884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33885 $as_echo "$PERL" >&6; }
33887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33888 $as_echo "no" >&6; }
33892 test -n "$PERL" && break
33894 if test "$ac_cv_path_PERL"; then
33895 have_perl="$ac_cv_path_PERL"
33900 if test "$with_perl" != 'yes' ; then
33901 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33904 PERL_SUPPORTS_DESTDIR='no'
33906 with_perl_static='no'
33907 with_perl_dynamic='no'
33908 if test "$have_perl" != 'no'; then
33909 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33910 with_perl_static='yes'
33912 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33913 with_perl_dynamic='yes'
33915 # Is PERL's MakeMaker new enough to support DESTDIR?
33920 if test -n "$PERL"; then :
33922 ax_perl_version="5.8.1"
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33925 $as_echo_n "checking for perl version... " >&6; }
33927 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33930 $as_echo "$perl_version" >&6; }
33932 PERL_VERSION=$perl_version
33938 # Used to indicate true or false condition
33939 ax_compare_version=false
33941 # Convert the two version strings to be compared into a format that
33942 # allows a simple string comparison. The end result is that a version
33943 # string of the form 1.12.5-r617 will be converted to the form
33944 # 0001001200050617. In other words, each number is zero padded to four
33945 # digits, and non digits are removed.
33947 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33948 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33949 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33950 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33954 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33955 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33956 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33957 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33961 ax_compare_version=`echo "x$ax_compare_version_A
33962 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33966 if test "$ax_compare_version" = "true" ; then
33969 PERL_SUPPORTS_DESTDIR='yes'
33973 PERL_SUPPORTS_DESTDIR='no'
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33981 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33982 PERL_SUPPORTS_DESTDIR='no'
33987 if test "$have_perl" != 'no'; then
33989 WITH_PERL_FALSE='#'
33995 if test $with_perl_static = 'yes'; then
33996 WITH_PERL_STATIC_TRUE=
33997 WITH_PERL_STATIC_FALSE='#'
33999 WITH_PERL_STATIC_TRUE='#'
34000 WITH_PERL_STATIC_FALSE=
34003 if test $with_perl_dynamic = 'yes'; then
34004 WITH_PERL_DYNAMIC_TRUE=
34005 WITH_PERL_DYNAMIC_FALSE='#'
34007 WITH_PERL_DYNAMIC_TRUE='#'
34008 WITH_PERL_DYNAMIC_FALSE=
34013 # Determine path to pick up MagickCore library from for use with building PerlMagick
34014 MAGICKCORE_PATH="${LIB_DIR}"
34015 if test $with_perl_static = 'yes'; then
34016 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34017 libtool_objdir=$objdir
34019 # Linker search path to library, followed by -lMagickCore
34020 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
34024 # Create a simple string containing format names for all delegate libraries
34026 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34027 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34028 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34029 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34030 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34031 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34032 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34033 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34034 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34035 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34036 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34037 if test "$have_jpeg" = 'yes'; then
34038 DELEGATES="$DELEGATES jpeg";
34039 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34041 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
34042 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
34043 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34044 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
34045 if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
34046 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34047 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34048 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34049 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34050 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34051 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34052 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34053 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34054 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34059 # Handle special compiler flags
34062 # Add '-p' if prof source profiling support enabled
34063 if test "$enable_prof" = 'yes'; then
34064 CFLAGS="-p $CFLAGS"
34065 CXXFLAGS="-p $CXXFLAGS"
34066 LDFLAGS="-p $LDFLAGS"
34069 # Add '-pg' if gprof source profiling support enabled
34070 if test "$enable_gprof" = 'yes'; then
34071 CFLAGS="-pg $CFLAGS"
34072 CXXFLAGS="-pg $CXXFLAGS"
34073 LDFLAGS="-pg $LDFLAGS"
34076 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34077 # This is a gcc-specific feature
34078 if test "$enable_gcov" = 'yes'; then
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
34080 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
34081 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
34082 $as_echo_n "(cached) " >&6
34084 ac_check_lib_save_LIBS=$LIBS
34085 LIBS="-lgcov $LIBS"
34086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34087 /* end confdefs.h. */
34089 /* Override any GCC internal prototype to avoid an error.
34090 Use char because int might match the return type of a GCC
34091 builtin and then its argument prototype would still apply. */
34095 char _gcov_init ();
34099 return _gcov_init ();
34104 if ac_fn_c_try_link "$LINENO"; then :
34105 ac_cv_lib_gcov__gcov_init=yes
34107 ac_cv_lib_gcov__gcov_init=no
34109 rm -f core conftest.err conftest.$ac_objext \
34110 conftest$ac_exeext conftest.$ac_ext
34111 LIBS=$ac_check_lib_save_LIBS
34113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
34114 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
34115 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
34116 cat >>confdefs.h <<_ACEOF
34117 #define HAVE_LIBGCOV 1
34120 LIBS="-lgcov $LIBS"
34124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
34125 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
34126 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
34127 $as_echo_n "(cached) " >&6
34129 ac_check_lib_save_LIBS=$LIBS
34130 LIBS="-lgcov $LIBS"
34131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34132 /* end confdefs.h. */
34134 /* Override any GCC internal prototype to avoid an error.
34135 Use char because int might match the return type of a GCC
34136 builtin and then its argument prototype would still apply. */
34140 char __gcov_init ();
34144 return __gcov_init ();
34149 if ac_fn_c_try_link "$LINENO"; then :
34150 ac_cv_lib_gcov___gcov_init=yes
34152 ac_cv_lib_gcov___gcov_init=no
34154 rm -f core conftest.err conftest.$ac_objext \
34155 conftest$ac_exeext conftest.$ac_ext
34156 LIBS=$ac_check_lib_save_LIBS
34158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
34159 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
34160 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
34161 cat >>confdefs.h <<_ACEOF
34162 #define HAVE_LIBGCOV 1
34165 LIBS="-lgcov $LIBS"
34169 case "$target_os" in
34171 OSX_GCOV_LDFLAG="-Wl,-single_module"
34178 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34179 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34180 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34184 # Build library dependency list for libMagickCore
34187 MAGICK_LIBLTDL='' # Libltdl for build
34188 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34189 MAGICK_LTDLDEPS='' # extra libltdl dependencies
34190 if test "$with_ltdl" != 'no'
34192 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34193 MAGICK_API_LIBLTDL='-lltdl'
34195 MAGICK_LIBLTDL=${LIBLTDL}
34196 MAGICK_LTDLDEPS=${LTDLDEPS}
34201 if test "$with_modules" != 'no'; then
34202 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"
34204 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 $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
34209 # Remove extraneous spaces from output variables (asthetic)
34211 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34212 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34213 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34214 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34216 CC=`echo $CC | sed -e 's/ */ /g'`
34217 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34218 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34219 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34220 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34221 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34222 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34223 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34224 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34225 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34227 # Pass only user-provided LIBS as "global" libraries
34230 #AC_SUBST(CPPFLAGS)
34233 #AC_SUBST(X_PRE_LIBS)
34235 #AC_SUBST(X_EXTRA_LIBS)
34237 MAGICK_CFLAGS=$CFLAGS
34238 MAGICK_CXXFLAGS="$CXXFLAGS"
34239 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34240 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34241 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34242 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34252 # Set configured scripts to executable.
34253 ac_config_commands="$ac_config_commands default"
34255 ac_config_commands="$ac_config_commands MagickCore-config.in"
34257 ac_config_commands="$ac_config_commands Magick-config.in"
34259 ac_config_commands="$ac_config_commands MagickWand-config.in"
34261 ac_config_commands="$ac_config_commands Wand-config.in"
34263 ac_config_commands="$ac_config_commands Magick++-config.in"
34265 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34269 $as_echo "-------------------------------------------------------------" >&6; }
34270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
34271 $as_echo "Update ImageMagick configuration" >&6; }
34272 cat >confcache <<\_ACEOF
34273 # This file is a shell script that caches the results of configure
34274 # tests run on this system so they can be shared between configure
34275 # scripts and configure runs, see configure's option --config-cache.
34276 # It is not useful on other systems. If it contains results you don't
34277 # want to keep, you may remove or edit it.
34279 # config.status only pays attention to the cache file if you give it
34280 # the --recheck option to rerun configure.
34282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34284 # following values.
34288 # The following way of writing the cache mishandles newlines in values,
34289 # but we know of no workaround that is simple, portable, and efficient.
34290 # So, we kill variables containing newlines.
34291 # Ultrix sh set writes to stderr and can't be redirected directly,
34292 # and sets the high bit in the cache file unless we assign to the vars.
34294 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34295 eval ac_val=\$$ac_var
34299 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34300 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34303 _ | IFS | as_nl) ;; #(
34304 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34305 *) { eval $ac_var=; unset $ac_var;} ;;
34311 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34312 *${as_nl}ac_space=\ *)
34313 # `set' does not quote correctly, so add quotes: double-quote
34314 # substitution turns \\\\ into \\, and sed turns \\ into \.
34317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34320 # `set' quotes correctly as required by POSIX, so do not add quotes.
34321 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34330 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34332 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34334 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34335 if test -w "$cache_file"; then
34336 if test "x$cache_file" != "x/dev/null"; then
34337 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34338 $as_echo "$as_me: updating cache $cache_file" >&6;}
34339 if test ! -f "$cache_file" || test -h "$cache_file"; then
34340 cat confcache >"$cache_file"
34342 case $cache_file in #(
34344 mv -f confcache "$cache_file"$$ &&
34345 mv -f "$cache_file"$$ "$cache_file" ;; #(
34347 mv -f confcache "$cache_file" ;;
34352 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34353 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34358 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34359 # Let make expand exec_prefix.
34360 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34362 DEFS=-DHAVE_CONFIG_H
34367 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34368 # 1. Remove the extension, and $U if already installed.
34369 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34370 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34371 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34372 # will be set to the directory where LIBOBJS objects are built.
34373 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34374 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34376 LIBOBJS=$ac_libobjs
34378 LTLIBOBJS=$ac_ltlibobjs
34381 if test -n "$EXEEXT"; then
34383 am__EXEEXT_FALSE='#'
34385 am__EXEEXT_TRUE='#'
34389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34390 as_fn_error $? "conditional \"AMDEP\" was never defined.
34391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34394 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34397 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34398 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34401 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34402 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34405 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
34406 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
34407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34409 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
34410 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
34411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34413 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
34414 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
34415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34417 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
34418 as_fn_error $? "conditional \"USING_CL\" was never defined.
34419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34421 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34422 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
34423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34425 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34426 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
34427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34429 LT_CONFIG_H=config/config.h
34433 if test -n "$_LT_LIBOBJS"; then
34434 # Remove the extension.
34435 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34436 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34437 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34438 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34441 ltdl_LIBOBJS=$_ltdl_libobjs
34443 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34446 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
34447 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
34448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34450 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
34451 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
34452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34454 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
34455 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
34456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34458 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34459 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
34460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34463 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34464 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34467 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
34468 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
34469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34471 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
34472 as_fn_error $? "conditional \"HasUMEM\" was never defined.
34473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34475 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
34476 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
34477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34479 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
34480 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
34481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34483 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
34484 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
34485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34487 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
34488 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
34489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34491 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
34492 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
34493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34495 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
34496 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
34497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34499 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
34500 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
34501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34503 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
34504 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
34505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34507 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
34508 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
34509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34511 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
34512 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
34513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34515 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
34516 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
34517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34519 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
34520 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
34521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34523 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
34524 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
34525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34527 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
34528 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
34529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34531 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
34532 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
34533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34535 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
34536 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
34537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34539 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
34540 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
34541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34543 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34544 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34547 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
34548 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
34549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34551 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
34552 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
34553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34555 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
34556 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
34557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34559 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
34560 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
34561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34563 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
34564 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
34565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34567 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34568 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34571 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
34572 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
34573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34575 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
34576 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
34577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34579 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
34580 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
34581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34583 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
34584 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
34585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34587 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
34588 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
34589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34591 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
34592 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
34593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34595 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
34596 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
34597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34599 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
34600 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
34601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34604 : "${CONFIG_STATUS=./config.status}"
34606 ac_clean_files_save=$ac_clean_files
34607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34609 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34611 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34613 # Generated by $as_me.
34614 # Run this file to recreate the current configuration.
34615 # Compiler output produced by configure, useful for debugging
34616 # configure, is in config.log if it exists.
34619 ac_cs_recheck=false
34622 SHELL=\${CONFIG_SHELL-$SHELL}
34625 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34626 ## -------------------- ##
34627 ## M4sh Initialization. ##
34628 ## -------------------- ##
34630 # Be more Bourne compatible
34631 DUALCASE=1; export DUALCASE # for MKS sh
34632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34635 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34636 # is contrary to our usage. Disable this feature.
34637 alias -g '${1+"$@"}'='"$@"'
34638 setopt NO_GLOB_SUBST
34640 case `(set -o) 2>/dev/null` in #(
34652 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34653 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34655 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34656 # Prefer a ksh shell builtin over an external printf program on Solaris,
34657 # but without wasting forks for bash or zsh.
34658 if test -z "$BASH_VERSION$ZSH_VERSION" \
34659 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34660 as_echo='print -r --'
34661 as_echo_n='print -rn --'
34662 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34663 as_echo='printf %s\n'
34664 as_echo_n='printf %s'
34666 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34667 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34668 as_echo_n='/usr/ucb/echo -n'
34670 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34671 as_echo_n_body='eval
34675 expr "X$arg" : "X\\(.*\\)$as_nl";
34676 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34678 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34680 export as_echo_n_body
34681 as_echo_n='sh -c $as_echo_n_body as_echo'
34683 export as_echo_body
34684 as_echo='sh -c $as_echo_body as_echo'
34687 # The user is always right.
34688 if test "${PATH_SEPARATOR+set}" != set; then
34690 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34691 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34698 # We need space, tab and new line, in precisely that order. Quoting is
34699 # there to prevent editors from complaining about space-tab.
34700 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34701 # splitting by setting IFS to empty value.)
34704 # Find who we are. Look in the path if we contain no directory separator.
34707 *[\\/]* ) as_myself=$0 ;;
34708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34709 for as_dir in $PATH
34712 test -z "$as_dir" && as_dir=.
34713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34719 # We did not find ourselves, most probably we were run as `sh COMMAND'
34720 # in which case we are not to be found in the path.
34721 if test "x$as_myself" = x; then
34724 if test ! -f "$as_myself"; then
34725 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34729 # Unset variables that we do not need and which cause bugs (e.g. in
34730 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
34731 # suppresses any "Segmentation fault" message there. '((' could
34732 # trigger a bug in pdksh 5.2.14.
34733 for as_var in BASH_ENV ENV MAIL MAILPATH
34734 do eval test x\${$as_var+set} = xset \
34735 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34751 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34752 # ----------------------------------------
34753 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34754 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34755 # script with STATUS, using 1 if that was 0.
34758 as_status=$1; test $as_status -eq 0 && as_status=1
34760 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34761 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34763 $as_echo "$as_me: error: $2" >&2
34764 as_fn_exit $as_status
34768 # as_fn_set_status STATUS
34769 # -----------------------
34770 # Set $? to STATUS, without forking.
34771 as_fn_set_status ()
34774 } # as_fn_set_status
34776 # as_fn_exit STATUS
34777 # -----------------
34778 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34782 as_fn_set_status $1
34788 # Portably unset VAR.
34791 { eval $1=; unset $1;}
34793 as_unset=as_fn_unset
34794 # as_fn_append VAR VALUE
34795 # ----------------------
34796 # Append the text in VALUE to the end of the definition contained in VAR. Take
34797 # advantage of any shell optimizations that allow amortized linear growth over
34798 # repeated appends, instead of the typical quadratic growth present in naive
34800 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34801 eval 'as_fn_append ()
34812 # as_fn_arith ARG...
34813 # ------------------
34814 # Perform arithmetic evaluation on the ARGs, and store the result in the
34815 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34816 # must be portable across $(()) and expr.
34817 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34818 eval 'as_fn_arith ()
34825 as_val=`expr "$@" || test $? -eq 1`
34830 if expr a : '\(a\)' >/dev/null 2>&1 &&
34831 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34837 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34838 as_basename=basename
34843 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34849 as_me=`$as_basename -- "$0" ||
34850 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34851 X"$0" : 'X\(//\)$' \| \
34852 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34854 sed '/^.*\/\([^/][^/]*\)\/*$/{
34868 # Avoid depending upon Character Ranges.
34869 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34870 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34871 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34872 as_cr_digits='0123456789'
34873 as_cr_alnum=$as_cr_Letters$as_cr_digits
34875 ECHO_C= ECHO_N= ECHO_T=
34876 case `echo -n x` in #(((((
34878 case `echo 'xy\c'` in
34879 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34881 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34888 rm -f conf$$ conf$$.exe conf$$.file
34889 if test -d conf$$.dir; then
34890 rm -f conf$$.dir/conf$$.file
34893 mkdir conf$$.dir 2>/dev/null
34895 if (echo >conf$$.file) 2>/dev/null; then
34896 if ln -s conf$$.file conf$$ 2>/dev/null; then
34898 # ... but there are two gotchas:
34899 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34900 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34901 # In both cases, we have to default to `cp -p'.
34902 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34904 elif ln conf$$.file conf$$ 2>/dev/null; then
34912 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34913 rmdir conf$$.dir 2>/dev/null
34918 # Create "$as_dir" as a directory, including parents if necessary.
34923 -*) as_dir=./$as_dir;;
34925 test -d "$as_dir" || eval $as_mkdir_p || {
34929 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34930 *) as_qdir=$as_dir;;
34932 as_dirs="'$as_qdir' $as_dirs"
34933 as_dir=`$as_dirname -- "$as_dir" ||
34934 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34935 X"$as_dir" : 'X\(//\)[^/]' \| \
34936 X"$as_dir" : 'X\(//\)$' \| \
34937 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34938 $as_echo X"$as_dir" |
34939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34943 /^X\(\/\/\)[^/].*/{
34956 test -d "$as_dir" && break
34958 test -z "$as_dirs" || eval "mkdir $as_dirs"
34959 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34963 if mkdir -p . 2>/dev/null; then
34964 as_mkdir_p='mkdir -p "$as_dir"'
34966 test -d ./-p && rmdir ./-p
34970 if test -x / >/dev/null 2>&1; then
34971 as_test_x='test -x'
34973 if ls -dL / >/dev/null 2>&1; then
34980 if test -d "$1"; then
34986 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34987 ???[sx]*):;;*)false;;esac;fi
34991 as_executable_p=$as_test_x
34993 # Sed expression to map a string onto a valid CPP name.
34994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34996 # Sed expression to map a string onto a valid variable name.
34997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35001 ## ----------------------------------- ##
35002 ## Main body of $CONFIG_STATUS script. ##
35003 ## ----------------------------------- ##
35005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35008 # Save the log message, to keep $0 and so on meaningful, and to
35009 # report actual input values of CONFIG_FILES etc. instead of their
35010 # values after options handling.
35012 This file was extended by ImageMagick $as_me 7.0.0, which was
35013 generated by GNU Autoconf 2.68. Invocation command line was
35015 CONFIG_FILES = $CONFIG_FILES
35016 CONFIG_HEADERS = $CONFIG_HEADERS
35017 CONFIG_LINKS = $CONFIG_LINKS
35018 CONFIG_COMMANDS = $CONFIG_COMMANDS
35021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35026 case $ac_config_files in *"
35027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35030 case $ac_config_headers in *"
35031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35036 # Files that config.status was made for.
35037 config_files="$ac_config_files"
35038 config_headers="$ac_config_headers"
35039 config_commands="$ac_config_commands"
35043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35045 \`$as_me' instantiates files and other configuration actions
35046 from templates according to the current configuration. Unless the files
35047 and actions are specified as TAGs, all are instantiated by default.
35049 Usage: $0 [OPTION]... [TAG]...
35051 -h, --help print this help, then exit
35052 -V, --version print version number and configuration settings, then exit
35053 --config print configuration, then exit
35054 -q, --quiet, --silent
35055 do not print progress messages
35056 -d, --debug don't remove temporary files
35057 --recheck update $as_me by reconfiguring in the same conditions
35058 --file=FILE[:TEMPLATE]
35059 instantiate the configuration file FILE
35060 --header=FILE[:TEMPLATE]
35061 instantiate the configuration header FILE
35063 Configuration files:
35066 Configuration headers:
35069 Configuration commands:
35072 Report bugs to <http://www.imagemagick.org>."
35075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35078 ImageMagick config.status 7.0.0
35079 configured by $0, generated by GNU Autoconf 2.68,
35080 with options \\"\$ac_cs_config\\"
35082 Copyright (C) 2010 Free Software Foundation, Inc.
35083 This config.status script is free software; the Free Software Foundation
35084 gives unlimited permission to copy, distribute and modify it."
35091 test -n "\$AWK" || AWK=awk
35094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35095 # The default lists apply if the user does not specify any file.
35101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35118 # Handling of the options.
35119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35122 $as_echo "$ac_cs_version"; exit ;;
35123 --config | --confi | --conf | --con | --co | --c )
35124 $as_echo "$ac_cs_config"; exit ;;
35125 --debug | --debu | --deb | --de | --d | -d )
35127 --file | --fil | --fi | --f )
35130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35131 '') as_fn_error $? "missing file argument" ;;
35133 as_fn_append CONFIG_FILES " '$ac_optarg'"
35134 ac_need_defaults=false;;
35135 --header | --heade | --head | --hea )
35138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35141 ac_need_defaults=false;;
35143 # Conflict between --help and --header
35144 as_fn_error $? "ambiguous option: \`$1'
35145 Try \`$0 --help' for more information.";;
35146 --help | --hel | -h )
35147 $as_echo "$ac_cs_usage"; exit ;;
35148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35152 # This is an error.
35153 -*) as_fn_error $? "unrecognized option: \`$1'
35154 Try \`$0 --help' for more information." ;;
35156 *) as_fn_append ac_config_targets " $1"
35157 ac_need_defaults=false ;;
35163 ac_configure_extra_args=
35165 if $ac_cs_silent; then
35167 ac_configure_extra_args="$ac_configure_extra_args --silent"
35171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35172 if \$ac_cs_recheck; then
35173 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35176 CONFIG_SHELL='$SHELL'
35177 export CONFIG_SHELL
35182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35187 ## Running $as_me. ##
35193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35201 # The HP-UX ksh and POSIX shell print the target directory to stdout
35202 # if CDPATH is set.
35203 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35205 sed_quote_subst='$sed_quote_subst'
35206 double_quote_subst='$double_quote_subst'
35207 delay_variable_subst='$delay_variable_subst'
35208 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35209 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35210 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35211 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35212 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35213 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35214 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35215 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35216 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35217 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35218 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35219 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35220 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35221 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35222 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35223 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35224 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35225 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35226 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35227 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35228 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35229 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35230 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35239 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35240 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35241 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35242 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35243 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35244 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35245 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35246 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35247 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35248 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35249 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35250 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35251 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35252 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35253 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35254 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35255 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35256 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35257 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35258 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35259 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35260 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35261 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35262 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35263 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35264 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"`'
35265 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35266 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35267 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35268 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35269 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35270 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35271 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35272 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35273 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35274 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35275 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35276 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35277 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35278 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35279 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35280 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35281 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35282 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35283 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35284 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35285 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35286 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35287 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35288 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35289 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35290 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35291 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35292 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35293 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35294 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35295 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35296 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35297 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35298 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35299 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35300 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35301 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35302 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35303 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35304 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35305 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35306 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35307 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35308 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35309 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35310 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35311 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35312 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35313 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35314 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35315 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35316 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35317 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35318 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35319 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35320 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35321 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35322 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35323 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35324 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35325 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35326 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35327 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35328 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35329 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35330 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35331 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35332 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35333 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35334 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35335 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35336 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35337 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35338 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35339 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35340 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35341 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35342 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35343 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35344 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35345 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35346 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35347 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35348 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35349 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35350 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35351 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35352 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35353 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35354 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35355 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35356 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35357 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35358 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35359 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35360 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35361 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35362 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35363 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35364 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35365 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35366 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35367 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35368 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35369 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35370 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35371 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35372 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35373 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35374 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35375 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35376 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35377 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35378 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35379 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35380 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35381 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35382 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35383 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35384 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35385 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35386 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35387 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35388 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35389 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35390 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35391 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35392 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35393 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35396 LTCFLAGS='$LTCFLAGS'
35397 compiler='$compiler_DEFAULT'
35399 # A function that is used when there is no print builtin or printf.
35400 func_fallback_echo ()
35402 eval 'cat <<_LTECHO_EOF
35407 # Quote evaled strings.
35423 deplibs_check_method \
35427 sharedlib_from_linklib_cmd \
35430 archiver_list_spec \
35436 lt_cv_sys_global_symbol_pipe \
35437 lt_cv_sys_global_symbol_to_cdecl \
35438 lt_cv_sys_global_symbol_to_c_name_address \
35439 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35440 nm_file_list_spec \
35441 lt_prog_compiler_no_builtin_flag \
35442 lt_prog_compiler_pic \
35443 lt_prog_compiler_wl \
35444 lt_prog_compiler_static \
35445 lt_cv_prog_compiler_c_o \
35454 export_dynamic_flag_spec \
35455 whole_archive_flag_spec \
35456 compiler_needs_object \
35458 allow_undefined_flag \
35459 no_undefined_flag \
35460 hardcode_libdir_flag_spec \
35461 hardcode_libdir_flag_spec_ld \
35462 hardcode_libdir_separator \
35466 variables_saved_for_relink \
35468 library_names_spec \
35470 install_override_mode \
35474 compiler_lib_search_dirs \
35479 compiler_lib_search_path \
35483 lt_prog_compiler_no_builtin_flag_CXX \
35484 lt_prog_compiler_pic_CXX \
35485 lt_prog_compiler_wl_CXX \
35486 lt_prog_compiler_static_CXX \
35487 lt_cv_prog_compiler_c_o_CXX \
35488 export_dynamic_flag_spec_CXX \
35489 whole_archive_flag_spec_CXX \
35490 compiler_needs_object_CXX \
35492 allow_undefined_flag_CXX \
35493 no_undefined_flag_CXX \
35494 hardcode_libdir_flag_spec_CXX \
35495 hardcode_libdir_flag_spec_ld_CXX \
35496 hardcode_libdir_separator_CXX \
35497 exclude_expsyms_CXX \
35498 include_expsyms_CXX \
35499 file_list_spec_CXX \
35500 compiler_lib_search_dirs_CXX \
35501 predep_objects_CXX \
35502 postdep_objects_CXX \
35505 compiler_lib_search_path_CXX; do
35506 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35507 *[\\\\\\\`\\"\\\$]*)
35508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35516 # Double-quote double-evaled strings.
35517 for var in reload_cmds \
35518 old_postinstall_cmds \
35519 old_postuninstall_cmds \
35521 extract_expsyms_cmds \
35522 old_archive_from_new_cmds \
35523 old_archive_from_expsyms_cmds \
35525 archive_expsym_cmds \
35527 module_expsym_cmds \
35528 export_symbols_cmds \
35532 postuninstall_cmds \
35534 sys_lib_search_path_spec \
35535 sys_lib_dlsearch_path_spec \
35537 old_archive_cmds_CXX \
35538 old_archive_from_new_cmds_CXX \
35539 old_archive_from_expsyms_cmds_CXX \
35541 archive_expsym_cmds_CXX \
35543 module_expsym_cmds_CXX \
35544 export_symbols_cmds_CXX \
35546 postlink_cmds_CXX; do
35547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35548 *[\\\\\\\`\\"\\\$]*)
35549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35557 ac_aux_dir='$ac_aux_dir'
35558 xsi_shell='$xsi_shell'
35559 lt_shell_append='$lt_shell_append'
35561 # See if we are running on zsh, and set the options which allow our
35562 # commands through without removal of \ escapes INIT.
35563 if test -n "\${ZSH_VERSION+set}" ; then
35564 setopt NO_GLOB_SUBST
35570 TIMESTAMP='$TIMESTAMP'
35581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35583 # Handling of arguments.
35584 for ac_config_target in $ac_config_targets
35586 case $ac_config_target in
35587 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
35588 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
35589 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35590 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35591 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35592 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35593 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
35594 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
35595 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35596 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35597 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35598 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35599 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
35600 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
35601 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35602 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
35603 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35604 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35605 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
35606 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35607 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35608 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35609 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35610 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35611 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35612 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35613 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35614 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35615 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35616 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35617 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35618 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35619 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35620 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35621 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35622 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
35623 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35624 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
35625 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35626 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35627 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35628 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
35629 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
35630 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
35631 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
35632 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35633 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35635 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35640 # If the user did not use the arguments to specify the items to instantiate,
35641 # then the envvar interface is used. Set only those that are not.
35642 # We use the long form for the default assignment because of an extremely
35643 # bizarre bug on SunOS 4.1.3.
35644 if $ac_need_defaults; then
35645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35646 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35650 # Have a temporary directory for convenience. Make it in the build tree
35651 # simply because there is no reason against having it here, and in addition,
35652 # creating and moving files from /tmp can sometimes cause problems.
35653 # Hook for its removal unless debugging.
35654 # Note that there is a small window in which the directory will not be cleaned:
35655 # after its creation but before its name has been assigned to `$tmp'.
35659 trap 'exit_status=$?
35660 : "${ac_tmp:=$tmp}"
35661 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35663 trap 'as_fn_exit 1' 1 2 13 15
35665 # Create a (secure) tmp directory for tmp files.
35668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35672 tmp=./conf$$-$RANDOM
35673 (umask 077 && mkdir "$tmp")
35674 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35677 # Set up the scripts for CONFIG_FILES section.
35678 # No need to generate them if there are no CONFIG_FILES.
35679 # This happens for instance with `./config.status config.h'.
35680 if test -n "$CONFIG_FILES"; then
35683 ac_cr=`echo X | tr X '\015'`
35684 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35685 # But we know of no other shell where ac_cr would be empty at this
35686 # point, so we can use a bashism as a fallback.
35687 if test "x$ac_cr" = x; then
35688 eval ac_cr=\$\'\\r\'
35690 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35691 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35694 ac_cs_awk_cr=$ac_cr
35697 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35702 echo "cat >conf$$subs.awk <<_ACEOF" &&
35703 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35705 } >conf$$subs.sh ||
35706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35707 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35709 for ac_last_try in false false false false false :; do
35710 . ./conf$$subs.sh ||
35711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
35714 if test $ac_delim_n = $ac_delim_num; then
35716 elif $ac_last_try; then
35717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35722 rm -f conf$$subs.sh
35724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35725 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
35729 s/^/S["/; s/!.*/"]=/
35739 s/\(.\{148\}\)..*/\1/
35741 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35753 s/\(.\{148\}\)..*/\1/
35755 s/["\\]/\\&/g; s/^/"/; s/$/"/
35759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35764 ' <conf$$subs.awk | sed '
35769 ' >>$CONFIG_STATUS || ac_write_fail=1
35770 rm -f conf$$subs.awk
35771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35773 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35774 for (key in S) S_is_set[key] = 1
35780 nfields = split(line, field, "@")
35782 len = length(field[1])
35783 for (i = 2; i < nfields; i++) {
35785 keylen = length(key)
35786 if (S_is_set[key]) {
35788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35789 len += length(value) + length(field[++i])
35800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35801 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35802 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35805 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35806 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35809 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35810 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35811 # trailing colons and then remove the whole line if VPATH becomes empty
35812 # (actually we leave an empty line to preserve line numbers).
35813 if test "x$srcdir" = x.; then
35814 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35833 fi # test -n "$CONFIG_FILES"
35835 # Set up the scripts for CONFIG_HEADERS section.
35836 # No need to generate them if there are no CONFIG_HEADERS.
35837 # This happens for instance with `./config.status Makefile'.
35838 if test -n "$CONFIG_HEADERS"; then
35839 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35843 # Transform confdefs.h into an awk script `defines.awk', embedded as
35844 # here-document in config.status, that substitutes the proper values into
35845 # config.h.in to produce config.h.
35847 # Create a delimiter string that does not exist in confdefs.h, to ease
35848 # handling of long lines.
35850 for ac_last_try in false false :; do
35851 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35852 if test -z "$ac_tt"; then
35854 elif $ac_last_try; then
35855 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35861 # For the awk script, D is an array of macro values keyed by name,
35862 # likewise P contains macro parameters if any. Preserve backslash
35863 # newline sequences.
35865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35867 s/.\{148\}/&'"$ac_delim"'/g
35870 s/^[ ]*#[ ]*define[ ][ ]*/ /
35877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35884 D["\1"]=" \3\\\\\\n"\\/p
35886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35891 s/.\{148\}/&'"$ac_delim"'/g
35896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35901 ' <confdefs.h | sed '
35902 s/'"$ac_delim"'/"\\\
35903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35906 for (key in D) D_is_set[key] = 1
35909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35911 split(line, arg, " ")
35912 if (arg[1] == "#") {
35916 defundef = substr(arg[1], 2)
35919 split(mac1, mac2, "(") #)
35921 prefix = substr(line, 1, index(line, defundef) - 1)
35922 if (D_is_set[macro]) {
35923 # Preserve the white space surrounding the "#".
35924 print prefix "define", macro P[macro] D[macro]
35927 # Replace #undef with comments. This is necessary, for example,
35928 # in the case of _POSIX_SOURCE, which is predefined and required
35929 # on some systems where configure will not decide to define it.
35930 if (defundef == "undef") {
35931 print "/*", prefix defundef, macro, "*/"
35939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35940 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35941 fi # test -n "$CONFIG_HEADERS"
35944 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35949 :[FHLC]) ac_mode=$ac_tag; continue;;
35951 case $ac_mode$ac_tag in
35953 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35954 :[FH]-) ac_tag=-:-;;
35955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35972 -) ac_f="$ac_tmp/stdin";;
35973 *) # Look for the file first in the build tree, then in the source tree
35974 # (if the path is not absolute). The absolute path cannot be DOS-style,
35975 # because $ac_f cannot contain `:'.
35979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35981 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35984 as_fn_append ac_file_inputs " '$ac_f'"
35987 # Let's still pretend it is `configure' which instantiates (i.e., don't
35988 # use $as_me), people would be surprised to read:
35989 # /* config.h. Generated by config.status. */
35990 configure_input='Generated from '`
35991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35993 if test x"$ac_file" != x-; then
35994 configure_input="$ac_file. $configure_input"
35995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35996 $as_echo "$as_me: creating $ac_file" >&6;}
35998 # Neutralize special characters interpreted by sed in replacement strings.
35999 case $configure_input in #(
36000 *\&* | *\|* | *\\* )
36001 ac_sed_conf_input=`$as_echo "$configure_input" |
36002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36003 *) ac_sed_conf_input=$configure_input;;
36007 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36013 ac_dir=`$as_dirname -- "$ac_file" ||
36014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36015 X"$ac_file" : 'X\(//\)[^/]' \| \
36016 X"$ac_file" : 'X\(//\)$' \| \
36017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36018 $as_echo X"$ac_file" |
36019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36023 /^X\(\/\/\)[^/].*/{
36036 as_dir="$ac_dir"; as_fn_mkdir_p
36040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36043 # A ".." for each directory in $ac_dir_suffix.
36044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36045 case $ac_top_builddir_sub in
36046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36050 ac_abs_top_builddir=$ac_pwd
36051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36052 # for backward compatibility:
36053 ac_top_builddir=$ac_top_build_prefix
36056 .) # We are building in place.
36058 ac_top_srcdir=$ac_top_builddir_sub
36059 ac_abs_top_srcdir=$ac_pwd ;;
36060 [\\/]* | ?:[\\/]* ) # Absolute name.
36061 ac_srcdir=$srcdir$ac_dir_suffix;
36062 ac_top_srcdir=$srcdir
36063 ac_abs_top_srcdir=$srcdir ;;
36064 *) # Relative name.
36065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36066 ac_top_srcdir=$ac_top_build_prefix$srcdir
36067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36082 ac_MKDIR_P=$MKDIR_P
36084 [\\/$]* | ?:[\\/]* ) ;;
36085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36090 # If the template does not know about datarootdir, expand it.
36091 # FIXME: This hack should be removed a few years after 2.60.
36092 ac_datarootdir_hack=; ac_datarootdir_seen=
36103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36104 *datarootdir*) ac_datarootdir_seen=yes;;
36105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36110 ac_datarootdir_hack='
36111 s&@datadir@&$datadir&g
36112 s&@docdir@&$docdir&g
36113 s&@infodir@&$infodir&g
36114 s&@localedir@&$localedir&g
36115 s&@mandir@&$mandir&g
36116 s&\\\${datarootdir}&$datarootdir&g' ;;
36120 # Neutralize VPATH when `$srcdir' = `.'.
36121 # Shell code in configure.ac might set extrasub.
36122 # FIXME: do we really want to maintain this feature?
36123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36124 ac_sed_extra="$ac_vpsub
36127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36130 s|@configure_input@|$ac_sed_conf_input|;t t
36131 s&@top_builddir@&$ac_top_builddir_sub&;t t
36132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36133 s&@srcdir@&$ac_srcdir&;t t
36134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36135 s&@top_srcdir@&$ac_top_srcdir&;t t
36136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36137 s&@builddir@&$ac_builddir&;t t
36138 s&@abs_builddir@&$ac_abs_builddir&;t t
36139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36140 s&@INSTALL@&$ac_INSTALL&;t t
36141 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36142 $ac_datarootdir_hack
36144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36145 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36148 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36150 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36152 which seems to be undefined. Please make sure it is defined" >&5
36153 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36154 which seems to be undefined. Please make sure it is defined" >&2;}
36156 rm -f "$ac_tmp/stdin"
36158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36159 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36167 if test x"$ac_file" != x-; then
36169 $as_echo "/* $configure_input */" \
36170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36171 } >"$ac_tmp/config.h" \
36172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36173 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36174 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36175 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36178 mv "$ac_tmp/config.h" "$ac_file" \
36179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36182 $as_echo "/* $configure_input */" \
36183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36184 || as_fn_error $? "could not create -" "$LINENO" 5
36186 # Compute "$ac_file"'s index in $config_headers.
36189 for _am_header in $config_headers :; do
36190 case $_am_header in
36191 $_am_arg | $_am_arg:* )
36194 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36197 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36198 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36199 X"$_am_arg" : 'X\(//\)[^/]' \| \
36200 X"$_am_arg" : 'X\(//\)$' \| \
36201 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36202 $as_echo X"$_am_arg" |
36203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36207 /^X\(\/\/\)[^/].*/{
36219 s/.*/./; q'`/stamp-h$_am_stamp_count
36222 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36223 $as_echo "$as_me: executing $ac_file commands" >&6;}
36228 case $ac_file$ac_mode in
36229 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
36230 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36231 ac_prefix_conf_PKG=`echo MagickCore`
36232 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36233 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36234 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36235 if test ".$ac_prefix_conf_INP" = "."; then
36236 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36238 *.h) ac_prefix_conf_INP=$ac_file ;;
36241 test ".$ac_prefix_conf_INP" != "." && break
36244 if test ".$ac_prefix_conf_INP" = "."; then
36245 case "$ac_prefix_conf_OUT" in
36246 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36248 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36250 *) ac_prefix_conf_INP=config.h
36254 if test -z "$ac_prefix_conf_PKG" ; then
36255 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
36257 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36258 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36261 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36262 if test -f $ac_prefix_conf_INP ; then
36263 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36264 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36265 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36266 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36267 $as_echo "#endif/" >> conftest.prefix
36268 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36269 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36270 $as_echo "#endif/" >> conftest.prefix
36271 # now executing _script on _DEF input to create _OUT output file
36272 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36273 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36274 echo ' ' >>$tmp/pconfig.h
36275 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36277 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36278 echo ' ' >>$tmp/pconfig.h
36279 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36280 echo "#endif" >>$tmp/pconfig.h
36281 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36283 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36285 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36286 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36287 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36288 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36289 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36290 $as_echo X"$ac_prefix_conf_OUT" |
36291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36295 /^X\(\/\/\)[^/].*/{
36308 as_dir="$ac_dir"; as_fn_mkdir_p
36309 rm -f "$ac_prefix_conf_OUT"
36310 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36312 cp conftest.prefix _configs.sed
36314 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
36319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36320 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36321 # are listed without --file. Let's play safe and only enable the eval
36322 # if we detect the quoting.
36323 case $CONFIG_FILES in
36324 *\'*) eval set x "$CONFIG_FILES" ;;
36325 *) set x $CONFIG_FILES ;;
36330 # Strip MF so we end up with the name of the file.
36331 mf=`echo "$mf" | sed -e 's/:.*$//'`
36332 # Check whether this is an Automake generated Makefile or not.
36333 # We used to match only the files named `Makefile.in', but
36334 # some people rename them; so instead we look at the file content.
36335 # Grep'ing the first line is not enough: some people post-process
36336 # each Makefile.in and add a new line on top of each file to say so.
36337 # Grep'ing the whole file is not good either: AIX grep has a line
36338 # limit of 2048, but all sed's we know have understand at least 4000.
36339 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36340 dirpart=`$as_dirname -- "$mf" ||
36341 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36342 X"$mf" : 'X\(//\)[^/]' \| \
36343 X"$mf" : 'X\(//\)$' \| \
36344 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36350 /^X\(\/\/\)[^/].*/{
36366 # Extract the definition of DEPDIR, am__include, and am__quote
36367 # from the Makefile without running `make'.
36368 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36369 test -z "$DEPDIR" && continue
36370 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36371 test -z "am__include" && continue
36372 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36373 # When using ansi2knr, U may be empty or an underscore; expand it
36374 U=`sed -n 's/^U = //p' < "$mf"`
36375 # Find all dependency output files, they are included files with
36376 # $(DEPDIR) in their names. We invoke sed twice because it is the
36377 # simplest approach to changing $(DEPDIR) to its actual value in the
36379 for file in `sed -n "
36380 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36381 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36382 # Make sure the directory exists.
36383 test -f "$dirpart/$file" && continue
36384 fdir=`$as_dirname -- "$file" ||
36385 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36386 X"$file" : 'X\(//\)[^/]' \| \
36387 X"$file" : 'X\(//\)$' \| \
36388 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36389 $as_echo X"$file" |
36390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36394 /^X\(\/\/\)[^/].*/{
36407 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36408 # echo "creating $dirpart/$file"
36409 echo '# dummy' > "$dirpart/$file"
36416 # See if we are running on zsh, and set the options which allow our
36417 # commands through without removal of \ escapes.
36418 if test -n "${ZSH_VERSION+set}" ; then
36419 setopt NO_GLOB_SUBST
36422 cfgfile="${ofile}T"
36423 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36426 cat <<_LT_EOF >> "$cfgfile"
36429 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36430 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36432 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36434 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36435 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36437 # Written by Gordon Matzigkeit, 1996
36439 # This file is part of GNU Libtool.
36441 # GNU Libtool is free software; you can redistribute it and/or
36442 # modify it under the terms of the GNU General Public License as
36443 # published by the Free Software Foundation; either version 2 of
36444 # the License, or (at your option) any later version.
36446 # As a special exception to the GNU General Public License,
36447 # if you distribute this file as part of a program or library that
36448 # is built using GNU Libtool, you may include this file under the
36449 # same distribution terms that you use for the rest of that program.
36451 # GNU Libtool is distributed in the hope that it will be useful,
36452 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36454 # GNU General Public License for more details.
36456 # You should have received a copy of the GNU General Public License
36457 # along with GNU Libtool; see the file COPYING. If not, a copy
36458 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36459 # obtained by writing to the Free Software Foundation, Inc.,
36460 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36463 # The names of the tagged configurations supported by this script.
36464 available_tags="CXX "
36466 # ### BEGIN LIBTOOL CONFIG
36468 # A sed program that does not truncate output.
36471 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36472 Xsed="\$SED -e 1s/^X//"
36474 # A grep program that handles long lines.
36480 # A literal string matcher.
36483 # Shell to use when invoking shell scripts.
36486 # An echo program that protects backslashes.
36489 # Which release of libtool.m4 was used?
36490 macro_version=$macro_version
36491 macro_revision=$macro_revision
36493 # Assembler program.
36496 # DLL creation program.
36497 DLLTOOL=$lt_DLLTOOL
36499 # Object dumper program.
36500 OBJDUMP=$lt_OBJDUMP
36502 # Whether or not to build shared libraries.
36503 build_libtool_libs=$enable_shared
36505 # Whether or not to build static libraries.
36506 build_old_libs=$enable_static
36508 # What type of objects to build.
36511 # Whether or not to optimize for fast installation.
36512 fast_install=$enable_fast_install
36515 host_alias=$host_alias
36519 # The build system.
36520 build_alias=$build_alias
36524 # A BSD- or MS-compatible name lister.
36527 # Whether we need soft or hard links.
36530 # What is the maximum length of a command?
36531 max_cmd_len=$max_cmd_len
36533 # Object file suffix (normally "o").
36536 # Executable file suffix (normally "").
36539 # whether the shell understands "unset".
36542 # turn spaces into newlines.
36545 # turn newlines into spaces.
36548 # convert \$build file names to \$host format.
36549 to_host_file_cmd=$lt_cv_to_host_file_cmd
36551 # convert \$build files to toolchain format.
36552 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36554 # Method to check whether dependent libraries are shared objects.
36555 deplibs_check_method=$lt_deplibs_check_method
36557 # Command to use when deplibs_check_method = "file_magic".
36558 file_magic_cmd=$lt_file_magic_cmd
36560 # How to find potential files when deplibs_check_method = "file_magic".
36561 file_magic_glob=$lt_file_magic_glob
36563 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36564 want_nocaseglob=$lt_want_nocaseglob
36566 # Command to associate shared and link libraries.
36567 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36572 # Flags to create an archive.
36573 AR_FLAGS=$lt_AR_FLAGS
36575 # How to feed a file listing to the archiver.
36576 archiver_list_spec=$lt_archiver_list_spec
36578 # A symbol stripping program.
36581 # Commands used to install an old-style archive.
36583 old_postinstall_cmds=$lt_old_postinstall_cmds
36584 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36586 # Whether to use a lock for old archive extraction.
36587 lock_old_archive_extraction=$lock_old_archive_extraction
36592 # LTCC compiler flags.
36593 LTCFLAGS=$lt_CFLAGS
36595 # Take the output of nm and produce a listing of raw symbols and C names.
36596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36598 # Transform the output of nm in a proper C declaration.
36599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36601 # Transform the output of nm in a C name address pair.
36602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36604 # Transform the output of nm in a C name address pair when lib prefix is needed.
36605 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36607 # Specify filename containing input files for \$NM.
36608 nm_file_list_spec=$lt_nm_file_list_spec
36610 # The root where to search for dependent libraries,and in which our libraries should be installed.
36611 lt_sysroot=$lt_sysroot
36613 # The name of the directory that contains temporary libtool files.
36616 # Used to examine libraries when file_magic_cmd begins with "file".
36617 MAGIC_CMD=$MAGIC_CMD
36619 # Must we lock files when doing compilation?
36620 need_locks=$lt_need_locks
36623 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36625 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36626 DSYMUTIL=$lt_DSYMUTIL
36628 # Tool to change global to local symbols on Mac OS X.
36631 # Tool to manipulate fat objects and archives on Mac OS X.
36634 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36637 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36638 OTOOL64=$lt_OTOOL64
36640 # Old archive suffix (normally "a").
36643 # Shared library suffix (normally ".so").
36644 shrext_cmds=$lt_shrext_cmds
36646 # The commands to extract the exported symbol list from a shared archive.
36647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36649 # Variables whose values should be saved in libtool wrapper scripts and
36650 # restored at link time.
36651 variables_saved_for_relink=$lt_variables_saved_for_relink
36653 # Do we need the "lib" prefix for modules?
36654 need_lib_prefix=$need_lib_prefix
36656 # Do we need a version for libraries?
36657 need_version=$need_version
36659 # Library versioning type.
36660 version_type=$version_type
36662 # Shared library runtime path variable.
36663 runpath_var=$runpath_var
36665 # Shared library path variable.
36666 shlibpath_var=$shlibpath_var
36668 # Is shlibpath searched before the hard-coded library search path?
36669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36671 # Format of library name prefix.
36672 libname_spec=$lt_libname_spec
36674 # List of archive names. First name is the real one, the rest are links.
36675 # The last name is the one that the linker finds with -lNAME
36676 library_names_spec=$lt_library_names_spec
36678 # The coded name of the library, if different from the real name.
36679 soname_spec=$lt_soname_spec
36681 # Permission mode override for installation of shared libraries.
36682 install_override_mode=$lt_install_override_mode
36684 # Command to use after installation of a shared archive.
36685 postinstall_cmds=$lt_postinstall_cmds
36687 # Command to use after uninstallation of a shared archive.
36688 postuninstall_cmds=$lt_postuninstall_cmds
36690 # Commands used to finish a libtool library installation in a directory.
36691 finish_cmds=$lt_finish_cmds
36693 # As "finish_cmds", except a single script fragment to be evaled but
36695 finish_eval=$lt_finish_eval
36697 # Whether we should hardcode library paths into libraries.
36698 hardcode_into_libs=$hardcode_into_libs
36700 # Compile-time system search path for libraries.
36701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36703 # Run-time system search path for libraries.
36704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36706 # Whether dlopen is supported.
36707 dlopen_support=$enable_dlopen
36709 # Whether dlopen of programs is supported.
36710 dlopen_self=$enable_dlopen_self
36712 # Whether dlopen of statically linked programs is supported.
36713 dlopen_self_static=$enable_dlopen_self_static
36715 # Commands to strip libraries.
36716 old_striplib=$lt_old_striplib
36717 striplib=$lt_striplib
36720 # The linker used to build libraries.
36723 # How to create reloadable object files.
36724 reload_flag=$lt_reload_flag
36725 reload_cmds=$lt_reload_cmds
36727 # Commands used to build an old-style archive.
36728 old_archive_cmds=$lt_old_archive_cmds
36730 # A language specific compiler.
36733 # Is the compiler the GNU compiler?
36736 # Compiler flag to turn off builtin functions.
36737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36739 # Additional compiler flags for building library objects.
36740 pic_flag=$lt_lt_prog_compiler_pic
36742 # How to pass a linker flag through the compiler.
36743 wl=$lt_lt_prog_compiler_wl
36745 # Compiler flag to prevent dynamic linking.
36746 link_static_flag=$lt_lt_prog_compiler_static
36748 # Does compiler simultaneously support -c and -o options?
36749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36751 # Whether or not to add -lc for building shared libraries.
36752 build_libtool_need_lc=$archive_cmds_need_lc
36754 # Whether or not to disallow shared libs when runtime libs are static.
36755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36757 # Compiler flag to allow reflexive dlopens.
36758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36760 # Compiler flag to generate shared objects directly from archives.
36761 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36763 # Whether the compiler copes with passing no objects directly.
36764 compiler_needs_object=$lt_compiler_needs_object
36766 # Create an old-style archive from a shared archive.
36767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36769 # Create a temporary old-style archive to link instead of a shared archive.
36770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36772 # Commands used to build a shared archive.
36773 archive_cmds=$lt_archive_cmds
36774 archive_expsym_cmds=$lt_archive_expsym_cmds
36776 # Commands used to build a loadable module if different from building
36777 # a shared archive.
36778 module_cmds=$lt_module_cmds
36779 module_expsym_cmds=$lt_module_expsym_cmds
36781 # Whether we are building with GNU ld or not.
36782 with_gnu_ld=$lt_with_gnu_ld
36784 # Flag that allows shared libraries with undefined symbols to be built.
36785 allow_undefined_flag=$lt_allow_undefined_flag
36787 # Flag that enforces no undefined symbols.
36788 no_undefined_flag=$lt_no_undefined_flag
36790 # Flag to hardcode \$libdir into a binary during linking.
36791 # This must work even if \$libdir does not exist
36792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36794 # If ld is used when linking, flag to hardcode \$libdir into a binary
36795 # during linking. This must work even if \$libdir does not exist.
36796 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36798 # Whether we need a single "-rpath" flag with a separated argument.
36799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36801 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36802 # DIR into the resulting binary.
36803 hardcode_direct=$hardcode_direct
36805 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36806 # DIR into the resulting binary and the resulting library dependency is
36807 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36808 # library is relocated.
36809 hardcode_direct_absolute=$hardcode_direct_absolute
36811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36812 # into the resulting binary.
36813 hardcode_minus_L=$hardcode_minus_L
36815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36816 # into the resulting binary.
36817 hardcode_shlibpath_var=$hardcode_shlibpath_var
36819 # Set to "yes" if building a shared library automatically hardcodes DIR
36820 # into the library and all subsequent libraries and executables linked
36822 hardcode_automatic=$hardcode_automatic
36824 # Set to yes if linker adds runtime paths of dependent libraries
36825 # to runtime path list.
36826 inherit_rpath=$inherit_rpath
36828 # Whether libtool must link a program against all its dependency libraries.
36829 link_all_deplibs=$link_all_deplibs
36831 # Set to "yes" if exported symbols are required.
36832 always_export_symbols=$always_export_symbols
36834 # The commands to list exported symbols.
36835 export_symbols_cmds=$lt_export_symbols_cmds
36837 # Symbols that should not be listed in the preloaded symbols.
36838 exclude_expsyms=$lt_exclude_expsyms
36840 # Symbols that must always be exported.
36841 include_expsyms=$lt_include_expsyms
36843 # Commands necessary for linking programs (against libraries) with templates.
36844 prelink_cmds=$lt_prelink_cmds
36846 # Commands necessary for finishing linking programs.
36847 postlink_cmds=$lt_postlink_cmds
36849 # Specify filename containing input files.
36850 file_list_spec=$lt_file_list_spec
36852 # How to hardcode a shared library path into an executable.
36853 hardcode_action=$hardcode_action
36855 # The directories searched by this compiler when creating a shared library.
36856 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36858 # Dependencies to place before and after the objects being linked to
36859 # create a shared library.
36860 predep_objects=$lt_predep_objects
36861 postdep_objects=$lt_postdep_objects
36862 predeps=$lt_predeps
36863 postdeps=$lt_postdeps
36865 # The library search path used internally by the compiler when linking
36866 # a shared library.
36867 compiler_lib_search_path=$lt_compiler_lib_search_path
36869 # ### END LIBTOOL CONFIG
36875 cat <<\_LT_EOF >> "$cfgfile"
36876 # AIX sometimes has problems with the GCC collect2 program. For some
36877 # reason, if we set the COLLECT_NAMES environment variable, the problems
36878 # vanish in a puff of smoke.
36879 if test "X${COLLECT_NAMES+set}" != Xset; then
36881 export COLLECT_NAMES
36888 ltmain="$ac_aux_dir/ltmain.sh"
36891 # We use sed instead of cat because bash on DJGPP gets confused if
36892 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36893 # text mode, it properly converts lines to CR/LF. This bash problem
36894 # is reportedly fixed, but why not run on old versions too?
36895 sed '$q' "$ltmain" >> "$cfgfile" \
36896 || (rm -f "$cfgfile"; exit 1)
36898 if test x"$xsi_shell" = xyes; then
36899 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36903 \ */*) func_dirname_result="${1%/*}${2}" ;;\
36904 \ * ) func_dirname_result="${3}" ;;\
36906 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36907 && mv -f "$cfgfile.tmp" "$cfgfile" \
36908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36909 test 0 -eq $? || _lt_function_replace_fail=:
36912 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36915 \ func_basename_result="${1##*/}"\
36916 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36917 && mv -f "$cfgfile.tmp" "$cfgfile" \
36918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36919 test 0 -eq $? || _lt_function_replace_fail=:
36922 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36923 func_dirname_and_basename ()\
36926 \ */*) func_dirname_result="${1%/*}${2}" ;;\
36927 \ * ) func_dirname_result="${3}" ;;\
36929 \ func_basename_result="${1##*/}"\
36930 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36931 && mv -f "$cfgfile.tmp" "$cfgfile" \
36932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36933 test 0 -eq $? || _lt_function_replace_fail=:
36936 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36939 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36940 \ # positional parameters, so assign one to ordinary parameter first.\
36941 \ func_stripname_result=${3}\
36942 \ func_stripname_result=${func_stripname_result#"${1}"}\
36943 \ func_stripname_result=${func_stripname_result%"${2}"}\
36944 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36945 && mv -f "$cfgfile.tmp" "$cfgfile" \
36946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36947 test 0 -eq $? || _lt_function_replace_fail=:
36950 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36951 func_split_long_opt ()\
36953 \ func_split_long_opt_name=${1%%=*}\
36954 \ func_split_long_opt_arg=${1#*=}\
36955 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36956 && mv -f "$cfgfile.tmp" "$cfgfile" \
36957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36958 test 0 -eq $? || _lt_function_replace_fail=:
36961 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36962 func_split_short_opt ()\
36964 \ func_split_short_opt_arg=${1#??}\
36965 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36966 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36967 && mv -f "$cfgfile.tmp" "$cfgfile" \
36968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36969 test 0 -eq $? || _lt_function_replace_fail=:
36972 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36976 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36977 \ *) func_lo2o_result=${1} ;;\
36979 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36980 && mv -f "$cfgfile.tmp" "$cfgfile" \
36981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36982 test 0 -eq $? || _lt_function_replace_fail=:
36985 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36988 func_xform_result=${1%.*}.lo\
36989 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36990 && mv -f "$cfgfile.tmp" "$cfgfile" \
36991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36992 test 0 -eq $? || _lt_function_replace_fail=:
36995 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36998 func_arith_result=$(( $* ))\
36999 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37000 && mv -f "$cfgfile.tmp" "$cfgfile" \
37001 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37002 test 0 -eq $? || _lt_function_replace_fail=:
37005 sed -e '/^func_len ()$/,/^} # func_len /c\
37008 func_len_result=${#1}\
37009 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37010 && mv -f "$cfgfile.tmp" "$cfgfile" \
37011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37012 test 0 -eq $? || _lt_function_replace_fail=:
37016 if test x"$lt_shell_append" = xyes; then
37017 sed -e '/^func_append ()$/,/^} # func_append /c\
37020 eval "${1}+=\\${2}"\
37021 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37022 && mv -f "$cfgfile.tmp" "$cfgfile" \
37023 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37024 test 0 -eq $? || _lt_function_replace_fail=:
37027 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37028 func_append_quoted ()\
37030 \ func_quote_for_eval "${2}"\
37031 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37032 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37033 && mv -f "$cfgfile.tmp" "$cfgfile" \
37034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37035 test 0 -eq $? || _lt_function_replace_fail=:
37038 # Save a `func_append' function call where possible by direct use of '+='
37039 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37040 && mv -f "$cfgfile.tmp" "$cfgfile" \
37041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37042 test 0 -eq $? || _lt_function_replace_fail=:
37044 # Save a `func_append' function call even when '+=' is not available
37045 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37046 && mv -f "$cfgfile.tmp" "$cfgfile" \
37047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37048 test 0 -eq $? || _lt_function_replace_fail=:
37051 if test x"$_lt_function_replace_fail" = x":"; then
37052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37053 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37057 mv -f "$cfgfile" "$ofile" ||
37058 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37062 cat <<_LT_EOF >> "$ofile"
37064 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37066 # The linker used to build libraries.
37069 # How to create reloadable object files.
37070 reload_flag=$lt_reload_flag_CXX
37071 reload_cmds=$lt_reload_cmds_CXX
37073 # Commands used to build an old-style archive.
37074 old_archive_cmds=$lt_old_archive_cmds_CXX
37076 # A language specific compiler.
37077 CC=$lt_compiler_CXX
37079 # Is the compiler the GNU compiler?
37082 # Compiler flag to turn off builtin functions.
37083 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37085 # Additional compiler flags for building library objects.
37086 pic_flag=$lt_lt_prog_compiler_pic_CXX
37088 # How to pass a linker flag through the compiler.
37089 wl=$lt_lt_prog_compiler_wl_CXX
37091 # Compiler flag to prevent dynamic linking.
37092 link_static_flag=$lt_lt_prog_compiler_static_CXX
37094 # Does compiler simultaneously support -c and -o options?
37095 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37097 # Whether or not to add -lc for building shared libraries.
37098 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37100 # Whether or not to disallow shared libs when runtime libs are static.
37101 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37103 # Compiler flag to allow reflexive dlopens.
37104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37106 # Compiler flag to generate shared objects directly from archives.
37107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37109 # Whether the compiler copes with passing no objects directly.
37110 compiler_needs_object=$lt_compiler_needs_object_CXX
37112 # Create an old-style archive from a shared archive.
37113 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37115 # Create a temporary old-style archive to link instead of a shared archive.
37116 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37118 # Commands used to build a shared archive.
37119 archive_cmds=$lt_archive_cmds_CXX
37120 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37122 # Commands used to build a loadable module if different from building
37123 # a shared archive.
37124 module_cmds=$lt_module_cmds_CXX
37125 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37127 # Whether we are building with GNU ld or not.
37128 with_gnu_ld=$lt_with_gnu_ld_CXX
37130 # Flag that allows shared libraries with undefined symbols to be built.
37131 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37133 # Flag that enforces no undefined symbols.
37134 no_undefined_flag=$lt_no_undefined_flag_CXX
37136 # Flag to hardcode \$libdir into a binary during linking.
37137 # This must work even if \$libdir does not exist
37138 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37140 # If ld is used when linking, flag to hardcode \$libdir into a binary
37141 # during linking. This must work even if \$libdir does not exist.
37142 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37144 # Whether we need a single "-rpath" flag with a separated argument.
37145 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37147 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37148 # DIR into the resulting binary.
37149 hardcode_direct=$hardcode_direct_CXX
37151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37152 # DIR into the resulting binary and the resulting library dependency is
37153 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37154 # library is relocated.
37155 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37157 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37158 # into the resulting binary.
37159 hardcode_minus_L=$hardcode_minus_L_CXX
37161 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37162 # into the resulting binary.
37163 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37165 # Set to "yes" if building a shared library automatically hardcodes DIR
37166 # into the library and all subsequent libraries and executables linked
37168 hardcode_automatic=$hardcode_automatic_CXX
37170 # Set to yes if linker adds runtime paths of dependent libraries
37171 # to runtime path list.
37172 inherit_rpath=$inherit_rpath_CXX
37174 # Whether libtool must link a program against all its dependency libraries.
37175 link_all_deplibs=$link_all_deplibs_CXX
37177 # Set to "yes" if exported symbols are required.
37178 always_export_symbols=$always_export_symbols_CXX
37180 # The commands to list exported symbols.
37181 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37183 # Symbols that should not be listed in the preloaded symbols.
37184 exclude_expsyms=$lt_exclude_expsyms_CXX
37186 # Symbols that must always be exported.
37187 include_expsyms=$lt_include_expsyms_CXX
37189 # Commands necessary for linking programs (against libraries) with templates.
37190 prelink_cmds=$lt_prelink_cmds_CXX
37192 # Commands necessary for finishing linking programs.
37193 postlink_cmds=$lt_postlink_cmds_CXX
37195 # Specify filename containing input files.
37196 file_list_spec=$lt_file_list_spec_CXX
37198 # How to hardcode a shared library path into an executable.
37199 hardcode_action=$hardcode_action_CXX
37201 # The directories searched by this compiler when creating a shared library.
37202 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37204 # Dependencies to place before and after the objects being linked to
37205 # create a shared library.
37206 predep_objects=$lt_predep_objects_CXX
37207 postdep_objects=$lt_postdep_objects_CXX
37208 predeps=$lt_predeps_CXX
37209 postdeps=$lt_postdeps_CXX
37211 # The library search path used internally by the compiler when linking
37212 # a shared library.
37213 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37215 # ### END LIBTOOL TAG CONFIG: CXX
37219 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
37220 "Magick-config.in":C) chmod +x MagickCore/Magick-config ;;
37221 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
37222 "Wand-config.in":C) chmod +x MagickWand/Wand-config ;;
37223 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37224 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37232 ac_clean_files=$ac_clean_files_save
37234 test $ac_write_fail = 0 ||
37235 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37238 # configure is writing to config.log, and then calls config.status.
37239 # config.status does its own redirection, appending to config.log.
37240 # Unfortunately, on DOS this fails, as config.log is still kept open
37241 # by configure, so config.status won't be able to write to it; its
37242 # output is simply discarded. So we exec the FD to /dev/null,
37243 # effectively closing config.log, so it can be properly (re)opened and
37244 # appended to by config.status. When coming back to configure, we
37245 # need to make the FD available again.
37246 if test "$no_create" != yes; then
37248 ac_config_status_args=
37249 test "$silent" = yes &&
37250 ac_config_status_args="$ac_config_status_args --quiet"
37252 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37254 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37255 # would make configure fail if this is the last instruction.
37256 $ac_cs_success || as_fn_exit 1
37258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37264 rm -f magick-version
37266 result_dejavu_font_dir='none'
37267 if test "${dejavu_font_dir}x" != 'x'; then
37268 result_dejavu_font_dir=$dejavu_font_dir
37271 result_ghostscript_font_dir='none'
37272 if test "${ghostscript_font_dir}x" != 'x'; then
37273 result_ghostscript_font_dir=$ghostscript_font_dir
37276 result_windows_font_dir='none'
37277 if test "${windows_font_dir}x" != 'x'; then
37278 result_windows_font_dir=${windows_font_dir}
37281 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
37282 ImageMagick is configured as follows. Please verify that this configuration
37283 matches your expectations.
37285 Host system type: $host
37286 Build system type: $build
37289 -------------------------------------------------------------------------------
37290 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37291 Static libraries --enable-static=$enable_static $libtool_build_static_libs
37292 Module support --with-modules=$with_modules $with_modules
37293 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37294 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37295 High Dynamic Range Imagery
37296 --enable-hdri=$enable_hdri $enable_hdri
37298 Delegate Configuration:
37299 BZLIB --with-bzlib=$with_bzlib $have_bzlib
37300 Autotrace --with-autotrace=$with_autotrace $have_autotrace
37301 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
37302 DJVU --with-djvu=$with_djvu $have_djvu
37303 DPS --with-dps=$with_dps $have_dps
37304 FFTW --with-fftw=$with_fftw $have_fftw
37305 FlashPIX --with-fpx=$with_fpx $have_fpx
37306 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37307 FreeType --with-freetype=$with_freetype $have_freetype
37308 GhostPCL None $PCLDelegate ($PCLVersion)
37309 GhostXPS None $XPSDelegate ($XPSVersion)
37310 Ghostscript None $PSDelegate ($GSVersion)
37311 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37312 Ghostscript lib --with-gslib=$with_gslib $have_gslib
37313 Graphviz --with-gvc=$with_gvc $have_gvc
37314 JBIG --with-jbig=$with_jbig $have_jbig
37315 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37316 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
37317 LCMS v1 --with-lcms=$with_lcms $have_lcms
37318 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
37319 LQR --with-lqr=$with_lqr $have_lqr
37320 LZMA --with-lzma=$with_lzma $have_lzma
37321 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37322 OpenEXR --with-openexr=$with_openexr $have_openexr
37323 PERL --with-perl=$with_perl $have_perl
37324 PNG --with-png=$with_png $have_png
37325 RSVG --with-rsvg=$with_rsvg $have_rsvg
37326 TIFF --with-tiff=$with_tiff $have_tiff
37327 WEBP --with-webp=$with_webp $have_webp
37328 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37329 WMF --with-wmf=$with_wmf $have_wmf
37330 X11 --with-x=$with_x $have_x
37331 XML --with-xml=$with_xml $have_xml
37332 ZLIB --with-zlib=$with_zlib $have_zlib
37335 X_CFLAGS = $X_CFLAGS
37336 X_PRE_LIBS = $X_PRE_LIBS
37338 X_EXTRA_LIBS = $X_EXTRA_LIBS
37340 Options used to compile and link:
37341 PREFIX = $PREFIX_DIR
37342 EXEC-PREFIX = $EXEC_PREFIX_DIR
37343 VERSION = $PACKAGE_VERSION
37346 CPPFLAGS = $MAGICK_CPPFLAGS
37347 PCFLAGS = $MAGICK_PCFLAGS
37350 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37351 LIBS = $MAGICK_LIBS
37353 CXXFLAGS = $CXXFLAGS
37354 FEATURES = $MAGICK_FEATURES
37357 ImageMagick is configured as follows. Please verify that this configuration
37358 matches your expectations.
37360 Host system type: $host
37361 Build system type: $build
37364 -------------------------------------------------------------------------------
37365 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37366 Static libraries --enable-static=$enable_static $libtool_build_static_libs
37367 Module support --with-modules=$with_modules $with_modules
37368 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37369 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37370 High Dynamic Range Imagery
37371 --enable-hdri=$enable_hdri $enable_hdri
37373 Delegate Configuration:
37374 BZLIB --with-bzlib=$with_bzlib $have_bzlib
37375 Autotrace --with-autotrace=$with_autotrace $have_autotrace
37376 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
37377 DJVU --with-djvu=$with_djvu $have_djvu
37378 DPS --with-dps=$with_dps $have_dps
37379 FFTW --with-fftw=$with_fftw $have_fftw
37380 FlashPIX --with-fpx=$with_fpx $have_fpx
37381 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37382 FreeType --with-freetype=$with_freetype $have_freetype
37383 GhostPCL None $PCLDelegate ($PCLVersion)
37384 GhostXPS None $XPSDelegate ($XPSVersion)
37385 Ghostscript None $PSDelegate ($GSVersion)
37386 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37387 Ghostscript lib --with-gslib=$with_gslib $have_gslib
37388 Graphviz --with-gvc=$with_gvc $have_gvc
37389 JBIG --with-jbig=$with_jbig $have_jbig
37390 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37391 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
37392 LCMS v1 --with-lcms=$with_lcms $have_lcms
37393 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
37394 LQR --with-lqr=$with_lqr $have_lqr
37395 LZMA --with-lzma=$with_lzma $have_lzma
37396 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37397 OpenEXR --with-openexr=$with_openexr $have_openexr
37398 PERL --with-perl=$with_perl $have_perl
37399 PNG --with-png=$with_png $have_png
37400 RSVG --with-rsvg=$with_rsvg $have_rsvg
37401 TIFF --with-tiff=$with_tiff $have_tiff
37402 WEBP --with-webp=$with_webp $have_webp
37403 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37404 WMF --with-wmf=$with_wmf $have_wmf
37405 X11 --with-x=$with_x $have_x
37406 XML --with-xml=$with_xml $have_xml
37407 ZLIB --with-zlib=$with_zlib $have_zlib
37410 X_CFLAGS = $X_CFLAGS
37411 X_PRE_LIBS = $X_PRE_LIBS
37413 X_EXTRA_LIBS = $X_EXTRA_LIBS
37415 Options used to compile and link:
37416 PREFIX = $PREFIX_DIR
37417 EXEC-PREFIX = $EXEC_PREFIX_DIR
37418 VERSION = $PACKAGE_VERSION
37421 CPPFLAGS = $MAGICK_CPPFLAGS
37422 PCFLAGS = $MAGICK_PCFLAGS
37425 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37426 LIBS = $MAGICK_LIBS
37428 CXXFLAGS = $CXXFLAGS
37429 FEATURES = $MAGICK_FEATURES