2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for ImageMagick 6.6.6.
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.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir=.
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://www.imagemagick.org about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
546 test -n "$DJDIR" || exec 7<&0 </dev/null
550 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
551 # so uname gets run too.
552 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557 ac_default_prefix=/usr/local
559 ac_config_libobj_dir=.
566 # Identity of this package.
567 PACKAGE_NAME='ImageMagick'
568 PACKAGE_TARNAME='ImageMagick'
569 PACKAGE_VERSION='6.6.6'
570 PACKAGE_STRING='ImageMagick 6.6.6'
571 PACKAGE_BUGREPORT='http://www.imagemagick.org'
574 ac_unique_file="magick/MagickCore.h"
575 ac_config_libobj_dir=ltdl
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='ltdl_LTLIBOBJS
631 PERL_SUPPORTS_DESTDIR
632 WITH_PERL_DYNAMIC_FALSE
633 WITH_PERL_DYNAMIC_TRUE
634 WITH_PERL_STATIC_FALSE
635 WITH_PERL_STATIC_TRUE
702 GnuplotDecodeDelegate
716 BlenderDecodeDelegate
717 AutotraceDecodeDelegate
748 OPENEXR_DELEGATE_FALSE
749 OPENEXR_DELEGATE_TRUE
779 FREETYPE_DELEGATE_FALSE
780 FREETYPE_DELEGATE_TRUE
782 FONTCONFIG_DELEGATE_FALSE
783 FONTCONFIG_DELEGATE_TRUE
798 AUTOTRACE_DELEGATE_FALSE
799 AUTOTRACE_DELEGATE_TRUE
824 WITH_MAGICK_PLUS_PLUS_FALSE
825 WITH_MAGICK_PLUS_PLUS_TRUE
840 LIBRARY_EXTRA_CPPFLAGS
841 MODULE_EXTRA_CPPFLAGS
846 MAINTAINER_MODE_FALSE
854 WITH_SHARED_LIBS_FALSE
855 WITH_SHARED_LIBS_TRUE
858 CONVENIENCE_LTDL_FALSE
859 CONVENIENCE_LTDL_TRUE
863 sys_symbol_underscore
903 WIN32_NATIVE_BUILD_FALSE
904 WIN32_NATIVE_BUILD_TRUE
905 WINGDI32_DELEGATE_FALSE
906 WINGDI32_DELEGATE_TRUE
939 MAGICK_FILTER_MODULE_PATH
940 MAGICK_CONFIGURE_BUILD_PATH
941 MAGICK_CONFIGURE_SRC_PATH
942 MAGICK_CODER_MODULE_PATH
957 CONFIG_STATUS_DEPENDENCIES
958 MAGICK_LIB_VERSION_NUMBER
959 MAGICK_LIB_VERSION_TEXT
971 INSTALL_STRIP_PROGRAM
986 PACKAGE_VERSION_ADDENDUM
988 PACKAGE_LIB_VERSION_NUMBER
992 MAGICK_LIBRARY_VERSION_INFO
993 MAGICK_LIBRARY_CURRENT_MIN
995 MAGICK_LIBRARY_REVISION
996 MAGICK_LIBRARY_CURRENT
1013 DISTCHECK_CONFIG_FLAGS
1041 program_transform_name
1054 enable_option_checking
1056 enable_dependency_tracking
1059 enable_bounds_checking
1060 enable_osx_universal_binary
1075 enable_delegate_build
1082 enable_maintainer_mode
1092 with_magick_plus_plus
1103 with_dejavu_font_dir
1123 with_windows_font_dir
1127 ac_precious_vars='build_alias
1158 # Initialize some variables set by options.
1160 ac_init_version=false
1161 ac_unrecognized_opts=
1162 ac_unrecognized_sep=
1163 # The variables have the same names as the options, with
1164 # dashes changed to underlines.
1165 cache_file=/dev/null
1172 program_transform_name=s,x,x,
1180 # Installation directory options.
1181 # These are left unexpanded so users can "make install exec_prefix=/foo"
1182 # and all the variables that are supposed to be based on exec_prefix
1183 # by default will actually change.
1184 # Use braces instead of parens because sh, perl, etc. also accept them.
1185 # (The list follows the same order as the GNU Coding Standards.)
1186 bindir='${exec_prefix}/bin'
1187 sbindir='${exec_prefix}/sbin'
1188 libexecdir='${exec_prefix}/libexec'
1189 datarootdir='${prefix}/share'
1190 datadir='${datarootdir}'
1191 sysconfdir='${prefix}/etc'
1192 sharedstatedir='${prefix}/com'
1193 localstatedir='${prefix}/var'
1194 includedir='${prefix}/include'
1195 oldincludedir='/usr/include'
1196 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1197 infodir='${datarootdir}/info'
1202 libdir='${exec_prefix}/lib'
1203 localedir='${datarootdir}/locale'
1204 mandir='${datarootdir}/man'
1210 # If the previous option needs an argument, assign it.
1211 if test -n "$ac_prev"; then
1212 eval $ac_prev=\$ac_option
1218 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1222 # Accept the important Cygnus configure options, so we can diagnose typos.
1224 case $ac_dashdash$ac_option in
1228 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1230 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1231 bindir=$ac_optarg ;;
1233 -build | --build | --buil | --bui | --bu)
1234 ac_prev=build_alias ;;
1235 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1236 build_alias=$ac_optarg ;;
1238 -cache-file | --cache-file | --cache-fil | --cache-fi \
1239 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1240 ac_prev=cache_file ;;
1241 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1242 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1243 cache_file=$ac_optarg ;;
1245 --config-cache | -C)
1246 cache_file=config.cache ;;
1248 -datadir | --datadir | --datadi | --datad)
1250 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1251 datadir=$ac_optarg ;;
1253 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1254 | --dataroo | --dataro | --datar)
1255 ac_prev=datarootdir ;;
1256 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1257 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1258 datarootdir=$ac_optarg ;;
1260 -disable-* | --disable-*)
1261 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 as_fn_error $? "invalid feature name: $ac_useropt"
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1269 "enable_$ac_useropt"
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1274 eval enable_$ac_useropt=no ;;
1276 -docdir | --docdir | --docdi | --doc | --do)
1278 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1279 docdir=$ac_optarg ;;
1281 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1283 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1284 dvidir=$ac_optarg ;;
1286 -enable-* | --enable-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid feature name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1295 "enable_$ac_useropt"
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1300 eval enable_$ac_useropt=\$ac_optarg ;;
1302 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1303 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1304 | --exec | --exe | --ex)
1305 ac_prev=exec_prefix ;;
1306 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1307 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1308 | --exec=* | --exe=* | --ex=*)
1309 exec_prefix=$ac_optarg ;;
1311 -gas | --gas | --ga | --g)
1312 # Obsolete; use --with-gas.
1315 -help | --help | --hel | --he | -h)
1316 ac_init_help=long ;;
1317 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1318 ac_init_help=recursive ;;
1319 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1320 ac_init_help=short ;;
1322 -host | --host | --hos | --ho)
1323 ac_prev=host_alias ;;
1324 -host=* | --host=* | --hos=* | --ho=*)
1325 host_alias=$ac_optarg ;;
1327 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1329 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1331 htmldir=$ac_optarg ;;
1333 -includedir | --includedir | --includedi | --included | --include \
1334 | --includ | --inclu | --incl | --inc)
1335 ac_prev=includedir ;;
1336 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1337 | --includ=* | --inclu=* | --incl=* | --inc=*)
1338 includedir=$ac_optarg ;;
1340 -infodir | --infodir | --infodi | --infod | --info | --inf)
1342 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1343 infodir=$ac_optarg ;;
1345 -libdir | --libdir | --libdi | --libd)
1347 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1348 libdir=$ac_optarg ;;
1350 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1351 | --libexe | --libex | --libe)
1352 ac_prev=libexecdir ;;
1353 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1354 | --libexe=* | --libex=* | --libe=*)
1355 libexecdir=$ac_optarg ;;
1357 -localedir | --localedir | --localedi | --localed | --locale)
1358 ac_prev=localedir ;;
1359 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1360 localedir=$ac_optarg ;;
1362 -localstatedir | --localstatedir | --localstatedi | --localstated \
1363 | --localstate | --localstat | --localsta | --localst | --locals)
1364 ac_prev=localstatedir ;;
1365 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1366 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1367 localstatedir=$ac_optarg ;;
1369 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1371 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1372 mandir=$ac_optarg ;;
1374 -nfp | --nfp | --nf)
1375 # Obsolete; use --without-fp.
1378 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1379 | --no-cr | --no-c | -n)
1382 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1383 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1386 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1387 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1388 | --oldin | --oldi | --old | --ol | --o)
1389 ac_prev=oldincludedir ;;
1390 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1391 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1392 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1393 oldincludedir=$ac_optarg ;;
1395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1398 prefix=$ac_optarg ;;
1400 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1401 | --program-pre | --program-pr | --program-p)
1402 ac_prev=program_prefix ;;
1403 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1404 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1405 program_prefix=$ac_optarg ;;
1407 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1408 | --program-suf | --program-su | --program-s)
1409 ac_prev=program_suffix ;;
1410 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1411 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1412 program_suffix=$ac_optarg ;;
1414 -program-transform-name | --program-transform-name \
1415 | --program-transform-nam | --program-transform-na \
1416 | --program-transform-n | --program-transform- \
1417 | --program-transform | --program-transfor \
1418 | --program-transfo | --program-transf \
1419 | --program-trans | --program-tran \
1420 | --progr-tra | --program-tr | --program-t)
1421 ac_prev=program_transform_name ;;
1422 -program-transform-name=* | --program-transform-name=* \
1423 | --program-transform-nam=* | --program-transform-na=* \
1424 | --program-transform-n=* | --program-transform-=* \
1425 | --program-transform=* | --program-transfor=* \
1426 | --program-transfo=* | --program-transf=* \
1427 | --program-trans=* | --program-tran=* \
1428 | --progr-tra=* | --program-tr=* | --program-t=*)
1429 program_transform_name=$ac_optarg ;;
1431 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1433 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1434 pdfdir=$ac_optarg ;;
1436 -psdir | --psdir | --psdi | --psd | --ps)
1438 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1442 | -silent | --silent | --silen | --sile | --sil)
1445 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1447 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1449 sbindir=$ac_optarg ;;
1451 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1452 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1453 | --sharedst | --shareds | --shared | --share | --shar \
1455 ac_prev=sharedstatedir ;;
1456 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1457 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1458 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1460 sharedstatedir=$ac_optarg ;;
1462 -site | --site | --sit)
1464 -site=* | --site=* | --sit=*)
1467 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1469 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1470 srcdir=$ac_optarg ;;
1472 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1473 | --syscon | --sysco | --sysc | --sys | --sy)
1474 ac_prev=sysconfdir ;;
1475 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1476 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1477 sysconfdir=$ac_optarg ;;
1479 -target | --target | --targe | --targ | --tar | --ta | --t)
1480 ac_prev=target_alias ;;
1481 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1482 target_alias=$ac_optarg ;;
1484 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1487 -version | --version | --versio | --versi | --vers | -V)
1488 ac_init_version=: ;;
1491 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1492 # Reject names that are not valid shell variable names.
1493 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1494 as_fn_error $? "invalid package name: $ac_useropt"
1495 ac_useropt_orig=$ac_useropt
1496 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1497 case $ac_user_opts in
1501 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1502 ac_unrecognized_sep=', ';;
1504 eval with_$ac_useropt=\$ac_optarg ;;
1506 -without-* | --without-*)
1507 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1510 as_fn_error $? "invalid package name: $ac_useropt"
1511 ac_useropt_orig=$ac_useropt
1512 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1517 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1518 ac_unrecognized_sep=', ';;
1520 eval with_$ac_useropt=no ;;
1523 # Obsolete; use --with-x.
1526 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1527 | --x-incl | --x-inc | --x-in | --x-i)
1528 ac_prev=x_includes ;;
1529 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1530 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1531 x_includes=$ac_optarg ;;
1533 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1534 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1535 ac_prev=x_libraries ;;
1536 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1537 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1538 x_libraries=$ac_optarg ;;
1540 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1541 Try \`$0 --help' for more information"
1545 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1546 # Reject names that are not valid shell variable names.
1547 case $ac_envvar in #(
1548 '' | [0-9]* | *[!_$as_cr_alnum]* )
1549 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1551 eval $ac_envvar=\$ac_optarg
1552 export $ac_envvar ;;
1555 # FIXME: should be removed in autoconf 3.0.
1556 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1557 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1558 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1559 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1565 if test -n "$ac_prev"; then
1566 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1567 as_fn_error $? "missing argument to $ac_option"
1570 if test -n "$ac_unrecognized_opts"; then
1571 case $enable_option_checking in
1573 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1574 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1578 # Check all directory arguments for consistency.
1579 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1580 datadir sysconfdir sharedstatedir localstatedir includedir \
1581 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1582 libdir localedir mandir
1584 eval ac_val=\$$ac_var
1585 # Remove trailing slashes.
1588 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1589 eval $ac_var=\$ac_val;;
1591 # Be sure to have absolute directory names.
1593 [\\/$]* | ?:[\\/]* ) continue;;
1594 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1596 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1599 # There might be people who depend on the old broken behavior: `$host'
1600 # used to hold the argument of --host etc.
1601 # FIXME: To remove some day.
1604 target=$target_alias
1606 # FIXME: To remove some day.
1607 if test "x$host_alias" != x; then
1608 if test "x$build_alias" = x; then
1609 cross_compiling=maybe
1610 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1611 If a cross compiler is detected then cross compile mode will be used" >&2
1612 elif test "x$build_alias" != "x$host_alias"; then
1618 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1620 test "$silent" = yes && exec 6>/dev/null
1623 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1624 ac_ls_di=`ls -di .` &&
1625 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1626 as_fn_error $? "working directory cannot be determined"
1627 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1628 as_fn_error $? "pwd does not report name of working directory"
1631 # Find the source files, if location was not specified.
1632 if test -z "$srcdir"; then
1633 ac_srcdir_defaulted=yes
1634 # Try the directory containing this script, then the parent directory.
1635 ac_confdir=`$as_dirname -- "$as_myself" ||
1636 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1637 X"$as_myself" : 'X\(//\)[^/]' \| \
1638 X"$as_myself" : 'X\(//\)$' \| \
1639 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1640 $as_echo X"$as_myself" |
1641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1659 if test ! -r "$srcdir/$ac_unique_file"; then
1663 ac_srcdir_defaulted=no
1665 if test ! -r "$srcdir/$ac_unique_file"; then
1666 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1667 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1669 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1671 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1673 # When building in place, set srcdir=.
1674 if test "$ac_abs_confdir" = "$ac_pwd"; then
1677 # Remove unnecessary trailing slashes from srcdir.
1678 # Double slashes in file names in object file debugging info
1679 # mess up M-x gdb in Emacs.
1681 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1683 for ac_var in $ac_precious_vars; do
1684 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1685 eval ac_env_${ac_var}_value=\$${ac_var}
1686 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1687 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1691 # Report the --help message.
1693 if test "$ac_init_help" = "long"; then
1694 # Omit some internal or obsolete options to make the list less imposing.
1695 # This message is too long to be a string in the A/UX 3.1 sh.
1697 \`configure' configures ImageMagick 6.6.6 to adapt to many kinds of systems.
1699 Usage: $0 [OPTION]... [VAR=VALUE]...
1701 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1702 VAR=VALUE. See below for descriptions of some of the useful variables.
1704 Defaults for the options are specified in brackets.
1707 -h, --help display this help and exit
1708 --help=short display options specific to this package
1709 --help=recursive display the short help of all the included packages
1710 -V, --version display version information and exit
1711 -q, --quiet, --silent do not print \`checking ...' messages
1712 --cache-file=FILE cache test results in FILE [disabled]
1713 -C, --config-cache alias for \`--cache-file=config.cache'
1714 -n, --no-create do not create output files
1715 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1717 Installation directories:
1718 --prefix=PREFIX install architecture-independent files in PREFIX
1719 [$ac_default_prefix]
1720 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1723 By default, \`make install' will install all the files in
1724 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1725 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1726 for instance \`--prefix=\$HOME'.
1728 For better control, use the options below.
1730 Fine tuning of the installation directories:
1731 --bindir=DIR user executables [EPREFIX/bin]
1732 --sbindir=DIR system admin executables [EPREFIX/sbin]
1733 --libexecdir=DIR program executables [EPREFIX/libexec]
1734 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1735 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1736 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1737 --libdir=DIR object code libraries [EPREFIX/lib]
1738 --includedir=DIR C header files [PREFIX/include]
1739 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1740 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1741 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1742 --infodir=DIR info documentation [DATAROOTDIR/info]
1743 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1744 --mandir=DIR man documentation [DATAROOTDIR/man]
1745 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1746 --htmldir=DIR html documentation [DOCDIR]
1747 --dvidir=DIR dvi documentation [DOCDIR]
1748 --pdfdir=DIR pdf documentation [DOCDIR]
1749 --psdir=DIR ps documentation [DOCDIR]
1755 --program-prefix=PREFIX prepend PREFIX to installed program names
1756 --program-suffix=SUFFIX append SUFFIX to installed program names
1757 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1760 --x-includes=DIR X include files are in DIR
1761 --x-libraries=DIR X library files are in DIR
1764 --build=BUILD configure for building on BUILD [guessed]
1765 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1766 --target=TARGET configure for building compilers for TARGET [HOST]
1770 if test -n "$ac_init_help"; then
1771 case $ac_init_help in
1772 short | recursive ) echo "Configuration of ImageMagick 6.6.6:";;
1777 --disable-option-checking ignore unrecognized --enable/--with options
1778 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1779 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1780 --enable-silent-rules less verbose build output (undo: `make V=1')
1781 --disable-silent-rules verbose build output (undo: `make V=0')
1782 --disable-dependency-tracking speeds up one-time build
1783 --enable-dependency-tracking do not reject slow dependency extractors
1784 --bounds-checking enable run-time bounds-checking
1785 --enable-osx-universal-binary
1786 build universal binary on OS X [[default=no]]
1787 --disable-openmp do not use OpenMP
1788 --disable-opencl do not use OpenCL
1789 --disable-largefile omit support for large files
1790 --enable-shared[=PKGS] build shared libraries [default=yes]
1791 --enable-static[=PKGS] build static libraries [default=yes]
1792 --enable-fast-install[=PKGS]
1793 optimize for fast installation [default=yes]
1794 --disable-libtool-lock avoid locking (might break parallel builds)
1795 --enable-ltdl-install install libltdl
1796 --enable-delegate-build look for delegate libraries in build directory
1797 --disable-deprecated exclude deprecated methods in MagickCore and
1799 --disable-installed Formally install ImageMagick under PREFIX
1800 --disable-cipher disable enciphering and deciphering image pixels
1801 --enable-embeddable enable self-contained, embeddable,
1802 zero-configuration ImageMagick
1803 --enable-hdri accurately represent the wide range of intensity
1804 levels found in real scenes
1805 --disable-assert disable assert() statements in build
1806 --enable-maintainer-mode enable make rules and dependencies not useful
1807 (and sometimes confusing) to the casual installer
1808 --enable-ccmalloc enable 'ccmalloc' memory debug support
1809 --enable-efence enable 'efence' memory debug support
1810 --enable-prof enable 'prof' profiling support
1811 --enable-gprof enable 'gprof' profiling support
1812 --enable-gcov enable 'gcov' profiling support
1813 --disable-assert turn off assertions
1816 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1817 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1818 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1819 --with-dmalloc use dmalloc, as in
1820 http://www.dmalloc.com/dmalloc.tar.gz
1821 --without-threads disable threads support
1822 --with-pic try to use only PIC/non-PIC objects [default=use
1824 --with-included-ltdl use the GNU ltdl sources included here
1825 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1826 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1827 --with-modules enable building dynamically loadable modules
1828 --with-method-prefix=PREFIX
1829 prefix MagickCore API methods
1830 --with-quantum-depth=DEPTH
1831 number of bits in a pixel quantum (default 16)
1832 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1834 --with-frozenpaths freeze delegate paths
1835 --without-magick-plus-plus
1836 disable build/install of Magick++
1837 --with-perl enable build/install of PerlMagick
1838 --with-perl-options=OPTIONS
1839 options to pass on command-line when generating
1840 PerlMagick's build file
1841 --with-umem enable umem memory allocation library support
1842 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1843 --without-bzlib disable BZLIB support
1844 --with-x use the X Window System
1845 --without-zlib disable ZLIB support
1846 --with-autotrace enable autotrace support
1847 --without-dps disable Display Postscript support
1848 --without-djvu disable DjVu support
1849 --with-dejavu-font-dir=DIR
1850 DejaVu font directory
1851 --without-fftw disable FFTW support
1852 --without-fpx disable FlashPIX support
1853 --without-fontconfig disable fontconfig support
1854 --without-freetype disable Freetype support
1855 --without-gslib enable Ghostscript library support
1856 --with-fontpath=DIR prepend to default font search path
1857 --with-gs-font-dir=DIR Ghostscript font directory
1858 --without-gvc disable GVC support
1859 --without-jbig disable JBIG support
1860 --without-jpeg disable JPEG support
1861 --without-jp2 disable JPEG-2000 support
1862 --without-lcms disable lcms (v1.1X) support
1863 --without-lcms2 disable lcms (v2.X) support
1864 --without-lqr disable Liquid Rescale support
1865 --without-lzma disable LZMA support
1866 --without-openexr disable OpenEXR support
1867 --without-png disable PNG support
1868 --without-rsvg disable RSVG support
1869 --without-tiff disable TIFF support
1870 --with-windows-font-dir=DIR
1871 directory containing MS-Windows fonts
1872 --without-wmf disable WMF support
1873 --without-xml disable XML support
1875 Some influential environment variables:
1876 CC C compiler command
1877 CFLAGS C compiler flags
1878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1879 nonstandard directory <lib dir>
1880 LIBS libraries to pass to the linker, e.g. -l<library>
1881 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1882 you have headers in a nonstandard directory <include dir>
1884 CXX C++ compiler command
1885 CXXFLAGS C++ compiler flags
1886 PKG_CONFIG path to pkg-config utility
1887 CXXCPP C++ preprocessor
1888 XMKMF Path to xmkmf, Makefile generator for X Window System
1890 C compiler flags for AUTOTRACE, overriding pkg-config
1892 linker flags for AUTOTRACE, overriding pkg-config
1894 C compiler flags for FONTCONFIG, overriding pkg-config
1896 linker flags for FONTCONFIG, overriding pkg-config
1897 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1898 GVC_LIBS linker flags for GVC, overriding pkg-config
1899 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1900 LQR_LIBS linker flags for LQR, overriding pkg-config
1902 C compiler flags for OPENEXR, overriding pkg-config
1904 linker flags for OPENEXR, overriding pkg-config
1905 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1906 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1908 C compiler flags for CAIRO_SVG, overriding pkg-config
1910 linker flags for CAIRO_SVG, overriding pkg-config
1912 Use these variables to override the choices made by `configure' or to help
1913 it to find libraries and programs with nonstandard names/locations.
1915 Report bugs to <http://www.imagemagick.org>.
1920 if test "$ac_init_help" = "recursive"; then
1921 # If there are subdirs, report their specific --help.
1922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1923 test -d "$ac_dir" ||
1924 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1932 # A ".." for each directory in $ac_dir_suffix.
1933 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1934 case $ac_top_builddir_sub in
1935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1939 ac_abs_top_builddir=$ac_pwd
1940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1941 # for backward compatibility:
1942 ac_top_builddir=$ac_top_build_prefix
1945 .) # We are building in place.
1947 ac_top_srcdir=$ac_top_builddir_sub
1948 ac_abs_top_srcdir=$ac_pwd ;;
1949 [\\/]* | ?:[\\/]* ) # Absolute name.
1950 ac_srcdir=$srcdir$ac_dir_suffix;
1951 ac_top_srcdir=$srcdir
1952 ac_abs_top_srcdir=$srcdir ;;
1954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1955 ac_top_srcdir=$ac_top_build_prefix$srcdir
1956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1960 cd "$ac_dir" || { ac_status=$?; continue; }
1961 # Check for guested configure.
1962 if test -f "$ac_srcdir/configure.gnu"; then
1964 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1965 elif test -f "$ac_srcdir/configure"; then
1967 $SHELL "$ac_srcdir/configure" --help=recursive
1969 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1971 cd "$ac_pwd" || { ac_status=$?; break; }
1975 test -n "$ac_init_help" && exit $ac_status
1976 if $ac_init_version; then
1978 ImageMagick configure 6.6.6
1979 generated by GNU Autoconf 2.66
1981 Copyright (C) 2010 Free Software Foundation, Inc.
1982 This configure script is free software; the Free Software Foundation
1983 gives unlimited permission to copy, distribute and modify it.
1988 ## ------------------------ ##
1989 ## Autoconf initialization. ##
1990 ## ------------------------ ##
1992 # ac_fn_c_try_compile LINENO
1993 # --------------------------
1994 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_c_try_compile ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext
1999 if { { ac_try="$ac_compile"
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_compile") 2>conftest.err
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_c_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest.$ac_objext; then :
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026 as_fn_set_status $ac_retval
2028 } # ac_fn_c_try_compile
2030 # ac_fn_c_try_cpp LINENO
2031 # ----------------------
2032 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_cpp conftest.$ac_ext"
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2045 if test -s conftest.err; then
2046 grep -v '^ *+' conftest.err >conftest.er1
2047 cat conftest.er1 >&5
2048 mv -f conftest.er1 conftest.err
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } >/dev/null && {
2052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2053 test ! -s conftest.err
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063 as_fn_set_status $ac_retval
2067 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2068 # -------------------------------------------------------
2069 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2070 # the include files in INCLUDES and setting the cache variable VAR
2072 ac_fn_c_check_header_mongrel ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if eval "test \"\${$3+set}\"" = set; then :
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval "test \"\${$3+set}\"" = set; then :
2079 $as_echo_n "(cached) " >&6
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2085 # Is the header compilable?
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2087 $as_echo_n "checking $2 usability... " >&6; }
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 ac_header_compiler=yes
2096 ac_header_compiler=no
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2100 $as_echo "$ac_header_compiler" >&6; }
2102 # Is the header present?
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2104 $as_echo_n "checking $2 presence... " >&6; }
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 if ac_fn_c_try_cpp "$LINENO"; then :
2110 ac_header_preproc=yes
2112 ac_header_preproc=no
2114 rm -f conftest.err conftest.$ac_ext
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2116 $as_echo "$ac_header_preproc" >&6; }
2118 # So? What about this header?
2119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2122 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2128 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2130 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2132 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2134 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2136 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2137 ( $as_echo "## ----------------------------------------- ##
2138 ## Report this to http://www.imagemagick.org ##
2139 ## ----------------------------------------- ##"
2140 ) | sed "s/^/$as_me: WARNING: /" >&2
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2144 $as_echo_n "checking for $2... " >&6; }
2145 if eval "test \"\${$3+set}\"" = set; then :
2146 $as_echo_n "(cached) " >&6
2148 eval "$3=\$ac_header_compiler"
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 } # ac_fn_c_check_header_mongrel
2158 # ac_fn_c_try_run LINENO
2159 # ----------------------
2160 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2161 # that executables *can* be run.
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 if { { ac_try="$ac_link"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171 $as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_link") 2>&5
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2176 { { case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_try") 2>&5
2184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185 test $ac_status = 0; }; }; then :
2188 $as_echo "$as_me: program exited with status $ac_status" >&5
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2192 ac_retval=$ac_status
2194 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 as_fn_set_status $ac_retval
2200 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2201 # -------------------------------------------------------
2202 # Tests whether HEADER exists and can be compiled using the include files in
2203 # INCLUDES, setting the cache variable VAR accordingly.
2204 ac_fn_c_check_header_compile ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval "test \"\${$3+set}\"" = set; then :
2210 $as_echo_n "(cached) " >&6
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2217 if ac_fn_c_try_compile "$LINENO"; then :
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229 } # ac_fn_c_check_header_compile
2231 # ac_fn_cxx_try_compile LINENO
2232 # ----------------------------
2233 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_cxx_try_compile ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 rm -f conftest.$ac_objext
2238 if { { ac_try="$ac_compile"
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_compile") 2>conftest.err
2247 if test -s conftest.err; then
2248 grep -v '^ *+' conftest.err >conftest.er1
2249 cat conftest.er1 >&5
2250 mv -f conftest.er1 conftest.err
2252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2253 test $ac_status = 0; } && {
2254 test -z "$ac_cxx_werror_flag" ||
2255 test ! -s conftest.err
2256 } && test -s conftest.$ac_objext; then :
2259 $as_echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 as_fn_set_status $ac_retval
2267 } # ac_fn_cxx_try_compile
2269 # ac_fn_c_try_link LINENO
2270 # -----------------------
2271 # Try to link conftest.$ac_ext, and return whether this succeeded.
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 rm -f conftest.$ac_objext conftest$ac_exeext
2276 if { { ac_try="$ac_link"
2278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279 *) ac_try_echo=$ac_try;;
2281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2282 $as_echo "$ac_try_echo"; } >&5
2283 (eval "$ac_link") 2>conftest.err
2285 if test -s conftest.err; then
2286 grep -v '^ *+' conftest.err >conftest.er1
2287 cat conftest.er1 >&5
2288 mv -f conftest.er1 conftest.err
2290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2291 test $ac_status = 0; } && {
2292 test -z "$ac_c_werror_flag" ||
2293 test ! -s conftest.err
2294 } && test -s conftest$ac_exeext && {
2295 test "$cross_compiling" = yes ||
2296 $as_test_x conftest$ac_exeext
2300 $as_echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2305 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2306 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2307 # interfere with the next link command; also delete a directory that is
2308 # left behind by Apple's compiler. We do this before executing the actions.
2309 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2310 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2311 as_fn_set_status $ac_retval
2313 } # ac_fn_c_try_link
2315 # ac_fn_c_check_func LINENO FUNC VAR
2316 # ----------------------------------
2317 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2318 ac_fn_c_check_func ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if eval "test \"\${$3+set}\"" = set; then :
2324 $as_echo_n "(cached) " >&6
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2330 #define $2 innocuous_$2
2332 /* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char $2 (); below.
2334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335 <limits.h> exists even on freestanding compilers. */
2338 # include <limits.h>
2340 # include <assert.h>
2345 /* Override any GCC internal prototype to avoid an error.
2346 Use char because int might match the return type of a GCC
2347 builtin and then its argument prototype would still apply. */
2352 /* The GNU C library defines this for functions which it implements
2353 to always fail with ENOSYS. Some functions are actually named
2354 something starting with __ and the normal name is an alias. */
2355 #if defined __stub_$2 || defined __stub___$2
2367 if ac_fn_c_try_link "$LINENO"; then :
2372 rm -f core conftest.err conftest.$ac_objext \
2373 conftest$ac_exeext conftest.$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_check_func
2382 # ac_fn_cxx_try_cpp LINENO
2383 # ------------------------
2384 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_cxx_try_cpp ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 if { { ac_try="$ac_cpp conftest.$ac_ext"
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2397 if test -s conftest.err; then
2398 grep -v '^ *+' conftest.err >conftest.er1
2399 cat conftest.er1 >&5
2400 mv -f conftest.er1 conftest.err
2402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403 test $ac_status = 0; } >/dev/null && {
2404 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2405 test ! -s conftest.err
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 as_fn_set_status $ac_retval
2417 } # ac_fn_cxx_try_cpp
2419 # ac_fn_cxx_try_link LINENO
2420 # -------------------------
2421 # Try to link conftest.$ac_ext, and return whether this succeeded.
2422 ac_fn_cxx_try_link ()
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 rm -f conftest.$ac_objext conftest$ac_exeext
2426 if { { ac_try="$ac_link"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_link") 2>conftest.err
2435 if test -s conftest.err; then
2436 grep -v '^ *+' conftest.err >conftest.er1
2437 cat conftest.er1 >&5
2438 mv -f conftest.er1 conftest.err
2440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441 test $ac_status = 0; } && {
2442 test -z "$ac_cxx_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest$ac_exeext && {
2445 test "$cross_compiling" = yes ||
2446 $as_test_x conftest$ac_exeext
2450 $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2455 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2456 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2457 # interfere with the next link command; also delete a directory that is
2458 # left behind by Apple's compiler. We do this before executing the actions.
2459 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 as_fn_set_status $ac_retval
2463 } # ac_fn_cxx_try_link
2465 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2466 # ---------------------------------------------
2467 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2469 ac_fn_c_check_decl ()
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 as_decl_name=`echo $2|sed 's/ *(.*//'`
2473 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2475 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2476 if eval "test \"\${$3+set}\"" = set; then :
2477 $as_echo_n "(cached) " >&6
2479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h. */
2485 #ifndef $as_decl_name
2487 (void) $as_decl_use;
2489 (void) $as_decl_name;
2497 if ac_fn_c_try_compile "$LINENO"; then :
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509 } # ac_fn_c_check_decl
2511 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2512 # -------------------------------------------
2513 # Tests whether TYPE exists after having included INCLUDES, setting cache
2514 # variable VAR accordingly.
2515 ac_fn_c_check_type ()
2517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2519 $as_echo_n "checking for $2... " >&6; }
2520 if eval "test \"\${$3+set}\"" = set; then :
2521 $as_echo_n "(cached) " >&6
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2549 if ac_fn_c_try_compile "$LINENO"; then :
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2560 $as_echo "$ac_res" >&6; }
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 } # ac_fn_c_check_type
2565 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2566 # ----------------------------------------------------
2567 # Tries to find if the field MEMBER exists in type AGGR, after including
2568 # INCLUDES, setting cache variable VAR accordingly.
2569 ac_fn_c_check_member ()
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2573 $as_echo_n "checking for $2.$3... " >&6; }
2574 if eval "test \"\${$4+set}\"" = set; then :
2575 $as_echo_n "(cached) " >&6
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2590 if ac_fn_c_try_compile "$LINENO"; then :
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2600 if (sizeof ac_aggr.$3)
2606 if ac_fn_c_try_compile "$LINENO"; then :
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2620 } # ac_fn_c_check_member
2622 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2623 # --------------------------------------------
2624 # Tries to find the compile-time value of EXPR in a program that includes
2625 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2627 ac_fn_c_compute_int ()
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 if test "$cross_compiling" = yes; then
2631 # Depending upon the size, compute the lo and hi bounds.
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h. */
2638 static int test_array [1 - 2 * !(($2) >= 0)];
2645 if ac_fn_c_try_compile "$LINENO"; then :
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2654 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2661 if ac_fn_c_try_compile "$LINENO"; then :
2662 ac_hi=$ac_mid; break
2664 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2665 if test $ac_lo -le $ac_mid; then
2669 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2680 static int test_array [1 - 2 * !(($2) < 0)];
2687 if ac_fn_c_try_compile "$LINENO"; then :
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2696 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2703 if ac_fn_c_try_compile "$LINENO"; then :
2704 ac_lo=$ac_mid; break
2706 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2707 if test $ac_mid -le $ac_hi; then
2711 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 # Binary search between lo and hi bounds.
2722 while test "x$ac_lo" != "x$ac_hi"; do
2723 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2730 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2737 if ac_fn_c_try_compile "$LINENO"; then :
2740 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2752 static long int longval () { return $2; }
2753 static unsigned long int ulongval () { return $2; }
2760 FILE *f = fopen ("conftest.val", "w");
2765 long int i = longval ();
2768 fprintf (f, "%ld", i);
2772 unsigned long int i = ulongval ();
2775 fprintf (f, "%lu", i);
2777 /* Do not output a trailing newline, as this causes \r\n confusion
2778 on some platforms. */
2779 return ferror (f) || fclose (f) != 0;
2785 if ac_fn_c_try_run "$LINENO"; then :
2786 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2791 conftest.$ac_objext conftest.beam conftest.$ac_ext
2795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2796 as_fn_set_status $ac_retval
2798 } # ac_fn_c_compute_int
2800 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2801 # ---------------------------------------------------------
2802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2803 # the include files in INCLUDES and setting the cache variable VAR
2805 ac_fn_cxx_check_header_mongrel ()
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 if eval "test \"\${$3+set}\"" = set; then :
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2810 $as_echo_n "checking for $2... " >&6; }
2811 if eval "test \"\${$3+set}\"" = set; then :
2812 $as_echo_n "(cached) " >&6
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2816 $as_echo "$ac_res" >&6; }
2818 # Is the header compilable?
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2820 $as_echo_n "checking $2 usability... " >&6; }
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2826 if ac_fn_cxx_try_compile "$LINENO"; then :
2827 ac_header_compiler=yes
2829 ac_header_compiler=no
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2833 $as_echo "$ac_header_compiler" >&6; }
2835 # Is the header present?
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2837 $as_echo_n "checking $2 presence... " >&6; }
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2842 if ac_fn_cxx_try_cpp "$LINENO"; then :
2843 ac_header_preproc=yes
2845 ac_header_preproc=no
2847 rm -f conftest.err conftest.$ac_ext
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2849 $as_echo "$ac_header_preproc" >&6; }
2851 # So? What about this header?
2852 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2870 ( $as_echo "## ----------------------------------------- ##
2871 ## Report this to http://www.imagemagick.org ##
2872 ## ----------------------------------------- ##"
2873 ) | sed "s/^/$as_me: WARNING: /" >&2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2877 $as_echo_n "checking for $2... " >&6; }
2878 if eval "test \"\${$3+set}\"" = set; then :
2879 $as_echo_n "(cached) " >&6
2881 eval "$3=\$ac_header_compiler"
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2885 $as_echo "$ac_res" >&6; }
2887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2889 } # ac_fn_cxx_check_header_mongrel
2890 cat >config.log <<_ACEOF
2891 This file contains any messages produced by compilers while
2892 running configure, to aid debugging if configure makes a mistake.
2894 It was created by ImageMagick $as_me 6.6.6, which was
2895 generated by GNU Autoconf 2.66. Invocation command line was
2907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2914 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2916 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2917 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2919 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2920 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2921 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2922 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 $as_echo "PATH: $as_dir"
2947 # Keep a trace of the command line.
2948 # Strip out --no-create and --no-recursion so they do not pile up.
2949 # Strip out --silent because we don't want to record it for future runs.
2950 # Also quote any args containing shell meta-characters.
2951 # Make two passes to allow for proper duplicate-argument suppression.
2955 ac_must_keep_next=false
2961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2963 | -silent | --silent | --silen | --sile | --sil)
2966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2971 as_fn_append ac_configure_args1 " '$ac_arg'"
2972 if test $ac_must_keep_next = true; then
2973 ac_must_keep_next=false # Got value, back to normal.
2976 *=* | --config-cache | -C | -disable-* | --disable-* \
2977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2979 | -with-* | --with-* | -without-* | --without-* | --x)
2980 case "$ac_configure_args0 " in
2981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2984 -* ) ac_must_keep_next=true ;;
2987 as_fn_append ac_configure_args " '$ac_arg'"
2992 { ac_configure_args0=; unset ac_configure_args0;}
2993 { ac_configure_args1=; unset ac_configure_args1;}
2995 # When interrupted or exit'd, cleanup temporary files, and complete
2996 # config.log. We remove comments because anyway the quotes in there
2997 # would cause problems or look ugly.
2998 # WARNING: Use '\'' to represent an apostrophe within the trap.
2999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3000 trap 'exit_status=$?
3001 # Save into config.log some information that might help in debugging.
3005 $as_echo "## ---------------- ##
3006 ## Cache variables. ##
3007 ## ---------------- ##"
3009 # The following way of writing the cache mishandles newlines in values,
3011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3012 eval ac_val=\$$ac_var
3016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3020 _ | IFS | as_nl) ;; #(
3021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3022 *) { eval $ac_var=; unset $ac_var;} ;;
3027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3028 *${as_nl}ac_space=\ *)
3030 "s/'\''/'\''\\\\'\'''\''/g;
3031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3041 $as_echo "## ----------------- ##
3042 ## Output variables. ##
3043 ## ----------------- ##"
3045 for ac_var in $ac_subst_vars
3047 eval ac_val=\$$ac_var
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3051 $as_echo "$ac_var='\''$ac_val'\''"
3055 if test -n "$ac_subst_files"; then
3056 $as_echo "## ------------------- ##
3057 ## File substitutions. ##
3058 ## ------------------- ##"
3060 for ac_var in $ac_subst_files
3062 eval ac_val=\$$ac_var
3064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3066 $as_echo "$ac_var='\''$ac_val'\''"
3071 if test -s confdefs.h; then
3072 $as_echo "## ----------- ##
3079 test "$ac_signal" != 0 &&
3080 $as_echo "$as_me: caught signal $ac_signal"
3081 $as_echo "$as_me: exit $exit_status"
3083 rm -f core *.core core.conftest.* &&
3084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3087 for ac_signal in 1 2 13 15; do
3088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3093 rm -f -r conftest* confdefs.h
3095 $as_echo "/* confdefs.h */" > confdefs.h
3097 # Predefined preprocessor variables.
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_NAME "$PACKAGE_NAME"
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_STRING "$PACKAGE_STRING"
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_URL "$PACKAGE_URL"
3124 # Let the site file select an alternate cache file if it wants to.
3125 # Prefer an explicitly selected file to automatically selected ones.
3128 if test -n "$CONFIG_SITE"; then
3129 # We do not want a PATH search for config.site.
3130 case $CONFIG_SITE in #((
3131 -*) ac_site_file1=./$CONFIG_SITE;;
3132 */*) ac_site_file1=$CONFIG_SITE;;
3133 *) ac_site_file1=./$CONFIG_SITE;;
3135 elif test "x$prefix" != xNONE; then
3136 ac_site_file1=$prefix/share/config.site
3137 ac_site_file2=$prefix/etc/config.site
3139 ac_site_file1=$ac_default_prefix/share/config.site
3140 ac_site_file2=$ac_default_prefix/etc/config.site
3142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3144 test "x$ac_site_file" = xNONE && continue
3145 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3148 sed 's/^/| /' "$ac_site_file" >&5
3150 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error $? "failed to load site script $ac_site_file
3153 See \`config.log' for more details" "$LINENO" 5; }
3157 if test -r "$cache_file"; then
3158 # Some versions of bash will fail to source /dev/null (special files
3159 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3160 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3162 $as_echo "$as_me: loading cache $cache_file" >&6;}
3164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3165 *) . "./$cache_file";;
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3170 $as_echo "$as_me: creating cache $cache_file" >&6;}
3174 as_fn_append ac_header_list " stdlib.h"
3175 as_fn_append ac_header_list " unistd.h"
3176 as_fn_append ac_header_list " sys/param.h"
3177 # Check that the precious variables saved in the cache have kept the same
3179 ac_cache_corrupted=false
3180 for ac_var in $ac_precious_vars; do
3181 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3182 eval ac_new_set=\$ac_env_${ac_var}_set
3183 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3184 eval ac_new_val=\$ac_env_${ac_var}_value
3185 case $ac_old_set,$ac_new_set in
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3188 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3189 ac_cache_corrupted=: ;;
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3192 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3193 ac_cache_corrupted=: ;;
3196 if test "x$ac_old_val" != "x$ac_new_val"; then
3197 # differences in whitespace do not lead to failure.
3198 ac_old_val_w=`echo x $ac_old_val`
3199 ac_new_val_w=`echo x $ac_new_val`
3200 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3202 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3203 ac_cache_corrupted=:
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3206 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3207 eval $ac_var=\$ac_old_val
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3210 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3212 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3215 # Pass precious variables to config.status.
3216 if test "$ac_new_set" = set; then
3218 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3219 *) ac_arg=$ac_var=$ac_new_val ;;
3221 case " $ac_configure_args " in
3222 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3223 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3227 if $ac_cache_corrupted; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3231 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3232 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3234 ## -------------------- ##
3235 ## Main body of script. ##
3236 ## -------------------- ##
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 for ac_dir in config "$srcdir"/config; do
3248 if test -f "$ac_dir/install-sh"; then
3250 ac_install_sh="$ac_aux_dir/install-sh -c"
3252 elif test -f "$ac_dir/install.sh"; then
3254 ac_install_sh="$ac_aux_dir/install.sh -c"
3256 elif test -f "$ac_dir/shtool"; then
3258 ac_install_sh="$ac_aux_dir/shtool install -c"
3262 if test -z "$ac_aux_dir"; then
3263 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3266 # These three variables are undocumented and unsupported,
3267 # and are intended to be withdrawn in a future Autoconf release.
3268 # They can cause serious problems if a builder's source tree is in a directory
3269 # whose full name contains unusual characters.
3270 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3271 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3272 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3277 ac_config_headers="$ac_config_headers config/config.h"
3280 ac_config_commands="$ac_config_commands magick/magick-config.h"
3282 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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3286 # Save initial user-tunable values
3289 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3290 eval isset=\${$var+set}
3291 if test "$isset" = 'set'; then
3292 eval val=$`echo $var`
3293 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3298 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3301 # Source file containing package/library versioning information.
3302 . ${srcdir}/version.sh
3304 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3305 # Make sure we can run config.sub.
3306 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3307 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3310 $as_echo_n "checking build system type... " >&6; }
3311 if test "${ac_cv_build+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3314 ac_build_alias=$build_alias
3315 test "x$ac_build_alias" = x &&
3316 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3317 test "x$ac_build_alias" = x &&
3318 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3319 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3324 $as_echo "$ac_cv_build" >&6; }
3325 case $ac_cv_build in
3327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3330 ac_save_IFS=$IFS; IFS='-'
3336 # Remember, the first character of IFS is used to create $*,
3337 # except with old shells:
3340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3344 $as_echo_n "checking host system type... " >&6; }
3345 if test "${ac_cv_host+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
3348 if test "x$host_alias" = x; then
3349 ac_cv_host=$ac_cv_build
3351 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3357 $as_echo "$ac_cv_host" >&6; }
3360 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3363 ac_save_IFS=$IFS; IFS='-'
3369 # Remember, the first character of IFS is used to create $*,
3370 # except with old shells:
3373 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3377 $as_echo_n "checking target system type... " >&6; }
3378 if test "${ac_cv_target+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3381 if test "x$target_alias" = x; then
3382 ac_cv_target=$ac_cv_host
3384 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3390 $as_echo "$ac_cv_target" >&6; }
3391 case $ac_cv_target in
3393 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3395 target=$ac_cv_target
3396 ac_save_IFS=$IFS; IFS='-'
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3406 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3409 # The aliases save the names the user supplied, while $host etc.
3410 # will get canonicalized.
3411 test -n "$target_alias" &&
3412 test "$program_prefix$program_suffix$program_transform_name" = \
3414 program_prefix=${target_alias}-
3420 MAGICK_TARGET_CPU=$target_cpu
3423 MAGICK_TARGET_VENDOR=$target_vendor
3426 MAGICK_TARGET_OS=$target_os
3429 # Substitute library versioning
3430 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3432 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3436 # Ensure that make can run correctly
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3438 $as_echo_n "checking whether build environment is sane... " >&6; }
3441 echo timestamp > conftest.file
3442 # Reject unsafe characters in $srcdir or the absolute working directory
3443 # name. Accept space and tab only in the latter.
3447 *[\\\"\#\$\&\'\`$am_lf]*)
3448 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3451 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3452 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3455 # Do `set' in a subshell so we don't clobber the current shell's
3456 # arguments. Must try -L first in case configure is actually a
3457 # symlink; some systems play weird games with the mod time of symlinks
3458 # (eg FreeBSD returns the mod time of the symlink's containing
3461 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3462 if test "$*" = "X"; then
3464 set X `ls -t "$srcdir/configure" conftest.file`
3467 if test "$*" != "X $srcdir/configure conftest.file" \
3468 && test "$*" != "X conftest.file $srcdir/configure"; then
3470 # If neither matched, then we have a broken ls. This can happen
3471 # if, for instance, CONFIG_SHELL is bash and it inherits a
3472 # broken ls alias from the environment. This has actually
3473 # happened. Such a system could not be considered "sane".
3474 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3475 alias in your environment" "$LINENO" 5
3478 test "$2" = conftest.file
3484 as_fn_error $? "newly created file is older than distributed files!
3485 Check your system clock" "$LINENO" 5
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3490 am__api_version='1.11'
3492 # Find a good install program. We prefer a C program (faster),
3493 # so one script is as good as another. But avoid the broken or
3494 # incompatible versions:
3495 # SysV /etc/install, /usr/sbin/install
3496 # SunOS /usr/etc/install
3497 # IRIX /sbin/install
3499 # AmigaOS /C/install, which installs bootblocks on floppy discs
3500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3503 # OS/2's system install, which has a completely different semantic
3504 # ./install, which can be erroneously created by make from ./install.sh.
3505 # Reject install programs that cannot install multiple files.
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3507 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3508 if test -z "$INSTALL"; then
3509 if test "${ac_cv_path_install+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 # Account for people who put trailing slashes in PATH elements.
3518 case $as_dir/ in #((
3519 ./ | .// | /[cC]/* | \
3520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3521 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3524 # OSF1 and SCO ODT 3.0 have their own names for install.
3525 # Don't use installbsd from OSF since it installs stuff as root
3527 for ac_prog in ginstall scoinst install; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3530 if test $ac_prog = install &&
3531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3532 # AIX install. It has an incompatible calling convention.
3534 elif test $ac_prog = install &&
3535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3536 # program-specific install script used by HP pwplus--don't use.
3539 rm -rf conftest.one conftest.two conftest.dir
3540 echo one > conftest.one
3541 echo two > conftest.two
3543 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3544 test -s conftest.one && test -s conftest.two &&
3545 test -s conftest.dir/conftest.one &&
3546 test -s conftest.dir/conftest.two
3548 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3561 rm -rf conftest.one conftest.two conftest.dir
3564 if test "${ac_cv_path_install+set}" = set; then
3565 INSTALL=$ac_cv_path_install
3567 # As a last resort, use the slow shell script. Don't cache a
3568 # value for INSTALL within a source directory, because that will
3569 # break other packages using the cache if that directory is
3570 # removed, or if the value is a relative name.
3571 INSTALL=$ac_install_sh
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3575 $as_echo "$INSTALL" >&6; }
3577 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3578 # It thinks the first close brace ends the variable substitution.
3579 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3581 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3583 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3585 test "$program_prefix" != NONE &&
3586 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3587 # Use a double $ so make ignores it.
3588 test "$program_suffix" != NONE &&
3589 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3590 # Double any \ or $.
3591 # By default was `s,x,x', remove it if useless.
3592 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3593 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3595 # expand $ac_aux_dir to an absolute path
3596 am_aux_dir=`cd $ac_aux_dir && pwd`
3598 if test x"${MISSING+set}" != xset; then
3601 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3603 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3606 # Use eval to expand $SHELL
3607 if eval "$MISSING --run true"; then
3608 am_missing_run="$MISSING --run "
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3612 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3615 if test x"${install_sh}" != xset; then
3618 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3620 install_sh="\${SHELL} $am_aux_dir/install-sh"
3624 # Installed binaries are usually stripped using `strip' when the user
3625 # run `make install-strip'. However `strip' might not be the right
3626 # tool to use in cross-compilation environments, therefore Automake
3627 # will honor the `STRIP' environment variable to overrule this program.
3628 if test "$cross_compiling" != no; then
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}strip; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if test "${ac_cv_prog_STRIP+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3637 if test -n "$STRIP"; then
3638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 STRIP=$ac_cv_prog_STRIP
3658 if test -n "$STRIP"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3660 $as_echo "$STRIP" >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3668 if test -z "$ac_cv_prog_STRIP"; then
3670 # Extract the first word of "strip", so it can be a program name with args.
3671 set dummy strip; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3677 if test -n "$ac_ct_STRIP"; then
3678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687 ac_cv_prog_ac_ct_STRIP="strip"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3698 if test -n "$ac_ct_STRIP"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3700 $as_echo "$ac_ct_STRIP" >&6; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3706 if test "x$ac_ct_STRIP" = x; then
3709 case $cross_compiling:$ac_tool_warned in
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713 ac_tool_warned=yes ;;
3718 STRIP="$ac_cv_prog_STRIP"
3722 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3725 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3726 if test -z "$MKDIR_P"; then
3727 if test "${ac_cv_path_mkdir+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3734 test -z "$as_dir" && as_dir=.
3735 for ac_prog in mkdir gmkdir; do
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3738 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3739 'mkdir (GNU coreutils) '* | \
3740 'mkdir (coreutils) '* | \
3741 'mkdir (fileutils) '4.1*)
3742 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3752 test -d ./--version && rmdir ./--version
3753 if test "${ac_cv_path_mkdir+set}" = set; then
3754 MKDIR_P="$ac_cv_path_mkdir -p"
3756 # As a last resort, use the slow shell script. Don't cache a
3757 # value for MKDIR_P within a source directory, because that will
3758 # break other packages using the cache if that directory is
3759 # removed, or if the value is a relative name.
3760 MKDIR_P="$ac_install_sh -d"
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3764 $as_echo "$MKDIR_P" >&6; }
3768 [\\/$]* | ?:[\\/]*) ;;
3769 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3772 for ac_prog in gawk mawk nawk awk
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if test "${ac_cv_prog_AWK+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3781 if test -n "$AWK"; then
3782 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_AWK="$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 if test -n "$AWK"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3804 $as_echo "$AWK" >&6; }
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3811 test -n "$AWK" && break
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3815 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3817 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3818 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3819 $as_echo_n "(cached) " >&6
3821 cat >conftest.make <<\_ACEOF
3824 @echo '@@@%%%=$(MAKE)=@@@%%%'
3826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3827 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3829 eval ac_cv_prog_make_${ac_make}_set=yes;;
3831 eval ac_cv_prog_make_${ac_make}_set=no;;
3835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3842 SET_MAKE="MAKE=${MAKE-make}"
3845 rm -rf .tst 2>/dev/null
3846 mkdir .tst 2>/dev/null
3847 if test -d .tst; then
3852 rmdir .tst 2>/dev/null
3854 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3855 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3856 # is not polluted with repeated "-I."
3857 am__isrc=' -I$(srcdir)'
3858 # test to see if srcdir already configured
3859 if test -f $srcdir/config.status; then
3860 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3864 # test whether we have cygpath
3865 if test -z "$CYGPATH_W"; then
3866 if (cygpath --version) >/dev/null 2>/dev/null; then
3867 CYGPATH_W='cygpath -w'
3874 # Define the identity of the package.
3875 PACKAGE=$PACKAGE_NAME
3876 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3879 # Some tools Automake needs.
3881 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3884 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3887 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3890 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3893 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3895 # We need awk for the "check" target. The system "awk" is bad on
3897 # Always define AMTAR for backward compatibility.
3899 AMTAR=${AMTAR-"${am_missing_run}tar"}
3901 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3908 # Enable support for silent build rules
3909 # Check whether --enable-silent-rules was given.
3910 if test "${enable_silent_rules+set}" = set; then :
3911 enableval=$enable_silent_rules;
3914 case $enable_silent_rules in
3915 yes) AM_DEFAULT_VERBOSITY=0;;
3916 no) AM_DEFAULT_VERBOSITY=1;;
3917 *) AM_DEFAULT_VERBOSITY=0;;
3922 MAGICK_LIB_VERSION="0x"
3923 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3924 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3927 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3928 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3930 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3931 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3932 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3934 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3937 # Definition used to define MagickLibVersionText in version.h
3938 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3941 # Definition used to define MagickLibVersionNumber in version.h
3942 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3945 # Regenerate config.status if ChangeLog or version.sh is updated.
3946 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3952 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3953 MAGICK_PCFLAGS=$CPPFLAGS_USER
3959 # Evaluate shell variable equivalents to Makefile directory variables
3961 if test "x$prefix" = xNONE; then
3962 prefix=$ac_default_prefix
3964 # Let make expand exec_prefix.
3965 if test "x$exec_prefix" = xNONE; then
3966 exec_prefix='${prefix}'
3970 eval "eval PREFIX_DIR=${prefix}"
3972 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3974 eval "eval BIN_DIR=$bindir"
3976 eval "eval SBIN_DIR=$sbindir"
3978 eval "eval LIBEXEC_DIR=$libexecdir"
3980 eval "eval DATA_DIR=$datadir"
3982 eval "eval SYSCONF_DIR=$sysconfdir"
3984 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3986 eval "eval LOCALSTATE_DIR=$localstatedir"
3988 eval "eval LIB_DIR=$libdir"
3990 eval "eval INCLUDE_DIR=$includedir"
3992 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3994 eval "eval INFO_DIR=$infodir"
3996 eval "eval MAN_DIR=$mandir"
3999 # Get full paths to source and build directories
4000 srcdirfull="`cd $srcdir && pwd`"
4004 # Compute variables useful for running uninstalled software.
4006 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4007 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4008 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4009 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4011 case "${build_os}" in
4013 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4014 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4015 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4016 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4020 case "${host_os}" in
4033 # Enable OS features.
4035 DEPDIR="${am__leading_dot}deps"
4037 ac_config_commands="$ac_config_commands depfiles"
4040 am_make=${MAKE-make}
4041 cat > confinc << 'END'
4043 @echo this is the am__doit target
4046 # If we don't find an include directive, just comment out the code.
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4048 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4052 # First try GNU make style include.
4053 echo "include confinc" > confmf
4054 # Ignore all kinds of additional output from `make'.
4055 case `$am_make -s -f confmf 2> /dev/null` in #(
4056 *the\ am__doit\ target*)
4062 # Now try BSD make style include.
4063 if test "$am__include" = "#"; then
4064 echo '.include "confinc"' > confmf
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4067 am__include=.include
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4076 $as_echo "$_am_result" >&6; }
4077 rm -f confinc confmf
4079 # Check whether --enable-dependency-tracking was given.
4080 if test "${enable_dependency_tracking+set}" = set; then :
4081 enableval=$enable_dependency_tracking;
4084 if test "x$enable_dependency_tracking" != xno; then
4085 am_depcomp="$ac_aux_dir/depcomp"
4088 if test "x$enable_dependency_tracking" != xno; then
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_CC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 if test -n "$CC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133 $as_echo "$CC" >&6; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4141 if test -z "$ac_cv_prog_CC"; then
4143 # Extract the first word of "gcc", so it can be a program name with args.
4144 set dummy gcc; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4150 if test -n "$ac_ct_CC"; then
4151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_ac_ct_CC="gcc"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4171 if test -n "$ac_ct_CC"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4173 $as_echo "$ac_ct_CC" >&6; }
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4179 if test "x$ac_ct_CC" = x; then
4182 case $cross_compiling:$ac_tool_warned in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4194 if test -z "$CC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}cc; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_CC+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_CC="${ac_tool_prefix}cc"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4235 if test -z "$CC"; then
4236 # Extract the first word of "cc", so it can be a program name with args.
4237 set dummy cc; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_CC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4243 if test -n "$CC"; then
4244 ac_cv_prog_CC="$CC" # Let the user override the test.
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir=.
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4255 ac_prog_rejected=yes
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 if test $ac_prog_rejected = yes; then
4267 # We found a bogon in the path, so make sure we never use it.
4268 set dummy $ac_cv_prog_CC
4270 if test $# != 0; then
4271 # We chose a different compiler from the bogus one.
4272 # However, it has the same basename, so the bogon will be chosen
4273 # first if we set CC to just the basename; use the full file name.
4275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4281 if test -n "$CC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4283 $as_echo "$CC" >&6; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4291 if test -z "$CC"; then
4292 if test -n "$ac_tool_prefix"; then
4293 for ac_prog in cl.exe
4295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if test "${ac_cv_prog_CC+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4302 if test -n "$CC"; then
4303 ac_cv_prog_CC="$CC" # Let the user override the test.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 if test -n "$CC"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 $as_echo "$CC" >&6; }
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4332 test -n "$CC" && break
4335 if test -z "$CC"; then
4337 for ac_prog in cl.exe
4339 # Extract the first word of "$ac_prog", so it can be a program name with args.
4340 set dummy $ac_prog; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4346 if test -n "$ac_ct_CC"; then
4347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_ac_ct_CC="$ac_prog"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4367 if test -n "$ac_ct_CC"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4369 $as_echo "$ac_ct_CC" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4376 test -n "$ac_ct_CC" && break
4379 if test "x$ac_ct_CC" = x; then
4382 case $cross_compiling:$ac_tool_warned in
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4386 ac_tool_warned=yes ;;
4395 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4397 as_fn_error $? "no acceptable C compiler found in \$PATH
4398 See \`config.log' for more details" "$LINENO" 5; }
4400 # Provide some information about the compiler.
4401 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4404 for ac_option in --version -v -V -qversion; do
4405 { { ac_try="$ac_compiler $ac_option >&5"
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4414 if test -s conftest.err; then
4416 ... rest of stderr output deleted ...
4417 10q' conftest.err >conftest.er1
4418 cat conftest.er1 >&5
4420 rm -f conftest.er1 conftest.err
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4436 ac_clean_files_save=$ac_clean_files
4437 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4438 # Try to create an executable without -o first, disregard a.out.
4439 # It will help us diagnose broken compilers, and finding out an intuition
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4442 $as_echo_n "checking whether the C compiler works... " >&6; }
4443 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4445 # The possible output files:
4446 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4449 for ac_file in $ac_files
4452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4453 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4458 if { { ac_try="$ac_link_default"
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_link_default") 2>&5
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }; then :
4469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4471 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4472 # so that the user can short-circuit this test for compilers unknown to
4474 for ac_file in $ac_files ''
4476 test -f "$ac_file" || continue
4478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4481 # We found the default executable, but exeext='' is most
4485 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4489 # We set ac_cv_exeext here because the later test for it is not
4490 # safe: cross compilers may not add the suffix if given an `-o'
4491 # argument, so we may need to know it at that point already.
4492 # Even if this section looks crufty: it has the advantage of
4499 test "$ac_cv_exeext" = no && ac_cv_exeext=
4504 if test -z "$ac_file"; then :
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507 $as_echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error 77 "C compiler cannot create executables
4513 See \`config.log' for more details" "$LINENO" 5; }
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4516 $as_echo "yes" >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4519 $as_echo_n "checking for C compiler default output file name... " >&6; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4521 $as_echo "$ac_file" >&6; }
4522 ac_exeext=$ac_cv_exeext
4524 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4525 ac_clean_files=$ac_clean_files_save
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4527 $as_echo_n "checking for suffix of executables... " >&6; }
4528 if { { ac_try="$ac_link"
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535 (eval "$ac_link") 2>&5
4537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }; then :
4539 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4540 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4541 # work properly (i.e., refer to `conftest.exe'), while it won't with
4543 for ac_file in conftest.exe conftest conftest.*; do
4544 test -f "$ac_file" || continue
4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4547 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4556 See \`config.log' for more details" "$LINENO" 5; }
4558 rm -f conftest conftest$ac_cv_exeext
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4560 $as_echo "$ac_cv_exeext" >&6; }
4562 rm -f conftest.$ac_ext
4563 EXEEXT=$ac_cv_exeext
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4571 FILE *f = fopen ("conftest.out", "w");
4572 return ferror (f) || fclose (f) != 0;
4578 ac_clean_files="$ac_clean_files conftest.out"
4579 # Check that the compiler produces executables we can run. If not, either
4580 # the compiler is broken, or we cross compile.
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4582 $as_echo_n "checking whether we are cross compiling... " >&6; }
4583 if test "$cross_compiling" != yes; then
4584 { { ac_try="$ac_link"
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_link") 2>&5
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }
4595 if { ac_try='./conftest$ac_cv_exeext'
4596 { { case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601 $as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_try") 2>&5
4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605 test $ac_status = 0; }; }; then
4608 if test "$cross_compiling" = maybe; then
4611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "cannot run C compiled programs.
4614 If you meant to cross compile, use \`--host'.
4615 See \`config.log' for more details" "$LINENO" 5; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4620 $as_echo "$cross_compiling" >&6; }
4622 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4623 ac_clean_files=$ac_clean_files_save
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4625 $as_echo_n "checking for suffix of object files... " >&6; }
4626 if test "${ac_cv_objext+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4640 rm -f conftest.o conftest.obj
4641 if { { ac_try="$ac_compile"
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647 $as_echo "$ac_try_echo"; } >&5
4648 (eval "$ac_compile") 2>&5
4650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4651 test $ac_status = 0; }; then :
4652 for ac_file in conftest.o conftest.obj conftest.*; do
4653 test -f "$ac_file" || continue;
4655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4661 $as_echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4666 as_fn_error $? "cannot compute suffix of object files: cannot compile
4667 See \`config.log' for more details" "$LINENO" 5; }
4669 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4672 $as_echo "$ac_cv_objext" >&6; }
4673 OBJEXT=$ac_cv_objext
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4676 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4677 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4694 if ac_fn_c_try_compile "$LINENO"; then :
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4704 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4705 if test $ac_compiler_gnu = yes; then
4710 ac_test_CFLAGS=${CFLAGS+set}
4711 ac_save_CFLAGS=$CFLAGS
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4713 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4714 if test "${ac_cv_prog_cc_g+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4717 ac_save_c_werror_flag=$ac_c_werror_flag
4718 ac_c_werror_flag=yes
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4732 if ac_fn_c_try_compile "$LINENO"; then :
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4747 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_c_werror_flag=$ac_save_c_werror_flag
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4763 if ac_fn_c_try_compile "$LINENO"; then :
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 ac_c_werror_flag=$ac_save_c_werror_flag
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4774 $as_echo "$ac_cv_prog_cc_g" >&6; }
4775 if test "$ac_test_CFLAGS" = set; then
4776 CFLAGS=$ac_save_CFLAGS
4777 elif test $ac_cv_prog_cc_g = yes; then
4778 if test "$GCC" = yes; then
4784 if test "$GCC" = yes; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4791 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4792 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4795 ac_cv_prog_cc_c89=no
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4801 #include <sys/types.h>
4802 #include <sys/stat.h>
4803 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4804 struct buf { int x; };
4805 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4806 static char *e (p, i)
4812 static char *f (char * (*g) (char **, int), char **p, ...)
4817 s = g (p, va_arg (v,int));
4822 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4823 function prototypes and stuff, but not '\xHH' hex character constants.
4824 These don't provoke an error unfortunately, instead are silently treated
4825 as 'x'. The following induces an error, until -std is added to get
4826 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4827 array size at least. It's necessary to write '\x00'==0 to get something
4828 that's true only with -std. */
4829 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4831 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4832 inside strings and character constants. */
4834 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4836 int test (int i, double x);
4837 struct s1 {int (*f) (int a);};
4838 struct s2 {int (*f) (double a);};
4839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4845 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4850 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4851 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4853 CC="$ac_save_CC $ac_arg"
4854 if ac_fn_c_try_compile "$LINENO"; then :
4855 ac_cv_prog_cc_c89=$ac_arg
4857 rm -f core conftest.err conftest.$ac_objext
4858 test "x$ac_cv_prog_cc_c89" != "xno" && break
4860 rm -f conftest.$ac_ext
4865 case "x$ac_cv_prog_cc_c89" in
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4868 $as_echo "none needed" >&6; } ;;
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4871 $as_echo "unsupported" >&6; } ;;
4873 CC="$CC $ac_cv_prog_cc_c89"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4875 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4877 if test "x$ac_cv_prog_cc_c89" != xno; then :
4882 ac_cpp='$CPP $CPPFLAGS'
4883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 depcc="$CC" am_compiler_list=
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4890 $as_echo_n "checking dependency style of $depcc... " >&6; }
4891 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4894 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4895 # We make a subdir and do the tests there. Otherwise we can end up
4896 # making bogus files that we don't know about and never remove. For
4897 # instance it was reported that on HP-UX the gcc test will end up
4898 # making a dummy file named `D' -- because `-MD' means `put the output
4901 # Copy depcomp to subdir because otherwise we won't find it if we're
4902 # using a relative directory.
4903 cp "$am_depcomp" conftest.dir
4905 # We will build objects and dependencies in a subdirectory because
4906 # it helps to detect inapplicable dependency modes. For instance
4907 # both Tru64's cc and ICC support -MD to output dependencies as a
4908 # side effect of compilation, but ICC will put the dependencies in
4909 # the current directory while Tru64 will put them in the object
4913 am_cv_CC_dependencies_compiler_type=none
4914 if test "$am_compiler_list" = ""; then
4915 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4918 case " $depcc " in #(
4919 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4922 for depmode in $am_compiler_list; do
4923 # Setup a source with many dependencies, because some compilers
4924 # like to wrap large dependency lists on column 80 (with \), and
4925 # we should not choose a depcomp mode which is confused by this.
4927 # We need to recreate these files for each test, as the compiler may
4928 # overwrite some of them when testing with obscure command lines.
4929 # This happens at least with the AIX C compiler.
4931 for i in 1 2 3 4 5 6; do
4932 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4933 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4934 # Solaris 8's {/usr,}/bin/sh.
4935 touch sub/conftst$i.h
4937 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4939 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4940 # mode. It turns out that the SunPro C++ compiler does not properly
4941 # handle `-M -o', and we need to detect this. Also, some Intel
4942 # versions had trouble with output in subdirs
4943 am__obj=sub/conftest.${OBJEXT-o}
4944 am__minus_obj="-o $am__obj"
4947 # This depmode causes a compiler race in universal mode.
4948 test "$am__universal" = false || continue
4951 # after this tag, mechanisms are not by side-effect, so they'll
4952 # only be used when explicitly requested
4953 if test "x$enable_dependency_tracking" = xyes; then
4959 msvisualcpp | msvcmsys)
4960 # This compiler won't grok `-c -o', but also, the minuso test has
4961 # not run yet. These depmodes are late enough in the game, and
4962 # so weak that their functioning should not be impacted.
4963 am__obj=conftest.${OBJEXT-o}
4968 if depmode=$depmode \
4969 source=sub/conftest.c object=$am__obj \
4970 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4971 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4972 >/dev/null 2>conftest.err &&
4973 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4974 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4975 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4976 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4977 # icc doesn't choke on unknown options, it will just issue warnings
4978 # or remarks (even with -Werror). So we grep stderr for any message
4979 # that says an option was ignored or not supported.
4980 # When given -MP, icc 7.0 and 7.1 complain thusly:
4981 # icc: Command line warning: ignoring option '-M'; no argument required
4982 # The diagnosis changed in icc 8.0:
4983 # icc: Command line remark: option '-MP' not supported
4984 if (grep 'ignoring option' conftest.err ||
4985 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4986 am_cv_CC_dependencies_compiler_type=$depmode
4995 am_cv_CC_dependencies_compiler_type=none
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5000 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5001 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5004 test "x$enable_dependency_tracking" != xno \
5005 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5007 am__fastdepCC_FALSE='#'
5009 am__fastdepCC_TRUE='#'
5010 am__fastdepCC_FALSE=
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5021 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5022 # On Suns, sometimes $CPP names a directory.
5023 if test -n "$CPP" && test -d "$CPP"; then
5026 if test -z "$CPP"; then
5027 if test "${ac_cv_prog_CPP+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5030 # Double quotes because CPP needs to be expanded
5031 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5034 for ac_c_preproc_warn_flag in '' yes
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5045 # include <limits.h>
5047 # include <assert.h>
5051 if ac_fn_c_try_cpp "$LINENO"; then :
5054 # Broken: fails on valid input.
5057 rm -f conftest.err conftest.$ac_ext
5059 # OK, works on sane cases. Now check whether nonexistent headers
5060 # can be detected and how.
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5063 #include <ac_nonexistent.h>
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066 # Broken: success on invalid input.
5069 # Passes both tests.
5073 rm -f conftest.err conftest.$ac_ext
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then :
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5091 $as_echo "$CPP" >&6; }
5093 for ac_c_preproc_warn_flag in '' yes
5095 # Use a header file that comes with gcc, so configuring glibc
5096 # with a fresh cross-compiler works.
5097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098 # <limits.h> exists even on freestanding compilers.
5099 # On the NeXT, cc -E runs the code through the compiler's parser,
5100 # not just through cpp. "Syntax error" is here to catch this case.
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5104 # include <limits.h>
5106 # include <assert.h>
5110 if ac_fn_c_try_cpp "$LINENO"; then :
5113 # Broken: fails on valid input.
5116 rm -f conftest.err conftest.$ac_ext
5118 # OK, works on sane cases. Now check whether nonexistent headers
5119 # can be detected and how.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <ac_nonexistent.h>
5124 if ac_fn_c_try_cpp "$LINENO"; then :
5125 # Broken: success on invalid input.
5128 # Passes both tests.
5132 rm -f conftest.err conftest.$ac_ext
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok; then :
5140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5142 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5143 See \`config.log' for more details" "$LINENO" 5; }
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5154 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5155 if test "${ac_cv_path_GREP+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5158 if test -z "$GREP"; then
5159 ac_path_GREP_found=false
5160 # Loop through the user's path and test for each of PROGNAME-LIST
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5165 test -z "$as_dir" && as_dir=.
5166 for ac_prog in grep ggrep; do
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5169 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5170 # Check for GNU ac_path_GREP and select it if it is found.
5171 # Check for GNU $ac_path_GREP
5172 case `"$ac_path_GREP" --version 2>&1` in
5174 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5177 $as_echo_n 0123456789 >"conftest.in"
5180 cat "conftest.in" "conftest.in" >"conftest.tmp"
5181 mv "conftest.tmp" "conftest.in"
5182 cp "conftest.in" "conftest.nl"
5183 $as_echo 'GREP' >> "conftest.nl"
5184 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5186 as_fn_arith $ac_count + 1 && ac_count=$as_val
5187 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5188 # Best one so far, save it but keep looking for a better one
5189 ac_cv_path_GREP="$ac_path_GREP"
5190 ac_path_GREP_max=$ac_count
5192 # 10*(2^10) chars as input seems more than enough
5193 test $ac_count -gt 10 && break
5195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198 $ac_path_GREP_found && break 3
5203 if test -z "$ac_cv_path_GREP"; then
5204 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5207 ac_cv_path_GREP=$GREP
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5212 $as_echo "$ac_cv_path_GREP" >&6; }
5213 GREP="$ac_cv_path_GREP"
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5217 $as_echo_n "checking for egrep... " >&6; }
5218 if test "${ac_cv_path_EGREP+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5222 then ac_cv_path_EGREP="$GREP -E"
5224 if test -z "$EGREP"; then
5225 ac_path_EGREP_found=false
5226 # Loop through the user's path and test for each of PROGNAME-LIST
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5231 test -z "$as_dir" && as_dir=.
5232 for ac_prog in egrep; do
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5235 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5236 # Check for GNU ac_path_EGREP and select it if it is found.
5237 # Check for GNU $ac_path_EGREP
5238 case `"$ac_path_EGREP" --version 2>&1` in
5240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5243 $as_echo_n 0123456789 >"conftest.in"
5246 cat "conftest.in" "conftest.in" >"conftest.tmp"
5247 mv "conftest.tmp" "conftest.in"
5248 cp "conftest.in" "conftest.nl"
5249 $as_echo 'EGREP' >> "conftest.nl"
5250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5252 as_fn_arith $ac_count + 1 && ac_count=$as_val
5253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5254 # Best one so far, save it but keep looking for a better one
5255 ac_cv_path_EGREP="$ac_path_EGREP"
5256 ac_path_EGREP_max=$ac_count
5258 # 10*(2^10) chars as input seems more than enough
5259 test $ac_count -gt 10 && break
5261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5264 $ac_path_EGREP_found && break 3
5269 if test -z "$ac_cv_path_EGREP"; then
5270 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5273 ac_cv_path_EGREP=$EGREP
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5279 $as_echo "$ac_cv_path_EGREP" >&6; }
5280 EGREP="$ac_cv_path_EGREP"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5284 $as_echo_n "checking for ANSI C header files... " >&6; }
5285 if test "${ac_cv_header_stdc+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304 ac_cv_header_stdc=yes
5306 ac_cv_header_stdc=no
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310 if test $ac_cv_header_stdc = yes; then
5311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "memchr" >/dev/null 2>&1; then :
5321 ac_cv_header_stdc=no
5327 if test $ac_cv_header_stdc = yes; then
5328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5335 $EGREP "free" >/dev/null 2>&1; then :
5338 ac_cv_header_stdc=no
5344 if test $ac_cv_header_stdc = yes; then
5345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5346 if test "$cross_compiling" = yes; then :
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5353 #if ((' ' & 0x0FF) == 0x020)
5354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5357 # define ISLOWER(c) \
5358 (('a' <= (c) && (c) <= 'i') \
5359 || ('j' <= (c) && (c) <= 'r') \
5360 || ('s' <= (c) && (c) <= 'z'))
5361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5369 for (i = 0; i < 256; i++)
5370 if (XOR (islower (i), ISLOWER (i))
5371 || toupper (i) != TOUPPER (i))
5376 if ac_fn_c_try_run "$LINENO"; then :
5379 ac_cv_header_stdc=no
5381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5382 conftest.$ac_objext conftest.beam conftest.$ac_ext
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5388 $as_echo "$ac_cv_header_stdc" >&6; }
5389 if test $ac_cv_header_stdc = yes; then
5391 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5396 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5397 inttypes.h stdint.h unistd.h
5399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5402 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5403 cat >>confdefs.h <<_ACEOF
5404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5413 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5414 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5421 if test "$MINIX" = yes; then
5423 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5429 $as_echo "#define _MINIX 1" >>confdefs.h
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5435 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5436 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5442 # define __EXTENSIONS__ 1
5443 $ac_includes_default
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 ac_cv_safe_to_define___extensions__=yes
5455 ac_cv_safe_to_define___extensions__=no
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5460 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5461 test $ac_cv_safe_to_define___extensions__ = yes &&
5462 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5464 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5466 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5468 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5470 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5474 # Check for programs
5476 ac_cpp='$CPP $CPPFLAGS'
5477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5480 if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if test "${ac_cv_prog_CC+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5488 if test -n "$CC"; then
5489 ac_cv_prog_CC="$CC" # Let the user override the test.
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 if test -n "$CC"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5511 $as_echo "$CC" >&6; }
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5519 if test -z "$ac_cv_prog_CC"; then
5521 # Extract the first word of "gcc", so it can be a program name with args.
5522 set dummy gcc; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 if test -n "$ac_ct_CC"; then
5529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_ac_ct_CC="gcc"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5549 if test -n "$ac_ct_CC"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5551 $as_echo "$ac_ct_CC" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5557 if test "x$ac_ct_CC" = x; then
5560 case $cross_compiling:$ac_tool_warned in
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5572 if test -z "$CC"; then
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}cc; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_CC+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5581 if test -n "$CC"; then
5582 ac_cv_prog_CC="$CC" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_CC="${ac_tool_prefix}cc"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 if test -n "$CC"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5604 $as_echo "$CC" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5613 if test -z "$CC"; then
5614 # Extract the first word of "cc", so it can be a program name with args.
5615 set dummy cc; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_CC+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 if test -n "$CC"; then
5622 ac_cv_prog_CC="$CC" # Let the user override the test.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5633 ac_prog_rejected=yes
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 if test $ac_prog_rejected = yes; then
5645 # We found a bogon in the path, so make sure we never use it.
5646 set dummy $ac_cv_prog_CC
5648 if test $# != 0; then
5649 # We chose a different compiler from the bogus one.
5650 # However, it has the same basename, so the bogon will be chosen
5651 # first if we set CC to just the basename; use the full file name.
5653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5659 if test -n "$CC"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5661 $as_echo "$CC" >&6; }
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5669 if test -z "$CC"; then
5670 if test -n "$ac_tool_prefix"; then
5671 for ac_prog in cl.exe
5673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5674 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5676 $as_echo_n "checking for $ac_word... " >&6; }
5677 if test "${ac_cv_prog_CC+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5680 if test -n "$CC"; then
5681 ac_cv_prog_CC="$CC" # Let the user override the test.
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 if test -n "$CC"; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5703 $as_echo "$CC" >&6; }
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5710 test -n "$CC" && break
5713 if test -z "$CC"; then
5715 for ac_prog in cl.exe
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5724 if test -n "$ac_ct_CC"; then
5725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_ac_ct_CC="$ac_prog"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5745 if test -n "$ac_ct_CC"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5747 $as_echo "$ac_ct_CC" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5754 test -n "$ac_ct_CC" && break
5757 if test "x$ac_ct_CC" = x; then
5760 case $cross_compiling:$ac_tool_warned in
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5773 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5775 as_fn_error $? "no acceptable C compiler found in \$PATH
5776 See \`config.log' for more details" "$LINENO" 5; }
5778 # Provide some information about the compiler.
5779 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5782 for ac_option in --version -v -V -qversion; do
5783 { { ac_try="$ac_compiler $ac_option >&5"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5789 $as_echo "$ac_try_echo"; } >&5
5790 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5792 if test -s conftest.err; then
5794 ... rest of stderr output deleted ...
5795 10q' conftest.err >conftest.er1
5796 cat conftest.er1 >&5
5798 rm -f conftest.er1 conftest.err
5799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5800 test $ac_status = 0; }
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5804 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5805 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5822 if ac_fn_c_try_compile "$LINENO"; then :
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5833 if test $ac_compiler_gnu = yes; then
5838 ac_test_CFLAGS=${CFLAGS+set}
5839 ac_save_CFLAGS=$CFLAGS
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5842 if test "${ac_cv_prog_cc_g+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5845 ac_save_c_werror_flag=$ac_c_werror_flag
5846 ac_c_werror_flag=yes
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5860 if ac_fn_c_try_compile "$LINENO"; then :
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5875 if ac_fn_c_try_compile "$LINENO"; then :
5878 ac_c_werror_flag=$ac_save_c_werror_flag
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5891 if ac_fn_c_try_compile "$LINENO"; then :
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 ac_c_werror_flag=$ac_save_c_werror_flag
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5902 $as_echo "$ac_cv_prog_cc_g" >&6; }
5903 if test "$ac_test_CFLAGS" = set; then
5904 CFLAGS=$ac_save_CFLAGS
5905 elif test $ac_cv_prog_cc_g = yes; then
5906 if test "$GCC" = yes; then
5912 if test "$GCC" = yes; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5919 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5920 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5923 ac_cv_prog_cc_c89=no
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5929 #include <sys/types.h>
5930 #include <sys/stat.h>
5931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5932 struct buf { int x; };
5933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5934 static char *e (p, i)
5940 static char *f (char * (*g) (char **, int), char **p, ...)
5945 s = g (p, va_arg (v,int));
5950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5951 function prototypes and stuff, but not '\xHH' hex character constants.
5952 These don't provoke an error unfortunately, instead are silently treated
5953 as 'x'. The following induces an error, until -std is added to get
5954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5955 array size at least. It's necessary to write '\x00'==0 to get something
5956 that's true only with -std. */
5957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5959 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5960 inside strings and character constants. */
5962 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5964 int test (int i, double x);
5965 struct s1 {int (*f) (int a);};
5966 struct s2 {int (*f) (double a);};
5967 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5978 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5981 CC="$ac_save_CC $ac_arg"
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 ac_cv_prog_cc_c89=$ac_arg
5985 rm -f core conftest.err conftest.$ac_objext
5986 test "x$ac_cv_prog_cc_c89" != "xno" && break
5988 rm -f conftest.$ac_ext
5993 case "x$ac_cv_prog_cc_c89" in
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5996 $as_echo "none needed" >&6; } ;;
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5999 $as_echo "unsupported" >&6; } ;;
6001 CC="$CC $ac_cv_prog_cc_c89"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6003 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6005 if test "x$ac_cv_prog_cc_c89" != xno; then :
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015 depcc="$CC" am_compiler_list=
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6018 $as_echo_n "checking dependency style of $depcc... " >&6; }
6019 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6022 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6023 # We make a subdir and do the tests there. Otherwise we can end up
6024 # making bogus files that we don't know about and never remove. For
6025 # instance it was reported that on HP-UX the gcc test will end up
6026 # making a dummy file named `D' -- because `-MD' means `put the output
6029 # Copy depcomp to subdir because otherwise we won't find it if we're
6030 # using a relative directory.
6031 cp "$am_depcomp" conftest.dir
6033 # We will build objects and dependencies in a subdirectory because
6034 # it helps to detect inapplicable dependency modes. For instance
6035 # both Tru64's cc and ICC support -MD to output dependencies as a
6036 # side effect of compilation, but ICC will put the dependencies in
6037 # the current directory while Tru64 will put them in the object
6041 am_cv_CC_dependencies_compiler_type=none
6042 if test "$am_compiler_list" = ""; then
6043 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6046 case " $depcc " in #(
6047 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6050 for depmode in $am_compiler_list; do
6051 # Setup a source with many dependencies, because some compilers
6052 # like to wrap large dependency lists on column 80 (with \), and
6053 # we should not choose a depcomp mode which is confused by this.
6055 # We need to recreate these files for each test, as the compiler may
6056 # overwrite some of them when testing with obscure command lines.
6057 # This happens at least with the AIX C compiler.
6059 for i in 1 2 3 4 5 6; do
6060 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6061 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6062 # Solaris 8's {/usr,}/bin/sh.
6063 touch sub/conftst$i.h
6065 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6067 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6068 # mode. It turns out that the SunPro C++ compiler does not properly
6069 # handle `-M -o', and we need to detect this. Also, some Intel
6070 # versions had trouble with output in subdirs
6071 am__obj=sub/conftest.${OBJEXT-o}
6072 am__minus_obj="-o $am__obj"
6075 # This depmode causes a compiler race in universal mode.
6076 test "$am__universal" = false || continue
6079 # after this tag, mechanisms are not by side-effect, so they'll
6080 # only be used when explicitly requested
6081 if test "x$enable_dependency_tracking" = xyes; then
6087 msvisualcpp | msvcmsys)
6088 # This compiler won't grok `-c -o', but also, the minuso test has
6089 # not run yet. These depmodes are late enough in the game, and
6090 # so weak that their functioning should not be impacted.
6091 am__obj=conftest.${OBJEXT-o}
6096 if depmode=$depmode \
6097 source=sub/conftest.c object=$am__obj \
6098 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6099 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6100 >/dev/null 2>conftest.err &&
6101 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6102 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6103 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6104 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6105 # icc doesn't choke on unknown options, it will just issue warnings
6106 # or remarks (even with -Werror). So we grep stderr for any message
6107 # that says an option was ignored or not supported.
6108 # When given -MP, icc 7.0 and 7.1 complain thusly:
6109 # icc: Command line warning: ignoring option '-M'; no argument required
6110 # The diagnosis changed in icc 8.0:
6111 # icc: Command line remark: option '-MP' not supported
6112 if (grep 'ignoring option' conftest.err ||
6113 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6114 am_cv_CC_dependencies_compiler_type=$depmode
6123 am_cv_CC_dependencies_compiler_type=none
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6128 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6129 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6132 test "x$enable_dependency_tracking" != xno \
6133 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6135 am__fastdepCC_FALSE='#'
6137 am__fastdepCC_TRUE='#'
6138 am__fastdepCC_FALSE=
6143 ac_cpp='$CXXCPP $CPPFLAGS'
6144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6147 if test -z "$CXX"; then
6148 if test -n "$CCC"; then
6151 if test -n "$ac_tool_prefix"; then
6152 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_CXX+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6161 if test -n "$CXX"; then
6162 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 if test -n "$CXX"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6184 $as_echo "$CXX" >&6; }
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6191 test -n "$CXX" && break
6194 if test -z "$CXX"; then
6196 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6198 # Extract the first word of "$ac_prog", so it can be a program name with args.
6199 set dummy $ac_prog; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$ac_ct_CXX"; then
6206 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_ac_ct_CXX="$ac_prog"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6226 if test -n "$ac_ct_CXX"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6228 $as_echo "$ac_ct_CXX" >&6; }
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6235 test -n "$ac_ct_CXX" && break
6238 if test "x$ac_ct_CXX" = x; then
6241 case $cross_compiling:$ac_tool_warned in
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6253 # Provide some information about the compiler.
6254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6257 for ac_option in --version -v -V -qversion; do
6258 { { ac_try="$ac_compiler $ac_option >&5"
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6264 $as_echo "$ac_try_echo"; } >&5
6265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6267 if test -s conftest.err; then
6269 ... rest of stderr output deleted ...
6270 10q' conftest.err >conftest.er1
6271 cat conftest.er1 >&5
6273 rm -f conftest.er1 conftest.err
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6279 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6280 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6307 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6308 if test $ac_compiler_gnu = yes; then
6313 ac_test_CXXFLAGS=${CXXFLAGS+set}
6314 ac_save_CXXFLAGS=$CXXFLAGS
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6316 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6317 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6320 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6321 ac_cxx_werror_flag=yes
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6335 if ac_fn_cxx_try_compile "$LINENO"; then :
6336 ac_cv_prog_cxx_g=yes
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6350 if ac_fn_cxx_try_compile "$LINENO"; then :
6353 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6366 if ac_fn_cxx_try_compile "$LINENO"; then :
6367 ac_cv_prog_cxx_g=yes
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6377 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6378 if test "$ac_test_CXXFLAGS" = set; then
6379 CXXFLAGS=$ac_save_CXXFLAGS
6380 elif test $ac_cv_prog_cxx_g = yes; then
6381 if test "$GXX" = yes; then
6387 if test "$GXX" = yes; then
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6399 depcc="$CXX" am_compiler_list=
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6402 $as_echo_n "checking dependency style of $depcc... " >&6; }
6403 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6407 # We make a subdir and do the tests there. Otherwise we can end up
6408 # making bogus files that we don't know about and never remove. For
6409 # instance it was reported that on HP-UX the gcc test will end up
6410 # making a dummy file named `D' -- because `-MD' means `put the output
6413 # Copy depcomp to subdir because otherwise we won't find it if we're
6414 # using a relative directory.
6415 cp "$am_depcomp" conftest.dir
6417 # We will build objects and dependencies in a subdirectory because
6418 # it helps to detect inapplicable dependency modes. For instance
6419 # both Tru64's cc and ICC support -MD to output dependencies as a
6420 # side effect of compilation, but ICC will put the dependencies in
6421 # the current directory while Tru64 will put them in the object
6425 am_cv_CXX_dependencies_compiler_type=none
6426 if test "$am_compiler_list" = ""; then
6427 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6430 case " $depcc " in #(
6431 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6434 for depmode in $am_compiler_list; do
6435 # Setup a source with many dependencies, because some compilers
6436 # like to wrap large dependency lists on column 80 (with \), and
6437 # we should not choose a depcomp mode which is confused by this.
6439 # We need to recreate these files for each test, as the compiler may
6440 # overwrite some of them when testing with obscure command lines.
6441 # This happens at least with the AIX C compiler.
6443 for i in 1 2 3 4 5 6; do
6444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6446 # Solaris 8's {/usr,}/bin/sh.
6447 touch sub/conftst$i.h
6449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6451 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6452 # mode. It turns out that the SunPro C++ compiler does not properly
6453 # handle `-M -o', and we need to detect this. Also, some Intel
6454 # versions had trouble with output in subdirs
6455 am__obj=sub/conftest.${OBJEXT-o}
6456 am__minus_obj="-o $am__obj"
6459 # This depmode causes a compiler race in universal mode.
6460 test "$am__universal" = false || continue
6463 # after this tag, mechanisms are not by side-effect, so they'll
6464 # only be used when explicitly requested
6465 if test "x$enable_dependency_tracking" = xyes; then
6471 msvisualcpp | msvcmsys)
6472 # This compiler won't grok `-c -o', but also, the minuso test has
6473 # not run yet. These depmodes are late enough in the game, and
6474 # so weak that their functioning should not be impacted.
6475 am__obj=conftest.${OBJEXT-o}
6480 if depmode=$depmode \
6481 source=sub/conftest.c object=$am__obj \
6482 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6483 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6484 >/dev/null 2>conftest.err &&
6485 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6486 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6487 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6488 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6489 # icc doesn't choke on unknown options, it will just issue warnings
6490 # or remarks (even with -Werror). So we grep stderr for any message
6491 # that says an option was ignored or not supported.
6492 # When given -MP, icc 7.0 and 7.1 complain thusly:
6493 # icc: Command line warning: ignoring option '-M'; no argument required
6494 # The diagnosis changed in icc 8.0:
6495 # icc: Command line remark: option '-MP' not supported
6496 if (grep 'ignoring option' conftest.err ||
6497 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6498 am_cv_CXX_dependencies_compiler_type=$depmode
6507 am_cv_CXX_dependencies_compiler_type=none
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6512 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6513 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6516 test "x$enable_dependency_tracking" != xno \
6517 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6518 am__fastdepCXX_TRUE=
6519 am__fastdepCXX_FALSE='#'
6521 am__fastdepCXX_TRUE='#'
6522 am__fastdepCXX_FALSE=
6526 case $ac_cv_prog_cc_stdc in #(
6528 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6531 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6532 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6535 ac_cv_prog_cc_c99=no
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6540 #include <stdbool.h>
6545 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6546 #define debug(...) fprintf (stderr, __VA_ARGS__)
6547 #define showlist(...) puts (#__VA_ARGS__)
6548 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6550 test_varargs_macros (void)
6555 debug ("X = %d\n", x);
6556 showlist (The first, second, and third items.);
6557 report (x>y, "x is %d but y is %d", x, y);
6560 // Check long long types.
6561 #define BIG64 18446744073709551615ull
6562 #define BIG32 4294967295ul
6563 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6565 your preprocessor is broken;
6569 your preprocessor is broken;
6571 static long long int bignum = -9223372036854775807LL;
6572 static unsigned long long int ubignum = BIG64;
6574 struct incomplete_array
6582 const wchar_t *name;
6586 typedef const char *ccp;
6589 test_restrict (ccp restrict text)
6591 // See if C++-style comments work.
6592 // Iterate through items via the restricted pointer.
6593 // Also check for declarations in for loops.
6594 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6599 // Check varargs and va_copy.
6601 test_varargs (const char *format, ...)
6604 va_start (args, format);
6606 va_copy (args_copy, args);
6617 str = va_arg (args_copy, const char *);
6620 number = va_arg (args_copy, int);
6623 fnumber = va_arg (args_copy, double);
6638 _Bool success = false;
6641 if (test_restrict ("String literal") == 0)
6643 char *restrict newvar = "Another string";
6646 test_varargs ("s, d' f .", "string", 65, 34.234);
6647 test_varargs_macros ();
6649 // Check flexible array members.
6650 struct incomplete_array *ia =
6651 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6653 for (int i = 0; i < ia->datasize; ++i)
6654 ia->data[i] = i * 1.234;
6656 // Check named initializers.
6657 struct named_init ni = {
6659 .name = L"Test wide string",
6660 .average = 543.34343,
6665 int dynamic_array[ni.number];
6666 dynamic_array[ni.number - 1] = 543;
6668 // work around unused variable warnings
6669 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6670 || dynamic_array[ni.number - 1] != 543);
6676 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6678 CC="$ac_save_CC $ac_arg"
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 ac_cv_prog_cc_c99=$ac_arg
6682 rm -f core conftest.err conftest.$ac_objext
6683 test "x$ac_cv_prog_cc_c99" != "xno" && break
6685 rm -f conftest.$ac_ext
6690 case "x$ac_cv_prog_cc_c99" in
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6693 $as_echo "none needed" >&6; } ;;
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6696 $as_echo "unsupported" >&6; } ;;
6698 CC="$CC $ac_cv_prog_cc_c99"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6700 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6702 if test "x$ac_cv_prog_cc_c99" != xno; then :
6703 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6706 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6707 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6710 ac_cv_prog_cc_c89=no
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6716 #include <sys/types.h>
6717 #include <sys/stat.h>
6718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6719 struct buf { int x; };
6720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6721 static char *e (p, i)
6727 static char *f (char * (*g) (char **, int), char **p, ...)
6732 s = g (p, va_arg (v,int));
6737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6738 function prototypes and stuff, but not '\xHH' hex character constants.
6739 These don't provoke an error unfortunately, instead are silently treated
6740 as 'x'. The following induces an error, until -std is added to get
6741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6742 array size at least. It's necessary to write '\x00'==0 to get something
6743 that's true only with -std. */
6744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6747 inside strings and character constants. */
6749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6751 int test (int i, double x);
6752 struct s1 {int (*f) (int a);};
6753 struct s2 {int (*f) (double a);};
6754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6760 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6766 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6768 CC="$ac_save_CC $ac_arg"
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 ac_cv_prog_cc_c89=$ac_arg
6772 rm -f core conftest.err conftest.$ac_objext
6773 test "x$ac_cv_prog_cc_c89" != "xno" && break
6775 rm -f conftest.$ac_ext
6780 case "x$ac_cv_prog_cc_c89" in
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6783 $as_echo "none needed" >&6; } ;;
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6786 $as_echo "unsupported" >&6; } ;;
6788 CC="$CC $ac_cv_prog_cc_c89"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6790 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6792 if test "x$ac_cv_prog_cc_c89" != xno; then :
6793 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6795 ac_cv_prog_cc_stdc=no
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6802 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6803 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6807 case $ac_cv_prog_cc_stdc in #(
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6810 $as_echo "unsupported" >&6; } ;; #(
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6813 $as_echo "none needed" >&6; } ;; #(
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6816 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6820 ac_cpp='$CPP $CPPFLAGS'
6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6826 # On Suns, sometimes $CPP names a directory.
6827 if test -n "$CPP" && test -d "$CPP"; then
6830 if test -z "$CPP"; then
6831 if test "${ac_cv_prog_CPP+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6834 # Double quotes because CPP needs to be expanded
6835 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6838 for ac_c_preproc_warn_flag in '' yes
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error" is here to catch this case.
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6849 # include <limits.h>
6851 # include <assert.h>
6855 if ac_fn_c_try_cpp "$LINENO"; then :
6858 # Broken: fails on valid input.
6861 rm -f conftest.err conftest.$ac_ext
6863 # OK, works on sane cases. Now check whether nonexistent headers
6864 # can be detected and how.
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 #include <ac_nonexistent.h>
6869 if ac_fn_c_try_cpp "$LINENO"; then :
6870 # Broken: success on invalid input.
6873 # Passes both tests.
6877 rm -f conftest.err conftest.$ac_ext
6880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6881 rm -f conftest.err conftest.$ac_ext
6882 if $ac_preproc_ok; then :
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6895 $as_echo "$CPP" >&6; }
6897 for ac_c_preproc_warn_flag in '' yes
6899 # Use a header file that comes with gcc, so configuring glibc
6900 # with a fresh cross-compiler works.
6901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6902 # <limits.h> exists even on freestanding compilers.
6903 # On the NeXT, cc -E runs the code through the compiler's parser,
6904 # not just through cpp. "Syntax error" is here to catch this case.
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6908 # include <limits.h>
6910 # include <assert.h>
6914 if ac_fn_c_try_cpp "$LINENO"; then :
6917 # Broken: fails on valid input.
6920 rm -f conftest.err conftest.$ac_ext
6922 # OK, works on sane cases. Now check whether nonexistent headers
6923 # can be detected and how.
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6926 #include <ac_nonexistent.h>
6928 if ac_fn_c_try_cpp "$LINENO"; then :
6929 # Broken: success on invalid input.
6932 # Passes both tests.
6936 rm -f conftest.err conftest.$ac_ext
6939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6940 rm -f conftest.err conftest.$ac_ext
6941 if $ac_preproc_ok; then :
6944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6946 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6947 See \`config.log' for more details" "$LINENO" 5; }
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6957 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6958 if test "${ac_cv_path_SED+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6961 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6962 for ac_i in 1 2 3 4 5 6 7; do
6963 ac_script="$ac_script$as_nl$ac_script"
6965 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6966 { ac_script=; unset ac_script;}
6967 if test -z "$SED"; then
6968 ac_path_SED_found=false
6969 # Loop through the user's path and test for each of PROGNAME-LIST
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_prog in sed gsed; do
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6978 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6979 # Check for GNU ac_path_SED and select it if it is found.
6980 # Check for GNU $ac_path_SED
6981 case `"$ac_path_SED" --version 2>&1` in
6983 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6986 $as_echo_n 0123456789 >"conftest.in"
6989 cat "conftest.in" "conftest.in" >"conftest.tmp"
6990 mv "conftest.tmp" "conftest.in"
6991 cp "conftest.in" "conftest.nl"
6992 $as_echo '' >> "conftest.nl"
6993 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6995 as_fn_arith $ac_count + 1 && ac_count=$as_val
6996 if test $ac_count -gt ${ac_path_SED_max-0}; then
6997 # Best one so far, save it but keep looking for a better one
6998 ac_cv_path_SED="$ac_path_SED"
6999 ac_path_SED_max=$ac_count
7001 # 10*(2^10) chars as input seems more than enough
7002 test $ac_count -gt 10 && break
7004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7007 $ac_path_SED_found && break 3
7012 if test -z "$ac_cv_path_SED"; then
7013 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7021 $as_echo "$ac_cv_path_SED" >&6; }
7022 SED="$ac_cv_path_SED"
7025 test -z "$SED" && SED=sed
7026 Xsed="$SED -e 1s/^X//"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7039 $as_echo_n "checking for fgrep... " >&6; }
7040 if test "${ac_cv_path_FGREP+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7043 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7044 then ac_cv_path_FGREP="$GREP -F"
7046 if test -z "$FGREP"; then
7047 ac_path_FGREP_found=false
7048 # Loop through the user's path and test for each of PROGNAME-LIST
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7053 test -z "$as_dir" && as_dir=.
7054 for ac_prog in fgrep; do
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7057 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7058 # Check for GNU ac_path_FGREP and select it if it is found.
7059 # Check for GNU $ac_path_FGREP
7060 case `"$ac_path_FGREP" --version 2>&1` in
7062 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7065 $as_echo_n 0123456789 >"conftest.in"
7068 cat "conftest.in" "conftest.in" >"conftest.tmp"
7069 mv "conftest.tmp" "conftest.in"
7070 cp "conftest.in" "conftest.nl"
7071 $as_echo 'FGREP' >> "conftest.nl"
7072 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7074 as_fn_arith $ac_count + 1 && ac_count=$as_val
7075 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7076 # Best one so far, save it but keep looking for a better one
7077 ac_cv_path_FGREP="$ac_path_FGREP"
7078 ac_path_FGREP_max=$ac_count
7080 # 10*(2^10) chars as input seems more than enough
7081 test $ac_count -gt 10 && break
7083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7086 $ac_path_FGREP_found && break 3
7091 if test -z "$ac_cv_path_FGREP"; then
7092 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7095 ac_cv_path_FGREP=$FGREP
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7101 $as_echo "$ac_cv_path_FGREP" >&6; }
7102 FGREP="$ac_cv_path_FGREP"
7105 test -z "$GREP" && GREP=grep
7123 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7125 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7128 $as_echo_n "checking how to print strings... " >&6; }
7129 # Test print first, because it will be a builtin if present.
7130 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7131 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7133 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7136 # Use this function as a fallback that always works.
7137 func_fallback_echo ()
7139 eval 'cat <<_LTECHO_EOF
7143 ECHO='func_fallback_echo'
7146 # func_echo_all arg...
7147 # Invoke $ECHO with all args, space-separated.
7154 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7155 $as_echo "printf" >&6; } ;;
7156 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7157 $as_echo "print -r" >&6; } ;;
7158 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7159 $as_echo "cat" >&6; } ;;
7177 # Check whether --with-gnu-ld was given.
7178 if test "${with_gnu_ld+set}" = set; then :
7179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7185 if test "$GCC" = yes; then
7186 # Check if gcc -print-prog-name=ld gives a path.
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7188 $as_echo_n "checking for ld used by $CC... " >&6; }
7191 # gcc leaves a trailing carriage return which upsets mingw
7192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7197 # Accept absolute paths.
7199 re_direlt='/[^/][^/]*/\.\./'
7200 # Canonicalize the pathname of ld
7201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7205 test -z "$LD" && LD="$ac_prog"
7208 # If it fails, then pretend we aren't using GCC.
7212 # If it is relative, then search for the first ld in PATH.
7216 elif test "$with_gnu_ld" = yes; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7218 $as_echo_n "checking for GNU ld... " >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7221 $as_echo_n "checking for non-GNU ld... " >&6; }
7223 if test "${lt_cv_path_LD+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7226 if test -z "$LD"; then
7227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7228 for ac_dir in $PATH; do
7230 test -z "$ac_dir" && ac_dir=.
7231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7232 lt_cv_path_LD="$ac_dir/$ac_prog"
7233 # Check to see if the program is GNU ld. I'd rather use --version,
7234 # but apparently some variants of GNU ld only accept -v.
7235 # Break only if it was the GNU/non-GNU ld that we prefer.
7236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7237 *GNU* | *'with BFD'*)
7238 test "$with_gnu_ld" != no && break
7241 test "$with_gnu_ld" != yes && break
7248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7253 if test -n "$LD"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7255 $as_echo "$LD" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7263 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7267 case `$LD -v 2>&1 </dev/null` in
7268 *GNU* | *'with BFD'*)
7269 lt_cv_prog_gnu_ld=yes
7272 lt_cv_prog_gnu_ld=no
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7278 with_gnu_ld=$lt_cv_prog_gnu_ld
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7290 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7291 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7294 ac_cv_prog_cc_c99=no
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7299 #include <stdbool.h>
7304 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7305 #define debug(...) fprintf (stderr, __VA_ARGS__)
7306 #define showlist(...) puts (#__VA_ARGS__)
7307 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7309 test_varargs_macros (void)
7314 debug ("X = %d\n", x);
7315 showlist (The first, second, and third items.);
7316 report (x>y, "x is %d but y is %d", x, y);
7319 // Check long long types.
7320 #define BIG64 18446744073709551615ull
7321 #define BIG32 4294967295ul
7322 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7324 your preprocessor is broken;
7328 your preprocessor is broken;
7330 static long long int bignum = -9223372036854775807LL;
7331 static unsigned long long int ubignum = BIG64;
7333 struct incomplete_array
7341 const wchar_t *name;
7345 typedef const char *ccp;
7348 test_restrict (ccp restrict text)
7350 // See if C++-style comments work.
7351 // Iterate through items via the restricted pointer.
7352 // Also check for declarations in for loops.
7353 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7358 // Check varargs and va_copy.
7360 test_varargs (const char *format, ...)
7363 va_start (args, format);
7365 va_copy (args_copy, args);
7376 str = va_arg (args_copy, const char *);
7379 number = va_arg (args_copy, int);
7382 fnumber = va_arg (args_copy, double);
7397 _Bool success = false;
7400 if (test_restrict ("String literal") == 0)
7402 char *restrict newvar = "Another string";
7405 test_varargs ("s, d' f .", "string", 65, 34.234);
7406 test_varargs_macros ();
7408 // Check flexible array members.
7409 struct incomplete_array *ia =
7410 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7412 for (int i = 0; i < ia->datasize; ++i)
7413 ia->data[i] = i * 1.234;
7415 // Check named initializers.
7416 struct named_init ni = {
7418 .name = L"Test wide string",
7419 .average = 543.34343,
7424 int dynamic_array[ni.number];
7425 dynamic_array[ni.number - 1] = 543;
7427 // work around unused variable warnings
7428 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7429 || dynamic_array[ni.number - 1] != 543);
7435 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7437 CC="$ac_save_CC $ac_arg"
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439 ac_cv_prog_cc_c99=$ac_arg
7441 rm -f core conftest.err conftest.$ac_objext
7442 test "x$ac_cv_prog_cc_c99" != "xno" && break
7444 rm -f conftest.$ac_ext
7449 case "x$ac_cv_prog_cc_c99" in
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7452 $as_echo "none needed" >&6; } ;;
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7455 $as_echo "unsupported" >&6; } ;;
7457 CC="$CC $ac_cv_prog_cc_c99"
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7459 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7461 if test "x$ac_cv_prog_cc_c99" != xno; then :
7466 if test "x$CC" != xcc; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7468 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7471 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7473 set dummy $CC; ac_cc=`$as_echo "$2" |
7474 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7475 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
7476 $as_echo_n "(cached) " >&6
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7489 # Make sure it works both with $CC and with simple cc.
7490 # We do the test twice because some compilers refuse to overwrite an
7491 # existing .o file with -o, though they will create one.
7492 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7494 if { { case "(($ac_try" in
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7499 $as_echo "$ac_try_echo"; } >&5
7500 (eval "$ac_try") 2>&5
7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7503 test $ac_status = 0; } &&
7504 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7509 $as_echo "$ac_try_echo"; } >&5
7510 (eval "$ac_try") 2>&5
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7513 test $ac_status = 0; };
7515 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7516 if test "x$CC" != xcc; then
7517 # Test first that cc exists at all.
7518 if { ac_try='cc -c conftest.$ac_ext >&5'
7519 { { case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7524 $as_echo "$ac_try_echo"; } >&5
7525 (eval "$ac_try") 2>&5
7527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528 test $ac_status = 0; }; }; then
7529 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7531 if { { case "(($ac_try" in
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7536 $as_echo "$ac_try_echo"; } >&5
7537 (eval "$ac_try") 2>&5
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; } &&
7541 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7546 $as_echo "$ac_try_echo"; } >&5
7547 (eval "$ac_try") 2>&5
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; };
7555 # cc exists but doesn't like -o.
7556 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7561 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7563 rm -f core conftest*
7566 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7568 $as_echo "yes" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7573 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7577 # FIXME: we rely on the cache variable name because
7578 # there is no other way.
7580 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7581 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7582 if test "$am_t" != yes; then
7583 # Losing compiler, so override with the script.
7584 # FIXME: It is wrong to rewrite CC.
7585 # But if we don't then we get into trouble of one sort or another.
7586 # A longer-term fix would be to have automake use am__CC in this case,
7587 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7588 CC="$am_aux_dir/compile $CC"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7593 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7594 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7597 ac_cv_cflags_warn_all="no, unknown"
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 ac_save_CFLAGS="$CFLAGS"
7605 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" #
7606 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7618 if ac_fn_c_try_compile "$LINENO"; then :
7619 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 CFLAGS="$ac_save_CFLAGS"
7625 ac_cpp='$CPP $CPPFLAGS'
7626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7633 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7634 case ".$ac_cv_cflags_warn_all" in
7639 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7640 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7641 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7646 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }
7650 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7657 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7659 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7660 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7661 $as_echo_n "(cached) " >&6
7663 cat >conftest.make <<\_ACEOF
7666 @echo '@@@%%%=$(MAKE)=@@@%%%'
7668 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7669 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7671 eval ac_cv_prog_make_${ac_make}_set=yes;;
7673 eval ac_cv_prog_make_${ac_make}_set=no;;
7677 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679 $as_echo "yes" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 SET_MAKE="MAKE=${MAKE-make}"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7688 $as_echo_n "checking whether ln -s works... " >&6; }
7690 if test "$LN_S" = "ln -s"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692 $as_echo "yes" >&6; }
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7695 $as_echo "no, using $LN_S" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7699 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7701 # Check whether --with-dmalloc was given.
7702 if test "${with_dmalloc+set}" = set; then :
7703 withval=$with_dmalloc; if test "$withval" = yes; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7705 $as_echo "yes" >&6; }
7707 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7709 LIBS="$LIBS -ldmalloc"
7710 LDFLAGS="$LDFLAGS -g"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7723 $as_echo_n "checking for __attribute__... " >&6; }
7724 if test "${ax_cv___attribute__+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7730 static void foo(void) __attribute__ ((unused));
7744 if ac_fn_c_try_compile "$LINENO"; then :
7745 ax_cv___attribute__=yes
7747 ax_cv___attribute__=no
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7754 $as_echo "$ax_cv___attribute__" >&6; }
7755 if test "$ax_cv___attribute__" = "yes"; then
7757 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7763 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7796 if test -n "$PKG_CONFIG"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7798 $as_echo "$PKG_CONFIG" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7806 if test -z "$ac_cv_path_PKG_CONFIG"; then
7807 ac_pt_PKG_CONFIG=$PKG_CONFIG
7808 # Extract the first word of "pkg-config", so it can be a program name with args.
7809 set dummy pkg-config; ac_word=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7813 $as_echo_n "(cached) " >&6
7815 case $ac_pt_PKG_CONFIG in
7817 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7839 if test -n "$ac_pt_PKG_CONFIG"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7841 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7847 if test "x$ac_pt_PKG_CONFIG" = x; then
7850 case $cross_compiling:$ac_tool_warned in
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7856 PKG_CONFIG=$ac_pt_PKG_CONFIG
7859 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7863 if test -n "$PKG_CONFIG"; then
7864 _pkg_min_version=0.9.0
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7866 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7867 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7879 # Enable run-time checking.
7881 # Check whether --enable-bounds-checking was given.
7882 if test "${enable_bounds_checking+set}" = set; then :
7883 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7885 enable_bounds_checking='no'
7889 if test "$enable_bounds_checking" = yes; then
7891 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7901 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7902 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7919 if ac_fn_c_try_compile "$LINENO"; then :
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 ax_cv_c_compiler_ms=$ax_compiler_ms
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7929 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7932 native_win32_build='no'
7934 case "${host_os}" in
7937 GDI32_LIBS='-lgdi32'
7940 native_win32_build='yes'
7941 GDI32_LIBS='-lgdi32'
7944 if test "${GDI32_LIBS}x" != 'x'; then
7946 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7950 if test "${GDI32_LIBS}x" != 'x' ; then
7951 WINGDI32_DELEGATE_TRUE=
7952 WINGDI32_DELEGATE_FALSE='#'
7954 WINGDI32_DELEGATE_TRUE='#'
7955 WINGDI32_DELEGATE_FALSE=
7958 if test "${native_win32_build}" = 'yes' ; then
7959 WIN32_NATIVE_BUILD_TRUE=
7960 WIN32_NATIVE_BUILD_FALSE='#'
7962 WIN32_NATIVE_BUILD_TRUE='#'
7963 WIN32_NATIVE_BUILD_FALSE=
7966 if test "${cygwin_build}" = 'yes' ; then
7968 CYGWIN_BUILD_FALSE='#'
7970 CYGWIN_BUILD_TRUE='#'
7974 if test "x${CC}" = 'xcl.exe' ; then
7983 WinPathScript="${srcdirfull}/winpath.sh"
7987 # Compiler flags tweaks
7989 if test "${GCC}" != "yes"; then
7992 # aCC: HP ANSI C++ B3910B A.03.34
7993 CFLAGS="${CFLAGS} -Wp,-H30000"
7994 if test -n "${CXXFLAGS}"; then
7997 CXXFLAGS="${CXXFLAGS} -AA"
8001 # Compaq alphaev68-dec-osf5.1 compiler
8002 if test -n "${CXXFLAGS}"; then
8003 CXXFLAGS='-std strict_ansi -noimplicit_include'
8005 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8010 # Check for lazy-loading.
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8012 $as_echo_n "checking for linker lazyload option... " >&6; }
8013 if test "${im_cv_ld_lazyload+set}" = set; then :
8014 $as_echo_n "(cached) " >&6
8017 im_cv_ld_lazyload='none'
8019 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8020 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8021 im_cv_ld_lazyload='-Wl,-zlazyload'
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8028 $as_echo "$im_cv_ld_lazyload" >&6; }
8029 if test "${im_cv_ld_lazyload}" != 'none' ; then
8030 if test -z "${LDFLAGS}" ; then
8031 LDFLAGS="${im_cv_ld_lazyload}"
8033 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8038 *darwin* | *-macos10*)
8039 # Check whether --enable-osx-universal-binary was given.
8040 if test "${enable_osx_universal_binary+set}" = set; then :
8041 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8043 build_osxuniversal=no
8047 if test "${build_osxuniversal}" != no ; then
8048 if test "$enable_dependency_tracking" != no ; then
8049 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8050 Please re-run configure with these options:
8051 --disable-dependency-tracking --enable-osx-universal-binary
8054 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8055 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8056 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8061 # Enable support for threads
8063 # Check whether --with-threads was given.
8064 if test "${with_threads+set}" = set; then :
8065 withval=$with_threads; with_threads=$withval
8072 if test "$with_threads" != 'no'; then
8077 ac_cpp='$CPP $CPPFLAGS'
8078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8084 # We used to check for pthread.h first, but this fails if pthread.h
8085 # requires special compiler flags (e.g. on True64 or Sequent).
8086 # It gets checked for in the link test anyway.
8088 # First of all, check if the user has set any of the PTHREAD_LIBS,
8089 # etcetera environment variables, and if threads linking works using
8091 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8092 save_CFLAGS="$CFLAGS"
8093 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8095 LIBS="$PTHREAD_LIBS $LIBS"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8097 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8101 /* Override any GCC internal prototype to avoid an error.
8102 Use char because int might match the return type of a GCC
8103 builtin and then its argument prototype would still apply. */
8107 char pthread_join ();
8111 return pthread_join ();
8116 if ac_fn_c_try_link "$LINENO"; then :
8119 rm -f core conftest.err conftest.$ac_objext \
8120 conftest$ac_exeext conftest.$ac_ext
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8122 $as_echo "$ax_pthread_ok" >&6; }
8123 if test x"$ax_pthread_ok" = xno; then
8128 CFLAGS="$save_CFLAGS"
8131 # We must check for the threads library under a number of different
8132 # names; the ordering is very important because some systems
8133 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8134 # libraries is broken (non-POSIX).
8136 # Create a list of thread flags to try. Items starting with a "-" are
8137 # C compiler flags, and other items are library names, except for "none"
8138 # which indicates that we try without any flags at all, and "pthread-config"
8139 # which is a program returning the flags for the Pth emulation library.
8141 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8143 # The ordering *is* (sometimes) important. Some notes on the
8144 # individual items follow:
8146 # pthreads: AIX (must check this before -lpthread)
8147 # none: in case threads are in libc; should be tried before -Kthread and
8148 # other compiler flags to prevent continual compiler warnings
8149 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8150 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8151 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8152 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8153 # -pthreads: Solaris/gcc
8154 # -mthreads: Mingw32/gcc, Lynx/gcc
8155 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8156 # doesn't hurt to check since this sometimes defines pthreads too;
8157 # also defines -D_REENTRANT)
8158 # ... -mt is also the pthreads flag for HP/aCC
8159 # pthread: Linux, etcetera
8160 # --thread-safe: KAI C++
8161 # pthread-config: use pthread-config program (for GNU Pth library)
8163 case "${host_cpu}-${host_os}" in
8166 # On Solaris (at least, for some versions), libc contains stubbed
8167 # (non-functional) versions of the pthreads routines, so link-based
8168 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8169 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8170 # a function called by this macro, so we could check for that, but
8171 # who knows whether they'll stub that too in a future libc.) So,
8172 # we'll just look for -pthreads and -lpthread first:
8174 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8178 ax_pthread_flags="-pthread $ax_pthread_flags"
8182 if test x"$ax_pthread_ok" = xno; then
8183 for flag in $ax_pthread_flags; do
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8188 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8193 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8194 PTHREAD_CFLAGS="$flag"
8198 # Extract the first word of "pthread-config", so it can be a program name with args.
8199 set dummy pthread-config; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8205 if test -n "$ax_pthread_config"; then
8206 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_prog_ax_pthread_config="yes"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8226 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8227 if test -n "$ax_pthread_config"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8229 $as_echo "$ax_pthread_config" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8236 if test x"$ax_pthread_config" = xno; then continue; fi
8237 PTHREAD_CFLAGS="`pthread-config --cflags`"
8238 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8243 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8244 PTHREAD_LIBS="-l$flag"
8249 save_CFLAGS="$CFLAGS"
8250 LIBS="$PTHREAD_LIBS $LIBS"
8251 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8253 # Check for various functions. We must include pthread.h,
8254 # since some functions may be macros. (On the Sequent, we
8255 # need a special flag -Kthread to make this header compile.)
8256 # We check for pthread_join because it is in -lpthread on IRIX
8257 # while pthread_create is in libc. We check for pthread_attr_init
8258 # due to DEC craziness with -lpthreads. We check for
8259 # pthread_cleanup_push because it is one of the few pthread
8260 # functions on Solaris that doesn't have a non-functional libc stub.
8261 # We try pthread_create on general principles.
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #include <pthread.h>
8265 static void routine(void* a) {a=0;}
8266 static void* start_routine(void* a) {return a;}
8270 pthread_t th; pthread_attr_t attr;
8271 pthread_create(&th,0,start_routine,0);
8272 pthread_join(th, 0);
8273 pthread_attr_init(&attr);
8274 pthread_cleanup_push(routine, 0);
8275 pthread_cleanup_pop(0);
8280 if ac_fn_c_try_link "$LINENO"; then :
8283 rm -f core conftest.err conftest.$ac_objext \
8284 conftest$ac_exeext conftest.$ac_ext
8287 CFLAGS="$save_CFLAGS"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8290 $as_echo "$ax_pthread_ok" >&6; }
8291 if test "x$ax_pthread_ok" = xyes; then
8300 # Various other checks:
8301 if test "x$ax_pthread_ok" = xyes; then
8303 LIBS="$PTHREAD_LIBS $LIBS"
8304 save_CFLAGS="$CFLAGS"
8305 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8307 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8309 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8311 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 #include <pthread.h>
8318 int attr=$attr; return attr;
8323 if ac_fn_c_try_link "$LINENO"; then :
8324 attr_name=$attr; break
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8330 $as_echo "$attr_name" >&6; }
8331 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8333 cat >>confdefs.h <<_ACEOF
8334 #define PTHREAD_CREATE_JOINABLE $attr_name
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8340 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8342 case "${host_cpu}-${host_os}" in
8343 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8344 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8347 $as_echo "${flag}" >&6; }
8348 if test "x$flag" != xno; then
8349 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8353 CFLAGS="$save_CFLAGS"
8355 # More AIX lossage: must compile with xlc_r or cc_r
8356 if test x"$GCC" != xyes; then
8357 for ac_prog in xlc_r cc_r
8359 # Extract the first word of "$ac_prog", so it can be a program name with args.
8360 set dummy $ac_prog; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8366 if test -n "$PTHREAD_CC"; then
8367 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_prog_PTHREAD_CC="$ac_prog"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8387 if test -n "$PTHREAD_CC"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8389 $as_echo "$PTHREAD_CC" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8396 test -n "$PTHREAD_CC" && break
8398 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8411 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8412 if test x"$ax_pthread_ok" = xyes; then
8414 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8422 ac_cpp='$CPP $CPPFLAGS'
8423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8428 if test "$ax_pthread_ok" = yes; then
8430 DEF_THREAD="$PTHREAD_CFLAGS"
8431 CFLAGS="$CFLAGS $DEF_THREAD"
8432 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8433 if test "$CC" != "$PTHREAD_CC"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8435 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8439 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8444 # Enable support for OpenMP
8445 if test "$have_threads" != 'yes'; then
8446 ac_cv_prog_c_openmp=unsupported
8450 # Check whether --enable-openmp was given.
8451 if test "${enable_openmp+set}" = set; then :
8452 enableval=$enable_openmp;
8455 if test "$enable_openmp" != no; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8457 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8458 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8468 int main () { return omp_get_num_threads (); }
8471 if ac_fn_c_try_link "$LINENO"; then :
8472 ac_cv_prog_c_openmp='none needed'
8474 ac_cv_prog_c_openmp='unsupported'
8475 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8476 ac_save_CFLAGS=$CFLAGS
8477 CFLAGS="$CFLAGS $ac_option"
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8485 int main () { return omp_get_num_threads (); }
8488 if ac_fn_c_try_link "$LINENO"; then :
8489 ac_cv_prog_c_openmp=$ac_option
8491 rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 CFLAGS=$ac_save_CFLAGS
8494 if test "$ac_cv_prog_c_openmp" != unsupported; then
8499 rm -f core conftest.err conftest.$ac_objext \
8500 conftest$ac_exeext conftest.$ac_ext
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8503 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8504 case $ac_cv_prog_c_openmp in #(
8505 "none needed" | unsupported)
8508 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8513 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8514 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8516 if test "$enable_openmp" != no; then
8517 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8518 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8522 # Enable support for OpenCL
8527 ac_cpp='$CPP $CPPFLAGS'
8528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8534 # We used to check for pthread.h first, but this fails if pthread.h
8535 # requires special compiler flags (e.g. on True64 or Sequent).
8536 # It gets checked for in the link test anyway.
8538 # First of all, check if the user has set any of the PTHREAD_LIBS,
8539 # etcetera environment variables, and if threads linking works using
8541 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8542 save_CFLAGS="$CFLAGS"
8543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8545 LIBS="$PTHREAD_LIBS $LIBS"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8547 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8551 /* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply. */
8557 char pthread_join ();
8561 return pthread_join ();
8566 if ac_fn_c_try_link "$LINENO"; then :
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8572 $as_echo "$ax_pthread_ok" >&6; }
8573 if test x"$ax_pthread_ok" = xno; then
8578 CFLAGS="$save_CFLAGS"
8581 # We must check for the threads library under a number of different
8582 # names; the ordering is very important because some systems
8583 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8584 # libraries is broken (non-POSIX).
8586 # Create a list of thread flags to try. Items starting with a "-" are
8587 # C compiler flags, and other items are library names, except for "none"
8588 # which indicates that we try without any flags at all, and "pthread-config"
8589 # which is a program returning the flags for the Pth emulation library.
8591 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8593 # The ordering *is* (sometimes) important. Some notes on the
8594 # individual items follow:
8596 # pthreads: AIX (must check this before -lpthread)
8597 # none: in case threads are in libc; should be tried before -Kthread and
8598 # other compiler flags to prevent continual compiler warnings
8599 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8600 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8601 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8602 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8603 # -pthreads: Solaris/gcc
8604 # -mthreads: Mingw32/gcc, Lynx/gcc
8605 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8606 # doesn't hurt to check since this sometimes defines pthreads too;
8607 # also defines -D_REENTRANT)
8608 # ... -mt is also the pthreads flag for HP/aCC
8609 # pthread: Linux, etcetera
8610 # --thread-safe: KAI C++
8611 # pthread-config: use pthread-config program (for GNU Pth library)
8613 case "${host_cpu}-${host_os}" in
8616 # On Solaris (at least, for some versions), libc contains stubbed
8617 # (non-functional) versions of the pthreads routines, so link-based
8618 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8619 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8620 # a function called by this macro, so we could check for that, but
8621 # who knows whether they'll stub that too in a future libc.) So,
8622 # we'll just look for -pthreads and -lpthread first:
8624 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8628 ax_pthread_flags="-pthread $ax_pthread_flags"
8632 if test x"$ax_pthread_ok" = xno; then
8633 for flag in $ax_pthread_flags; do
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8638 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8643 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8644 PTHREAD_CFLAGS="$flag"
8648 # Extract the first word of "pthread-config", so it can be a program name with args.
8649 set dummy pthread-config; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 if test -n "$ax_pthread_config"; then
8656 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_ax_pthread_config="yes"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8676 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8677 if test -n "$ax_pthread_config"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8679 $as_echo "$ax_pthread_config" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8686 if test x"$ax_pthread_config" = xno; then continue; fi
8687 PTHREAD_CFLAGS="`pthread-config --cflags`"
8688 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8693 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8694 PTHREAD_LIBS="-l$flag"
8699 save_CFLAGS="$CFLAGS"
8700 LIBS="$PTHREAD_LIBS $LIBS"
8701 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8703 # Check for various functions. We must include pthread.h,
8704 # since some functions may be macros. (On the Sequent, we
8705 # need a special flag -Kthread to make this header compile.)
8706 # We check for pthread_join because it is in -lpthread on IRIX
8707 # while pthread_create is in libc. We check for pthread_attr_init
8708 # due to DEC craziness with -lpthreads. We check for
8709 # pthread_cleanup_push because it is one of the few pthread
8710 # functions on Solaris that doesn't have a non-functional libc stub.
8711 # We try pthread_create on general principles.
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <pthread.h>
8715 static void routine(void* a) {a=0;}
8716 static void* start_routine(void* a) {return a;}
8720 pthread_t th; pthread_attr_t attr;
8721 pthread_create(&th,0,start_routine,0);
8722 pthread_join(th, 0);
8723 pthread_attr_init(&attr);
8724 pthread_cleanup_push(routine, 0);
8725 pthread_cleanup_pop(0);
8730 if ac_fn_c_try_link "$LINENO"; then :
8733 rm -f core conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8737 CFLAGS="$save_CFLAGS"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8740 $as_echo "$ax_pthread_ok" >&6; }
8741 if test "x$ax_pthread_ok" = xyes; then
8750 # Various other checks:
8751 if test "x$ax_pthread_ok" = xyes; then
8753 LIBS="$PTHREAD_LIBS $LIBS"
8754 save_CFLAGS="$CFLAGS"
8755 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8757 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8759 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8761 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8764 #include <pthread.h>
8768 int attr=$attr; return attr;
8773 if ac_fn_c_try_link "$LINENO"; then :
8774 attr_name=$attr; break
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8780 $as_echo "$attr_name" >&6; }
8781 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8783 cat >>confdefs.h <<_ACEOF
8784 #define PTHREAD_CREATE_JOINABLE $attr_name
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8790 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8792 case "${host_cpu}-${host_os}" in
8793 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8794 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8797 $as_echo "${flag}" >&6; }
8798 if test "x$flag" != xno; then
8799 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8803 CFLAGS="$save_CFLAGS"
8805 # More AIX lossage: must compile with xlc_r or cc_r
8806 if test x"$GCC" != xyes; then
8807 for ac_prog in xlc_r cc_r
8809 # Extract the first word of "$ac_prog", so it can be a program name with args.
8810 set dummy $ac_prog; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8816 if test -n "$PTHREAD_CC"; then
8817 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826 ac_cv_prog_PTHREAD_CC="$ac_prog"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8837 if test -n "$PTHREAD_CC"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8839 $as_echo "$PTHREAD_CC" >&6; }
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842 $as_echo "no" >&6; }
8846 test -n "$PTHREAD_CC" && break
8848 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8861 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8862 if test x"$ax_pthread_ok" = xyes; then
8864 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8872 ac_cpp='$CPP $CPPFLAGS'
8873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8879 # Check whether --enable-opencl was given.
8880 if test "${enable_opencl+set}" = set; then :
8881 enableval=$enable_opencl; disable_opencl=$enableval
8883 disable_opencl='yes'
8887 if test "$disable_opencl" = 'yes'; then
8889 ac_cpp='$CPP $CPPFLAGS'
8890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8895 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8896 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8913 if ac_fn_c_try_compile "$LINENO"; then :
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 ax_cv_c_compiler_ms=$ax_compiler_ms
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8923 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8924 if test X$ax_compiler_ms = Xno; then :
8925 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8928 ax_save_CPPFLAGS=$CPPFLAGS
8929 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8930 for ac_header in CL/cl.h OpenCL/cl.h
8932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8935 cat >>confdefs.h <<_ACEOF
8936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8943 CPPFLAGS=$ax_save_CPPFLAGS
8945 for ac_header in windows.h
8947 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8948 if test "x$ac_cv_header_windows_h" = x""yes; then :
8949 cat >>confdefs.h <<_ACEOF
8950 #define HAVE_WINDOWS_H 1
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8961 $as_echo_n "checking for OpenCL library... " >&6; }
8962 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8965 ax_cv_check_cl_libcl=no
8967 x86_64) ax_check_cl_libdir=lib64 ;;
8968 *) ax_check_cl_libdir=lib ;;
8970 ax_save_CPPFLAGS=$CPPFLAGS
8971 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8974 ax_check_libs="-lOpenCL -lCL -lclparser"
8975 for ax_lib in $ax_check_libs; do
8976 if test X$ax_compiler_ms = Xyes; then :
8977 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8981 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8985 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8986 # include <windows.h>
8988 # ifdef HAVE_CL_CL_H
8990 # elif defined(HAVE_OPENCL_CL_H)
8991 # include <OpenCL/cl.h>
8998 clCreateContextFromType(0,0,0,0,0)
9003 if ac_fn_c_try_link "$LINENO"; then :
9004 ax_cv_check_cl_libcl=$ax_try_lib; break
9006 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"
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9010 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9011 # include <windows.h>
9013 # ifdef HAVE_CL_CL_H
9015 # elif defined(HAVE_OPENCL_CL_H)
9016 # include <OpenCL/cl.h>
9023 clCreateContextFromType(0,0,0,0,0)
9028 if ac_fn_c_try_link "$LINENO"; then :
9029 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9031 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"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9035 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9036 # include <windows.h>
9038 # ifdef HAVE_CL_CL_H
9040 # elif defined(HAVE_OPENCL_CL_H)
9041 # include <OpenCL/cl.h>
9048 clCreateContextFromType(0,0,0,0,0)
9053 if ac_fn_c_try_link "$LINENO"; then :
9054 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9056 rm -f core conftest.err conftest.$ac_objext \
9057 conftest$ac_exeext conftest.$ac_ext
9059 rm -f core conftest.err conftest.$ac_objext \
9060 conftest$ac_exeext conftest.$ac_ext
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9066 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9067 LIBS='-Wl,-framework,OpenCL'
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9071 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9072 # include <windows.h>
9074 # ifdef HAVE_CL_CL_H
9076 # elif defined(HAVE_OPENCL_CL_H)
9077 # include <OpenCL/cl.h>
9084 clCreateContextFromType(0,0,0,0,0)
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ax_cv_check_cl_libcl=$LIBS
9092 rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9097 CPPFLAGS=$ax_save_CPPFLAGS
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9100 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9102 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9103 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9105 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9106 $as_echo "#define _OPENCL 1" >>confdefs.h
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9120 CFLAGS="$CL_CFLAGS $CFLAGS"
9121 LIBS="$CL_LIBS $LIBS"
9123 if test "$enable_opencl" != no; then
9124 if test "_OPENCL" = '1'; then
9125 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9131 # Check for large file support
9134 # Check whether --enable-largefile was given.
9135 if test "${enable_largefile+set}" = set; then :
9136 enableval=$enable_largefile;
9139 if test "$enable_largefile" != no; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9142 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9143 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9146 ac_cv_sys_largefile_CC=no
9147 if test "$GCC" != yes; then
9150 # IRIX 6.2 and later do not support large files by default,
9151 # so use the C compiler's -n32 option if that helps.
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #include <sys/types.h>
9155 /* Check that off_t can represent 2**63 - 1 correctly.
9156 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9157 since some C++ compilers masquerading as C compilers
9158 incorrectly reject 9223372036854775807. */
9159 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9160 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9161 && LARGE_OFF_T % 2147483647 == 1)
9171 if ac_fn_c_try_compile "$LINENO"; then :
9174 rm -f core conftest.err conftest.$ac_objext
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177 ac_cv_sys_largefile_CC=' -n32'; break
9179 rm -f core conftest.err conftest.$ac_objext
9183 rm -f conftest.$ac_ext
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9187 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9188 if test "$ac_cv_sys_largefile_CC" != no; then
9189 CC=$CC$ac_cv_sys_largefile_CC
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9193 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9194 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <sys/types.h>
9201 /* Check that off_t can represent 2**63 - 1 correctly.
9202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9203 since some C++ compilers masquerading as C compilers
9204 incorrectly reject 9223372036854775807. */
9205 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9207 && LARGE_OFF_T % 2147483647 == 1)
9217 if ac_fn_c_try_compile "$LINENO"; then :
9218 ac_cv_sys_file_offset_bits=no; break
9220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 #define _FILE_OFFSET_BITS 64
9224 #include <sys/types.h>
9225 /* Check that off_t can represent 2**63 - 1 correctly.
9226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9227 since some C++ compilers masquerading as C compilers
9228 incorrectly reject 9223372036854775807. */
9229 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9231 && LARGE_OFF_T % 2147483647 == 1)
9241 if ac_fn_c_try_compile "$LINENO"; then :
9242 ac_cv_sys_file_offset_bits=64; break
9244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9245 ac_cv_sys_file_offset_bits=unknown
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9250 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9251 case $ac_cv_sys_file_offset_bits in #(
9254 cat >>confdefs.h <<_ACEOF
9255 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9260 if test $ac_cv_sys_file_offset_bits = unknown; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9262 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9263 if test "${ac_cv_sys_large_files+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/types.h>
9270 /* Check that off_t can represent 2**63 - 1 correctly.
9271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9272 since some C++ compilers masquerading as C compilers
9273 incorrectly reject 9223372036854775807. */
9274 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9276 && LARGE_OFF_T % 2147483647 == 1)
9286 if ac_fn_c_try_compile "$LINENO"; then :
9287 ac_cv_sys_large_files=no; break
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 #define _LARGE_FILES 1
9293 #include <sys/types.h>
9294 /* Check that off_t can represent 2**63 - 1 correctly.
9295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9296 since some C++ compilers masquerading as C compilers
9297 incorrectly reject 9223372036854775807. */
9298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9300 && LARGE_OFF_T % 2147483647 == 1)
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 ac_cv_sys_large_files=1; break
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314 ac_cv_sys_large_files=unknown
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9319 $as_echo "$ac_cv_sys_large_files" >&6; }
9320 case $ac_cv_sys_large_files in #(
9323 cat >>confdefs.h <<_ACEOF
9324 #define _LARGE_FILES $ac_cv_sys_large_files
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9333 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9334 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 #include <sys/types.h> /* for off_t */
9345 int (*fp) (FILE *, off_t, int) = fseeko;
9346 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9351 if ac_fn_c_try_link "$LINENO"; then :
9352 ac_cv_sys_largefile_source=no; break
9354 rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 #define _LARGEFILE_SOURCE 1
9359 #include <sys/types.h> /* for off_t */
9364 int (*fp) (FILE *, off_t, int) = fseeko;
9365 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9370 if ac_fn_c_try_link "$LINENO"; then :
9371 ac_cv_sys_largefile_source=1; break
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 ac_cv_sys_largefile_source=unknown
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9380 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9381 case $ac_cv_sys_largefile_source in #(
9384 cat >>confdefs.h <<_ACEOF
9385 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9391 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9392 # in glibc 2.1.3, but that breaks too many other things.
9393 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9394 if test $ac_cv_sys_largefile_source != unknown; then
9396 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9401 if test "$enable_largefile" != no; then
9402 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9403 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9406 $as_echo_n "checking for native large file support... " >&6; }
9407 if test "$cross_compiling" = yes; then :
9408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9410 as_fn_error $? "cannot run test program while cross compiling
9411 See \`config.log' for more details" "$LINENO" 5; }
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9417 exit(!(sizeof(off_t) == 8));
9420 if ac_fn_c_try_run "$LINENO"; then :
9421 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9424 $as_echo "yes" >&6; }
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9430 conftest.$ac_objext conftest.beam conftest.$ac_ext
9434 if test "$ac_cv_sys_large_files" != 'no'; then
9435 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9437 if test "$ac_cv_sys_largefile_source" != 'no'; then
9438 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9444 # Configure libtool & libltdl
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9454 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9459 macro_version='2.2.10'
9460 macro_revision='1.3175'
9474 ltmain="$ac_aux_dir/ltmain.sh"
9476 # Backslashify metacharacters that are still active within
9477 # double-quoted strings.
9478 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9480 # Same as above, but do not quote variable references.
9481 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9483 # Sed substitution to delay expansion of an escaped shell variable in a
9484 # double_quote_subst'ed string.
9485 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9487 # Sed substitution to delay expansion of an escaped single quote.
9488 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9490 # Sed substitution to avoid accidental globbing in evaled expressions
9491 no_glob_subst='s/\*/\\\*/g'
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9494 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9495 if test "${lt_cv_path_NM+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9498 if test -n "$NM"; then
9499 # Let the user override the test.
9502 lt_nm_to_check="${ac_tool_prefix}nm"
9503 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9504 lt_nm_to_check="$lt_nm_to_check nm"
9506 for lt_tmp_nm in $lt_nm_to_check; do
9507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9510 test -z "$ac_dir" && ac_dir=.
9511 tmp_nm="$ac_dir/$lt_tmp_nm"
9512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9513 # Check to see if the nm accepts a BSD-compat flag.
9514 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9515 # nm: unknown option "B" ignored
9516 # Tru64's nm complains that /dev/null is an invalid object file
9517 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9518 */dev/null* | *'Invalid file or object type'*)
9519 lt_cv_path_NM="$tmp_nm -B"
9523 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9525 lt_cv_path_NM="$tmp_nm -p"
9529 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9530 continue # so that we can try to find one that supports BSD flags
9539 : ${lt_cv_path_NM=no}
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9543 $as_echo "$lt_cv_path_NM" >&6; }
9544 if test "$lt_cv_path_NM" != "no"; then
9547 # Didn't find any BSD compatible name lister, look for dumpbin.
9548 if test -n "$DUMPBIN"; then :
9549 # Let the user override the test.
9551 if test -n "$ac_tool_prefix"; then
9552 for ac_prog in dumpbin "link -dump"
9554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9559 $as_echo_n "(cached) " >&6
9561 if test -n "$DUMPBIN"; then
9562 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9581 DUMPBIN=$ac_cv_prog_DUMPBIN
9582 if test -n "$DUMPBIN"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9584 $as_echo "$DUMPBIN" >&6; }
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9587 $as_echo "no" >&6; }
9591 test -n "$DUMPBIN" && break
9594 if test -z "$DUMPBIN"; then
9595 ac_ct_DUMPBIN=$DUMPBIN
9596 for ac_prog in dumpbin "link -dump"
9598 # Extract the first word of "$ac_prog", so it can be a program name with args.
9599 set dummy $ac_prog; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9605 if test -n "$ac_ct_DUMPBIN"; then
9606 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9626 if test -n "$ac_ct_DUMPBIN"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9628 $as_echo "$ac_ct_DUMPBIN" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9635 test -n "$ac_ct_DUMPBIN" && break
9638 if test "x$ac_ct_DUMPBIN" = x; then
9641 case $cross_compiling:$ac_tool_warned in
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9645 ac_tool_warned=yes ;;
9647 DUMPBIN=$ac_ct_DUMPBIN
9651 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9653 DUMPBIN="$DUMPBIN -symbols"
9661 if test "$DUMPBIN" != ":"; then
9665 test -z "$NM" && NM=nm
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9673 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9674 if test "${lt_cv_nm_interface+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
9677 lt_cv_nm_interface="BSD nm"
9678 echo "int some_variable = 0;" > conftest.$ac_ext
9679 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9680 (eval "$ac_compile" 2>conftest.err)
9681 cat conftest.err >&5
9682 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9683 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9684 cat conftest.err >&5
9685 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9686 cat conftest.out >&5
9687 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9688 lt_cv_nm_interface="MS dumpbin"
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9693 $as_echo "$lt_cv_nm_interface" >&6; }
9695 # find the maximum length of command line arguments
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9697 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9698 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9699 $as_echo_n "(cached) " >&6
9706 # On DJGPP, this test can blow up pretty badly due to problems in libc
9707 # (any single argument exceeding 2000 bytes causes a buffer overrun
9708 # during glob expansion). Even if it were fixed, the result of this
9709 # check would be larger than it should be.
9710 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9714 # Under GNU Hurd, this test is not required because there is
9715 # no limit to the length of command line arguments.
9716 # Libtool will interpret -1 as no limit whatsoever
9717 lt_cv_sys_max_cmd_len=-1;
9720 cygwin* | mingw* | cegcc*)
9721 # On Win9x/ME, this test blows up -- it succeeds, but takes
9722 # about 5 minutes as the teststring grows exponentially.
9723 # Worse, since 9x/ME are not pre-emptively multitasking,
9724 # you end up with a "frozen" computer, even though with patience
9725 # the test eventually succeeds (with a max line length of 256k).
9726 # Instead, let's just punt: use the minimum linelength reported by
9727 # all of the supported platforms: 8192 (on NT/2K/XP).
9728 lt_cv_sys_max_cmd_len=8192;
9732 # On MiNT this can take a long time and run out of memory.
9733 lt_cv_sys_max_cmd_len=8192;
9737 # On AmigaOS with pdksh, this test takes hours, literally.
9738 # So we just punt and use a minimum line length of 8192.
9739 lt_cv_sys_max_cmd_len=8192;
9742 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9743 # This has been around since 386BSD, at least. Likely further.
9744 if test -x /sbin/sysctl; then
9745 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9746 elif test -x /usr/sbin/sysctl; then
9747 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9749 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9751 # And add a safety zone
9752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9757 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9758 lt_cv_sys_max_cmd_len=196608
9762 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9763 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9764 # nice to cause kernel panics so lets avoid the loop below.
9765 # First set a reasonable default.
9766 lt_cv_sys_max_cmd_len=16384
9768 if test -x /sbin/sysconfig; then
9769 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9770 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9775 lt_cv_sys_max_cmd_len=102400
9777 sysv5* | sco5v6* | sysv4.2uw2*)
9778 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9779 if test -n "$kargmax"; then
9780 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9782 lt_cv_sys_max_cmd_len=32768
9786 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9787 if test -n "$lt_cv_sys_max_cmd_len"; then
9788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9791 # Make teststring a little bigger before we do anything with it.
9792 # a 1K string should be a reasonable start.
9793 for i in 1 2 3 4 5 6 7 8 ; do
9794 teststring=$teststring$teststring
9796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9797 # If test is not a shell built-in, we'll probably end up computing a
9798 # maximum length that is only half of the actual maximum length, but
9800 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9801 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9802 test $i != 17 # 1/2 MB should be enough
9805 teststring=$teststring$teststring
9807 # Only check the string length outside the loop.
9808 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9810 # Add a significant safety factor because C++ compilers can tack on
9811 # massive amounts of additional arguments before passing them to the
9812 # linker. It appears as though 1/2 is a usable value.
9813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9820 if test -n $lt_cv_sys_max_cmd_len ; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9822 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9825 $as_echo "none" >&6; }
9827 max_cmd_len=$lt_cv_sys_max_cmd_len
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9839 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9840 # Try some XSI features
9843 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9845 && eval 'test $(( 1 + 1 )) -eq 2 \
9846 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9849 $as_echo "$xsi_shell" >&6; }
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9853 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9855 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9857 && lt_shell_append=yes
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9859 $as_echo "$lt_shell_append" >&6; }
9862 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9872 # test EBCDIC or ASCII
9873 case `echo X|tr X '\101'` in
9874 A) # ASCII based system
9875 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9876 lt_SP2NL='tr \040 \012'
9877 lt_NL2SP='tr \015\012 \040\040'
9879 *) # EBCDIC based system
9880 lt_SP2NL='tr \100 \n'
9881 lt_NL2SP='tr \r\n \100\100'
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9894 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9895 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9898 lt_cv_ld_reload_flag='-r'
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9901 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9902 reload_flag=$lt_cv_ld_reload_flag
9903 case $reload_flag in
9905 *) reload_flag=" $reload_flag" ;;
9907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9910 if test "$GCC" = yes; then
9911 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9926 if test -n "$ac_tool_prefix"; then
9927 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9928 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9934 if test -n "$OBJDUMP"; then
9935 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 OBJDUMP=$ac_cv_prog_OBJDUMP
9955 if test -n "$OBJDUMP"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9957 $as_echo "$OBJDUMP" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9965 if test -z "$ac_cv_prog_OBJDUMP"; then
9966 ac_ct_OBJDUMP=$OBJDUMP
9967 # Extract the first word of "objdump", so it can be a program name with args.
9968 set dummy objdump; ac_word=$2
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 $as_echo_n "checking for $ac_word... " >&6; }
9971 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9972 $as_echo_n "(cached) " >&6
9974 if test -n "$ac_ct_OBJDUMP"; then
9975 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 test -z "$as_dir" && as_dir=.
9982 for ac_exec_ext in '' $ac_executable_extensions; do
9983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9984 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9995 if test -n "$ac_ct_OBJDUMP"; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9997 $as_echo "$ac_ct_OBJDUMP" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10003 if test "x$ac_ct_OBJDUMP" = x; then
10006 case $cross_compiling:$ac_tool_warned in
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10010 ac_tool_warned=yes ;;
10012 OBJDUMP=$ac_ct_OBJDUMP
10015 OBJDUMP="$ac_cv_prog_OBJDUMP"
10018 test -z "$OBJDUMP" && OBJDUMP=objdump
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10026 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10027 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10030 lt_cv_file_magic_cmd='$MAGIC_CMD'
10031 lt_cv_file_magic_test_file=
10032 lt_cv_deplibs_check_method='unknown'
10033 # Need to set the preceding variable on all platforms that support
10034 # interlibrary dependencies.
10035 # 'none' -- dependencies not supported.
10036 # `unknown' -- same as none, but documents that we really don't know.
10037 # 'pass_all' -- all dependencies passed with no checks.
10038 # 'test_compile' -- check by making test program.
10039 # 'file_magic [[regex]]' -- check by looking for files in library path
10040 # which responds to the $file_magic_cmd with a given extended regex.
10041 # If you have `file' or equivalent on your system and you're not sure
10042 # whether `pass_all' will *always* work, you probably want this one.
10046 lt_cv_deplibs_check_method=pass_all
10050 lt_cv_deplibs_check_method=pass_all
10054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10055 lt_cv_file_magic_cmd='/usr/bin/file -L'
10056 lt_cv_file_magic_test_file=/shlib/libc.so
10060 # func_win32_libid is a shell function defined in ltmain.sh
10061 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10062 lt_cv_file_magic_cmd='func_win32_libid'
10066 # Base MSYS/MinGW do not provide the 'file' command needed by
10067 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10068 # unless we find 'file', for example because we are cross-compiling.
10069 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10070 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10071 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10072 lt_cv_file_magic_cmd='func_win32_libid'
10074 # Keep this pattern in sync with the one in func_win32_libid.
10075 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10076 lt_cv_file_magic_cmd='$OBJDUMP -f'
10081 # use the weaker test based on 'objdump'. See mingw*.
10082 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10083 lt_cv_file_magic_cmd='$OBJDUMP -f'
10086 darwin* | rhapsody*)
10087 lt_cv_deplibs_check_method=pass_all
10090 freebsd* | dragonfly*)
10091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10094 # Not sure whether the presence of OpenBSD here was a mistake.
10095 # Let's accept both of them until this is cleared up.
10096 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10097 lt_cv_file_magic_cmd=/usr/bin/file
10098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10102 lt_cv_deplibs_check_method=pass_all
10107 lt_cv_deplibs_check_method=pass_all
10111 lt_cv_deplibs_check_method=pass_all
10114 hpux10.20* | hpux11*)
10115 lt_cv_file_magic_cmd=/usr/bin/file
10118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10122 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]'
10123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10137 irix5* | irix6* | nonstopux*)
10139 *-32|*"-32 ") libmagic=32-bit;;
10140 *-n32|*"-n32 ") libmagic=N32;;
10141 *-64|*"-64 ") libmagic=64-bit;;
10142 *) libmagic=never-match;;
10144 lt_cv_deplibs_check_method=pass_all
10147 # This must be Linux ELF.
10148 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10149 lt_cv_deplibs_check_method=pass_all
10153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10162 lt_cv_file_magic_cmd=/usr/bin/file
10163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10167 lt_cv_deplibs_check_method=pass_all
10171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10178 osf3* | osf4* | osf5*)
10179 lt_cv_deplibs_check_method=pass_all
10183 lt_cv_deplibs_check_method=pass_all
10187 lt_cv_deplibs_check_method=pass_all
10190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10191 lt_cv_deplibs_check_method=pass_all
10195 case $host_vendor in
10197 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]'
10198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10201 lt_cv_deplibs_check_method=pass_all
10204 lt_cv_file_magic_cmd='/bin/file'
10205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10208 lt_cv_file_magic_cmd='/bin/file'
10209 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10210 lt_cv_file_magic_test_file=/lib/libc.so
10213 lt_cv_deplibs_check_method=pass_all
10216 lt_cv_deplibs_check_method=pass_all
10222 lt_cv_deplibs_check_method=pass_all
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10228 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10229 file_magic_cmd=$lt_cv_file_magic_cmd
10230 deplibs_check_method=$lt_cv_deplibs_check_method
10231 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10244 if test -n "$ac_tool_prefix"; then
10245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10246 set dummy ${ac_tool_prefix}ar; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if test "${ac_cv_prog_AR+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10252 if test -n "$AR"; then
10253 ac_cv_prog_AR="$AR" # Let the user override the test.
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10262 ac_cv_prog_AR="${ac_tool_prefix}ar"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10273 if test -n "$AR"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10275 $as_echo "$AR" >&6; }
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10283 if test -z "$ac_cv_prog_AR"; then
10285 # Extract the first word of "ar", so it can be a program name with args.
10286 set dummy ar; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10292 if test -n "$ac_ct_AR"; then
10293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302 ac_cv_prog_ac_ct_AR="ar"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10313 if test -n "$ac_ct_AR"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10315 $as_echo "$ac_ct_AR" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10321 if test "x$ac_ct_AR" = x; then
10324 case $cross_compiling:$ac_tool_warned in
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10328 ac_tool_warned=yes ;;
10333 AR="$ac_cv_prog_AR"
10336 test -z "$AR" && AR=ar
10337 test -z "$AR_FLAGS" && AR_FLAGS=cru
10349 if test -n "$ac_tool_prefix"; then
10350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10351 set dummy ${ac_tool_prefix}strip; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if test "${ac_cv_prog_STRIP+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10357 if test -n "$STRIP"; then
10358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 STRIP=$ac_cv_prog_STRIP
10378 if test -n "$STRIP"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10380 $as_echo "$STRIP" >&6; }
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10388 if test -z "$ac_cv_prog_STRIP"; then
10390 # Extract the first word of "strip", so it can be a program name with args.
10391 set dummy strip; ac_word=$2
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10393 $as_echo_n "checking for $ac_word... " >&6; }
10394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10395 $as_echo_n "(cached) " >&6
10397 if test -n "$ac_ct_STRIP"; then
10398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401 for as_dir in $PATH
10404 test -z "$as_dir" && as_dir=.
10405 for ac_exec_ext in '' $ac_executable_extensions; do
10406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10407 ac_cv_prog_ac_ct_STRIP="strip"
10408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10418 if test -n "$ac_ct_STRIP"; then
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10420 $as_echo "$ac_ct_STRIP" >&6; }
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10423 $as_echo "no" >&6; }
10426 if test "x$ac_ct_STRIP" = x; then
10429 case $cross_compiling:$ac_tool_warned in
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10433 ac_tool_warned=yes ;;
10438 STRIP="$ac_cv_prog_STRIP"
10441 test -z "$STRIP" && STRIP=:
10448 if test -n "$ac_tool_prefix"; then
10449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
10456 if test -n "$RANLIB"; then
10457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 RANLIB=$ac_cv_prog_RANLIB
10477 if test -n "$RANLIB"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10479 $as_echo "$RANLIB" >&6; }
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10487 if test -z "$ac_cv_prog_RANLIB"; then
10488 ac_ct_RANLIB=$RANLIB
10489 # Extract the first word of "ranlib", so it can be a program name with args.
10490 set dummy ranlib; ac_word=$2
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10496 if test -n "$ac_ct_RANLIB"; then
10497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500 for as_dir in $PATH
10503 test -z "$as_dir" && as_dir=.
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10506 ac_cv_prog_ac_ct_RANLIB="ranlib"
10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10517 if test -n "$ac_ct_RANLIB"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10519 $as_echo "$ac_ct_RANLIB" >&6; }
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10525 if test "x$ac_ct_RANLIB" = x; then
10528 case $cross_compiling:$ac_tool_warned in
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10532 ac_tool_warned=yes ;;
10534 RANLIB=$ac_ct_RANLIB
10537 RANLIB="$ac_cv_prog_RANLIB"
10540 test -z "$RANLIB" && RANLIB=:
10547 # Determine commands to create old-style static archives.
10548 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10549 old_postinstall_cmds='chmod 644 $oldlib'
10550 old_postuninstall_cmds=
10552 if test -n "$RANLIB"; then
10555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10561 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10566 lock_old_archive_extraction=yes ;;
10568 lock_old_archive_extraction=no ;;
10609 # If no C compiler was specified, use CC.
10612 # If no C compiler flags were specified, use CFLAGS.
10613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10615 # Allow CC to be a program name with arguments.
10619 # Check for command to grab the raw symbol name followed by C symbol from nm.
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10621 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10622 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10626 # These are sane defaults that work on at least a few old systems.
10627 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10629 # Character class describing NM global symbol codes.
10630 symcode='[BCDEGRST]'
10632 # Regexp to match symbols that can be accessed directly from C.
10633 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10635 # Define system-specific variables.
10640 cygwin* | mingw* | pw32* | cegcc*)
10641 symcode='[ABCDGISTW]'
10644 if test "$host_cpu" = ia64; then
10645 symcode='[ABCDEGRST]'
10648 irix* | nonstopux*)
10649 symcode='[BCDEGRST]'
10652 symcode='[BCDEGQRST]'
10663 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10671 # If we're using GNU nm, then use its standard symbol codes.
10672 case `$NM -V 2>&1` in
10673 *GNU* | *'with BFD'*)
10674 symcode='[ABCDGIRSTW]' ;;
10677 # Transform an extracted symbol line into a proper C declaration.
10678 # Some systems (esp. on ia64) link data and code symbols differently,
10679 # so use this general approach.
10680 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10682 # Transform an extracted symbol line into symbol name and symbol address
10683 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10684 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'"
10686 # Handle CRLF in mingw tool chain
10690 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10694 # Try without a prefix underscore, then with it.
10695 for ac_symprfx in "" "_"; do
10697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10698 symxfrm="\\1 $ac_symprfx\\2 \\2"
10700 # Write the raw and C identifiers.
10701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10702 # Fake it for dumpbin and say T for any non-static function
10703 # and D for any global variable.
10704 # Also find C++ and __fastcall symbols from MSVC++,
10705 # which start with @ or ?.
10706 lt_cv_sys_global_symbol_pipe="$AWK '"\
10707 " {last_section=section; section=\$ 3};"\
10708 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10709 " \$ 0!~/External *\|/{next};"\
10710 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10711 " {if(hide[section]) next};"\
10712 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10713 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10714 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10715 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10716 " ' prfx=^$ac_symprfx"
10718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10721 # Check to see that the pipe works correctly.
10725 cat > conftest.$ac_ext <<_LT_EOF
10730 void nm_test_func(void);
10731 void nm_test_func(void){}
10735 int main(){nm_test_var='a';nm_test_func();return(0);}
10738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10739 (eval $ac_compile) 2>&5
10741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; }; then
10743 # Now try to grab the symbols.
10745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10746 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10749 test $ac_status = 0; } && test -s "$nlist"; then
10750 # Try sorting and uniquifying the output.
10751 if sort "$nlist" | uniq > "$nlist"T; then
10752 mv -f "$nlist"T "$nlist"
10757 # Make sure that we snagged all the symbols we need.
10758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10760 cat <<_LT_EOF > conftest.$ac_ext
10766 # Now generate the symbol file.
10767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10769 cat <<_LT_EOF >> conftest.$ac_ext
10771 /* The mapping between symbol names and symbols. */
10776 lt__PROGRAM__LTX_preloaded_symbols[] =
10778 { "@PROGRAM@", (void *) 0 },
10780 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10781 cat <<\_LT_EOF >> conftest.$ac_ext
10785 /* This works around a problem in FreeBSD linker */
10786 #ifdef FREEBSD_WORKAROUND
10787 static const void *lt_preloaded_setup() {
10788 return lt__PROGRAM__LTX_preloaded_symbols;
10796 # Now try linking the two files.
10797 mv conftest.$ac_objext conftstm.$ac_objext
10798 lt_save_LIBS="$LIBS"
10799 lt_save_CFLAGS="$CFLAGS"
10800 LIBS="conftstm.$ac_objext"
10801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10803 (eval $ac_link) 2>&5
10805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10809 LIBS="$lt_save_LIBS"
10810 CFLAGS="$lt_save_CFLAGS"
10812 echo "cannot find nm_test_func in $nlist" >&5
10815 echo "cannot find nm_test_var in $nlist" >&5
10818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10821 echo "$progname: failed program was:" >&5
10822 cat conftest.$ac_ext >&5
10824 rm -rf conftest* conftst*
10826 # Do not use the global_symbol_pipe unless it works.
10827 if test "$pipe_works" = yes; then
10830 lt_cv_sys_global_symbol_pipe=
10836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10837 lt_cv_sys_global_symbol_to_cdecl=
10839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10841 $as_echo "failed" >&6; }
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10844 $as_echo "ok" >&6; }
10868 # Check whether --enable-libtool-lock was given.
10869 if test "${enable_libtool_lock+set}" = set; then :
10870 enableval=$enable_libtool_lock;
10873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10875 # Some flags need to be propagated to the compiler or linker for good
10879 # Find out which ABI we are using.
10880 echo 'int i;' > conftest.$ac_ext
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10882 (eval $ac_compile) 2>&5
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; }; then
10886 case `/usr/bin/file conftest.$ac_objext` in
10888 HPUX_IA64_MODE="32"
10891 HPUX_IA64_MODE="64"
10898 # Find out which ABI we are using.
10899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10901 (eval $ac_compile) 2>&5
10903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10904 test $ac_status = 0; }; then
10905 if test "$lt_cv_prog_gnu_ld" = yes; then
10906 case `/usr/bin/file conftest.$ac_objext` in
10908 LD="${LD-ld} -melf32bsmip"
10911 LD="${LD-ld} -melf32bmipn32"
10914 LD="${LD-ld} -melf64bmip"
10918 case `/usr/bin/file conftest.$ac_objext` in
10934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10936 # Find out which ABI we are using.
10937 echo 'int i;' > conftest.$ac_ext
10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10939 (eval $ac_compile) 2>&5
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; }; then
10943 case `/usr/bin/file conftest.o` in
10946 x86_64-*kfreebsd*-gnu)
10947 LD="${LD-ld} -m elf_i386_fbsd"
10950 LD="${LD-ld} -m elf_i386"
10952 ppc64-*linux*|powerpc64-*linux*)
10953 LD="${LD-ld} -m elf32ppclinux"
10956 LD="${LD-ld} -m elf_s390"
10959 LD="${LD-ld} -m elf32_sparc"
10965 x86_64-*kfreebsd*-gnu)
10966 LD="${LD-ld} -m elf_x86_64_fbsd"
10969 LD="${LD-ld} -m elf_x86_64"
10971 ppc*-*linux*|powerpc*-*linux*)
10972 LD="${LD-ld} -m elf64ppc"
10974 s390*-*linux*|s390*-*tpf*)
10975 LD="${LD-ld} -m elf64_s390"
10978 LD="${LD-ld} -m elf64_sparc"
10988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10989 SAVE_CFLAGS="$CFLAGS"
10990 CFLAGS="$CFLAGS -belf"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10992 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10993 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10997 ac_cpp='$CPP $CPPFLAGS'
10998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 lt_cv_cc_needs_belf=yes
11016 lt_cv_cc_needs_belf=no
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11021 ac_cpp='$CPP $CPPFLAGS'
11022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11028 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11031 CFLAGS="$SAVE_CFLAGS"
11035 # Find out which ABI we are using.
11036 echo 'int i;' > conftest.$ac_ext
11037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11038 (eval $ac_compile) 2>&5
11040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11041 test $ac_status = 0; }; then
11042 case `/usr/bin/file conftest.o` in
11044 case $lt_cv_prog_gnu_ld in
11045 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11059 need_locks="$enable_libtool_lock"
11063 rhapsody* | darwin*)
11064 if test -n "$ac_tool_prefix"; then
11065 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11066 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
11072 if test -n "$DSYMUTIL"; then
11073 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11093 if test -n "$DSYMUTIL"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11095 $as_echo "$DSYMUTIL" >&6; }
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11103 if test -z "$ac_cv_prog_DSYMUTIL"; then
11104 ac_ct_DSYMUTIL=$DSYMUTIL
11105 # Extract the first word of "dsymutil", so it can be a program name with args.
11106 set dummy dsymutil; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11112 if test -n "$ac_ct_DSYMUTIL"; then
11113 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11132 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11133 if test -n "$ac_ct_DSYMUTIL"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11135 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11141 if test "x$ac_ct_DSYMUTIL" = x; then
11144 case $cross_compiling:$ac_tool_warned in
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11148 ac_tool_warned=yes ;;
11150 DSYMUTIL=$ac_ct_DSYMUTIL
11153 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11156 if test -n "$ac_tool_prefix"; then
11157 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11158 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160 $as_echo_n "checking for $ac_word... " >&6; }
11161 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11164 if test -n "$NMEDIT"; then
11165 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 NMEDIT=$ac_cv_prog_NMEDIT
11185 if test -n "$NMEDIT"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11187 $as_echo "$NMEDIT" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11195 if test -z "$ac_cv_prog_NMEDIT"; then
11196 ac_ct_NMEDIT=$NMEDIT
11197 # Extract the first word of "nmedit", so it can be a program name with args.
11198 set dummy nmedit; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11204 if test -n "$ac_ct_NMEDIT"; then
11205 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11225 if test -n "$ac_ct_NMEDIT"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11227 $as_echo "$ac_ct_NMEDIT" >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11233 if test "x$ac_ct_NMEDIT" = x; then
11236 case $cross_compiling:$ac_tool_warned in
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11240 ac_tool_warned=yes ;;
11242 NMEDIT=$ac_ct_NMEDIT
11245 NMEDIT="$ac_cv_prog_NMEDIT"
11248 if test -n "$ac_tool_prefix"; then
11249 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11250 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if test "${ac_cv_prog_LIPO+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
11256 if test -n "$LIPO"; then
11257 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260 for as_dir in $PATH
11263 test -z "$as_dir" && as_dir=.
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11266 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 LIPO=$ac_cv_prog_LIPO
11277 if test -n "$LIPO"; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11279 $as_echo "$LIPO" >&6; }
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282 $as_echo "no" >&6; }
11287 if test -z "$ac_cv_prog_LIPO"; then
11289 # Extract the first word of "lipo", so it can be a program name with args.
11290 set dummy lipo; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11296 if test -n "$ac_ct_LIPO"; then
11297 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11306 ac_cv_prog_ac_ct_LIPO="lipo"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11317 if test -n "$ac_ct_LIPO"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11319 $as_echo "$ac_ct_LIPO" >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11325 if test "x$ac_ct_LIPO" = x; then
11328 case $cross_compiling:$ac_tool_warned in
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11332 ac_tool_warned=yes ;;
11337 LIPO="$ac_cv_prog_LIPO"
11340 if test -n "$ac_tool_prefix"; then
11341 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}otool; ac_word=$2
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344 $as_echo_n "checking for $ac_word... " >&6; }
11345 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11348 if test -n "$OTOOL"; then
11349 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 OTOOL=$ac_cv_prog_OTOOL
11369 if test -n "$OTOOL"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11371 $as_echo "$OTOOL" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11379 if test -z "$ac_cv_prog_OTOOL"; then
11381 # Extract the first word of "otool", so it can be a program name with args.
11382 set dummy otool; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
11388 if test -n "$ac_ct_OTOOL"; then
11389 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_ac_ct_OTOOL="otool"
11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11409 if test -n "$ac_ct_OTOOL"; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11411 $as_echo "$ac_ct_OTOOL" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11417 if test "x$ac_ct_OTOOL" = x; then
11420 case $cross_compiling:$ac_tool_warned in
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11424 ac_tool_warned=yes ;;
11429 OTOOL="$ac_cv_prog_OTOOL"
11432 if test -n "$ac_tool_prefix"; then
11433 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11434 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11440 if test -n "$OTOOL64"; then
11441 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 OTOOL64=$ac_cv_prog_OTOOL64
11461 if test -n "$OTOOL64"; then
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11463 $as_echo "$OTOOL64" >&6; }
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466 $as_echo "no" >&6; }
11471 if test -z "$ac_cv_prog_OTOOL64"; then
11472 ac_ct_OTOOL64=$OTOOL64
11473 # Extract the first word of "otool64", so it can be a program name with args.
11474 set dummy otool64; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11478 $as_echo_n "(cached) " >&6
11480 if test -n "$ac_ct_OTOOL64"; then
11481 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490 ac_cv_prog_ac_ct_OTOOL64="otool64"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11501 if test -n "$ac_ct_OTOOL64"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11503 $as_echo "$ac_ct_OTOOL64" >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11509 if test "x$ac_ct_OTOOL64" = x; then
11512 case $cross_compiling:$ac_tool_warned in
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516 ac_tool_warned=yes ;;
11518 OTOOL64=$ac_ct_OTOOL64
11521 OTOOL64="$ac_cv_prog_OTOOL64"
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11551 $as_echo_n "checking for -single_module linker flag... " >&6; }
11552 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11555 lt_cv_apple_cc_single_mod=no
11556 if test -z "${LT_MULTI_MODULE}"; then
11557 # By default we will add the -single_module flag. You can override
11558 # by either setting the environment variable LT_MULTI_MODULE
11559 # non-empty at configure time, or by adding -multi_module to the
11561 rm -rf libconftest.dylib*
11562 echo "int foo(void){return 1;}" > conftest.c
11563 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11564 -dynamiclib -Wl,-single_module conftest.c" >&5
11565 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11566 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11568 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11569 lt_cv_apple_cc_single_mod=yes
11571 cat conftest.err >&5
11573 rm -rf libconftest.dylib*
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11578 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11580 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11581 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11584 lt_cv_ld_exported_symbols_list=no
11585 save_LDFLAGS=$LDFLAGS
11586 echo "_main" > conftest.sym
11587 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11599 if ac_fn_c_try_link "$LINENO"; then :
11600 lt_cv_ld_exported_symbols_list=yes
11602 lt_cv_ld_exported_symbols_list=no
11604 rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11606 LDFLAGS="$save_LDFLAGS"
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11610 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11612 $as_echo_n "checking for -force_load linker flag... " >&6; }
11613 if test "${lt_cv_ld_force_load+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11616 lt_cv_ld_force_load=no
11617 cat > conftest.c << _LT_EOF
11618 int forced_loaded() { return 2;}
11620 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11621 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11622 echo "$AR cru libconftest.a conftest.o" >&5
11623 $AR cru libconftest.a conftest.o 2>&5
11624 echo "$RANLIB libconftest.a" >&5
11625 $RANLIB libconftest.a 2>&5
11626 cat > conftest.c << _LT_EOF
11627 int main() { return 0;}
11629 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11630 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11632 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11633 lt_cv_ld_force_load=yes
11635 cat conftest.err >&5
11637 rm -f conftest.err libconftest.a conftest conftest.c
11638 rm -rf conftest.dSYM
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11642 $as_echo "$lt_cv_ld_force_load" >&6; }
11644 rhapsody* | darwin1.[012])
11645 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11648 darwin*) # darwin 5.x on
11649 # if running on 10.5 or later, the deployment target defaults
11650 # to the OS version, if on x86, and 10.4, the deployment
11651 # target defaults to 10.4. Don't you love it?
11652 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11653 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11656 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11658 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11662 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11663 _lt_dar_single_mod='$single_module'
11665 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11666 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11668 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11670 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11671 _lt_dsymutil='~$DSYMUTIL $lib || :'
11678 for ac_header in dlfcn.h
11680 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11682 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11683 cat >>confdefs.h <<_ACEOF
11684 #define HAVE_DLFCN_H 1
11697 enable_win32_dll=yes
11700 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11701 if test -n "$ac_tool_prefix"; then
11702 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11703 set dummy ${ac_tool_prefix}as; ac_word=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if test "${ac_cv_prog_AS+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11709 if test -n "$AS"; then
11710 ac_cv_prog_AS="$AS" # Let the user override the test.
11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713 for as_dir in $PATH
11716 test -z "$as_dir" && as_dir=.
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11719 ac_cv_prog_AS="${ac_tool_prefix}as"
11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 if test -n "$AS"; then
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11732 $as_echo "$AS" >&6; }
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735 $as_echo "no" >&6; }
11740 if test -z "$ac_cv_prog_AS"; then
11742 # Extract the first word of "as", so it can be a program name with args.
11743 set dummy as; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11749 if test -n "$ac_ct_AS"; then
11750 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_prog_ac_ct_AS="as"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11770 if test -n "$ac_ct_AS"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11772 $as_echo "$ac_ct_AS" >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11778 if test "x$ac_ct_AS" = x; then
11781 case $cross_compiling:$ac_tool_warned in
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11785 ac_tool_warned=yes ;;
11790 AS="$ac_cv_prog_AS"
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11795 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11801 if test -n "$DLLTOOL"; then
11802 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 DLLTOOL=$ac_cv_prog_DLLTOOL
11822 if test -n "$DLLTOOL"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11824 $as_echo "$DLLTOOL" >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11832 if test -z "$ac_cv_prog_DLLTOOL"; then
11833 ac_ct_DLLTOOL=$DLLTOOL
11834 # Extract the first word of "dlltool", so it can be a program name with args.
11835 set dummy dlltool; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11841 if test -n "$ac_ct_DLLTOOL"; then
11842 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11861 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11862 if test -n "$ac_ct_DLLTOOL"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11864 $as_echo "$ac_ct_DLLTOOL" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11870 if test "x$ac_ct_DLLTOOL" = x; then
11873 case $cross_compiling:$ac_tool_warned in
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877 ac_tool_warned=yes ;;
11879 DLLTOOL=$ac_ct_DLLTOOL
11882 DLLTOOL="$ac_cv_prog_DLLTOOL"
11885 if test -n "$ac_tool_prefix"; then
11886 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11887 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11891 $as_echo_n "(cached) " >&6
11893 if test -n "$OBJDUMP"; then
11894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11903 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 OBJDUMP=$ac_cv_prog_OBJDUMP
11914 if test -n "$OBJDUMP"; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11916 $as_echo "$OBJDUMP" >&6; }
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11924 if test -z "$ac_cv_prog_OBJDUMP"; then
11925 ac_ct_OBJDUMP=$OBJDUMP
11926 # Extract the first word of "objdump", so it can be a program name with args.
11927 set dummy objdump; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11933 if test -n "$ac_ct_OBJDUMP"; then
11934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11954 if test -n "$ac_ct_OBJDUMP"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11956 $as_echo "$ac_ct_OBJDUMP" >&6; }
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11962 if test "x$ac_ct_OBJDUMP" = x; then
11965 case $cross_compiling:$ac_tool_warned in
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11969 ac_tool_warned=yes ;;
11971 OBJDUMP=$ac_ct_OBJDUMP
11974 OBJDUMP="$ac_cv_prog_OBJDUMP"
11980 test -z "$AS" && AS=as
11986 test -z "$DLLTOOL" && DLLTOOL=dlltool
11992 test -z "$OBJDUMP" && OBJDUMP=objdump
12002 # Check whether --enable-shared was given.
12003 if test "${enable_shared+set}" = set; then :
12004 enableval=$enable_shared; p=${PACKAGE-default}
12006 yes) enable_shared=yes ;;
12007 no) enable_shared=no ;;
12010 # Look at the argument we got. We use all the common list separators.
12011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012 for pkg in $enableval; do
12014 if test "X$pkg" = "X$p"; then
12033 # Check whether --enable-static was given.
12034 if test "${enable_static+set}" = set; then :
12035 enableval=$enable_static; p=${PACKAGE-default}
12037 yes) enable_static=yes ;;
12038 no) enable_static=no ;;
12041 # Look at the argument we got. We use all the common list separators.
12042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12043 for pkg in $enableval; do
12045 if test "X$pkg" = "X$p"; then
12065 # Check whether --with-pic was given.
12066 if test "${with_pic+set}" = set; then :
12067 withval=$with_pic; pic_mode="$withval"
12073 test -z "$pic_mode" && pic_mode=default
12081 # Check whether --enable-fast-install was given.
12082 if test "${enable_fast_install+set}" = set; then :
12083 enableval=$enable_fast_install; p=${PACKAGE-default}
12085 yes) enable_fast_install=yes ;;
12086 no) enable_fast_install=no ;;
12088 enable_fast_install=no
12089 # Look at the argument we got. We use all the common list separators.
12090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12091 for pkg in $enableval; do
12093 if test "X$pkg" = "X$p"; then
12094 enable_fast_install=yes
12101 enable_fast_install=yes
12114 # This can be used to rebuild libtool when needed
12115 LIBTOOL_DEPS="$ltmain"
12117 # Always use our own libtool.
12118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12145 test -z "$LN_S" && LN_S="ln -s"
12160 if test -n "${ZSH_VERSION+set}" ; then
12161 setopt NO_GLOB_SUBST
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12165 $as_echo_n "checking for objdir... " >&6; }
12166 if test "${lt_cv_objdir+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
12169 rm -f .libs 2>/dev/null
12170 mkdir .libs 2>/dev/null
12171 if test -d .libs; then
12174 # MS-DOS does not allow filenames that begin with a dot.
12177 rmdir .libs 2>/dev/null
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12180 $as_echo "$lt_cv_objdir" >&6; }
12181 objdir=$lt_cv_objdir
12187 cat >>confdefs.h <<_ACEOF
12188 #define LT_OBJDIR "$lt_cv_objdir/"
12196 # AIX sometimes has problems with the GCC collect2 program. For some
12197 # reason, if we set the COLLECT_NAMES environment variable, the problems
12198 # vanish in a puff of smoke.
12199 if test "X${COLLECT_NAMES+set}" != Xset; then
12201 export COLLECT_NAMES
12206 # Global variables:
12208 can_build_shared=yes
12210 # All known linkers require a `.a' archive for static linking (except MSVC,
12211 # which needs '.lib').
12214 with_gnu_ld="$lt_cv_prog_gnu_ld"
12217 old_CFLAGS="$CFLAGS"
12219 # Set sane defaults for various variables
12220 test -z "$CC" && CC=cc
12221 test -z "$LTCC" && LTCC=$CC
12222 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12223 test -z "$LD" && LD=ld
12224 test -z "$ac_objext" && ac_objext=o
12226 for cc_temp in $compiler""; do
12228 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12229 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12234 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12237 # Only perform the check for file, if the check method requires it
12238 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12239 case $deplibs_check_method in
12241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12243 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12252 lt_save_MAGIC_CMD="$MAGIC_CMD"
12253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12255 for ac_dir in $ac_dummy; do
12257 test -z "$ac_dir" && ac_dir=.
12258 if test -f $ac_dir/${ac_tool_prefix}file; then
12259 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12260 if test -n "$file_magic_test_file"; then
12261 case $deplibs_check_method in
12263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12266 $EGREP "$file_magic_regex" > /dev/null; then
12271 *** Warning: the command libtool uses to detect shared libraries,
12272 *** $file_magic_cmd, produces output that libtool cannot recognize.
12273 *** The result is that libtool may fail to recognize shared libraries
12274 *** as such. This will affect the creation of libtool libraries that
12275 *** depend on shared libraries, but programs linked with such libtool
12276 *** libraries will work regardless of this problem. Nevertheless, you
12277 *** may want to report the problem to your system manager and/or to
12278 *** bug-libtool@gnu.org
12288 MAGIC_CMD="$lt_save_MAGIC_CMD"
12293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12294 if test -n "$MAGIC_CMD"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12296 $as_echo "$MAGIC_CMD" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12306 if test -z "$lt_cv_path_MAGIC_CMD"; then
12307 if test -n "$ac_tool_prefix"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12309 $as_echo_n "checking for file... " >&6; }
12310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12318 lt_save_MAGIC_CMD="$MAGIC_CMD"
12319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12321 for ac_dir in $ac_dummy; do
12323 test -z "$ac_dir" && ac_dir=.
12324 if test -f $ac_dir/file; then
12325 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12326 if test -n "$file_magic_test_file"; then
12327 case $deplibs_check_method in
12329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12332 $EGREP "$file_magic_regex" > /dev/null; then
12337 *** Warning: the command libtool uses to detect shared libraries,
12338 *** $file_magic_cmd, produces output that libtool cannot recognize.
12339 *** The result is that libtool may fail to recognize shared libraries
12340 *** as such. This will affect the creation of libtool libraries that
12341 *** depend on shared libraries, but programs linked with such libtool
12342 *** libraries will work regardless of this problem. Nevertheless, you
12343 *** may want to report the problem to your system manager and/or to
12344 *** bug-libtool@gnu.org
12354 MAGIC_CMD="$lt_save_MAGIC_CMD"
12359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12360 if test -n "$MAGIC_CMD"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12362 $as_echo "$MAGIC_CMD" >&6; }
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365 $as_echo "no" >&6; }
12378 # Use C for the default configuration in the libtool script
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388 # Source file extension for C test sources.
12391 # Object file extension for compiled C test sources.
12395 # Code to be used in simple compile tests
12396 lt_simple_compile_test_code="int some_variable = 0;"
12398 # Code to be used in simple link tests
12399 lt_simple_link_test_code='int main(){return(0);}'
12407 # If no C compiler was specified, use CC.
12410 # If no C compiler flags were specified, use CFLAGS.
12411 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12413 # Allow CC to be a program name with arguments.
12416 # Save the default compiler, since it gets overwritten when the other
12417 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12418 compiler_DEFAULT=$CC
12420 # save warnings/boilerplate of simple test code
12421 ac_outfile=conftest.$ac_objext
12422 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12423 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12424 _lt_compiler_boilerplate=`cat conftest.err`
12427 ac_outfile=conftest.$ac_objext
12428 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12429 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12430 _lt_linker_boilerplate=`cat conftest.err`
12435 ## There is no encapsulation within the following macros, do not change
12436 ## the running order or otherwise move them around unless you know exactly
12437 ## what you are doing...
12438 if test -n "$compiler"; then
12440 lt_prog_compiler_no_builtin_flag=
12442 if test "$GCC" = yes; then
12443 case $cc_basename in
12445 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12447 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12451 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12452 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12455 lt_cv_prog_compiler_rtti_exceptions=no
12456 ac_outfile=conftest.$ac_objext
12457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12458 lt_compiler_flag="-fno-rtti -fno-exceptions"
12459 # Insert the option either (1) after the last *FLAGS variable, or
12460 # (2) before a word containing "conftest.", or (3) at the end.
12461 # Note that $ac_compile itself does not contain backslashes and begins
12462 # with a dollar sign (not a hyphen), so the echo should work correctly.
12463 # The option is referenced via a variable to avoid confusing sed.
12464 lt_compile=`echo "$ac_compile" | $SED \
12465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12467 -e 's:$: $lt_compiler_flag:'`
12468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12469 (eval "$lt_compile" 2>conftest.err)
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 if (exit $ac_status) && test -s "$ac_outfile"; then
12474 # The compiler can only warn and ignore the option if not recognized
12475 # So say no if there are warnings other than the usual output.
12476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12479 lt_cv_prog_compiler_rtti_exceptions=yes
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12486 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12488 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12489 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12501 lt_prog_compiler_wl=
12502 lt_prog_compiler_pic=
12503 lt_prog_compiler_static=
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12506 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12508 if test "$GCC" = yes; then
12509 lt_prog_compiler_wl='-Wl,'
12510 lt_prog_compiler_static='-static'
12514 # All AIX code is PIC.
12515 if test "$host_cpu" = ia64; then
12516 # AIX 5 now supports IA64 processor
12517 lt_prog_compiler_static='-Bstatic'
12524 # see comment about AmigaOS4 .so support
12525 lt_prog_compiler_pic='-fPIC'
12528 # FIXME: we need at least 68020 code to build shared libraries, but
12529 # adding the `-m68020' flag to GCC prevents building anything better,
12531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12537 # PIC is the default for these OSes.
12540 mingw* | cygwin* | pw32* | os2* | cegcc*)
12541 # This hack is so that the source file can tell whether it is being
12542 # built for inclusion in a dll (and should export symbols for example).
12543 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12544 # (--disable-auto-import) libraries
12545 lt_prog_compiler_pic='-DDLL_EXPORT'
12548 darwin* | rhapsody*)
12549 # PIC is the default on this platform
12550 # Common symbols not allowed in MH_DYLIB files
12551 lt_prog_compiler_pic='-fno-common'
12555 # PIC is the default for Haiku.
12556 # The "-static" flag exists, but is broken.
12557 lt_prog_compiler_static=
12561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12563 # sets the default TLS model and affects inlining.
12569 lt_prog_compiler_pic='-fPIC'
12575 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12576 # Instead, we relocate shared libraries at runtime.
12580 # Just because we use GCC doesn't mean we suddenly get shared libraries
12581 # on systems that don't support them.
12582 lt_prog_compiler_can_build_shared=no
12587 # QNX uses GNU C++, but need to define -shared option too, otherwise
12588 # it will coredump.
12589 lt_prog_compiler_pic='-fPIC -shared'
12593 if test -d /usr/nec; then
12594 lt_prog_compiler_pic=-Kconform_pic
12599 lt_prog_compiler_pic='-fPIC'
12603 case $cc_basename in
12604 nvcc*) # Cuda Compiler Driver 2.2
12605 lt_prog_compiler_wl='-Xlinker '
12606 lt_prog_compiler_pic='-Xcompiler -fPIC'
12610 # PORTME Check for flag to pass linker flags through the system compiler.
12613 lt_prog_compiler_wl='-Wl,'
12614 if test "$host_cpu" = ia64; then
12615 # AIX 5 now supports IA64 processor
12616 lt_prog_compiler_static='-Bstatic'
12618 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12622 mingw* | cygwin* | pw32* | os2* | cegcc*)
12623 # This hack is so that the source file can tell whether it is being
12624 # built for inclusion in a dll (and should export symbols for example).
12625 lt_prog_compiler_pic='-DDLL_EXPORT'
12628 hpux9* | hpux10* | hpux11*)
12629 lt_prog_compiler_wl='-Wl,'
12630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12631 # not for PA HP-UX.
12637 lt_prog_compiler_pic='+Z'
12640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12641 lt_prog_compiler_static='${wl}-a ${wl}archive'
12644 irix5* | irix6* | nonstopux*)
12645 lt_prog_compiler_wl='-Wl,'
12646 # PIC (with -KPIC) is the default.
12647 lt_prog_compiler_static='-non_shared'
12650 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12651 case $cc_basename in
12652 # old Intel for x86_64 which still supported -KPIC.
12654 lt_prog_compiler_wl='-Wl,'
12655 lt_prog_compiler_pic='-KPIC'
12656 lt_prog_compiler_static='-static'
12658 # icc used to be incompatible with GCC.
12659 # ICC 10 doesn't accept -KPIC any more.
12661 lt_prog_compiler_wl='-Wl,'
12662 lt_prog_compiler_pic='-fPIC'
12663 lt_prog_compiler_static='-static'
12665 # Lahey Fortran 8.1.
12667 lt_prog_compiler_wl='-Wl,'
12668 lt_prog_compiler_pic='--shared'
12669 lt_prog_compiler_static='--static'
12671 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12672 # Portland Group compilers (*not* the Pentium gcc compiler,
12673 # which looks to be a dead project)
12674 lt_prog_compiler_wl='-Wl,'
12675 lt_prog_compiler_pic='-fpic'
12676 lt_prog_compiler_static='-Bstatic'
12679 lt_prog_compiler_wl='-Wl,'
12680 # All Alpha code is PIC.
12681 lt_prog_compiler_static='-non_shared'
12683 xl* | bgxl* | bgf* | mpixl*)
12684 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12685 lt_prog_compiler_wl='-Wl,'
12686 lt_prog_compiler_pic='-qpic'
12687 lt_prog_compiler_static='-qstaticlink'
12690 case `$CC -V 2>&1 | sed 5q` in
12691 *Sun\ F* | *Sun*Fortran*)
12692 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12693 lt_prog_compiler_pic='-KPIC'
12694 lt_prog_compiler_static='-Bstatic'
12695 lt_prog_compiler_wl=''
12699 lt_prog_compiler_pic='-KPIC'
12700 lt_prog_compiler_static='-Bstatic'
12701 lt_prog_compiler_wl='-Wl,'
12709 lt_prog_compiler_pic='-KPIC'
12710 lt_prog_compiler_static='-Bstatic'
12714 # QNX uses GNU C++, but need to define -shared option too, otherwise
12715 # it will coredump.
12716 lt_prog_compiler_pic='-fPIC -shared'
12719 osf3* | osf4* | osf5*)
12720 lt_prog_compiler_wl='-Wl,'
12721 # All OSF/1 code is PIC.
12722 lt_prog_compiler_static='-non_shared'
12726 lt_prog_compiler_static='-non_shared'
12730 lt_prog_compiler_pic='-KPIC'
12731 lt_prog_compiler_static='-Bstatic'
12732 case $cc_basename in
12733 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12734 lt_prog_compiler_wl='-Qoption ld ';;
12736 lt_prog_compiler_wl='-Wl,';;
12741 lt_prog_compiler_wl='-Qoption ld '
12742 lt_prog_compiler_pic='-PIC'
12743 lt_prog_compiler_static='-Bstatic'
12746 sysv4 | sysv4.2uw2* | sysv4.3*)
12747 lt_prog_compiler_wl='-Wl,'
12748 lt_prog_compiler_pic='-KPIC'
12749 lt_prog_compiler_static='-Bstatic'
12753 if test -d /usr/nec ;then
12754 lt_prog_compiler_pic='-Kconform_pic'
12755 lt_prog_compiler_static='-Bstatic'
12759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12760 lt_prog_compiler_wl='-Wl,'
12761 lt_prog_compiler_pic='-KPIC'
12762 lt_prog_compiler_static='-Bstatic'
12766 lt_prog_compiler_wl='-Wl,'
12767 lt_prog_compiler_can_build_shared=no
12771 lt_prog_compiler_pic='-pic'
12772 lt_prog_compiler_static='-Bstatic'
12776 lt_prog_compiler_can_build_shared=no
12782 # For platforms which do not support PIC, -DPIC is meaningless:
12784 lt_prog_compiler_pic=
12787 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12791 $as_echo "$lt_prog_compiler_pic" >&6; }
12799 # Check to make sure the PIC flag actually works.
12801 if test -n "$lt_prog_compiler_pic"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12803 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12804 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 lt_cv_prog_compiler_pic_works=no
12808 ac_outfile=conftest.$ac_objext
12809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12811 # Insert the option either (1) after the last *FLAGS variable, or
12812 # (2) before a word containing "conftest.", or (3) at the end.
12813 # Note that $ac_compile itself does not contain backslashes and begins
12814 # with a dollar sign (not a hyphen), so the echo should work correctly.
12815 # The option is referenced via a variable to avoid confusing sed.
12816 lt_compile=`echo "$ac_compile" | $SED \
12817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12819 -e 's:$: $lt_compiler_flag:'`
12820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12821 (eval "$lt_compile" 2>conftest.err)
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 if (exit $ac_status) && test -s "$ac_outfile"; then
12826 # The compiler can only warn and ignore the option if not recognized
12827 # So say no if there are warnings other than the usual output.
12828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12831 lt_cv_prog_compiler_pic_works=yes
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12838 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12840 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12841 case $lt_prog_compiler_pic in
12843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12846 lt_prog_compiler_pic=
12847 lt_prog_compiler_can_build_shared=no
12858 # Check to make sure the static flag actually works.
12860 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12862 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12863 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12866 lt_cv_prog_compiler_static_works=no
12867 save_LDFLAGS="$LDFLAGS"
12868 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12869 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12870 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12871 # The linker can only warn and ignore the option if not recognized
12872 # So say no if there are warnings
12873 if test -s conftest.err; then
12874 # Append any errors to the config.log.
12875 cat conftest.err 1>&5
12876 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12878 if diff conftest.exp conftest.er2 >/dev/null; then
12879 lt_cv_prog_compiler_static_works=yes
12882 lt_cv_prog_compiler_static_works=yes
12886 LDFLAGS="$save_LDFLAGS"
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12890 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12892 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12895 lt_prog_compiler_static=
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12905 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12906 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12909 lt_cv_prog_compiler_c_o=no
12910 $RM -r conftest 2>/dev/null
12914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12916 lt_compiler_flag="-o out/conftest2.$ac_objext"
12917 # Insert the option either (1) after the last *FLAGS variable, or
12918 # (2) before a word containing "conftest.", or (3) at the end.
12919 # Note that $ac_compile itself does not contain backslashes and begins
12920 # with a dollar sign (not a hyphen), so the echo should work correctly.
12921 lt_compile=`echo "$ac_compile" | $SED \
12922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12924 -e 's:$: $lt_compiler_flag:'`
12925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12926 (eval "$lt_compile" 2>out/conftest.err)
12928 cat out/conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12932 # The compiler can only warn and ignore the option if not recognized
12933 # So say no if there are warnings
12934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12937 lt_cv_prog_compiler_c_o=yes
12942 # SGI C++ compiler will create directory out/ii_files/ for
12943 # template instantiation
12944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12945 $RM out/* && rmdir out
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12952 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12961 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12964 lt_cv_prog_compiler_c_o=no
12965 $RM -r conftest 2>/dev/null
12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12971 lt_compiler_flag="-o out/conftest2.$ac_objext"
12972 # Insert the option either (1) after the last *FLAGS variable, or
12973 # (2) before a word containing "conftest.", or (3) at the end.
12974 # Note that $ac_compile itself does not contain backslashes and begins
12975 # with a dollar sign (not a hyphen), so the echo should work correctly.
12976 lt_compile=`echo "$ac_compile" | $SED \
12977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12979 -e 's:$: $lt_compiler_flag:'`
12980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12981 (eval "$lt_compile" 2>out/conftest.err)
12983 cat out/conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12987 # The compiler can only warn and ignore the option if not recognized
12988 # So say no if there are warnings
12989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12992 lt_cv_prog_compiler_c_o=yes
12997 # SGI C++ compiler will create directory out/ii_files/ for
12998 # template instantiation
12999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13000 $RM out/* && rmdir out
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13012 hard_links="nottested"
13013 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13014 # do not overwrite the value of need_locks provided by the user
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13016 $as_echo_n "checking if we can lock with hard links... " >&6; }
13019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13021 ln conftest.a conftest.b 2>&5 || hard_links=no
13022 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13024 $as_echo "$hard_links" >&6; }
13025 if test "$hard_links" = no; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13027 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13043 allow_undefined_flag=
13044 always_export_symbols=no
13046 archive_expsym_cmds=
13047 compiler_needs_object=no
13048 enable_shared_with_static_runtimes=no
13049 export_dynamic_flag_spec=
13050 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13051 hardcode_automatic=no
13053 hardcode_direct_absolute=no
13054 hardcode_libdir_flag_spec=
13055 hardcode_libdir_flag_spec_ld=
13056 hardcode_libdir_separator=
13057 hardcode_minus_L=no
13058 hardcode_shlibpath_var=unsupported
13060 link_all_deplibs=unknown
13062 module_expsym_cmds=
13063 old_archive_from_new_cmds=
13064 old_archive_from_expsyms_cmds=
13065 thread_safe_flag_spec=
13066 whole_archive_flag_spec=
13067 # include_expsyms should be a list of space-separated symbols to be *always*
13068 # included in the symbol list
13070 # exclude_expsyms can be an extended regexp of symbols to exclude
13071 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13072 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13073 # as well as any symbol that contains `d'.
13074 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13075 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13076 # platforms (ab)use it in PIC code, but their linkers get confused if
13077 # the symbol is explicitly referenced. Since portable code cannot
13078 # rely on this symbol name, it's probably fine to never include it in
13079 # preloaded symbol tables.
13080 # Exclude shared library initialization/finalization symbols.
13081 extract_expsyms_cmds=
13084 cygwin* | mingw* | pw32* | cegcc*)
13085 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13086 # When not using gcc, we currently assume that we are using
13087 # Microsoft Visual C++.
13088 if test "$GCC" != yes; then
13093 # we just hope/assume this is gcc and not c89 (= MSVC++)
13103 # On some targets, GNU ld is compatible enough with the native linker
13104 # that we're better off using the native interface for both.
13105 lt_use_gnu_ld_interface=no
13106 if test "$with_gnu_ld" = yes; then
13109 # The AIX port of GNU ld has always aspired to compatibility
13110 # with the native linker. However, as the warning in the GNU ld
13111 # block says, versions before 2.19.5* couldn't really create working
13112 # shared libraries, regardless of the interface used.
13113 case `$LD -v 2>&1` in
13114 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13115 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13116 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13118 lt_use_gnu_ld_interface=yes
13123 lt_use_gnu_ld_interface=yes
13128 if test "$lt_use_gnu_ld_interface" = yes; then
13129 # If archive_cmds runs LD, not CC, wlarc should be empty
13132 # Set some defaults for GNU ld with shared library support. These
13133 # are reset later if shared libraries are not supported. Putting them
13134 # here allows them to be overridden if necessary.
13135 runpath_var=LD_RUN_PATH
13136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13137 export_dynamic_flag_spec='${wl}--export-dynamic'
13138 # ancient GNU ld didn't support --whole-archive et. al.
13139 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13140 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13142 whole_archive_flag_spec=
13144 supports_anon_versioning=no
13145 case `$LD -v 2>&1` in
13146 *GNU\ gold*) supports_anon_versioning=yes ;;
13147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13150 *\ 2.11.*) ;; # other 2.11 versions
13151 *) supports_anon_versioning=yes ;;
13154 # See if GNU ld supports shared libraries.
13157 # On AIX/PPC, the GNU linker is very broken
13158 if test "$host_cpu" != ia64; then
13162 *** Warning: the GNU linker, at least up to release 2.19, is reported
13163 *** to be unable to reliably create shared libraries on AIX.
13164 *** Therefore, libtool is disabling shared libraries support. If you
13165 *** really care for shared libraries, you may want to install binutils
13166 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13167 *** You will then need to restart the configuration process.
13176 # see comment about AmigaOS4 .so support
13177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178 archive_expsym_cmds=''
13181 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)'
13182 hardcode_libdir_flag_spec='-L$libdir'
13183 hardcode_minus_L=yes
13189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13190 allow_undefined_flag=unsupported
13191 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13192 # support --undefined. This deserves some investigation. FIXME
13193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13199 cygwin* | mingw* | pw32* | cegcc*)
13200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13201 # as there is no search path for DLLs.
13202 hardcode_libdir_flag_spec='-L$libdir'
13203 export_dynamic_flag_spec='${wl}--export-all-symbols'
13204 allow_undefined_flag=unsupported
13205 always_export_symbols=no
13206 enable_shared_with_static_runtimes=yes
13207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13209 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13211 # If the export-symbols file already is a .def file (1st line
13212 # is EXPORTS), use it as is; otherwise, prepend...
13213 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13214 cp $export_symbols $output_objdir/$soname.def;
13216 echo EXPORTS > $output_objdir/$soname.def;
13217 cat $export_symbols >> $output_objdir/$soname.def;
13219 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227 link_all_deplibs=yes
13232 hardcode_shlibpath_var=no
13233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13234 export_dynamic_flag_spec='${wl}-E'
13235 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13236 # Instead, shared libraries are loaded at an image base (0x10000000 by
13237 # default) and relocated if they conflict, which is a slow very memory
13238 # consuming and fragmenting process. To avoid this, we pick a random,
13239 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13240 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13242 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'
13245 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13247 if test "$host_os" = linux-dietlibc; then
13248 case $cc_basename in
13249 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13252 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13253 && test "$tmp_diet" = no
13256 tmp_sharedflag='-shared'
13257 case $cc_basename,$host_cpu in
13258 pgcc*) # Portland Group C compiler
13259 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'
13260 tmp_addflag=' $pic_flag'
13262 pgf77* | pgf90* | pgf95* | pgfortran*)
13263 # Portland Group f77 and f90 compilers
13264 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'
13265 tmp_addflag=' $pic_flag -Mnomain' ;;
13266 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13267 tmp_addflag=' -i_dynamic' ;;
13268 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13269 tmp_addflag=' -i_dynamic -nofor_main' ;;
13270 ifc* | ifort*) # Intel Fortran compiler
13271 tmp_addflag=' -nofor_main' ;;
13272 lf95*) # Lahey Fortran 8.1
13273 whole_archive_flag_spec=
13274 tmp_sharedflag='--shared' ;;
13275 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13276 tmp_sharedflag='-qmkshrobj'
13278 nvcc*) # Cuda Compiler Driver 2.2
13279 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'
13280 compiler_needs_object=yes
13283 case `$CC -V 2>&1 | sed 5q` in
13284 *Sun\ C*) # Sun C 5.9
13285 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'
13286 compiler_needs_object=yes
13287 tmp_sharedflag='-G' ;;
13288 *Sun\ F*) # Sun Fortran 8.3
13289 tmp_sharedflag='-G' ;;
13291 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293 if test "x$supports_anon_versioning" = xyes; then
13294 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13296 echo "local: *; };" >> $output_objdir/$libname.ver~
13297 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13300 case $cc_basename in
13301 xlf* | bgf* | bgxlf* | mpixlf*)
13302 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13303 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13304 hardcode_libdir_flag_spec=
13305 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13306 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13307 if test "x$supports_anon_versioning" = xyes; then
13308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13310 echo "local: *; };" >> $output_objdir/$libname.ver~
13311 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13322 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13335 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13336 *** create shared libraries on Solaris systems. Therefore, libtool
13337 *** is disabling shared libraries support. We urge you to upgrade GNU
13338 *** binutils to release 2.9.1 or newer. Another option is to modify
13339 *** your PATH or compiler configuration so that the native linker is
13340 *** used, and then restart.
13343 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13352 case `$LD -v 2>&1` in
13353 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13357 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13358 *** reliably create shared libraries on SCO systems. Therefore, libtool
13359 *** is disabling shared libraries support. We urge you to upgrade GNU
13360 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13361 *** your PATH or compiler configuration so that the native linker is
13362 *** used, and then restart.
13367 # For security reasons, it is highly recommended that you always
13368 # use absolute paths for naming shared libraries, and exclude the
13369 # DT_RUNPATH tag from executables and libraries. But doing so
13370 # requires that you compile everything twice, which is a pain.
13371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13383 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13385 hardcode_direct=yes
13386 hardcode_shlibpath_var=no
13390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13399 if test "$ld_shlibs" = no; then
13401 hardcode_libdir_flag_spec=
13402 export_dynamic_flag_spec=
13403 whole_archive_flag_spec=
13406 # PORTME fill in a description of your system's linker (not GNU ld)
13409 allow_undefined_flag=unsupported
13410 always_export_symbols=yes
13411 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'
13412 # Note: this linker hardcodes the directories in LIBPATH if there
13413 # are no directories specified by -L.
13414 hardcode_minus_L=yes
13415 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13416 # Neither direct hardcoding nor static linking is supported with a
13418 hardcode_direct=unsupported
13423 if test "$host_cpu" = ia64; then
13424 # On IA64, the linker does run time linking by default, so we don't
13425 # have to do anything special.
13426 aix_use_runtimelinking=no
13427 exp_sym_flag='-Bexport'
13430 # If we're using GNU nm, then we don't want the "-C" option.
13431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13432 # Also, AIX nm treats weak defined symbols like other global
13433 # defined symbols, whereas GNU nm marks them as "W".
13434 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13435 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'
13437 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'
13439 aix_use_runtimelinking=no
13441 # Test if we are trying to use run time linking or normal
13442 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13443 # need to do runtime linking.
13444 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13445 for ld_flag in $LDFLAGS; do
13446 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13447 aix_use_runtimelinking=yes
13454 exp_sym_flag='-bexport'
13455 no_entry_flag='-bnoentry'
13458 # When large executables or shared objects are built, AIX ld can
13459 # have problems creating the table of contents. If linking a library
13460 # or program results in "error TOC overflow" add -mminimal-toc to
13461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13465 hardcode_direct=yes
13466 hardcode_direct_absolute=yes
13467 hardcode_libdir_separator=':'
13468 link_all_deplibs=yes
13469 file_list_spec='${wl}-f,'
13471 if test "$GCC" = yes; then
13472 case $host_os in aix4.[012]|aix4.[012].*)
13473 # We only want to do this on AIX 4.2 and lower, the check
13474 # below for broken collect2 doesn't work under 4.3+
13475 collect2name=`${CC} -print-prog-name=collect2`
13476 if test -f "$collect2name" &&
13477 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13479 # We have reworked collect2
13482 # We have old collect2
13483 hardcode_direct=unsupported
13484 # It fails to find uninstalled libraries when the uninstalled
13485 # path is not listed in the libpath. Setting hardcode_minus_L
13486 # to unsupported forces relinking
13487 hardcode_minus_L=yes
13488 hardcode_libdir_flag_spec='-L$libdir'
13489 hardcode_libdir_separator=
13493 shared_flag='-shared'
13494 if test "$aix_use_runtimelinking" = yes; then
13495 shared_flag="$shared_flag "'${wl}-G'
13499 if test "$host_cpu" = ia64; then
13500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13501 # chokes on -Wl,-G. The following line is correct:
13504 if test "$aix_use_runtimelinking" = yes; then
13505 shared_flag='${wl}-G'
13507 shared_flag='${wl}-bM:SRE'
13512 export_dynamic_flag_spec='${wl}-bexpall'
13513 # It seems that -bexpall does not export symbols beginning with
13514 # underscore (_), so it is better to generate a list of symbols to export.
13515 always_export_symbols=yes
13516 if test "$aix_use_runtimelinking" = yes; then
13517 # Warning - without using the other runtime loading flags (-brtl),
13518 # -berok will link without error, but may produce a broken library.
13519 allow_undefined_flag='-berok'
13520 # Determine the default libpath from the value encoded in an
13521 # empty executable.
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13533 if ac_fn_c_try_link "$LINENO"; then :
13535 lt_aix_libpath_sed='
13536 /Import File Strings/,/^$/ {
13542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13543 # Check for a 64-bit object if we didn't find anything.
13544 if test -z "$aix_libpath"; then
13545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13553 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"
13555 if test "$host_cpu" = ia64; then
13556 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13557 allow_undefined_flag="-z nodefs"
13558 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"
13560 # Determine the default libpath from the value encoded in an
13561 # empty executable.
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13573 if ac_fn_c_try_link "$LINENO"; then :
13575 lt_aix_libpath_sed='
13576 /Import File Strings/,/^$/ {
13582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13583 # Check for a 64-bit object if we didn't find anything.
13584 if test -z "$aix_libpath"; then
13585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13588 rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13592 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13593 # Warning - without using the other run time loading flags,
13594 # -berok will link without error, but may produce a broken library.
13595 no_undefined_flag=' ${wl}-bernotok'
13596 allow_undefined_flag=' ${wl}-berok'
13597 if test "$with_gnu_ld" = yes; then
13598 # We only use this code for GNU lds that support --whole-archive.
13599 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13601 # Exported symbols can be pulled into shared objects from archives
13602 whole_archive_flag_spec='$convenience'
13604 archive_cmds_need_lc=yes
13605 # This is similar to how AIX traditionally builds its shared libraries.
13606 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'
13614 # see comment about AmigaOS4 .so support
13615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13616 archive_expsym_cmds=''
13619 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)'
13620 hardcode_libdir_flag_spec='-L$libdir'
13621 hardcode_minus_L=yes
13627 export_dynamic_flag_spec=-rdynamic
13630 cygwin* | mingw* | pw32* | cegcc*)
13631 # When not using gcc, we currently assume that we are using
13632 # Microsoft Visual C++.
13633 # hardcode_libdir_flag_spec is actually meaningless, as there is
13634 # no search path for DLLs.
13635 hardcode_libdir_flag_spec=' '
13636 allow_undefined_flag=unsupported
13637 # Tell ltmain to make .lib files, not .a files.
13639 # Tell ltmain to make .dll files, not .so files.
13641 # FIXME: Setting linknames here is a bad hack.
13642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13643 # The linker will automatically build a .lib file if we build a DLL.
13644 old_archive_from_new_cmds='true'
13645 # FIXME: Should let the user specify the lib program.
13646 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13647 fix_srcfile_path='`cygpath -w "$srcfile"`'
13648 enable_shared_with_static_runtimes=yes
13651 darwin* | rhapsody*)
13654 archive_cmds_need_lc=no
13656 hardcode_automatic=yes
13657 hardcode_shlibpath_var=unsupported
13658 if test "$lt_cv_ld_force_load" = "yes"; then
13659 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\"`'
13661 whole_archive_flag_spec=''
13663 link_all_deplibs=yes
13664 allow_undefined_flag="$_lt_dar_allow_undefined"
13665 case $cc_basename in
13666 ifort*) _lt_dar_can_shared=yes ;;
13667 *) _lt_dar_can_shared=$GCC ;;
13669 if test "$_lt_dar_can_shared" = "yes"; then
13670 output_verbose_link_cmd=func_echo_all
13671 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13672 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13673 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}"
13674 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}"
13683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec='-L$libdir'
13685 hardcode_shlibpath_var=no
13692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13693 # support. Future versions do this automatically, but an explicit c++rt0.o
13694 # does not break anything, and helps significantly (at the cost of a little
13697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13698 hardcode_libdir_flag_spec='-R$libdir'
13699 hardcode_direct=yes
13700 hardcode_shlibpath_var=no
13703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13706 hardcode_direct=yes
13707 hardcode_minus_L=yes
13708 hardcode_shlibpath_var=no
13711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13712 freebsd* | dragonfly*)
13713 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13714 hardcode_libdir_flag_spec='-R$libdir'
13715 hardcode_direct=yes
13716 hardcode_shlibpath_var=no
13720 if test "$GCC" = yes; then
13721 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13723 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'
13725 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13726 hardcode_libdir_separator=:
13727 hardcode_direct=yes
13729 # hardcode_minus_L: Not really in the search PATH,
13730 # but as the default location of the library.
13731 hardcode_minus_L=yes
13732 export_dynamic_flag_spec='${wl}-E'
13736 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13741 if test "$with_gnu_ld" = no; then
13742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13743 hardcode_libdir_flag_spec_ld='+b $libdir'
13744 hardcode_libdir_separator=:
13745 hardcode_direct=yes
13746 hardcode_direct_absolute=yes
13747 export_dynamic_flag_spec='${wl}-E'
13748 # hardcode_minus_L: Not really in the search PATH,
13749 # but as the default location of the library.
13750 hardcode_minus_L=yes
13755 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13758 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13770 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13777 # Older versions of the 11.00 compiler do not understand -b yet
13778 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13780 $as_echo_n "checking if $CC understands -b... " >&6; }
13781 if test "${lt_cv_prog_compiler__b+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13784 lt_cv_prog_compiler__b=no
13785 save_LDFLAGS="$LDFLAGS"
13786 LDFLAGS="$LDFLAGS -b"
13787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13789 # The linker can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 if test -s conftest.err; then
13792 # Append any errors to the config.log.
13793 cat conftest.err 1>&5
13794 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13796 if diff conftest.exp conftest.er2 >/dev/null; then
13797 lt_cv_prog_compiler__b=yes
13800 lt_cv_prog_compiler__b=yes
13804 LDFLAGS="$save_LDFLAGS"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13808 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13810 if test x"$lt_cv_prog_compiler__b" = xyes; then
13811 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13813 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13819 if test "$with_gnu_ld" = no; then
13820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13821 hardcode_libdir_separator=:
13826 hardcode_shlibpath_var=no
13829 hardcode_direct=yes
13830 hardcode_direct_absolute=yes
13831 export_dynamic_flag_spec='${wl}-E'
13833 # hardcode_minus_L: Not really in the search PATH,
13834 # but as the default location of the library.
13835 hardcode_minus_L=yes
13841 irix5* | irix6* | nonstopux*)
13842 if test "$GCC" = yes; then
13843 archive_cmds='$CC -shared $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'
13844 # Try to use the -exported_symbol ld option, if it does not
13845 # work, assume that -exports_file does not work either and
13846 # implicitly export all symbols.
13847 save_LDFLAGS="$LDFLAGS"
13848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13853 if ac_fn_c_try_link "$LINENO"; then :
13854 archive_expsym_cmds='$CC -shared $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'
13857 rm -f core conftest.err conftest.$ac_objext \
13858 conftest$ac_exeext conftest.$ac_ext
13859 LDFLAGS="$save_LDFLAGS"
13861 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'
13862 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'
13864 archive_cmds_need_lc='no'
13865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13866 hardcode_libdir_separator=:
13868 link_all_deplibs=yes
13872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13875 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13877 hardcode_libdir_flag_spec='-R$libdir'
13878 hardcode_direct=yes
13879 hardcode_shlibpath_var=no
13883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884 hardcode_direct=yes
13885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13886 hardcode_libdir_separator=:
13887 hardcode_shlibpath_var=no
13894 if test -f /usr/libexec/ld.so; then
13895 hardcode_direct=yes
13896 hardcode_shlibpath_var=no
13897 hardcode_direct_absolute=yes
13898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13900 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13902 export_dynamic_flag_spec='${wl}-E'
13905 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13907 hardcode_libdir_flag_spec='-R$libdir'
13910 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13921 hardcode_libdir_flag_spec='-L$libdir'
13922 hardcode_minus_L=yes
13923 allow_undefined_flag=unsupported
13924 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'
13925 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13929 if test "$GCC" = yes; then
13930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13931 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'
13933 allow_undefined_flag=' -expect_unresolved \*'
13934 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'
13936 archive_cmds_need_lc='no'
13937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13938 hardcode_libdir_separator=:
13941 osf4* | osf5*) # as osf3* with the addition of -msym flag
13942 if test "$GCC" = yes; then
13943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13944 archive_cmds='$CC -shared${allow_undefined_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'
13945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13947 allow_undefined_flag=' -expect_unresolved \*'
13948 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'
13949 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~
13950 $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'
13952 # Both c and cxx compiler support -rpath directly
13953 hardcode_libdir_flag_spec='-rpath $libdir'
13955 archive_cmds_need_lc='no'
13956 hardcode_libdir_separator=:
13960 no_undefined_flag=' -z defs'
13961 if test "$GCC" = yes; then
13963 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13965 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13967 case `$CC -V 2>&1` in
13970 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13976 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13978 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13982 hardcode_libdir_flag_spec='-R$libdir'
13983 hardcode_shlibpath_var=no
13985 solaris2.[0-5] | solaris2.[0-5].*) ;;
13987 # The compiler driver will combine and reorder linker options,
13988 # but understands `-z linker_flag'. GCC discards it without `$wl',
13989 # but is careful enough not to reorder.
13990 # Supported since Solaris 2.6 (maybe 2.5.1?)
13991 if test "$GCC" = yes; then
13992 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13998 link_all_deplibs=yes
14002 if test "x$host_vendor" = xsequent; then
14003 # Use $CC to link under sequent, because it throws in some extra .o
14004 # files that make .init and .fini sections work.
14005 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14007 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14009 hardcode_libdir_flag_spec='-L$libdir'
14010 hardcode_direct=yes
14011 hardcode_minus_L=yes
14012 hardcode_shlibpath_var=no
14016 case $host_vendor in
14018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_direct=yes # is this really true???
14022 ## LD is ld it makes a PLAMLIB
14023 ## CC just makes a GrossModule.
14024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14025 reload_cmds='$CC -r -o $output$reload_objs'
14029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14033 runpath_var='LD_RUN_PATH'
14034 hardcode_shlibpath_var=no
14038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_shlibpath_var=no
14040 export_dynamic_flag_spec='-Bexport'
14044 if test -d /usr/nec; then
14045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14046 hardcode_shlibpath_var=no
14047 runpath_var=LD_RUN_PATH
14048 hardcode_runpath_var=yes
14053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14054 no_undefined_flag='${wl}-z,text'
14055 archive_cmds_need_lc=no
14056 hardcode_shlibpath_var=no
14057 runpath_var='LD_RUN_PATH'
14059 if test "$GCC" = yes; then
14060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14068 sysv5* | sco3.2v5* | sco5v6*)
14069 # Note: We can NOT use -z defs as we might desire, because we do not
14070 # link with -lc, and that would cause any symbols used from libc to
14071 # always be unresolved, which means just about no library would
14072 # ever link correctly. If we're not using GNU ld we use -z text
14073 # though, which does catch some bad symbols but isn't as heavy-handed
14075 no_undefined_flag='${wl}-z,text'
14076 allow_undefined_flag='${wl}-z,nodefs'
14077 archive_cmds_need_lc=no
14078 hardcode_shlibpath_var=no
14079 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14080 hardcode_libdir_separator=':'
14081 link_all_deplibs=yes
14082 export_dynamic_flag_spec='${wl}-Bexport'
14083 runpath_var='LD_RUN_PATH'
14085 if test "$GCC" = yes; then
14086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_libdir_flag_spec='-L$libdir'
14097 hardcode_shlibpath_var=no
14105 if test x$host_vendor = xsni; then
14107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14108 export_dynamic_flag_spec='${wl}-Blargedynsym'
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14115 $as_echo "$ld_shlibs" >&6; }
14116 test "$ld_shlibs" = no && can_build_shared=no
14118 with_gnu_ld=$with_gnu_ld
14135 # Do we need to explicitly link libc?
14137 case "x$archive_cmds_need_lc" in
14139 # Assume -lc should be added
14140 archive_cmds_need_lc=yes
14142 if test "$enable_shared" = yes && test "$GCC" = yes; then
14143 case $archive_cmds in
14145 # FIXME: we may have to deal with multi-command sequences.
14148 # Test whether the compiler implicitly links with -lc since on some
14149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14150 # to ld, don't add -lc before -lgcc.
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14152 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14153 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14160 (eval $ac_compile) 2>&5
14162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; } 2>conftest.err; then
14166 libobjs=conftest.$ac_objext
14168 wl=$lt_prog_compiler_wl
14169 pic_flag=$lt_prog_compiler_pic
14175 lt_save_allow_undefined_flag=$allow_undefined_flag
14176 allow_undefined_flag=
14177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14178 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }
14183 lt_cv_archive_cmds_need_lc=no
14185 lt_cv_archive_cmds_need_lc=yes
14187 allow_undefined_flag=$lt_save_allow_undefined_flag
14189 cat conftest.err 1>&5
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14195 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14360 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14362 if test "$GCC" = yes; then
14364 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14365 *) lt_awk_arg="/^libraries:/" ;;
14368 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14369 *) lt_sed_strip_eq="s,=/,/,g" ;;
14371 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14372 case $lt_search_path_spec in
14374 # if the path contains ";" then we assume it to be the separator
14375 # otherwise default to the standard path separator (i.e. ":") - it is
14376 # assumed that no part of a normal pathname contains ";" but that should
14377 # okay in the real world where ";" in dirpaths is itself problematic.
14378 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14384 # Ok, now we have the path, separated by spaces, we can step through it
14385 # and add multilib dir if necessary.
14386 lt_tmp_lt_search_path_spec=
14387 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14388 for lt_sys_path in $lt_search_path_spec; do
14389 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14392 test -d "$lt_sys_path" && \
14393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14396 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14397 BEGIN {RS=" "; FS="/|\n";} {
14400 for (lt_i = NF; lt_i > 0; lt_i--) {
14401 if ($lt_i != "" && $lt_i != ".") {
14402 if ($lt_i == "..") {
14405 if (lt_count == 0) {
14406 lt_foo="/" $lt_i lt_foo;
14413 if (lt_foo != "") { lt_freq[lt_foo]++; }
14414 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14416 # AWK program above erroneously prepends '/' to C:/dos/paths
14419 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14420 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14422 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14426 library_names_spec=
14427 libname_spec='lib$name'
14431 postuninstall_cmds=
14435 shlibpath_overrides_runpath=unknown
14437 dynamic_linker="$host_os ld.so"
14438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14439 need_lib_prefix=unknown
14440 hardcode_into_libs=no
14442 # when you set need_version to no, make sure it does not cause -set_version
14443 # flags to be left without arguments
14444 need_version=unknown
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14450 shlibpath_var=LIBPATH
14452 # AIX 3 has no versioning support, so we append a major version to the name.
14453 soname_spec='${libname}${release}${shared_ext}$major'
14460 hardcode_into_libs=yes
14461 if test "$host_cpu" = ia64; then
14462 # AIX 5 supports IA64
14463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14464 shlibpath_var=LD_LIBRARY_PATH
14466 # With GCC up to 2.95.x, collect2 would create an import file
14467 # for dependence libraries. The import file would start with
14468 # the line `#! .'. This would cause the generated library to
14469 # depend on `.', always an invalid library. This was fixed in
14470 # development snapshots of GCC prior to 3.0.
14472 aix4 | aix4.[01] | aix4.[01].*)
14473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14475 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14478 can_build_shared=no
14482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14483 # soname into executable. Probably we can add versioning support to
14484 # collect2, so additional links can be useful in future.
14485 if test "$aix_use_runtimelinking" = yes; then
14486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14487 # instead of lib<name>.a to let people know that these are not
14488 # typical AIX shared libraries.
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491 # We preserve .a as extension for shared libraries through AIX4.2
14492 # and later when we are not doing run time linking.
14493 library_names_spec='${libname}${release}.a $libname.a'
14494 soname_spec='${libname}${release}${shared_ext}$major'
14496 shlibpath_var=LIBPATH
14503 # Since July 2007 AmigaOS4 officially supports .so libraries.
14504 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14508 library_names_spec='$libname.ixlibrary $libname.a'
14509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14510 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'
14516 library_names_spec='${libname}${shared_ext}'
14517 dynamic_linker="$host_os ld.so"
14518 shlibpath_var=LIBRARY_PATH
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 soname_spec='${libname}${release}${shared_ext}$major'
14526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14529 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14530 # the default ld.so.conf also contains /usr/contrib/lib and
14531 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14532 # libtool to hard-code these into programs
14535 cygwin* | mingw* | pw32* | cegcc*)
14536 version_type=windows
14541 case $GCC,$host_os in
14542 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14543 library_names_spec='$libname.dll.a'
14544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14545 postinstall_cmds='base_file=`basename \${file}`~
14546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14547 dldir=$destdir/`dirname \$dlpath`~
14548 test -d \$dldir || mkdir -p \$dldir~
14549 $install_prog $dir/$dlname \$dldir/$dlname~
14550 chmod a+x \$dldir/$dlname~
14551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14555 dlpath=$dir/\$dldll~
14557 shlibpath_overrides_runpath=yes
14561 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14562 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14567 # MinGW DLLs use traditional 'lib' prefix
14568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14571 # pw32 DLLs use 'pw' prefix rather than 'lib'
14572 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14581 dynamic_linker='Win32 ld.exe'
14582 # FIXME: first we should search . and the directory the executable is in
14586 darwin* | rhapsody*)
14587 dynamic_linker="$host_os dyld"
14588 version_type=darwin
14591 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14592 soname_spec='${libname}${release}${major}$shared_ext'
14593 shlibpath_overrides_runpath=yes
14594 shlibpath_var=DYLD_LIBRARY_PATH
14595 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 shlibpath_var=LD_LIBRARY_PATH
14614 freebsd* | dragonfly*)
14615 # DragonFly does not have aout. When/if they implement a new
14616 # versioning mechanism, adjust this.
14617 if test -x /usr/bin/objformat; then
14618 objformat=`/usr/bin/objformat`
14621 freebsd[123]*) objformat=aout ;;
14622 *) objformat=elf ;;
14625 version_type=freebsd-$objformat
14626 case $version_type in
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14637 shlibpath_var=LD_LIBRARY_PATH
14640 shlibpath_overrides_runpath=yes
14642 freebsd3.[01]* | freebsdelf3.[01]*)
14643 shlibpath_overrides_runpath=yes
14644 hardcode_into_libs=yes
14646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14648 shlibpath_overrides_runpath=no
14649 hardcode_into_libs=yes
14651 *) # from 4.6 on, and DragonFly
14652 shlibpath_overrides_runpath=yes
14653 hardcode_into_libs=yes
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 hardcode_into_libs=yes
14672 dynamic_linker="$host_os runtime_loader"
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14674 soname_spec='${libname}${release}${shared_ext}$major'
14675 shlibpath_var=LIBRARY_PATH
14676 shlibpath_overrides_runpath=yes
14677 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14678 hardcode_into_libs=yes
14681 hpux9* | hpux10* | hpux11*)
14682 # Give a soname corresponding to the major version so that dld.sl refuses to
14683 # link against other versions.
14690 hardcode_into_libs=yes
14691 dynamic_linker="$host_os dld.so"
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 if test "X$HPUX_IA64_MODE" = X32; then
14697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14705 hardcode_into_libs=yes
14706 dynamic_linker="$host_os dld.sl"
14707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14716 dynamic_linker="$host_os dld.sl"
14717 shlibpath_var=SHLIB_PATH
14718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14723 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14724 postinstall_cmds='chmod 555 $lib'
14725 # or fails outright, so override atomically:
14726 install_override_mode=555
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=no
14738 hardcode_into_libs=yes
14741 irix5* | irix6* | nonstopux*)
14743 nonstopux*) version_type=nonstopux ;;
14745 if test "$lt_cv_prog_gnu_ld" = yes; then
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14756 irix5* | nonstopux*)
14757 libsuff= shlibsuff=
14760 case $LD in # libtool.m4 will add one of these switches to LD
14761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14762 libsuff= shlibsuff= libmagic=32-bit;;
14763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14764 libsuff=32 shlibsuff=N32 libmagic=N32;;
14765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14767 *) libsuff= shlibsuff= libmagic=never-match;;
14771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14772 shlibpath_overrides_runpath=no
14773 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14774 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14775 hardcode_into_libs=yes
14778 # No shared lib support for Linux oldld, aout, or coff.
14779 linux*oldld* | linux*aout* | linux*coff*)
14783 # This must be Linux ELF.
14784 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14791 shlibpath_var=LD_LIBRARY_PATH
14792 shlibpath_overrides_runpath=no
14794 # Some binutils ld are patched to set DT_RUNPATH
14795 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14798 lt_cv_shlibpath_overrides_runpath=no
14799 save_LDFLAGS=$LDFLAGS
14800 save_libdir=$libdir
14801 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14802 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14814 if ac_fn_c_try_link "$LINENO"; then :
14815 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14816 lt_cv_shlibpath_overrides_runpath=yes
14819 rm -f core conftest.err conftest.$ac_objext \
14820 conftest$ac_exeext conftest.$ac_ext
14821 LDFLAGS=$save_LDFLAGS
14822 libdir=$save_libdir
14826 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14828 # This implies no fast_install, which is unacceptable.
14829 # Some rework will be needed to allow for fast_install
14830 # before this can be enabled.
14831 hardcode_into_libs=yes
14833 # Add ABI-specific directories to the system library path.
14834 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14836 # Append ld.so.conf contents to the search path
14837 if test -f /etc/ld.so.conf; then
14838 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' ' '`
14839 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14843 # We used to test for /lib/ld.so.1 and disable shared libraries on
14844 # powerpc, because MkLinux only supported shared libraries with the
14845 # GNU dynamic linker. Since this was broken with cross compilers,
14846 # most powerpc-linux boxes support dynamic linking these days and
14847 # people can always --disable-shared, the test was removed, and we
14848 # assume the GNU/Linux dynamic linker is in use.
14849 dynamic_linker='GNU/Linux ld.so'
14856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859 dynamic_linker='NetBSD (a.out) ld.so'
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 dynamic_linker='NetBSD ld.elf_so'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 hardcode_into_libs=yes
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 shlibpath_overrides_runpath=yes
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 shlibpath_overrides_runpath=no
14885 hardcode_into_libs=yes
14886 dynamic_linker='ldqnx.so'
14891 sys_lib_dlsearch_path_spec="/usr/lib"
14893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14895 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14896 *) need_version=no ;;
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14903 openbsd2.[89] | openbsd2.[89].*)
14904 shlibpath_overrides_runpath=no
14907 shlibpath_overrides_runpath=yes
14911 shlibpath_overrides_runpath=yes
14916 libname_spec='$name'
14919 library_names_spec='$libname${shared_ext} $libname.a'
14920 dynamic_linker='OS/2 ld.exe'
14921 shlibpath_var=LIBPATH
14924 osf3* | osf4* | osf5*)
14928 soname_spec='${libname}${release}${shared_ext}$major'
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=yes
14947 hardcode_into_libs=yes
14948 # ldd complains unless libraries are executable
14949 postinstall_cmds='chmod +x $lib'
14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14956 shlibpath_var=LD_LIBRARY_PATH
14957 shlibpath_overrides_runpath=yes
14958 if test "$with_gnu_ld" = yes; then
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 case $host_vendor in
14971 shlibpath_overrides_runpath=no
14973 runpath_var=LD_RUN_PATH
14981 shlibpath_overrides_runpath=no
14982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14988 if test -d /usr/nec ;then
14990 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14991 soname_spec='$libname${shared_ext}.$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14997 version_type=freebsd-elf
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 shlibpath_overrides_runpath=yes
15004 hardcode_into_libs=yes
15005 if test "$with_gnu_ld" = yes; then
15006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15015 sys_lib_dlsearch_path_spec='/usr/lib'
15019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath=no
15026 hardcode_into_libs=yes
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 shlibpath_var=LD_LIBRARY_PATH
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15041 $as_echo "$dynamic_linker" >&6; }
15042 test "$dynamic_linker" = no && can_build_shared=no
15044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15045 if test "$GCC" = yes; then
15046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15049 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15050 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15052 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15053 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15148 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15150 if test -n "$hardcode_libdir_flag_spec" ||
15151 test -n "$runpath_var" ||
15152 test "X$hardcode_automatic" = "Xyes" ; then
15154 # We can hardcode non-existent directories.
15155 if test "$hardcode_direct" != no &&
15156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15157 # have to relink, otherwise we might link with an installed library
15158 # when we should be linking with a yet-to-be-installed one
15159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15160 test "$hardcode_minus_L" != no; then
15161 # Linking always hardcodes the temporary library directory.
15162 hardcode_action=relink
15164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15165 hardcode_action=immediate
15168 # We cannot hardcode anything, or else we can only hardcode existing
15170 hardcode_action=unsupported
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15173 $as_echo "$hardcode_action" >&6; }
15175 if test "$hardcode_action" = relink ||
15176 test "$inherit_rpath" = yes; then
15177 # Fast installation is not supported
15178 enable_fast_install=no
15179 elif test "$shlibpath_overrides_runpath" = yes ||
15180 test "$enable_shared" = no; then
15181 # Fast installation is not necessary
15182 enable_fast_install=needless
15190 if test "x$enable_dlopen" != xyes; then
15191 enable_dlopen=unknown
15192 enable_dlopen_self=unknown
15193 enable_dlopen_self_static=unknown
15200 lt_cv_dlopen="load_add_on"
15202 lt_cv_dlopen_self=yes
15205 mingw* | pw32* | cegcc*)
15206 lt_cv_dlopen="LoadLibrary"
15211 lt_cv_dlopen="dlopen"
15216 # if libdl is installed we need to link against it
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15219 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15222 ac_check_lib_save_LIBS=$LIBS
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15227 /* Override any GCC internal prototype to avoid an error.
15228 Use char because int might match the return type of a GCC
15229 builtin and then its argument prototype would still apply. */
15242 if ac_fn_c_try_link "$LINENO"; then :
15243 ac_cv_lib_dl_dlopen=yes
15245 ac_cv_lib_dl_dlopen=no
15247 rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15253 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15257 lt_cv_dlopen="dyld"
15259 lt_cv_dlopen_self=yes
15266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15267 if test "x$ac_cv_func_shl_load" = x""yes; then :
15268 lt_cv_dlopen="shl_load"
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15271 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15272 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15273 $as_echo_n "(cached) " >&6
15275 ac_check_lib_save_LIBS=$LIBS
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15290 return shl_load ();
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 ac_cv_lib_dld_shl_load=yes
15298 ac_cv_lib_dld_shl_load=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LIBS=$ac_check_lib_save_LIBS
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15305 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15306 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15310 if test "x$ac_cv_func_dlopen" = x""yes; then :
15311 lt_cv_dlopen="dlopen"
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15316 $as_echo_n "(cached) " >&6
15318 ac_check_lib_save_LIBS=$LIBS
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15323 /* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15338 if ac_fn_c_try_link "$LINENO"; then :
15339 ac_cv_lib_dl_dlopen=yes
15341 ac_cv_lib_dl_dlopen=no
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 LIBS=$ac_check_lib_save_LIBS
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15349 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15353 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15354 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15357 ac_check_lib_save_LIBS=$LIBS
15358 LIBS="-lsvld $LIBS"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15362 /* Override any GCC internal prototype to avoid an error.
15363 Use char because int might match the return type of a GCC
15364 builtin and then its argument prototype would still apply. */
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 ac_cv_lib_svld_dlopen=yes
15380 ac_cv_lib_svld_dlopen=no
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 LIBS=$ac_check_lib_save_LIBS
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15387 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15388 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15392 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15393 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15394 $as_echo_n "(cached) " >&6
15396 ac_check_lib_save_LIBS=$LIBS
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15401 /* Override any GCC internal prototype to avoid an error.
15402 Use char because int might match the return type of a GCC
15403 builtin and then its argument prototype would still apply. */
15411 return dld_link ();
15416 if ac_fn_c_try_link "$LINENO"; then :
15417 ac_cv_lib_dld_dld_link=yes
15419 ac_cv_lib_dld_dld_link=no
15421 rm -f core conftest.err conftest.$ac_objext \
15422 conftest$ac_exeext conftest.$ac_ext
15423 LIBS=$ac_check_lib_save_LIBS
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15426 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15427 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15449 if test "x$lt_cv_dlopen" != xno; then
15455 case $lt_cv_dlopen in
15457 save_CPPFLAGS="$CPPFLAGS"
15458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15460 save_LDFLAGS="$LDFLAGS"
15461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15464 LIBS="$lt_cv_dlopen_libs $LIBS"
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15467 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15468 if test "${lt_cv_dlopen_self+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15471 if test "$cross_compiling" = yes; then :
15472 lt_cv_dlopen_self=cross
15474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15475 lt_status=$lt_dlunknown
15476 cat > conftest.$ac_ext <<_LT_EOF
15477 #line $LINENO "configure"
15478 #include "confdefs.h"
15487 # define LT_DLGLOBAL RTLD_GLOBAL
15490 # define LT_DLGLOBAL DL_GLOBAL
15492 # define LT_DLGLOBAL 0
15496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15497 find out it does not work in some platform. */
15498 #ifndef LT_DLLAZY_OR_NOW
15500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15503 # define LT_DLLAZY_OR_NOW DL_LAZY
15506 # define LT_DLLAZY_OR_NOW RTLD_NOW
15509 # define LT_DLLAZY_OR_NOW DL_NOW
15511 # define LT_DLLAZY_OR_NOW 0
15518 /* When -fvisbility=hidden is used, assume the code has been annotated
15519 correspondingly for the symbols needed. */
15520 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15521 void fnord () __attribute__((visibility("default")));
15524 void fnord () { int i=42; }
15527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15528 int status = $lt_dlunknown;
15532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15536 else puts (dlerror ());
15538 /* dlclose (self); */
15546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15547 (eval $ac_link) 2>&5
15549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15551 (./conftest; exit; ) >&5 2>/dev/null
15553 case x$lt_status in
15554 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15555 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15556 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15559 # compilation failed
15560 lt_cv_dlopen_self=no
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15568 $as_echo "$lt_cv_dlopen_self" >&6; }
15570 if test "x$lt_cv_dlopen_self" = xyes; then
15571 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15573 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15574 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15575 $as_echo_n "(cached) " >&6
15577 if test "$cross_compiling" = yes; then :
15578 lt_cv_dlopen_self_static=cross
15580 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15581 lt_status=$lt_dlunknown
15582 cat > conftest.$ac_ext <<_LT_EOF
15583 #line $LINENO "configure"
15584 #include "confdefs.h"
15593 # define LT_DLGLOBAL RTLD_GLOBAL
15596 # define LT_DLGLOBAL DL_GLOBAL
15598 # define LT_DLGLOBAL 0
15602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15603 find out it does not work in some platform. */
15604 #ifndef LT_DLLAZY_OR_NOW
15606 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15609 # define LT_DLLAZY_OR_NOW DL_LAZY
15612 # define LT_DLLAZY_OR_NOW RTLD_NOW
15615 # define LT_DLLAZY_OR_NOW DL_NOW
15617 # define LT_DLLAZY_OR_NOW 0
15624 /* When -fvisbility=hidden is used, assume the code has been annotated
15625 correspondingly for the symbols needed. */
15626 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15627 void fnord () __attribute__((visibility("default")));
15630 void fnord () { int i=42; }
15633 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15634 int status = $lt_dlunknown;
15638 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15641 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15642 else puts (dlerror ());
15644 /* dlclose (self); */
15652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15653 (eval $ac_link) 2>&5
15655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15656 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15657 (./conftest; exit; ) >&5 2>/dev/null
15659 case x$lt_status in
15660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15662 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15665 # compilation failed
15666 lt_cv_dlopen_self_static=no
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15674 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15677 CPPFLAGS="$save_CPPFLAGS"
15678 LDFLAGS="$save_LDFLAGS"
15683 case $lt_cv_dlopen_self in
15684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15685 *) enable_dlopen_self=unknown ;;
15688 case $lt_cv_dlopen_self_static in
15689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15690 *) enable_dlopen_self_static=unknown ;;
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15713 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15714 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718 $as_echo "yes" >&6; }
15720 # FIXME - insert some real tests, host_os isn't really good enough
15723 if test -n "$STRIP" ; then
15724 striplib="$STRIP -x"
15725 old_striplib="$STRIP -S"
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15727 $as_echo "yes" >&6; }
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 $as_echo "no" >&6; }
15751 # Report which library types will actually be built
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15753 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15755 $as_echo "$can_build_shared" >&6; }
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15758 $as_echo_n "checking whether to build shared libraries... " >&6; }
15759 test "$can_build_shared" = "no" && enable_shared=no
15761 # On AIX, shared libraries and static libraries use the same namespace, and
15762 # are all built from PIC.
15765 test "$enable_shared" = yes && enable_static=no
15766 if test -n "$RANLIB"; then
15767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15768 postinstall_cmds='$RANLIB $lib'
15773 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15774 test "$enable_shared" = yes && enable_static=no
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15779 $as_echo "$enable_shared" >&6; }
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15782 $as_echo_n "checking whether to build static libraries... " >&6; }
15783 # Make sure either enable_shared or enable_static is yes.
15784 test "$enable_shared" = yes || enable_static=yes
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15786 $as_echo "$enable_static" >&6; }
15793 ac_cpp='$CPP $CPPFLAGS'
15794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15800 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15801 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15802 (test "X$CXX" != "Xg++"))) ; then
15804 ac_cpp='$CXXCPP $CPPFLAGS'
15805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15809 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15810 if test -z "$CXXCPP"; then
15811 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15812 $as_echo_n "(cached) " >&6
15814 # Double quotes because CXXCPP needs to be expanded
15815 for CXXCPP in "$CXX -E" "/lib/cpp"
15817 ac_preproc_ok=false
15818 for ac_cxx_preproc_warn_flag in '' yes
15820 # Use a header file that comes with gcc, so configuring glibc
15821 # with a fresh cross-compiler works.
15822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15823 # <limits.h> exists even on freestanding compilers.
15824 # On the NeXT, cc -E runs the code through the compiler's parser,
15825 # not just through cpp. "Syntax error" is here to catch this case.
15826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15827 /* end confdefs.h. */
15829 # include <limits.h>
15831 # include <assert.h>
15835 if ac_fn_cxx_try_cpp "$LINENO"; then :
15838 # Broken: fails on valid input.
15841 rm -f conftest.err conftest.$ac_ext
15843 # OK, works on sane cases. Now check whether nonexistent headers
15844 # can be detected and how.
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15847 #include <ac_nonexistent.h>
15849 if ac_fn_cxx_try_cpp "$LINENO"; then :
15850 # Broken: success on invalid input.
15853 # Passes both tests.
15857 rm -f conftest.err conftest.$ac_ext
15860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15861 rm -f conftest.err conftest.$ac_ext
15862 if $ac_preproc_ok; then :
15867 ac_cv_prog_CXXCPP=$CXXCPP
15870 CXXCPP=$ac_cv_prog_CXXCPP
15872 ac_cv_prog_CXXCPP=$CXXCPP
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15875 $as_echo "$CXXCPP" >&6; }
15876 ac_preproc_ok=false
15877 for ac_cxx_preproc_warn_flag in '' yes
15879 # Use a header file that comes with gcc, so configuring glibc
15880 # with a fresh cross-compiler works.
15881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882 # <limits.h> exists even on freestanding compilers.
15883 # On the NeXT, cc -E runs the code through the compiler's parser,
15884 # not just through cpp. "Syntax error" is here to catch this case.
15885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15888 # include <limits.h>
15890 # include <assert.h>
15894 if ac_fn_cxx_try_cpp "$LINENO"; then :
15897 # Broken: fails on valid input.
15900 rm -f conftest.err conftest.$ac_ext
15902 # OK, works on sane cases. Now check whether nonexistent headers
15903 # can be detected and how.
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #include <ac_nonexistent.h>
15908 if ac_fn_cxx_try_cpp "$LINENO"; then :
15909 # Broken: success on invalid input.
15912 # Passes both tests.
15916 rm -f conftest.err conftest.$ac_ext
15919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15920 rm -f conftest.err conftest.$ac_ext
15921 if $ac_preproc_ok; then :
15924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15926 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15927 See \`config.log' for more details" "$LINENO" 5; }
15931 ac_cpp='$CPP $CPPFLAGS'
15932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15937 _lt_caught_CXX_error=yes
15941 ac_cpp='$CXXCPP $CPPFLAGS'
15942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15946 archive_cmds_need_lc_CXX=no
15947 allow_undefined_flag_CXX=
15948 always_export_symbols_CXX=no
15949 archive_expsym_cmds_CXX=
15950 compiler_needs_object_CXX=no
15951 export_dynamic_flag_spec_CXX=
15952 hardcode_direct_CXX=no
15953 hardcode_direct_absolute_CXX=no
15954 hardcode_libdir_flag_spec_CXX=
15955 hardcode_libdir_flag_spec_ld_CXX=
15956 hardcode_libdir_separator_CXX=
15957 hardcode_minus_L_CXX=no
15958 hardcode_shlibpath_var_CXX=unsupported
15959 hardcode_automatic_CXX=no
15960 inherit_rpath_CXX=no
15962 module_expsym_cmds_CXX=
15963 link_all_deplibs_CXX=unknown
15964 old_archive_cmds_CXX=$old_archive_cmds
15965 reload_flag_CXX=$reload_flag
15966 reload_cmds_CXX=$reload_cmds
15967 no_undefined_flag_CXX=
15968 whole_archive_flag_spec_CXX=
15969 enable_shared_with_static_runtimes_CXX=no
15971 # Source file extension for C++ test sources.
15974 # Object file extension for compiled C++ test sources.
15978 # No sense in running all these tests if we already determined that
15979 # the CXX compiler isn't working. Some variables (like enable_shared)
15980 # are currently assumed to apply to all compilers on this platform,
15981 # and will be corrupted by setting them based on a non-working compiler.
15982 if test "$_lt_caught_CXX_error" != yes; then
15983 # Code to be used in simple compile tests
15984 lt_simple_compile_test_code="int some_variable = 0;"
15986 # Code to be used in simple link tests
15987 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15989 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15996 # If no C compiler was specified, use CC.
15999 # If no C compiler flags were specified, use CFLAGS.
16000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16002 # Allow CC to be a program name with arguments.
16006 # save warnings/boilerplate of simple test code
16007 ac_outfile=conftest.$ac_objext
16008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16010 _lt_compiler_boilerplate=`cat conftest.err`
16013 ac_outfile=conftest.$ac_objext
16014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16016 _lt_linker_boilerplate=`cat conftest.err`
16020 # Allow CC to be a program name with arguments.
16025 lt_save_with_gnu_ld=$with_gnu_ld
16026 lt_save_path_LD=$lt_cv_path_LD
16027 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16028 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16030 $as_unset lt_cv_prog_gnu_ld
16032 if test -n "${lt_cv_path_LDCXX+set}"; then
16033 lt_cv_path_LD=$lt_cv_path_LDCXX
16035 $as_unset lt_cv_path_LD
16037 test -z "${LDCXX+set}" || LD=$LDCXX
16041 for cc_temp in $compiler""; do
16043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16049 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16052 if test -n "$compiler"; then
16053 # We don't want -fno-exception when compiling C++ code, so set the
16054 # no_builtin_flag separately
16055 if test "$GXX" = yes; then
16056 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16058 lt_prog_compiler_no_builtin_flag_CXX=
16061 if test "$GXX" = yes; then
16062 # Set up default GNU C++ configuration
16066 # Check whether --with-gnu-ld was given.
16067 if test "${with_gnu_ld+set}" = set; then :
16068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16074 if test "$GCC" = yes; then
16075 # Check if gcc -print-prog-name=ld gives a path.
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16077 $as_echo_n "checking for ld used by $CC... " >&6; }
16080 # gcc leaves a trailing carriage return which upsets mingw
16081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16086 # Accept absolute paths.
16088 re_direlt='/[^/][^/]*/\.\./'
16089 # Canonicalize the pathname of ld
16090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16094 test -z "$LD" && LD="$ac_prog"
16097 # If it fails, then pretend we aren't using GCC.
16101 # If it is relative, then search for the first ld in PATH.
16102 with_gnu_ld=unknown
16105 elif test "$with_gnu_ld" = yes; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16107 $as_echo_n "checking for GNU ld... " >&6; }
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16110 $as_echo_n "checking for non-GNU ld... " >&6; }
16112 if test "${lt_cv_path_LD+set}" = set; then :
16113 $as_echo_n "(cached) " >&6
16115 if test -z "$LD"; then
16116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16117 for ac_dir in $PATH; do
16119 test -z "$ac_dir" && ac_dir=.
16120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16121 lt_cv_path_LD="$ac_dir/$ac_prog"
16122 # Check to see if the program is GNU ld. I'd rather use --version,
16123 # but apparently some variants of GNU ld only accept -v.
16124 # Break only if it was the GNU/non-GNU ld that we prefer.
16125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16126 *GNU* | *'with BFD'*)
16127 test "$with_gnu_ld" != no && break
16130 test "$with_gnu_ld" != yes && break
16137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16141 LD="$lt_cv_path_LD"
16142 if test -n "$LD"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16144 $as_echo "$LD" >&6; }
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16149 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16151 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16152 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16153 $as_echo_n "(cached) " >&6
16155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16156 case `$LD -v 2>&1 </dev/null` in
16157 *GNU* | *'with BFD'*)
16158 lt_cv_prog_gnu_ld=yes
16161 lt_cv_prog_gnu_ld=no
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16166 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16167 with_gnu_ld=$lt_cv_prog_gnu_ld
16175 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16176 # archiving commands below assume that GNU ld is being used.
16177 if test "$with_gnu_ld" = yes; then
16178 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16182 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16184 # If archive_cmds runs LD, not CC, wlarc should be empty
16185 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16186 # investigate it a little bit more. (MM)
16189 # ancient GNU ld didn't support --whole-archive et. al.
16190 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16191 $GREP 'no-whole-archive' > /dev/null; then
16192 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16194 whole_archive_flag_spec_CXX=
16200 # A generic and very simple default shared library creation
16201 # command for GNU C++ for the case where it uses the native
16202 # linker, instead of GNU ld. If possible, this setting should
16203 # overridden to take advantage of the native linker features on
16204 # the platform it is being used on.
16205 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16208 # Commands to make compiler produce verbose output that lists
16209 # what "hidden" libraries, object files and flags are used when
16210 # linking a shared library.
16211 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16219 # PORTME: fill in a description of your system's C++ link characteristics
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16221 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16225 # FIXME: insert proper C++ library support
16229 if test "$host_cpu" = ia64; then
16230 # On IA64, the linker does run time linking by default, so we don't
16231 # have to do anything special.
16232 aix_use_runtimelinking=no
16233 exp_sym_flag='-Bexport'
16236 aix_use_runtimelinking=no
16238 # Test if we are trying to use run time linking or normal
16239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16240 # need to do runtime linking.
16241 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16242 for ld_flag in $LDFLAGS; do
16245 aix_use_runtimelinking=yes
16253 exp_sym_flag='-bexport'
16254 no_entry_flag='-bnoentry'
16257 # When large executables or shared objects are built, AIX ld can
16258 # have problems creating the table of contents. If linking a library
16259 # or program results in "error TOC overflow" add -mminimal-toc to
16260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16263 archive_cmds_CXX=''
16264 hardcode_direct_CXX=yes
16265 hardcode_direct_absolute_CXX=yes
16266 hardcode_libdir_separator_CXX=':'
16267 link_all_deplibs_CXX=yes
16268 file_list_spec_CXX='${wl}-f,'
16270 if test "$GXX" = yes; then
16271 case $host_os in aix4.[012]|aix4.[012].*)
16272 # We only want to do this on AIX 4.2 and lower, the check
16273 # below for broken collect2 doesn't work under 4.3+
16274 collect2name=`${CC} -print-prog-name=collect2`
16275 if test -f "$collect2name" &&
16276 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16278 # We have reworked collect2
16281 # We have old collect2
16282 hardcode_direct_CXX=unsupported
16283 # It fails to find uninstalled libraries when the uninstalled
16284 # path is not listed in the libpath. Setting hardcode_minus_L
16285 # to unsupported forces relinking
16286 hardcode_minus_L_CXX=yes
16287 hardcode_libdir_flag_spec_CXX='-L$libdir'
16288 hardcode_libdir_separator_CXX=
16291 shared_flag='-shared'
16292 if test "$aix_use_runtimelinking" = yes; then
16293 shared_flag="$shared_flag "'${wl}-G'
16297 if test "$host_cpu" = ia64; then
16298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16299 # chokes on -Wl,-G. The following line is correct:
16302 if test "$aix_use_runtimelinking" = yes; then
16303 shared_flag='${wl}-G'
16305 shared_flag='${wl}-bM:SRE'
16310 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16311 # It seems that -bexpall does not export symbols beginning with
16312 # underscore (_), so it is better to generate a list of symbols to
16314 always_export_symbols_CXX=yes
16315 if test "$aix_use_runtimelinking" = yes; then
16316 # Warning - without using the other runtime loading flags (-brtl),
16317 # -berok will link without error, but may produce a broken library.
16318 allow_undefined_flag_CXX='-berok'
16319 # Determine the default libpath from the value encoded in an empty
16321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16332 if ac_fn_cxx_try_link "$LINENO"; then :
16334 lt_aix_libpath_sed='
16335 /Import File Strings/,/^$/ {
16341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16342 # Check for a 64-bit object if we didn't find anything.
16343 if test -z "$aix_libpath"; then
16344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16347 rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16353 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"
16355 if test "$host_cpu" = ia64; then
16356 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16357 allow_undefined_flag_CXX="-z nodefs"
16358 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"
16360 # Determine the default libpath from the value encoded in an
16361 # empty executable.
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16373 if ac_fn_cxx_try_link "$LINENO"; then :
16375 lt_aix_libpath_sed='
16376 /Import File Strings/,/^$/ {
16382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16383 # Check for a 64-bit object if we didn't find anything.
16384 if test -z "$aix_libpath"; then
16385 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16388 rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16392 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16393 # Warning - without using the other run time loading flags,
16394 # -berok will link without error, but may produce a broken library.
16395 no_undefined_flag_CXX=' ${wl}-bernotok'
16396 allow_undefined_flag_CXX=' ${wl}-berok'
16397 if test "$with_gnu_ld" = yes; then
16398 # We only use this code for GNU lds that support --whole-archive.
16399 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16401 # Exported symbols can be pulled into shared objects from archives
16402 whole_archive_flag_spec_CXX='$convenience'
16404 archive_cmds_need_lc_CXX=yes
16405 # This is similar to how AIX traditionally builds its shared
16407 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'
16413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16414 allow_undefined_flag_CXX=unsupported
16415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16416 # support --undefined. This deserves some investigation. FIXME
16417 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16424 case $cc_basename in
16426 # FIXME: insert proper C++ library support
16432 cygwin* | mingw* | pw32* | cegcc*)
16433 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16434 # as there is no search path for DLLs.
16435 hardcode_libdir_flag_spec_CXX='-L$libdir'
16436 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16437 allow_undefined_flag_CXX=unsupported
16438 always_export_symbols_CXX=no
16439 enable_shared_with_static_runtimes_CXX=yes
16441 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16442 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'
16443 # If the export-symbols file already is a .def file (1st line
16444 # is EXPORTS), use it as is; otherwise, prepend...
16445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16446 cp $export_symbols $output_objdir/$soname.def;
16448 echo EXPORTS > $output_objdir/$soname.def;
16449 cat $export_symbols >> $output_objdir/$soname.def;
16451 $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'
16456 darwin* | rhapsody*)
16459 archive_cmds_need_lc_CXX=no
16460 hardcode_direct_CXX=no
16461 hardcode_automatic_CXX=yes
16462 hardcode_shlibpath_var_CXX=unsupported
16463 if test "$lt_cv_ld_force_load" = "yes"; then
16464 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\"`'
16466 whole_archive_flag_spec_CXX=''
16468 link_all_deplibs_CXX=yes
16469 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16470 case $cc_basename in
16471 ifort*) _lt_dar_can_shared=yes ;;
16472 *) _lt_dar_can_shared=$GCC ;;
16474 if test "$_lt_dar_can_shared" = "yes"; then
16475 output_verbose_link_cmd=func_echo_all
16476 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}"
16477 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16478 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}"
16479 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}"
16480 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16481 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}"
16482 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}"
16492 case $cc_basename in
16494 # FIXME: insert proper C++ library support
16498 # Green Hills C++ Compiler
16499 # FIXME: insert proper C++ library support
16503 # FIXME: insert proper C++ library support
16510 # C++ shared libraries reported to be fairly broken before
16516 archive_cmds_need_lc_CXX=no
16519 freebsd* | dragonfly*)
16520 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16529 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16530 link_all_deplibs_CXX=yes
16534 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16535 hardcode_libdir_separator_CXX=:
16536 export_dynamic_flag_spec_CXX='${wl}-E'
16537 hardcode_direct_CXX=yes
16538 hardcode_minus_L_CXX=yes # Not in the search PATH,
16539 # but as the default
16540 # location of the library.
16542 case $cc_basename in
16544 # FIXME: insert proper C++ library support
16548 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'
16549 # Commands to make compiler produce verbose output that lists
16550 # what "hidden" libraries, object files and flags are used when
16551 # linking a shared library.
16553 # There doesn't appear to be a way to prevent this compiler from
16554 # explicitly linking system object files so we need to strip them
16555 # from the output so that they don't get included in the library
16557 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"'
16560 if test "$GXX" = yes; then
16561 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16563 # FIXME: insert proper C++ library support
16571 if test $with_gnu_ld = no; then
16572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16573 hardcode_libdir_separator_CXX=:
16579 export_dynamic_flag_spec_CXX='${wl}-E'
16585 hardcode_direct_CXX=no
16586 hardcode_shlibpath_var_CXX=no
16589 hardcode_direct_CXX=yes
16590 hardcode_direct_absolute_CXX=yes
16591 hardcode_minus_L_CXX=yes # Not in the search PATH,
16592 # but as the default
16593 # location of the library.
16597 case $cc_basename in
16599 # FIXME: insert proper C++ library support
16605 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16608 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16611 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16614 # Commands to make compiler produce verbose output that lists
16615 # what "hidden" libraries, object files and flags are used when
16616 # linking a shared library.
16618 # There doesn't appear to be a way to prevent this compiler from
16619 # explicitly linking system object files so we need to strip them
16620 # from the output so that they don't get included in the library
16622 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"'
16625 if test "$GXX" = yes; then
16626 if test $with_gnu_ld = no; then
16629 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16632 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16635 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16640 # FIXME: insert proper C++ library support
16648 hardcode_direct_CXX=no
16649 hardcode_shlibpath_var_CXX=no
16650 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16651 export_dynamic_flag_spec_CXX='${wl}-E'
16652 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16653 # Instead, shared libraries are loaded at an image base (0x10000000 by
16654 # default) and relocated if they conflict, which is a slow very memory
16655 # consuming and fragmenting process. To avoid this, we pick a random,
16656 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16657 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16658 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'
16659 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'
16662 case $cc_basename in
16665 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'
16667 # Archives containing C++ object files must be created using
16668 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16669 # necessary to make sure instantiated templates are included
16671 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16674 if test "$GXX" = yes; then
16675 if test "$with_gnu_ld" = no; then
16676 archive_cmds_CXX='$CC -shared -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'
16678 archive_cmds_CXX='$CC -shared -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'
16681 link_all_deplibs_CXX=yes
16684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16685 hardcode_libdir_separator_CXX=:
16686 inherit_rpath_CXX=yes
16689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16690 case $cc_basename in
16692 # Kuck and Associates, Inc. (KAI) C++ Compiler
16694 # KCC will only create a shared library if the output file
16695 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16696 # to its proper name (with version) after linking.
16697 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'
16698 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'
16699 # Commands to make compiler produce verbose output that lists
16700 # what "hidden" libraries, object files and flags are used when
16701 # linking a shared library.
16703 # There doesn't appear to be a way to prevent this compiler from
16704 # explicitly linking system object files so we need to strip them
16705 # from the output so that they don't get included in the library
16707 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"'
16709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16710 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16712 # Archives containing C++ object files must be created using
16713 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16714 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16719 # version 8.0 and above of icpc choke on multiply defined symbols
16720 # if we add $predep_objects and $postdep_objects, however 7.1 and
16721 # earlier do not add the objects themselves.
16722 case `$CC -V 2>&1` in
16724 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16725 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'
16727 *) # Version 8.0 or newer
16730 ia64*) tmp_idyn=' -i_dynamic';;
16732 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16733 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'
16736 archive_cmds_need_lc_CXX=no
16737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16738 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16739 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16742 # Portland Group C++ compiler
16744 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16745 prelink_cmds_CXX='tpldir=Template.dir~
16747 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16748 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16749 old_archive_cmds_CXX='tpldir=Template.dir~
16751 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16752 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16754 archive_cmds_CXX='tpldir=Template.dir~
16756 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16757 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16758 archive_expsym_cmds_CXX='tpldir=Template.dir~
16760 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16761 $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'
16763 *) # Version 6 and above use weak symbols
16764 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16765 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'
16769 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16770 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16771 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'
16775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16776 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'
16778 runpath_var=LD_RUN_PATH
16779 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16780 hardcode_libdir_separator_CXX=:
16782 # Commands to make compiler produce verbose output that lists
16783 # what "hidden" libraries, object files and flags are used when
16784 # linking a shared library.
16786 # There doesn't appear to be a way to prevent this compiler from
16787 # explicitly linking system object files so we need to strip them
16788 # from the output so that they don't get included in the library
16790 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'
16792 xl* | mpixl* | bgxl*)
16793 # IBM XL 8.0 on PPC, with GNU ld
16794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16796 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16797 if test "x$supports_anon_versioning" = xyes; then
16798 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800 echo "local: *; };" >> $output_objdir/$libname.ver~
16801 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16805 case `$CC -V 2>&1 | sed 5q` in
16808 no_undefined_flag_CXX=' -zdefs'
16809 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16810 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'
16811 hardcode_libdir_flag_spec_CXX='-R$libdir'
16812 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'
16813 compiler_needs_object_CXX=yes
16815 # Not sure whether something based on
16816 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16818 output_verbose_link_cmd='func_echo_all'
16820 # Archives containing C++ object files must be created using
16821 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16822 # necessary to make sure instantiated templates are included
16824 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16832 # FIXME: insert proper C++ library support
16837 # FIXME: insert proper C++ library support
16842 case $cc_basename in
16844 # FIXME: insert proper C++ library support
16848 # FIXME: insert proper C++ library support
16855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16856 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16858 hardcode_libdir_flag_spec_CXX='-R$libdir'
16859 hardcode_direct_CXX=yes
16860 hardcode_shlibpath_var_CXX=no
16862 # Workaround some broken pre-1.5 toolchains
16863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16871 # C++ shared libraries are fairly broken
16876 if test -f /usr/libexec/ld.so; then
16877 hardcode_direct_CXX=yes
16878 hardcode_shlibpath_var_CXX=no
16879 hardcode_direct_absolute_CXX=yes
16880 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16882 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16883 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16884 export_dynamic_flag_spec_CXX='${wl}-E'
16885 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16887 output_verbose_link_cmd=func_echo_all
16893 osf3* | osf4* | osf5*)
16894 case $cc_basename in
16896 # Kuck and Associates, Inc. (KAI) C++ Compiler
16898 # KCC will only create a shared library if the output file
16899 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16900 # to its proper name (with version) after linking.
16901 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'
16903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16904 hardcode_libdir_separator_CXX=:
16906 # Archives containing C++ object files must be created using
16907 # the KAI C++ compiler.
16909 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16910 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16914 # Rational C++ 2.4.1
16915 # FIXME: insert proper C++ library support
16921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16922 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'
16923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16926 allow_undefined_flag_CXX=' -expect_unresolved \*'
16927 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'
16928 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16929 echo "-hidden">> $lib.exp~
16930 $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~
16932 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16936 hardcode_libdir_separator_CXX=:
16938 # Commands to make compiler produce verbose output that lists
16939 # what "hidden" libraries, object files and flags are used when
16940 # linking a shared library.
16942 # There doesn't appear to be a way to prevent this compiler from
16943 # explicitly linking system object files so we need to strip them
16944 # from the output so that they don't get included in the library
16946 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"'
16949 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16950 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16953 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'
16956 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16960 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16961 hardcode_libdir_separator_CXX=:
16963 # Commands to make compiler produce verbose output that lists
16964 # what "hidden" libraries, object files and flags are used when
16965 # linking a shared library.
16966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16969 # FIXME: insert proper C++ library support
16977 # FIXME: insert proper C++ library support
16982 case $cc_basename in
16985 # FIXME: insert proper C++ library support
16990 # FIXME: insert proper C++ library support
16994 # FIXME: insert proper C++ library support
17001 case $cc_basename in
17003 # Sun C++ 4.2, 5.x and Centerline C++
17004 archive_cmds_need_lc_CXX=yes
17005 no_undefined_flag_CXX=' -zdefs'
17006 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17007 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17008 $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'
17010 hardcode_libdir_flag_spec_CXX='-R$libdir'
17011 hardcode_shlibpath_var_CXX=no
17013 solaris2.[0-5] | solaris2.[0-5].*) ;;
17015 # The compiler driver will combine and reorder linker options,
17016 # but understands `-z linker_flag'.
17017 # Supported since Solaris 2.6 (maybe 2.5.1?)
17018 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17021 link_all_deplibs_CXX=yes
17023 output_verbose_link_cmd='func_echo_all'
17025 # Archives containing C++ object files must be created using
17026 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17027 # necessary to make sure instantiated templates are included
17029 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17032 # Green Hills C++ Compiler
17033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17035 # The C++ compiler must be used to create the archive.
17036 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17039 # GNU C++ compiler with Solaris linker
17040 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17041 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17042 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17043 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17044 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17045 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17047 # Commands to make compiler produce verbose output that lists
17048 # what "hidden" libraries, object files and flags are used when
17049 # linking a shared library.
17050 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17052 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17054 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17055 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17056 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17058 # Commands to make compiler produce verbose output that lists
17059 # what "hidden" libraries, object files and flags are used when
17060 # linking a shared library.
17061 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17064 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17066 solaris2.[0-5] | solaris2.[0-5].*) ;;
17068 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17076 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17077 no_undefined_flag_CXX='${wl}-z,text'
17078 archive_cmds_need_lc_CXX=no
17079 hardcode_shlibpath_var_CXX=no
17080 runpath_var='LD_RUN_PATH'
17082 case $cc_basename in
17084 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17088 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17094 sysv5* | sco3.2v5* | sco5v6*)
17095 # Note: We can NOT use -z defs as we might desire, because we do not
17096 # link with -lc, and that would cause any symbols used from libc to
17097 # always be unresolved, which means just about no library would
17098 # ever link correctly. If we're not using GNU ld we use -z text
17099 # though, which does catch some bad symbols but isn't as heavy-handed
17101 no_undefined_flag_CXX='${wl}-z,text'
17102 allow_undefined_flag_CXX='${wl}-z,nodefs'
17103 archive_cmds_need_lc_CXX=no
17104 hardcode_shlibpath_var_CXX=no
17105 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17106 hardcode_libdir_separator_CXX=':'
17107 link_all_deplibs_CXX=yes
17108 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17109 runpath_var='LD_RUN_PATH'
17111 case $cc_basename in
17113 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17114 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17115 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17116 '"$old_archive_cmds_CXX"
17117 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17118 '"$reload_cmds_CXX"
17121 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17122 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17128 case $cc_basename in
17130 # NonStop-UX NCC 3.20
17131 # FIXME: insert proper C++ library support
17135 # FIXME: insert proper C++ library support
17142 # FIXME: insert proper C++ library support
17147 # FIXME: insert proper C++ library support
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17153 $as_echo "$ld_shlibs_CXX" >&6; }
17154 test "$ld_shlibs_CXX" = no && can_build_shared=no
17160 ## There is no encapsulation within the following macros, do not change
17161 ## the running order or otherwise move them around unless you know exactly
17162 ## what you are doing...
17163 # Dependencies to place before and after the object being linked:
17164 predep_objects_CXX=
17165 postdep_objects_CXX=
17168 compiler_lib_search_path_CXX=
17170 cat > conftest.$ac_ext <<_LT_EOF
17174 Foo (void) { a = 0; }
17180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17181 (eval $ac_compile) 2>&5
17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; }; then
17185 # Parse the compiler output and extract the necessary
17186 # objects, libraries and library flags.
17188 # Sentinel used to keep track of whether or not we are before
17189 # the conftest object file.
17190 pre_test_object_deps_done=no
17192 for p in `eval "$output_verbose_link_cmd"`; do
17196 # Some compilers place space between "-{L,R}" and the path.
17197 # Remove the space.
17198 if test $p = "-L" ||
17199 test $p = "-R"; then
17206 if test "$pre_test_object_deps_done" = no; then
17209 # Internal compiler library paths should come after those
17210 # provided the user. The postdeps already come after the
17211 # user supplied libs so there is no need to process them.
17212 if test -z "$compiler_lib_search_path_CXX"; then
17213 compiler_lib_search_path_CXX="${prev}${p}"
17215 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17218 # The "-l" case would never come before the object being
17219 # linked, so don't bother handling this case.
17222 if test -z "$postdeps_CXX"; then
17223 postdeps_CXX="${prev}${p}"
17225 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17231 # This assumes that the test object file only shows up
17232 # once in the compiler output.
17233 if test "$p" = "conftest.$objext"; then
17234 pre_test_object_deps_done=yes
17238 if test "$pre_test_object_deps_done" = no; then
17239 if test -z "$predep_objects_CXX"; then
17240 predep_objects_CXX="$p"
17242 predep_objects_CXX="$predep_objects_CXX $p"
17245 if test -z "$postdep_objects_CXX"; then
17246 postdep_objects_CXX="$p"
17248 postdep_objects_CXX="$postdep_objects_CXX $p"
17253 *) ;; # Ignore the rest.
17261 echo "libtool.m4: error: problem compiling CXX test program"
17264 $RM -f confest.$objext
17266 # PORTME: override above test on systems where it is broken
17269 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17270 # hack all around it, let's just trust "g++" to DTRT.
17271 predep_objects_CXX=
17272 postdep_objects_CXX=
17277 case `$CC -V 2>&1 | sed 5q` in
17281 # The more standards-conforming stlport4 library is
17282 # incompatible with the Cstd library. Avoid specifying
17283 # it if it's in CXXFLAGS. Ignore libCrun as
17284 # -library=stlport4 depends on it.
17285 case " $CXX $CXXFLAGS " in
17286 *" -library=stlport4 "*)
17287 solaris_use_stlport4=yes
17291 if test "$solaris_use_stlport4" != yes; then
17292 postdeps_CXX='-library=Cstd -library=Crun'
17299 case $cc_basename in
17301 # The more standards-conforming stlport4 library is
17302 # incompatible with the Cstd library. Avoid specifying
17303 # it if it's in CXXFLAGS. Ignore libCrun as
17304 # -library=stlport4 depends on it.
17305 case " $CXX $CXXFLAGS " in
17306 *" -library=stlport4 "*)
17307 solaris_use_stlport4=yes
17311 # Adding this requires a known-good setup of shared libraries for
17312 # Sun compiler versions before 5.6, else PIC objects from an old
17313 # archive will be linked into the output, leading to subtle bugs.
17314 if test "$solaris_use_stlport4" != yes; then
17315 postdeps_CXX='-library=Cstd -library=Crun'
17323 case " $postdeps_CXX " in
17324 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17326 compiler_lib_search_dirs_CXX=
17327 if test -n "${compiler_lib_search_path_CXX}"; then
17328 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17361 lt_prog_compiler_wl_CXX=
17362 lt_prog_compiler_pic_CXX=
17363 lt_prog_compiler_static_CXX=
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17368 # C++ specific cases for pic, static, wl, etc.
17369 if test "$GXX" = yes; then
17370 lt_prog_compiler_wl_CXX='-Wl,'
17371 lt_prog_compiler_static_CXX='-static'
17375 # All AIX code is PIC.
17376 if test "$host_cpu" = ia64; then
17377 # AIX 5 now supports IA64 processor
17378 lt_prog_compiler_static_CXX='-Bstatic'
17385 # see comment about AmigaOS4 .so support
17386 lt_prog_compiler_pic_CXX='-fPIC'
17389 # FIXME: we need at least 68020 code to build shared libraries, but
17390 # adding the `-m68020' flag to GCC prevents building anything better,
17392 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17398 # PIC is the default for these OSes.
17400 mingw* | cygwin* | os2* | pw32* | cegcc*)
17401 # This hack is so that the source file can tell whether it is being
17402 # built for inclusion in a dll (and should export symbols for example).
17403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17404 # (--disable-auto-import) libraries
17405 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17407 darwin* | rhapsody*)
17408 # PIC is the default on this platform
17409 # Common symbols not allowed in MH_DYLIB files
17410 lt_prog_compiler_pic_CXX='-fno-common'
17413 # DJGPP does not support shared libraries at all
17414 lt_prog_compiler_pic_CXX=
17417 # PIC is the default for Haiku.
17418 # The "-static" flag exists, but is broken.
17419 lt_prog_compiler_static_CXX=
17422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17423 # Instead, we relocate shared libraries at runtime.
17426 if test -d /usr/nec; then
17427 lt_prog_compiler_pic_CXX=-Kconform_pic
17431 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17432 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17433 # sets the default TLS model and affects inlining.
17438 lt_prog_compiler_pic_CXX='-fPIC'
17443 # QNX uses GNU C++, but need to define -shared option too, otherwise
17444 # it will coredump.
17445 lt_prog_compiler_pic_CXX='-fPIC -shared'
17448 lt_prog_compiler_pic_CXX='-fPIC'
17454 # All AIX code is PIC.
17455 if test "$host_cpu" = ia64; then
17456 # AIX 5 now supports IA64 processor
17457 lt_prog_compiler_static_CXX='-Bstatic'
17459 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17463 case $cc_basename in
17465 # Green Hills C++ Compiler
17466 # _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"
17471 case $cc_basename in
17473 lt_prog_compiler_pic_CXX='-KPIC'
17476 # Green Hills C++ Compiler
17477 lt_prog_compiler_pic_CXX='-pic'
17483 freebsd* | dragonfly*)
17484 # FreeBSD uses GNU C++
17486 hpux9* | hpux10* | hpux11*)
17487 case $cc_basename in
17489 lt_prog_compiler_wl_CXX='-Wl,'
17490 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17491 if test "$host_cpu" != ia64; then
17492 lt_prog_compiler_pic_CXX='+Z'
17496 lt_prog_compiler_wl_CXX='-Wl,'
17497 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17503 lt_prog_compiler_pic_CXX='+Z'
17512 # This is c89, which is MS Visual C++ (no shared libs)
17513 # Anyone wants to do a port?
17515 irix5* | irix6* | nonstopux*)
17516 case $cc_basename in
17518 lt_prog_compiler_wl_CXX='-Wl,'
17519 lt_prog_compiler_static_CXX='-non_shared'
17520 # CC pic flag -KPIC is the default.
17526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17527 case $cc_basename in
17530 lt_prog_compiler_wl_CXX='--backend -Wl,'
17531 lt_prog_compiler_pic_CXX='-fPIC'
17534 # old Intel C++ for x86_64 which still supported -KPIC.
17535 lt_prog_compiler_wl_CXX='-Wl,'
17536 lt_prog_compiler_pic_CXX='-KPIC'
17537 lt_prog_compiler_static_CXX='-static'
17540 # Intel C++, used to be incompatible with GCC.
17541 # ICC 10 doesn't accept -KPIC any more.
17542 lt_prog_compiler_wl_CXX='-Wl,'
17543 lt_prog_compiler_pic_CXX='-fPIC'
17544 lt_prog_compiler_static_CXX='-static'
17547 # Portland Group C++ compiler
17548 lt_prog_compiler_wl_CXX='-Wl,'
17549 lt_prog_compiler_pic_CXX='-fpic'
17550 lt_prog_compiler_static_CXX='-Bstatic'
17554 # Make sure the PIC flag is empty. It appears that all Alpha
17555 # Linux and Compaq Tru64 Unix objects are PIC.
17556 lt_prog_compiler_pic_CXX=
17557 lt_prog_compiler_static_CXX='-non_shared'
17559 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17560 # IBM XL 8.0, 9.0 on PPC and BlueGene
17561 lt_prog_compiler_wl_CXX='-Wl,'
17562 lt_prog_compiler_pic_CXX='-qpic'
17563 lt_prog_compiler_static_CXX='-qstaticlink'
17566 case `$CC -V 2>&1 | sed 5q` in
17569 lt_prog_compiler_pic_CXX='-KPIC'
17570 lt_prog_compiler_static_CXX='-Bstatic'
17571 lt_prog_compiler_wl_CXX='-Qoption ld '
17582 case $cc_basename in
17584 lt_prog_compiler_pic_CXX='-W c,exportall'
17593 # QNX uses GNU C++, but need to define -shared option too, otherwise
17594 # it will coredump.
17595 lt_prog_compiler_pic_CXX='-fPIC -shared'
17597 osf3* | osf4* | osf5*)
17598 case $cc_basename in
17600 lt_prog_compiler_wl_CXX='--backend -Wl,'
17603 # Rational C++ 2.4.1
17604 lt_prog_compiler_pic_CXX='-pic'
17607 # Digital/Compaq C++
17608 lt_prog_compiler_wl_CXX='-Wl,'
17609 # Make sure the PIC flag is empty. It appears that all Alpha
17610 # Linux and Compaq Tru64 Unix objects are PIC.
17611 lt_prog_compiler_pic_CXX=
17612 lt_prog_compiler_static_CXX='-non_shared'
17621 case $cc_basename in
17623 # Sun C++ 4.2, 5.x and Centerline C++
17624 lt_prog_compiler_pic_CXX='-KPIC'
17625 lt_prog_compiler_static_CXX='-Bstatic'
17626 lt_prog_compiler_wl_CXX='-Qoption ld '
17629 # Green Hills C++ Compiler
17630 lt_prog_compiler_pic_CXX='-PIC'
17637 case $cc_basename in
17640 lt_prog_compiler_pic_CXX='-pic'
17641 lt_prog_compiler_static_CXX='-Bstatic'
17645 lt_prog_compiler_pic_CXX='-pic'
17651 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17652 case $cc_basename in
17654 lt_prog_compiler_wl_CXX='-Wl,'
17655 lt_prog_compiler_pic_CXX='-KPIC'
17656 lt_prog_compiler_static_CXX='-Bstatic'
17661 case $cc_basename in
17663 # NonStop-UX NCC 3.20
17664 lt_prog_compiler_pic_CXX='-KPIC'
17673 lt_prog_compiler_can_build_shared_CXX=no
17679 # For platforms which do not support PIC, -DPIC is meaningless:
17681 lt_prog_compiler_pic_CXX=
17684 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17688 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17693 # Check to make sure the PIC flag actually works.
17695 if test -n "$lt_prog_compiler_pic_CXX"; then
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17697 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17698 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17699 $as_echo_n "(cached) " >&6
17701 lt_cv_prog_compiler_pic_works_CXX=no
17702 ac_outfile=conftest.$ac_objext
17703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17704 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17705 # Insert the option either (1) after the last *FLAGS variable, or
17706 # (2) before a word containing "conftest.", or (3) at the end.
17707 # Note that $ac_compile itself does not contain backslashes and begins
17708 # with a dollar sign (not a hyphen), so the echo should work correctly.
17709 # The option is referenced via a variable to avoid confusing sed.
17710 lt_compile=`echo "$ac_compile" | $SED \
17711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17713 -e 's:$: $lt_compiler_flag:'`
17714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17715 (eval "$lt_compile" 2>conftest.err)
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 if (exit $ac_status) && test -s "$ac_outfile"; then
17720 # The compiler can only warn and ignore the option if not recognized
17721 # So say no if there are warnings other than the usual output.
17722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17725 lt_cv_prog_compiler_pic_works_CXX=yes
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17732 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17734 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17735 case $lt_prog_compiler_pic_CXX in
17737 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17740 lt_prog_compiler_pic_CXX=
17741 lt_prog_compiler_can_build_shared_CXX=no
17749 # Check to make sure the static flag actually works.
17751 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17753 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17754 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17757 lt_cv_prog_compiler_static_works_CXX=no
17758 save_LDFLAGS="$LDFLAGS"
17759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17762 # The linker can only warn and ignore the option if not recognized
17763 # So say no if there are warnings
17764 if test -s conftest.err; then
17765 # Append any errors to the config.log.
17766 cat conftest.err 1>&5
17767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17769 if diff conftest.exp conftest.er2 >/dev/null; then
17770 lt_cv_prog_compiler_static_works_CXX=yes
17773 lt_cv_prog_compiler_static_works_CXX=yes
17777 LDFLAGS="$save_LDFLAGS"
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17781 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17783 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17786 lt_prog_compiler_static_CXX=
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17797 lt_cv_prog_compiler_c_o_CXX=no
17798 $RM -r conftest 2>/dev/null
17802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17804 lt_compiler_flag="-o out/conftest2.$ac_objext"
17805 # Insert the option either (1) after the last *FLAGS variable, or
17806 # (2) before a word containing "conftest.", or (3) at the end.
17807 # Note that $ac_compile itself does not contain backslashes and begins
17808 # with a dollar sign (not a hyphen), so the echo should work correctly.
17809 lt_compile=`echo "$ac_compile" | $SED \
17810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17812 -e 's:$: $lt_compiler_flag:'`
17813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17814 (eval "$lt_compile" 2>out/conftest.err)
17816 cat out/conftest.err >&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17820 # The compiler can only warn and ignore the option if not recognized
17821 # So say no if there are warnings
17822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17825 lt_cv_prog_compiler_c_o_CXX=yes
17830 # SGI C++ compiler will create directory out/ii_files/ for
17831 # template instantiation
17832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17833 $RM out/* && rmdir out
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17840 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17846 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17849 lt_cv_prog_compiler_c_o_CXX=no
17850 $RM -r conftest 2>/dev/null
17854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17856 lt_compiler_flag="-o out/conftest2.$ac_objext"
17857 # Insert the option either (1) after the last *FLAGS variable, or
17858 # (2) before a word containing "conftest.", or (3) at the end.
17859 # Note that $ac_compile itself does not contain backslashes and begins
17860 # with a dollar sign (not a hyphen), so the echo should work correctly.
17861 lt_compile=`echo "$ac_compile" | $SED \
17862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17864 -e 's:$: $lt_compiler_flag:'`
17865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17866 (eval "$lt_compile" 2>out/conftest.err)
17868 cat out/conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17872 # The compiler can only warn and ignore the option if not recognized
17873 # So say no if there are warnings
17874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17877 lt_cv_prog_compiler_c_o_CXX=yes
17882 # SGI C++ compiler will create directory out/ii_files/ for
17883 # template instantiation
17884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17885 $RM out/* && rmdir out
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17892 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17897 hard_links="nottested"
17898 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17899 # do not overwrite the value of need_locks provided by the user
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17901 $as_echo_n "checking if we can lock with hard links... " >&6; }
17904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17906 ln conftest.a conftest.b 2>&5 || hard_links=no
17907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17909 $as_echo "$hard_links" >&6; }
17910 if test "$hard_links" = no; then
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17924 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17927 # If we're using GNU nm, then we don't want the "-C" option.
17928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17929 # Also, AIX nm treats weak defined symbols like other global defined
17930 # symbols, whereas GNU nm marks them as "W".
17931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17932 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'
17934 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'
17938 export_symbols_cmds_CXX="$ltdll_cmds"
17940 cygwin* | mingw* | cegcc*)
17941 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17947 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17950 $as_echo "$ld_shlibs_CXX" >&6; }
17951 test "$ld_shlibs_CXX" = no && can_build_shared=no
17953 with_gnu_ld_CXX=$with_gnu_ld
17961 # Do we need to explicitly link libc?
17963 case "x$archive_cmds_need_lc_CXX" in
17965 # Assume -lc should be added
17966 archive_cmds_need_lc_CXX=yes
17968 if test "$enable_shared" = yes && test "$GCC" = yes; then
17969 case $archive_cmds_CXX in
17971 # FIXME: we may have to deal with multi-command sequences.
17974 # Test whether the compiler implicitly links with -lc since on some
17975 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17976 # to ld, don't add -lc before -lgcc.
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17978 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17979 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17980 $as_echo_n "(cached) " >&6
17983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17986 (eval $ac_compile) 2>&5
17988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17989 test $ac_status = 0; } 2>conftest.err; then
17992 libobjs=conftest.$ac_objext
17994 wl=$lt_prog_compiler_wl_CXX
17995 pic_flag=$lt_prog_compiler_pic_CXX
18001 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18002 allow_undefined_flag_CXX=
18003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18004 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18007 test $ac_status = 0; }
18009 lt_cv_archive_cmds_need_lc_CXX=no
18011 lt_cv_archive_cmds_need_lc_CXX=yes
18013 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18015 cat conftest.err 1>&5
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18021 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18022 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18093 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18095 library_names_spec=
18096 libname_spec='lib$name'
18100 postuninstall_cmds=
18104 shlibpath_overrides_runpath=unknown
18106 dynamic_linker="$host_os ld.so"
18107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18108 need_lib_prefix=unknown
18109 hardcode_into_libs=no
18111 # when you set need_version to no, make sure it does not cause -set_version
18112 # flags to be left without arguments
18113 need_version=unknown
18118 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18119 shlibpath_var=LIBPATH
18121 # AIX 3 has no versioning support, so we append a major version to the name.
18122 soname_spec='${libname}${release}${shared_ext}$major'
18129 hardcode_into_libs=yes
18130 if test "$host_cpu" = ia64; then
18131 # AIX 5 supports IA64
18132 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18133 shlibpath_var=LD_LIBRARY_PATH
18135 # With GCC up to 2.95.x, collect2 would create an import file
18136 # for dependence libraries. The import file would start with
18137 # the line `#! .'. This would cause the generated library to
18138 # depend on `.', always an invalid library. This was fixed in
18139 # development snapshots of GCC prior to 3.0.
18141 aix4 | aix4.[01] | aix4.[01].*)
18142 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18144 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18147 can_build_shared=no
18151 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18152 # soname into executable. Probably we can add versioning support to
18153 # collect2, so additional links can be useful in future.
18154 if test "$aix_use_runtimelinking" = yes; then
18155 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18156 # instead of lib<name>.a to let people know that these are not
18157 # typical AIX shared libraries.
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 # We preserve .a as extension for shared libraries through AIX4.2
18161 # and later when we are not doing run time linking.
18162 library_names_spec='${libname}${release}.a $libname.a'
18163 soname_spec='${libname}${release}${shared_ext}$major'
18165 shlibpath_var=LIBPATH
18172 # Since July 2007 AmigaOS4 officially supports .so libraries.
18173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177 library_names_spec='$libname.ixlibrary $libname.a'
18178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18179 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'
18185 library_names_spec='${libname}${shared_ext}'
18186 dynamic_linker="$host_os ld.so"
18187 shlibpath_var=LIBRARY_PATH
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18199 # the default ld.so.conf also contains /usr/contrib/lib and
18200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18201 # libtool to hard-code these into programs
18204 cygwin* | mingw* | pw32* | cegcc*)
18205 version_type=windows
18210 case $GCC,$host_os in
18211 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18212 library_names_spec='$libname.dll.a'
18213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18214 postinstall_cmds='base_file=`basename \${file}`~
18215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18216 dldir=$destdir/`dirname \$dlpath`~
18217 test -d \$dldir || mkdir -p \$dldir~
18218 $install_prog $dir/$dlname \$dldir/$dlname~
18219 chmod a+x \$dldir/$dlname~
18220 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18221 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18224 dlpath=$dir/\$dldll~
18226 shlibpath_overrides_runpath=yes
18230 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18231 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18235 # MinGW DLLs use traditional 'lib' prefix
18236 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18239 # pw32 DLLs use 'pw' prefix rather than 'lib'
18240 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18246 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18249 dynamic_linker='Win32 ld.exe'
18250 # FIXME: first we should search . and the directory the executable is in
18254 darwin* | rhapsody*)
18255 dynamic_linker="$host_os dyld"
18256 version_type=darwin
18259 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18260 soname_spec='${libname}${release}${major}$shared_ext'
18261 shlibpath_overrides_runpath=yes
18262 shlibpath_var=DYLD_LIBRARY_PATH
18263 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 shlibpath_var=LD_LIBRARY_PATH
18281 freebsd* | dragonfly*)
18282 # DragonFly does not have aout. When/if they implement a new
18283 # versioning mechanism, adjust this.
18284 if test -x /usr/bin/objformat; then
18285 objformat=`/usr/bin/objformat`
18288 freebsd[123]*) objformat=aout ;;
18289 *) objformat=elf ;;
18292 version_type=freebsd-$objformat
18293 case $version_type in
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18304 shlibpath_var=LD_LIBRARY_PATH
18307 shlibpath_overrides_runpath=yes
18309 freebsd3.[01]* | freebsdelf3.[01]*)
18310 shlibpath_overrides_runpath=yes
18311 hardcode_into_libs=yes
18313 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18314 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18315 shlibpath_overrides_runpath=no
18316 hardcode_into_libs=yes
18318 *) # from 4.6 on, and DragonFly
18319 shlibpath_overrides_runpath=yes
18320 hardcode_into_libs=yes
18329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18330 soname_spec='${libname}${release}${shared_ext}$major'
18331 shlibpath_var=LD_LIBRARY_PATH
18332 hardcode_into_libs=yes
18339 dynamic_linker="$host_os runtime_loader"
18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18341 soname_spec='${libname}${release}${shared_ext}$major'
18342 shlibpath_var=LIBRARY_PATH
18343 shlibpath_overrides_runpath=yes
18344 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18345 hardcode_into_libs=yes
18348 hpux9* | hpux10* | hpux11*)
18349 # Give a soname corresponding to the major version so that dld.sl refuses to
18350 # link against other versions.
18357 hardcode_into_libs=yes
18358 dynamic_linker="$host_os dld.so"
18359 shlibpath_var=LD_LIBRARY_PATH
18360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 if test "X$HPUX_IA64_MODE" = X32; then
18364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18372 hardcode_into_libs=yes
18373 dynamic_linker="$host_os dld.sl"
18374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 soname_spec='${libname}${release}${shared_ext}$major'
18378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18383 dynamic_linker="$host_os dld.sl"
18384 shlibpath_var=SHLIB_PATH
18385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 soname_spec='${libname}${release}${shared_ext}$major'
18390 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18391 postinstall_cmds='chmod 555 $lib'
18392 # or fails outright, so override atomically:
18393 install_override_mode=555
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18401 soname_spec='${libname}${release}${shared_ext}$major'
18402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18403 shlibpath_var=LD_LIBRARY_PATH
18404 shlibpath_overrides_runpath=no
18405 hardcode_into_libs=yes
18408 irix5* | irix6* | nonstopux*)
18410 nonstopux*) version_type=nonstopux ;;
18412 if test "$lt_cv_prog_gnu_ld" = yes; then
18420 soname_spec='${libname}${release}${shared_ext}$major'
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18423 irix5* | nonstopux*)
18424 libsuff= shlibsuff=
18427 case $LD in # libtool.m4 will add one of these switches to LD
18428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18429 libsuff= shlibsuff= libmagic=32-bit;;
18430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18431 libsuff=32 shlibsuff=N32 libmagic=N32;;
18432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18434 *) libsuff= shlibsuff= libmagic=never-match;;
18438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18439 shlibpath_overrides_runpath=no
18440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18442 hardcode_into_libs=yes
18445 # No shared lib support for Linux oldld, aout, or coff.
18446 linux*oldld* | linux*aout* | linux*coff*)
18450 # This must be Linux ELF.
18451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18458 shlibpath_var=LD_LIBRARY_PATH
18459 shlibpath_overrides_runpath=no
18461 # Some binutils ld are patched to set DT_RUNPATH
18462 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18463 $as_echo_n "(cached) " >&6
18465 lt_cv_shlibpath_overrides_runpath=no
18466 save_LDFLAGS=$LDFLAGS
18467 save_libdir=$libdir
18468 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18469 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18481 if ac_fn_cxx_try_link "$LINENO"; then :
18482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18483 lt_cv_shlibpath_overrides_runpath=yes
18486 rm -f core conftest.err conftest.$ac_objext \
18487 conftest$ac_exeext conftest.$ac_ext
18488 LDFLAGS=$save_LDFLAGS
18489 libdir=$save_libdir
18493 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18495 # This implies no fast_install, which is unacceptable.
18496 # Some rework will be needed to allow for fast_install
18497 # before this can be enabled.
18498 hardcode_into_libs=yes
18500 # Add ABI-specific directories to the system library path.
18501 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18503 # Append ld.so.conf contents to the search path
18504 if test -f /etc/ld.so.conf; then
18505 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' ' '`
18506 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18510 # We used to test for /lib/ld.so.1 and disable shared libraries on
18511 # powerpc, because MkLinux only supported shared libraries with the
18512 # GNU dynamic linker. Since this was broken with cross compilers,
18513 # most powerpc-linux boxes support dynamic linking these days and
18514 # people can always --disable-shared, the test was removed, and we
18515 # assume the GNU/Linux dynamic linker is in use.
18516 dynamic_linker='GNU/Linux ld.so'
18523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18526 dynamic_linker='NetBSD (a.out) ld.so'
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 dynamic_linker='NetBSD ld.elf_so'
18532 shlibpath_var=LD_LIBRARY_PATH
18533 shlibpath_overrides_runpath=yes
18534 hardcode_into_libs=yes
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 shlibpath_var=LD_LIBRARY_PATH
18541 shlibpath_overrides_runpath=yes
18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18549 soname_spec='${libname}${release}${shared_ext}$major'
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=no
18552 hardcode_into_libs=yes
18553 dynamic_linker='ldqnx.so'
18558 sys_lib_dlsearch_path_spec="/usr/lib"
18560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18563 *) need_version=no ;;
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18567 shlibpath_var=LD_LIBRARY_PATH
18568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18570 openbsd2.[89] | openbsd2.[89].*)
18571 shlibpath_overrides_runpath=no
18574 shlibpath_overrides_runpath=yes
18578 shlibpath_overrides_runpath=yes
18583 libname_spec='$name'
18586 library_names_spec='$libname${shared_ext} $libname.a'
18587 dynamic_linker='OS/2 ld.exe'
18588 shlibpath_var=LIBPATH
18591 osf3* | osf4* | osf5*)
18595 soname_spec='${libname}${release}${shared_ext}$major'
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18597 shlibpath_var=LD_LIBRARY_PATH
18598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611 soname_spec='${libname}${release}${shared_ext}$major'
18612 shlibpath_var=LD_LIBRARY_PATH
18613 shlibpath_overrides_runpath=yes
18614 hardcode_into_libs=yes
18615 # ldd complains unless libraries are executable
18616 postinstall_cmds='chmod +x $lib'
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18622 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 shlibpath_overrides_runpath=yes
18625 if test "$with_gnu_ld" = yes; then
18633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18634 soname_spec='${libname}${release}${shared_ext}$major'
18635 shlibpath_var=LD_LIBRARY_PATH
18636 case $host_vendor in
18638 shlibpath_overrides_runpath=no
18640 runpath_var=LD_RUN_PATH
18648 shlibpath_overrides_runpath=no
18649 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18655 if test -d /usr/nec ;then
18657 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18658 soname_spec='$libname${shared_ext}.$major'
18659 shlibpath_var=LD_LIBRARY_PATH
18663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18664 version_type=freebsd-elf
18667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18668 soname_spec='${libname}${release}${shared_ext}$major'
18669 shlibpath_var=LD_LIBRARY_PATH
18670 shlibpath_overrides_runpath=yes
18671 hardcode_into_libs=yes
18672 if test "$with_gnu_ld" = yes; then
18673 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18675 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18678 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18682 sys_lib_dlsearch_path_spec='/usr/lib'
18686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=no
18693 hardcode_into_libs=yes
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 shlibpath_var=LD_LIBRARY_PATH
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18708 $as_echo "$dynamic_linker" >&6; }
18709 test "$dynamic_linker" = no && can_build_shared=no
18711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18712 if test "$GCC" = yes; then
18713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18716 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18717 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18719 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18720 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18762 hardcode_action_CXX=
18763 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18764 test -n "$runpath_var_CXX" ||
18765 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18767 # We can hardcode non-existent directories.
18768 if test "$hardcode_direct_CXX" != no &&
18769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18770 # have to relink, otherwise we might link with an installed library
18771 # when we should be linking with a yet-to-be-installed one
18772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18773 test "$hardcode_minus_L_CXX" != no; then
18774 # Linking always hardcodes the temporary library directory.
18775 hardcode_action_CXX=relink
18777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18778 hardcode_action_CXX=immediate
18781 # We cannot hardcode anything, or else we can only hardcode existing
18783 hardcode_action_CXX=unsupported
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18786 $as_echo "$hardcode_action_CXX" >&6; }
18788 if test "$hardcode_action_CXX" = relink ||
18789 test "$inherit_rpath_CXX" = yes; then
18790 # Fast installation is not supported
18791 enable_fast_install=no
18792 elif test "$shlibpath_overrides_runpath" = yes ||
18793 test "$enable_shared" = no; then
18794 # Fast installation is not necessary
18795 enable_fast_install=needless
18804 fi # test -n "$compiler"
18810 with_gnu_ld=$lt_save_with_gnu_ld
18811 lt_cv_path_LDCXX=$lt_cv_path_LD
18812 lt_cv_path_LD=$lt_save_path_LD
18813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18815 fi # test "$_lt_caught_CXX_error" != yes
18818 ac_cpp='$CPP $CPPFLAGS'
18819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18835 ac_config_commands="$ac_config_commands libtool"
18840 # Only expand once:
18846 # Configure libltdl
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18855 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18856 if test "${libltdl_cv_shlibext+set}" = set; then :
18857 $as_echo_n "(cached) " >&6
18861 eval libltdl_cv_shlibext=$shrext_cmds
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18865 $as_echo "$libltdl_cv_shlibext" >&6; }
18866 if test -n "$libltdl_cv_shlibext"; then
18868 cat >>confdefs.h <<_ACEOF
18869 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18875 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18876 if test "${lt_cv_module_path_var+set}" = set; then :
18877 $as_echo_n "(cached) " >&6
18879 lt_cv_module_path_var="$shlibpath_var"
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18882 $as_echo "$lt_cv_module_path_var" >&6; }
18883 if test -n "$lt_cv_module_path_var"; then
18885 cat >>confdefs.h <<_ACEOF
18886 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18892 $as_echo_n "checking for the default library search path... " >&6; }
18893 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18894 $as_echo_n "(cached) " >&6
18896 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18899 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18900 if test -n "$lt_cv_sys_dlsearch_path"; then
18902 for dir in $lt_cv_sys_dlsearch_path; do
18903 if test -z "$sys_dlsearch_path"; then
18904 sys_dlsearch_path="$dir"
18906 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18910 cat >>confdefs.h <<_ACEOF
18911 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18921 ac_cpp='$CPP $CPPFLAGS'
18922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18929 $as_echo_n "checking for library containing dlopen... " >&6; }
18930 if test "${ac_cv_search_dlopen+set}" = set; then :
18931 $as_echo_n "(cached) " >&6
18933 ac_func_search_save_LIBS=$LIBS
18934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18935 /* end confdefs.h. */
18937 /* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18952 for ac_lib in '' dl; do
18953 if test -z "$ac_lib"; then
18954 ac_res="none required"
18957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18959 if ac_fn_c_try_link "$LINENO"; then :
18960 ac_cv_search_dlopen=$ac_res
18962 rm -f core conftest.err conftest.$ac_objext \
18964 if test "${ac_cv_search_dlopen+set}" = set; then :
18968 if test "${ac_cv_search_dlopen+set}" = set; then :
18971 ac_cv_search_dlopen=no
18973 rm conftest.$ac_ext
18974 LIBS=$ac_func_search_save_LIBS
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18977 $as_echo "$ac_cv_search_dlopen" >&6; }
18978 ac_res=$ac_cv_search_dlopen
18979 if test "$ac_res" != no; then :
18980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18982 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18984 if test "$ac_cv_search_dlopen" != "none required" ; then
18985 LIBADD_DLOPEN="-ldl"
18987 libltdl_cv_lib_dl_dlopen="yes"
18988 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18993 # include <dlfcn.h>
19004 if ac_fn_c_try_link "$LINENO"; then :
19006 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19008 libltdl_cv_func_dlopen="yes"
19009 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19012 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19013 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19014 $as_echo_n "(cached) " >&6
19016 ac_check_lib_save_LIBS=$LIBS
19017 LIBS="-lsvld $LIBS"
19018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h. */
19021 /* Override any GCC internal prototype to avoid an error.
19022 Use char because int might match the return type of a GCC
19023 builtin and then its argument prototype would still apply. */
19036 if ac_fn_c_try_link "$LINENO"; then :
19037 ac_cv_lib_svld_dlopen=yes
19039 ac_cv_lib_svld_dlopen=no
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 LIBS=$ac_check_lib_save_LIBS
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19046 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19047 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19049 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19051 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19052 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19056 rm -f core conftest.err conftest.$ac_objext \
19057 conftest$ac_exeext conftest.$ac_ext
19060 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19062 lt_save_LIBS="$LIBS"
19063 LIBS="$LIBS $LIBADD_DLOPEN"
19064 for ac_func in dlerror
19066 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19067 if test "x$ac_cv_func_dlerror" = x""yes; then :
19068 cat >>confdefs.h <<_ACEOF
19069 #define HAVE_DLERROR 1
19075 LIBS="$lt_save_LIBS"
19080 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19081 if test "x$ac_cv_func_shl_load" = x""yes; then :
19083 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19085 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19088 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19089 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19090 $as_echo_n "(cached) " >&6
19092 ac_check_lib_save_LIBS=$LIBS
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19097 /* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19107 return shl_load ();
19112 if ac_fn_c_try_link "$LINENO"; then :
19113 ac_cv_lib_dld_shl_load=yes
19115 ac_cv_lib_dld_shl_load=no
19117 rm -f core conftest.err conftest.$ac_objext \
19118 conftest$ac_exeext conftest.$ac_ext
19119 LIBS=$ac_check_lib_save_LIBS
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19122 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19123 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19125 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19127 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19128 LIBADD_SHL_LOAD="-ldld"
19137 # We only want this for pre-Mac OS X 10.4.
19138 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19139 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19141 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19143 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19148 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19150 cygwin* | mingw* | os2* | pw32*)
19151 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19153 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19159 cat >>confdefs.h <<_ACEOF
19160 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19163 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19168 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19169 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19170 $as_echo_n "(cached) " >&6
19172 ac_check_lib_save_LIBS=$LIBS
19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h. */
19177 /* Override any GCC internal prototype to avoid an error.
19178 Use char because int might match the return type of a GCC
19179 builtin and then its argument prototype would still apply. */
19187 return dld_link ();
19192 if ac_fn_c_try_link "$LINENO"; then :
19193 ac_cv_lib_dld_dld_link=yes
19195 ac_cv_lib_dld_dld_link=no
19197 rm -f core conftest.err conftest.$ac_objext \
19198 conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19202 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19203 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19205 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19207 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19214 if test -n "$LT_DLLOADERS"
19216 for lt_loader in $LT_DLLOADERS; do
19217 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19220 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19225 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19236 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19237 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19240 lt_cv_sys_symbol_underscore=no
19241 cat > conftest.$ac_ext <<_LT_EOF
19242 void nm_test_func(){}
19243 int main(){nm_test_func;return 0;}
19245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19246 (eval $ac_compile) 2>&5
19248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19249 test $ac_status = 0; }; then
19250 # Now try to grab the symbols.
19251 ac_nlist=conftest.nm
19252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19253 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19256 test $ac_status = 0; } && test -s "$ac_nlist"; then
19257 # See whether the symbols have a leading underscore.
19258 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19259 lt_cv_sys_symbol_underscore=yes
19261 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19264 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19268 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19271 echo "configure: failed program was:" >&5
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19278 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19279 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19282 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19283 if test x"$libltdl_cv_func_dlopen" = xyes ||
19284 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19286 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19287 if test "${libltdl_cv_need_uscore+set}" = set; then :
19288 $as_echo_n "(cached) " >&6
19290 libltdl_cv_need_uscore=unknown
19292 LIBS="$LIBS $LIBADD_DLOPEN"
19293 if test "$cross_compiling" = yes; then :
19294 libltdl_cv_need_uscore=cross
19296 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19297 lt_status=$lt_dlunknown
19298 cat > conftest.$ac_ext <<_LT_EOF
19299 #line $LINENO "configure"
19300 #include "confdefs.h"
19309 # define LT_DLGLOBAL RTLD_GLOBAL
19312 # define LT_DLGLOBAL DL_GLOBAL
19314 # define LT_DLGLOBAL 0
19318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19319 find out it does not work in some platform. */
19320 #ifndef LT_DLLAZY_OR_NOW
19322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19325 # define LT_DLLAZY_OR_NOW DL_LAZY
19328 # define LT_DLLAZY_OR_NOW RTLD_NOW
19331 # define LT_DLLAZY_OR_NOW DL_NOW
19333 # define LT_DLLAZY_OR_NOW 0
19340 /* When -fvisbility=hidden is used, assume the code has been annotated
19341 correspondingly for the symbols needed. */
19342 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19343 void fnord () __attribute__((visibility("default")));
19346 void fnord () { int i=42; }
19349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19350 int status = $lt_dlunknown;
19354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19357 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19358 else puts (dlerror ());
19360 /* dlclose (self); */
19368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19369 (eval $ac_link) 2>&5
19371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19372 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19373 (./conftest; exit; ) >&5 2>/dev/null
19375 case x$lt_status in
19376 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19377 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19378 x$lt_dlunknown|x*) ;;
19381 # compilation failed
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19391 $as_echo "$libltdl_cv_need_uscore" >&6; }
19395 if test x"$libltdl_cv_need_uscore" = xyes; then
19397 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19402 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19403 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19404 $as_echo_n "(cached) " >&6
19406 # PORTME does your system automatically load deplibs for dlopen?
19407 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19408 # For now, we just catch OSes we know something about -- in the
19409 # future, we'll try test this programmatically.
19410 lt_cv_sys_dlopen_deplibs=unknown
19412 aix3*|aix4.1.*|aix4.2.*)
19413 # Unknown whether this is true for these versions of AIX, but
19414 # we want this `case' here to explicitly catch those versions.
19415 lt_cv_sys_dlopen_deplibs=unknown
19418 lt_cv_sys_dlopen_deplibs=yes
19423 lt_cv_sys_dlopen_deplibs=no
19428 # Assuming the user has installed a libdl from somewhere, this is true
19429 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19430 lt_cv_sys_dlopen_deplibs=yes
19432 freebsd* | dragonfly*)
19433 lt_cv_sys_dlopen_deplibs=yes
19435 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
19436 # GNU and its variants, using gnu ld.so (Glibc)
19437 lt_cv_sys_dlopen_deplibs=yes
19440 lt_cv_sys_dlopen_deplibs=yes
19443 lt_cv_sys_dlopen_deplibs=yes
19445 irix[12345]*|irix6.[01]*)
19446 # Catch all versions of IRIX before 6.2, and indicate that we don't
19447 # know how it worked for any of those versions.
19448 lt_cv_sys_dlopen_deplibs=unknown
19451 # The case above catches anything before 6.2, and it's known that
19452 # at 6.2 and later dlopen does load deplibs.
19453 lt_cv_sys_dlopen_deplibs=yes
19456 lt_cv_sys_dlopen_deplibs=yes
19459 lt_cv_sys_dlopen_deplibs=yes
19462 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19463 # it did *not* use an RPATH in a shared library to find objects the
19464 # library depends on, so we explicitly say `no'.
19465 lt_cv_sys_dlopen_deplibs=no
19467 osf5.0|osf5.0a|osf5.1)
19468 # dlopen *does* load deplibs and with the right loader patch applied
19469 # it even uses RPATH in a shared library to search for shared objects
19470 # that the library depends on, but there's no easy way to know if that
19471 # patch is installed. Since this is the case, all we can really
19472 # say is unknown -- it depends on the patch being installed. If
19473 # it is, this changes to `yes'. Without it, it would be `no'.
19474 lt_cv_sys_dlopen_deplibs=unknown
19477 # the two cases above should catch all versions of osf <= 5.1. Read
19478 # the comments above for what we know about them.
19479 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19480 # is used to find them so we can finally say `yes'.
19481 lt_cv_sys_dlopen_deplibs=yes
19484 lt_cv_sys_dlopen_deplibs=yes
19487 lt_cv_sys_dlopen_deplibs=yes
19489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19490 libltdl_cv_sys_dlopen_deplibs=yes
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19496 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19497 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19499 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19505 for ac_header in argz.h
19507 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19509 if test "x$ac_cv_header_argz_h" = x""yes; then :
19510 cat >>confdefs.h <<_ACEOF
19511 #define HAVE_ARGZ_H 1
19519 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19523 if test "x$ac_cv_type_error_t" = x""yes; then :
19525 cat >>confdefs.h <<_ACEOF
19526 #define HAVE_ERROR_T 1
19532 $as_echo "#define error_t int" >>confdefs.h
19535 $as_echo "#define __error_t_defined 1" >>confdefs.h
19541 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19542 argz_next argz_stringify
19544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19547 cat >>confdefs.h <<_ACEOF
19548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19554 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19560 if test -z "$ARGZ_H"; then :
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19562 $as_echo_n "checking if argz actually works... " >&6; }
19563 if test "${lt_cv_sys_argz_works+set}" = set; then :
19564 $as_echo_n "(cached) " >&6
19566 case $host_os in #(
19568 lt_cv_sys_argz_works=no
19569 if test "$cross_compiling" != no; then
19570 lt_cv_sys_argz_works="guessing no"
19572 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19575 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19580 if test "$lt_os_major" -gt 1 \
19581 || { test "$lt_os_major" -eq 1 \
19582 && { test "$lt_os_minor" -gt 5 \
19583 || { test "$lt_os_minor" -eq 5 \
19584 && test "$lt_os_micro" -gt 24; }; }; }; then
19585 lt_cv_sys_argz_works=yes
19589 *) lt_cv_sys_argz_works=yes ;;
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19593 $as_echo "$lt_cv_sys_argz_works" >&6; }
19594 if test $lt_cv_sys_argz_works = yes; then :
19596 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19602 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19610 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19611 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19612 $as_echo_n "(cached) " >&6
19614 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19615 libltdl_cv_preloaded_symbols=yes
19617 libltdl_cv_preloaded_symbols=no
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19622 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19623 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19625 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19641 # Check whether --with-included_ltdl was given.
19642 if test "${with_included_ltdl+set}" = set; then :
19643 withval=$with_included_ltdl;
19647 if test "x$with_included_ltdl" != xyes; then
19648 # We are not being forced to use the included libltdl sources, so
19649 # decide whether there is a useful installed version we can use.
19650 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19653 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19654 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19657 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19659 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19660 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19661 $as_echo_n "(cached) " >&6
19663 ac_check_lib_save_LIBS=$LIBS
19664 LIBS="-lltdl $LIBS"
19665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19668 /* Override any GCC internal prototype to avoid an error.
19669 Use char because int might match the return type of a GCC
19670 builtin and then its argument prototype would still apply. */
19674 char lt_dladvise_preload ();
19678 return lt_dladvise_preload ();
19683 if ac_fn_c_try_link "$LINENO"; then :
19684 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19686 ac_cv_lib_ltdl_lt_dladvise_preload=no
19688 rm -f core conftest.err conftest.$ac_objext \
19689 conftest$ac_exeext conftest.$ac_ext
19690 LIBS=$ac_check_lib_save_LIBS
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19693 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19694 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19695 with_included_ltdl=no
19697 with_included_ltdl=yes
19701 with_included_ltdl=yes
19705 with_included_ltdl=yes
19714 # Check whether --with-ltdl_include was given.
19715 if test "${with_ltdl_include+set}" = set; then :
19716 withval=$with_ltdl_include;
19720 if test -n "$with_ltdl_include"; then
19721 if test -f "$with_ltdl_include/ltdl.h"; then :
19723 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19726 with_ltdl_include=no
19730 # Check whether --with-ltdl_lib was given.
19731 if test "${with_ltdl_lib+set}" = set; then :
19732 withval=$with_ltdl_lib;
19736 if test -n "$with_ltdl_lib"; then
19737 if test -f "$with_ltdl_lib/libltdl.la"; then :
19739 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19745 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19747 case $enable_ltdl_convenience in
19748 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
19749 "") enable_ltdl_convenience=yes
19750 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19752 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19754 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19760 # For backwards non-gettext consistent compatibility...
19761 INCLTDL="$LTDLINCL"
19766 # If the included ltdl is not to be used, then use the
19767 # preinstalled libltdl we found.
19769 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19776 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19778 *) with_included_ltdl=no
19779 LIBLTDL="-L$with_ltdl_lib -lltdl"
19781 LTDLINCL="-I$with_ltdl_include"
19784 INCLTDL="$LTDLINCL"
19786 # Report our decision...
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19788 $as_echo_n "checking where to find libltdl headers... " >&6; }
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19790 $as_echo "$LTDLINCL" >&6; }
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19792 $as_echo_n "checking where to find libltdl library... " >&6; }
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19794 $as_echo "$LIBLTDL" >&6; }
19798 # Check whether --enable-ltdl-install was given.
19799 if test "${enable_ltdl_install+set}" = set; then :
19800 enableval=$enable_ltdl_install;
19804 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19806 *) enable_ltdl_convenience=yes ;;
19809 if test x"${enable_ltdl_install-no}" != xno; then
19811 INSTALL_LTDL_FALSE='#'
19813 INSTALL_LTDL_TRUE='#'
19814 INSTALL_LTDL_FALSE=
19817 if test x"${enable_ltdl_convenience-no}" != xno; then
19818 CONVENIENCE_LTDL_TRUE=
19819 CONVENIENCE_LTDL_FALSE='#'
19821 CONVENIENCE_LTDL_TRUE='#'
19822 CONVENIENCE_LTDL_FALSE=
19830 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19831 # the user used. This is so that ltdl.h can pick up the parent projects
19832 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19833 # definitions required by ltdl.c.
19834 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19838 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19843 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19844 cat >>confdefs.h <<_ACEOF
19845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19853 for ac_func in closedir opendir readdir
19855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19857 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19858 cat >>confdefs.h <<_ACEOF
19859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19865 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19870 for ac_func in strlcat strlcpy
19872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19873 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19874 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19875 cat >>confdefs.h <<_ACEOF
19876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19882 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19889 cat >>confdefs.h <<_ACEOF
19890 #define LT_LIBEXT "$libext"
19895 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19904 # Only expand once:
19908 # Check to see if building shared libraries
19909 libtool_build_shared_libs='no'
19910 if test "$enable_shared" = 'yes'; then
19911 libtool_build_shared_libs='yes'
19914 # Check to see if building static libraries
19915 libtool_build_static_libs='no'
19916 if test "$enable_static" = 'yes'; then
19917 libtool_build_static_libs='yes'
19920 if test "${libtool_build_shared_libs}" = 'yes'; then
19921 WITH_SHARED_LIBS_TRUE=
19922 WITH_SHARED_LIBS_FALSE='#'
19924 WITH_SHARED_LIBS_TRUE='#'
19925 WITH_SHARED_LIBS_FALSE=
19929 # Enable support for building loadable modules
19932 # Check whether --with-modules was given.
19933 if test "${with_modules+set}" = set; then :
19934 withval=$with_modules; with_modules=$withval
19940 # Only allow building loadable modules if we are building shared libraries
19941 if test "$with_modules" != 'no' ; then
19942 if test "$libtool_build_shared_libs" = 'no'; then
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19944 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19948 if test "$with_modules" != 'no'; then
19950 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19953 if test "$with_modules" != 'no'; then
19955 WITH_MODULES_FALSE='#'
19957 WITH_MODULES_TRUE='#'
19958 WITH_MODULES_FALSE=
19962 # Enable building/use of libltdl if we are building shared libraries regardless
19963 # of whether modules are built or not.
19965 if test "$libtool_build_shared_libs" != 'no'; then
19969 if test "$with_ltdl" != 'no'; then
19971 WITH_LTDL_FALSE='#'
19977 if test "$with_ltdl" != 'no'; then
19979 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19983 if test X"$enable_shared" = Xyes; then
19984 DLLDFLAGS=-export-dynamic
19989 # Enable build using delegate libraries built in subdirectories rather than installed
19990 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
19991 # Check whether --enable-delegate-build was given.
19992 if test "${enable_delegate_build+set}" = set; then :
19993 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19995 enable_delegate_build='no'
19999 # Check whether --enable-deprecated was given.
20000 if test "${enable_deprecated+set}" = set; then :
20001 enableval=$enable_deprecated; enable_deprecated=$enableval
20003 enable_deprecated='no'
20007 if test "$enable_deprecated" = 'yes'; then
20009 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20015 # Build a version of ImageMagick which operates uninstalled.
20016 # Used to build distributions located via MAGICK_HOME / executable path
20017 # Check whether --enable-installed was given.
20018 if test "${enable_installed+set}" = set; then :
20019 enableval=$enable_installed; enable_installed=$enableval
20021 enable_installed='yes'
20025 if test "$enable_installed" = 'yes'; then
20027 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20033 # Permit enciphering and deciphering image pixels.
20034 # Check whether --enable-cipher was given.
20035 if test "${enable_cipher+set}" = set; then :
20036 enableval=$enable_cipher; enable_cipher=$enableval
20038 enable_cipher='yes'
20042 if test "$enable_cipher" = 'yes'; then
20044 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20048 # Build an embeddable version of ImageMagick.
20049 # Check whether --enable-embeddable was given.
20050 if test "${enable_embeddable+set}" = set; then :
20051 enableval=$enable_embeddable; enable_embeddable=$enableval
20053 enable_embeddable='no'
20057 if test "$enable_embeddable" = 'yes'; then
20059 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20063 # Build a high dynamic range version of ImageMagick.
20064 # Check whether --enable-hdri was given.
20065 if test "${enable_hdri+set}" = set; then :
20066 enableval=$enable_hdri; enable_hdri=$enableval
20073 if test "$enable_hdri" = 'yes'; then
20076 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20078 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20081 # Build a version of ImageMagick with assert statements.
20082 # Check whether --enable-assert was given.
20083 if test "${enable_assert+set}" = set; then :
20084 enableval=$enable_assert; enable_assert=$enableval
20086 enable_assert='yes'
20090 if test "$enable_assert" = 'no'; then
20092 $as_echo "#define NDEBUG 1" >>confdefs.h
20096 # Add configure option --enable-maintainer-mode which enables dependency
20097 # checking and generation useful to package maintainers. This is made an
20098 # option to avoid confusing end users.
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20101 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20102 # Check whether --enable-maintainer-mode was given.
20103 if test "${enable_maintainer_mode+set}" = set; then :
20104 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20106 USE_MAINTAINER_MODE=no
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20110 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20111 if test $USE_MAINTAINER_MODE = yes; then
20112 MAINTAINER_MODE_TRUE=
20113 MAINTAINER_MODE_FALSE='#'
20115 MAINTAINER_MODE_TRUE='#'
20116 MAINTAINER_MODE_FALSE=
20119 MAINT=$MAINTAINER_MODE_TRUE
20124 # Enable ccmalloc memory debugging support
20125 # Check whether --enable-ccmalloc was given.
20126 if test "${enable_ccmalloc+set}" = set; then :
20127 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20129 enable_ccmalloc='no'
20133 # Enable Electric Fence memory debugging support
20134 # Check whether --enable-efence was given.
20135 if test "${enable_efence+set}" = set; then :
20136 enableval=$enable_efence; enable_efence=$enableval
20142 # Enable prof-based profiling support
20143 # Check whether --enable-prof was given.
20144 if test "${enable_prof+set}" = set; then :
20145 enableval=$enable_prof; enable_prof=$enableval
20151 # Enable gprof-based profiling support
20152 # Check whether --enable-gprof was given.
20153 if test "${enable_gprof+set}" = set; then :
20154 enableval=$enable_gprof; enable_gprof=$enableval
20160 # Enable gcov-based profiling support
20161 # Check whether --enable-gcov was given.
20162 if test "${enable_gcov+set}" = set; then :
20163 enableval=$enable_gcov; enable_gcov=$enableval
20169 enable_profiling='no'
20170 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20171 enable_profiling='yes'
20172 if test "$libtool_build_shared_libs" = 'yes'; then
20173 echo "Warning: Can not profile code using shared libraries"
20177 # Magick API method prefix
20179 # Check whether --with-method-prefix was given.
20180 if test "${with_method_prefix+set}" = set; then :
20181 withval=$with_method_prefix; with_method_prefix=$enableval
20183 with_method_prefix=''
20187 if test "$with_method_prefix" != ''; then
20189 cat >>confdefs.h <<_ACEOF
20190 #define NAMESPACE_PREFIX $with_method_prefix
20195 # Number of bits in a Quantum
20197 # Check whether --with-quantum-depth was given.
20198 if test "${with_quantum_depth+set}" = set; then :
20199 withval=$with_quantum_depth; with_quantum_depth=$withval
20201 with_quantum_depth=16
20205 if test "$with_quantum_depth" != '8'; then
20206 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20209 case "${with_quantum_depth}" in
20214 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
20216 if test "$enable_hdri" = 'yes'; then
20217 with_quantum_depth=16
20219 QUANTUM_DEPTH="$with_quantum_depth"
20221 cat >>confdefs.h <<_ACEOF
20222 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20226 # Set pixel cache threshold
20228 # Check whether --with-cache was given.
20229 if test "${with_cache+set}" = set; then :
20230 withval=$with_cache; with_cache=$withval
20236 if test "$with_cache" != ''; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define PixelCacheThreshold $with_cache
20242 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20245 # Disable/Enable support for full delegate paths
20247 # Check whether --with-frozenpaths was given.
20248 if test "${with_frozenpaths+set}" = set; then :
20249 withval=$with_frozenpaths; with_frozenpaths=$withval
20251 with_frozenpaths='no'
20255 # Enable build/install of Magick++
20257 # Check whether --with-magick-plus-plus was given.
20258 if test "${with_magick_plus_plus+set}" = set; then :
20259 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20261 with_magick_plus_plus='yes'
20265 # Disable build/install of PerlMagick.
20267 # Check whether --with-perl was given.
20268 if test "${with_perl+set}" = set; then :
20269 withval=$with_perl; with_perl=$withval
20275 # Options to pass when configuring PerlMagick
20277 # Check whether --with-perl-options was given.
20278 if test "${with_perl_options+set}" = set; then :
20279 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20284 # Enable umem, object-caching memory allocation library.
20286 # Check whether --with-umem was given.
20287 if test "${with_umem+set}" = set; then :
20288 withval=$with_umem; with_umem=$withval
20293 if test "$with_umem" != 'yes' ; then
20294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20298 # Specify path to shared libstdc++ if not in normal location
20301 # Check whether --with-libstdc was given.
20302 if test "${with_libstdc+set}" = set; then :
20303 withval=$with_libstdc; with_libstdc=$withval
20309 if test "$with_libstdc" != ''; then
20310 if test -d "$with_libstdc"; then
20311 LIBSTDCLDFLAGS="-L$with_libstdc"
20316 # Does gcc required -traditional?
20317 if test $ac_cv_c_compiler_gnu = yes; then
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20319 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20320 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20321 $as_echo_n "(cached) " >&6
20323 ac_pattern="Autoconf.*'x'"
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20330 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20331 ac_cv_prog_gcc_traditional=yes
20333 ac_cv_prog_gcc_traditional=no
20338 if test $ac_cv_prog_gcc_traditional = no; then
20339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20340 /* end confdefs.h. */
20341 #include <termio.h>
20344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20345 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20346 ac_cv_prog_gcc_traditional=yes
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20353 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20354 if test $ac_cv_prog_gcc_traditional = yes; then
20355 CC="$CC -traditional"
20362 # Set defines required to build DLLs and modules using MinGW
20365 # These options are set for multi-thread DLL module build
20366 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20368 # executable/Magick++: _DLL _MAGICKMOD_
20369 MODULE_EXTRA_CPPFLAGS=''
20370 LIBRARY_EXTRA_CPPFLAGS=''
20371 if test "${native_win32_build}" = 'yes'; then
20372 if test "${libtool_build_shared_libs}" = 'yes'; then
20373 CPPFLAGS="$CPPFLAGS -D_DLL"
20374 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20375 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20376 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20377 if test "$with_modules" = 'yes'; then
20378 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20380 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20383 CPPFLAGS="$CPPFLAGS -D_LIB"
20384 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20385 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20387 if test "$with_threads" = 'yes'; then
20388 CPPFLAGS="$CPPFLAGS -D_MT"
20389 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20390 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20396 # Check standard headers
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20398 $as_echo_n "checking for ANSI C header files... " >&6; }
20399 if test "${ac_cv_header_stdc+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h. */
20404 #include <stdlib.h>
20405 #include <stdarg.h>
20406 #include <string.h>
20417 if ac_fn_c_try_compile "$LINENO"; then :
20418 ac_cv_header_stdc=yes
20420 ac_cv_header_stdc=no
20422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 if test $ac_cv_header_stdc = yes; then
20425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20427 /* end confdefs.h. */
20428 #include <string.h>
20431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20432 $EGREP "memchr" >/dev/null 2>&1; then :
20435 ac_cv_header_stdc=no
20441 if test $ac_cv_header_stdc = yes; then
20442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20444 /* end confdefs.h. */
20445 #include <stdlib.h>
20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20449 $EGREP "free" >/dev/null 2>&1; then :
20452 ac_cv_header_stdc=no
20458 if test $ac_cv_header_stdc = yes; then
20459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20460 if test "$cross_compiling" = yes; then :
20463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20464 /* end confdefs.h. */
20466 #include <stdlib.h>
20467 #if ((' ' & 0x0FF) == 0x020)
20468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20471 # define ISLOWER(c) \
20472 (('a' <= (c) && (c) <= 'i') \
20473 || ('j' <= (c) && (c) <= 'r') \
20474 || ('s' <= (c) && (c) <= 'z'))
20475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20483 for (i = 0; i < 256; i++)
20484 if (XOR (islower (i), ISLOWER (i))
20485 || toupper (i) != TOUPPER (i))
20490 if ac_fn_c_try_run "$LINENO"; then :
20493 ac_cv_header_stdc=no
20495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20496 conftest.$ac_objext conftest.beam conftest.$ac_ext
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20502 $as_echo "$ac_cv_header_stdc" >&6; }
20503 if test $ac_cv_header_stdc = yes; then
20505 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20509 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20511 header files. Compilation cannot proceed. Please install the ANSI C
20512 headers and rerun this script." >&5
20513 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20514 header files. Compilation cannot proceed. Please install the ANSI C
20515 headers and rerun this script." >&2;};
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20519 $as_echo_n "checking whether to enable assertions... " >&6; }
20520 # Check whether --enable-assert was given.
20521 if test "${enable_assert+set}" = set; then :
20522 enableval=$enable_assert; ac_enable_assert=$enableval
20523 if test "x$enableval" = xno; then :
20525 $as_echo "#define NDEBUG 1" >>confdefs.h
20527 elif test "x$enableval" != xyes; then :
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20529 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20530 ac_enable_assert=yes
20533 ac_enable_assert=yes
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20537 $as_echo "$ac_enable_assert" >&6; }
20539 ac_header_dirent=no
20540 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20541 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20543 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20544 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
20545 $as_echo_n "(cached) " >&6
20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548 /* end confdefs.h. */
20549 #include <sys/types.h>
20561 if ac_fn_c_try_compile "$LINENO"; then :
20562 eval "$as_ac_Header=yes"
20564 eval "$as_ac_Header=no"
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568 eval ac_res=\$$as_ac_Header
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20570 $as_echo "$ac_res" >&6; }
20571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20572 cat >>confdefs.h <<_ACEOF
20573 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20576 ac_header_dirent=$ac_hdr; break
20580 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20581 if test $ac_header_dirent = dirent.h; then
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20583 $as_echo_n "checking for library containing opendir... " >&6; }
20584 if test "${ac_cv_search_opendir+set}" = set; then :
20585 $as_echo_n "(cached) " >&6
20587 ac_func_search_save_LIBS=$LIBS
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h. */
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20606 for ac_lib in '' dir; do
20607 if test -z "$ac_lib"; then
20608 ac_res="none required"
20611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20613 if ac_fn_c_try_link "$LINENO"; then :
20614 ac_cv_search_opendir=$ac_res
20616 rm -f core conftest.err conftest.$ac_objext \
20618 if test "${ac_cv_search_opendir+set}" = set; then :
20622 if test "${ac_cv_search_opendir+set}" = set; then :
20625 ac_cv_search_opendir=no
20627 rm conftest.$ac_ext
20628 LIBS=$ac_func_search_save_LIBS
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20631 $as_echo "$ac_cv_search_opendir" >&6; }
20632 ac_res=$ac_cv_search_opendir
20633 if test "$ac_res" != no; then :
20634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20640 $as_echo_n "checking for library containing opendir... " >&6; }
20641 if test "${ac_cv_search_opendir+set}" = set; then :
20642 $as_echo_n "(cached) " >&6
20644 ac_func_search_save_LIBS=$LIBS
20645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20646 /* end confdefs.h. */
20648 /* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20663 for ac_lib in '' x; do
20664 if test -z "$ac_lib"; then
20665 ac_res="none required"
20668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20670 if ac_fn_c_try_link "$LINENO"; then :
20671 ac_cv_search_opendir=$ac_res
20673 rm -f core conftest.err conftest.$ac_objext \
20675 if test "${ac_cv_search_opendir+set}" = set; then :
20679 if test "${ac_cv_search_opendir+set}" = set; then :
20682 ac_cv_search_opendir=no
20684 rm conftest.$ac_ext
20685 LIBS=$ac_func_search_save_LIBS
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20688 $as_echo "$ac_cv_search_opendir" >&6; }
20689 ac_res=$ac_cv_search_opendir
20690 if test "$ac_res" != no; then :
20691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20698 # Check additional headers
20699 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
20701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20702 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20703 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20704 cat >>confdefs.h <<_ACEOF
20705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20715 # Checks for typedefs, structures, and compiler characteristics.
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20720 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20721 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20722 $as_echo_n "(cached) " >&6
20724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h. */
20727 #include <stdbool.h>
20729 "error: bool is not defined"
20732 "error: false is not defined"
20735 "error: false is not 0"
20738 "error: true is not defined"
20741 "error: true is not 1"
20743 #ifndef __bool_true_false_are_defined
20744 "error: __bool_true_false_are_defined is not defined"
20747 struct s { _Bool s: 1; _Bool t; } s;
20749 char a[true == 1 ? 1 : -1];
20750 char b[false == 0 ? 1 : -1];
20751 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20752 char d[(bool) 0.5 == true ? 1 : -1];
20754 char f[(_Bool) 0.0 == false ? 1 : -1];
20756 char h[sizeof (_Bool)];
20757 char i[sizeof s.t];
20758 enum { j = false, k = true, l = false * true, m = true * 256 };
20759 /* The following fails for
20760 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20762 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20763 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20764 # if defined __xlc__ || defined __GNUC__
20765 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20766 reported by James Lemley on 2005-10-05; see
20767 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20768 This test is not quite right, since xlc is allowed to
20769 reject this program, as the initializer for xlcbug is
20770 not one of the forms that C requires support for.
20771 However, doing the test right would require a runtime
20772 test, and that would make cross-compilation harder.
20773 Let us hope that IBM fixes the xlc bug, and also adds
20774 support for this kind of constant expression. In the
20775 meantime, this test will reject xlc, which is OK, since
20776 our stdbool.h substitute should suffice. We also test
20777 this with GCC, where it should work, to detect more
20778 quickly whether someone messes up the test in the
20780 char digs[] = "0123456789";
20781 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20783 /* Catch a bug in an HP-UX C compiler. See
20784 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20785 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20796 /* Refer to every declared value, to avoid compiler optimizations. */
20797 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20798 + !m + !n + !o + !p + !q + !pq);
20804 if ac_fn_c_try_compile "$LINENO"; then :
20805 ac_cv_header_stdbool_h=yes
20807 ac_cv_header_stdbool_h=no
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20812 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20813 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20814 if test "x$ac_cv_type__Bool" = x""yes; then :
20816 cat >>confdefs.h <<_ACEOF
20817 #define HAVE__BOOL 1
20823 if test $ac_cv_header_stdbool_h = yes; then
20825 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20830 $as_echo_n "checking for working volatile... " >&6; }
20831 if test "${ac_cv_c_volatile+set}" = set; then :
20832 $as_echo_n "(cached) " >&6
20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h. */
20842 int * volatile y = (int *) 0;
20848 if ac_fn_c_try_compile "$LINENO"; then :
20849 ac_cv_c_volatile=yes
20851 ac_cv_c_volatile=no
20853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20856 $as_echo "$ac_cv_c_volatile" >&6; }
20857 if test $ac_cv_c_volatile = no; then
20859 $as_echo "#define volatile /**/" >>confdefs.h
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20864 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20865 if test "${ac_cv_c_stringize+set}" = set; then :
20866 $as_echo_n "(cached) " >&6
20868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20869 /* end confdefs.h. */
20872 char *s = x(teststring);
20874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20875 $EGREP "#teststring" >/dev/null 2>&1; then :
20876 ac_cv_c_stringize=no
20878 ac_cv_c_stringize=yes
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20884 $as_echo "$ac_cv_c_stringize" >&6; }
20885 if test $ac_cv_c_stringize = yes; then
20887 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20892 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20893 if test "${ac_cv_header_stat_broken+set}" = set; then :
20894 $as_echo_n "(cached) " >&6
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898 #include <sys/types.h>
20899 #include <sys/stat.h>
20901 #if defined S_ISBLK && defined S_IFDIR
20902 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20905 #if defined S_ISBLK && defined S_IFCHR
20906 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20909 #if defined S_ISLNK && defined S_IFREG
20910 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20913 #if defined S_ISSOCK && defined S_IFREG
20914 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20918 if ac_fn_c_try_compile "$LINENO"; then :
20919 ac_cv_header_stat_broken=no
20921 ac_cv_header_stat_broken=yes
20923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20926 $as_echo "$ac_cv_header_stat_broken" >&6; }
20927 if test $ac_cv_header_stat_broken = yes; then
20929 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20934 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20935 if test "${ac_cv_header_time+set}" = set; then :
20936 $as_echo_n "(cached) " >&6
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20940 #include <sys/types.h>
20941 #include <sys/time.h>
20947 if ((struct tm *) 0)
20953 if ac_fn_c_try_compile "$LINENO"; then :
20954 ac_cv_header_time=yes
20956 ac_cv_header_time=no
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20961 $as_echo "$ac_cv_header_time" >&6; }
20962 if test $ac_cv_header_time = yes; then
20964 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20969 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20970 if test "${ac_cv_struct_tm+set}" = set; then :
20971 $as_echo_n "(cached) " >&6
20973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20974 /* end confdefs.h. */
20975 #include <sys/types.h>
20982 int *p = &tm.tm_sec;
20988 if ac_fn_c_try_compile "$LINENO"; then :
20989 ac_cv_struct_tm=time.h
20991 ac_cv_struct_tm=sys/time.h
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20996 $as_echo "$ac_cv_struct_tm" >&6; }
20997 if test $ac_cv_struct_tm = sys/time.h; then
20999 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21003 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21004 #include <$ac_cv_struct_tm>
21007 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_STRUCT_TM_TM_ZONE 1
21016 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21018 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21021 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21023 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21029 cat >>confdefs.h <<_ACEOF
21030 #define HAVE_DECL_TZNAME $ac_have_decl
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21034 $as_echo_n "checking for tzname... " >&6; }
21035 if test "${ac_cv_var_tzname+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21041 #if !HAVE_DECL_TZNAME
21042 extern char *tzname[];
21048 return tzname[0][0];
21053 if ac_fn_c_try_link "$LINENO"; then :
21054 ac_cv_var_tzname=yes
21056 ac_cv_var_tzname=no
21058 rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21062 $as_echo "$ac_cv_var_tzname" >&6; }
21063 if test $ac_cv_var_tzname = yes; then
21065 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21071 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21072 if test "${ac_cv_sys_interpreter+set}" = set; then :
21073 $as_echo_n "(cached) " >&6
21079 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21080 if test $? -ne 69; then
21081 ac_cv_sys_interpreter=yes
21083 ac_cv_sys_interpreter=no
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21088 $as_echo "$ac_cv_sys_interpreter" >&6; }
21089 interpval=$ac_cv_sys_interpreter
21092 # If the C compiler supports the keyword inline, do nothing. Otherwise
21093 # define inline to __inline__ or __inline if it accepts one of those,
21094 # otherwise define inline to be empty.
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21096 $as_echo_n "checking for inline... " >&6; }
21097 if test "${ac_cv_c_inline+set}" = set; then :
21098 $as_echo_n "(cached) " >&6
21101 for ac_kw in inline __inline__ __inline; do
21102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h. */
21104 #ifndef __cplusplus
21106 static $ac_kw foo_t static_foo () {return 0; }
21107 $ac_kw foo_t foo () {return 0; }
21111 if ac_fn_c_try_compile "$LINENO"; then :
21112 ac_cv_c_inline=$ac_kw
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115 test "$ac_cv_c_inline" != no && break
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21120 $as_echo "$ac_cv_c_inline" >&6; }
21122 case $ac_cv_c_inline in
21125 case $ac_cv_c_inline in
21127 *) ac_val=$ac_cv_c_inline;;
21129 cat >>confdefs.h <<_ACEOF
21130 #ifndef __cplusplus
21131 #define inline $ac_val
21138 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21139 # define restrict to __restrict__ or __restrict if it accepts one of those,
21140 # otherwise define restrict to be empty.
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21142 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21143 if test "${ac_cv_c_restrict+set}" = set; then :
21144 $as_echo_n "(cached) " >&6
21146 ac_cv_c_restrict=no
21147 # The order here caters to the fact that C++ does not require restrict.
21148 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21150 /* end confdefs.h. */
21151 typedef int * int_ptr;
21152 int foo (int_ptr $ac_kw ip) {
21159 int * $ac_kw t = s;
21166 if ac_fn_c_try_compile "$LINENO"; then :
21167 ac_cv_c_restrict=$ac_kw
21169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170 test "$ac_cv_c_restrict" != no && break
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21175 $as_echo "$ac_cv_c_restrict" >&6; }
21177 case $ac_cv_c_restrict in
21179 no) $as_echo "#define restrict /**/" >>confdefs.h
21181 *) cat >>confdefs.h <<_ACEOF
21182 #define restrict $ac_cv_c_restrict
21188 # If words are stored with the most significant byte first (like
21189 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21191 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21192 if test "${ac_cv_c_bigendian+set}" = set; then :
21193 $as_echo_n "(cached) " >&6
21195 ac_cv_c_bigendian=unknown
21196 # See if we're dealing with a universal compiler.
21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h. */
21199 #ifndef __APPLE_CC__
21200 not a universal capable compiler
21205 if ac_fn_c_try_compile "$LINENO"; then :
21207 # Check for potential -arch flags. It is not universal unless
21208 # there are at least two -arch flags with different values.
21211 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21212 if test -n "$ac_prev"; then
21214 i?86 | x86_64 | ppc | ppc64)
21215 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21218 ac_cv_c_bigendian=universal
21224 elif test "x$ac_word" = "x-arch"; then
21229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 if test $ac_cv_c_bigendian = unknown; then
21231 # See if sys/param.h defines the BYTE_ORDER macro.
21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21233 /* end confdefs.h. */
21234 #include <sys/types.h>
21235 #include <sys/param.h>
21240 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21241 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21243 bogus endian macros
21250 if ac_fn_c_try_compile "$LINENO"; then :
21251 # It does; now see whether it defined to BIG_ENDIAN or not.
21252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21253 /* end confdefs.h. */
21254 #include <sys/types.h>
21255 #include <sys/param.h>
21260 #if BYTE_ORDER != BIG_ENDIAN
21268 if ac_fn_c_try_compile "$LINENO"; then :
21269 ac_cv_c_bigendian=yes
21271 ac_cv_c_bigendian=no
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 if test $ac_cv_c_bigendian = unknown; then
21278 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21280 /* end confdefs.h. */
21281 #include <limits.h>
21286 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21287 bogus endian macros
21294 if ac_fn_c_try_compile "$LINENO"; then :
21295 # It does; now see whether it defined to _BIG_ENDIAN or not.
21296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21297 /* end confdefs.h. */
21298 #include <limits.h>
21303 #ifndef _BIG_ENDIAN
21311 if ac_fn_c_try_compile "$LINENO"; then :
21312 ac_cv_c_bigendian=yes
21314 ac_cv_c_bigendian=no
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 if test $ac_cv_c_bigendian = unknown; then
21321 # Compile a test program.
21322 if test "$cross_compiling" = yes; then :
21323 # Try to guess by grepping values from an object file.
21324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21325 /* end confdefs.h. */
21326 short int ascii_mm[] =
21327 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21328 short int ascii_ii[] =
21329 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21330 int use_ascii (int i) {
21331 return ascii_mm[i] + ascii_ii[i];
21333 short int ebcdic_ii[] =
21334 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21335 short int ebcdic_mm[] =
21336 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21337 int use_ebcdic (int i) {
21338 return ebcdic_mm[i] + ebcdic_ii[i];
21345 return use_ascii (foo) == use_ebcdic (foo);
21350 if ac_fn_c_try_compile "$LINENO"; then :
21351 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21352 ac_cv_c_bigendian=yes
21354 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21355 if test "$ac_cv_c_bigendian" = unknown; then
21356 ac_cv_c_bigendian=no
21358 # finding both strings is unlikely to happen, but who knows?
21359 ac_cv_c_bigendian=unknown
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366 /* end confdefs.h. */
21367 $ac_includes_default
21372 /* Are we little or big endian? From Harbison&Steele. */
21376 char c[sizeof (long int)];
21379 return u.c[sizeof (long int) - 1] == 1;
21385 if ac_fn_c_try_run "$LINENO"; then :
21386 ac_cv_c_bigendian=no
21388 ac_cv_c_bigendian=yes
21390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21391 conftest.$ac_objext conftest.beam conftest.$ac_ext
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21397 $as_echo "$ac_cv_c_bigendian" >&6; }
21398 case $ac_cv_c_bigendian in #(
21400 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21406 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21410 as_fn_error $? "unknown endianness
21411 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21415 # Define mode_t to a suitable type, if standard headers do not define it.
21416 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21417 if test "x$ac_cv_type_mode_t" = x""yes; then :
21421 cat >>confdefs.h <<_ACEOF
21428 # Define off_t to a suitable type, if standard headers do not define it.
21429 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21430 if test "x$ac_cv_type_off_t" = x""yes; then :
21434 cat >>confdefs.h <<_ACEOF
21435 #define off_t long int
21441 # Define pid_t to a suitable type, if standard headers do not define it.
21442 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21443 if test "x$ac_cv_type_pid_t" = x""yes; then :
21447 cat >>confdefs.h <<_ACEOF
21454 # Define size_t to a suitable type, if standard headers do not define it.
21455 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21456 if test "x$ac_cv_type_size_t" = x""yes; then :
21460 cat >>confdefs.h <<_ACEOF
21461 #define size_t unsigned int
21467 # Define ssize_t to a suitable type, if standard headers do not define it.
21468 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21469 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21473 cat >>confdefs.h <<_ACEOF
21474 #define ssize_t int
21480 # If the C compiler supports a working long double type with more range
21481 # or precision than the double type, define HAVE_LONG_DOUBLE.
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21484 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21485 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21486 $as_echo_n "(cached) " >&6
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21491 long double const a[] =
21493 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21494 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21499 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21500 + (x ? f (x) : 'c'));
21506 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21507 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21508 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21509 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21510 && (int) LDBL_EPSILON == 0
21518 if ac_fn_c_try_compile "$LINENO"; then :
21519 ac_cv_type_long_double_wider=yes
21521 ac_cv_type_long_double_wider=no
21523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21526 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21527 if test $ac_cv_type_long_double_wider = yes; then
21529 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21534 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21535 # C compiler predefines it.
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21537 $as_echo_n "checking whether char is unsigned... " >&6; }
21538 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21539 $as_echo_n "(cached) " >&6
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h. */
21543 $ac_includes_default
21547 static int test_array [1 - 2 * !(((char) -1) < 0)];
21554 if ac_fn_c_try_compile "$LINENO"; then :
21555 ac_cv_c_char_unsigned=no
21557 ac_cv_c_char_unsigned=yes
21559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21562 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21563 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21564 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21569 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21570 # The cast to long int works around a bug in the HP C Compiler
21571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21573 # This bug is HP SR number 8606223364.
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21575 $as_echo_n "checking size of signed short... " >&6; }
21576 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21577 $as_echo_n "(cached) " >&6
21579 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
21582 if test "$ac_cv_type_signed_short" = yes; then
21583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21585 as_fn_error 77 "cannot compute sizeof (signed short)
21586 See \`config.log' for more details" "$LINENO" 5; }
21588 ac_cv_sizeof_signed_short=0
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21594 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21598 cat >>confdefs.h <<_ACEOF
21599 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21604 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21605 # The cast to long int works around a bug in the HP C Compiler
21606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21608 # This bug is HP SR number 8606223364.
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21610 $as_echo_n "checking size of unsigned short... " >&6; }
21611 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21612 $as_echo_n "(cached) " >&6
21614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21617 if test "$ac_cv_type_unsigned_short" = yes; then
21618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21620 as_fn_error 77 "cannot compute sizeof (unsigned short)
21621 See \`config.log' for more details" "$LINENO" 5; }
21623 ac_cv_sizeof_unsigned_short=0
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21629 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21633 cat >>confdefs.h <<_ACEOF
21634 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21639 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21640 # The cast to long int works around a bug in the HP C Compiler
21641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21643 # This bug is HP SR number 8606223364.
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21645 $as_echo_n "checking size of signed int... " >&6; }
21646 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21647 $as_echo_n "(cached) " >&6
21649 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
21652 if test "$ac_cv_type_signed_int" = yes; then
21653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21655 as_fn_error 77 "cannot compute sizeof (signed int)
21656 See \`config.log' for more details" "$LINENO" 5; }
21658 ac_cv_sizeof_signed_int=0
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21664 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21668 cat >>confdefs.h <<_ACEOF
21669 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21674 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21675 # The cast to long int works around a bug in the HP C Compiler
21676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21678 # This bug is HP SR number 8606223364.
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21680 $as_echo_n "checking size of unsigned int... " >&6; }
21681 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21682 $as_echo_n "(cached) " >&6
21684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21687 if test "$ac_cv_type_unsigned_int" = yes; then
21688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21690 as_fn_error 77 "cannot compute sizeof (unsigned int)
21691 See \`config.log' for more details" "$LINENO" 5; }
21693 ac_cv_sizeof_unsigned_int=0
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21699 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21703 cat >>confdefs.h <<_ACEOF
21704 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21709 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21710 # The cast to long int works around a bug in the HP C Compiler
21711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21713 # This bug is HP SR number 8606223364.
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21715 $as_echo_n "checking size of signed long... " >&6; }
21716 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21717 $as_echo_n "(cached) " >&6
21719 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
21722 if test "$ac_cv_type_signed_long" = yes; then
21723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21725 as_fn_error 77 "cannot compute sizeof (signed long)
21726 See \`config.log' for more details" "$LINENO" 5; }
21728 ac_cv_sizeof_signed_long=0
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21734 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21738 cat >>confdefs.h <<_ACEOF
21739 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21744 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21745 # The cast to long int works around a bug in the HP C Compiler
21746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21748 # This bug is HP SR number 8606223364.
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21750 $as_echo_n "checking size of unsigned long... " >&6; }
21751 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21752 $as_echo_n "(cached) " >&6
21754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21757 if test "$ac_cv_type_unsigned_long" = yes; then
21758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21760 as_fn_error 77 "cannot compute sizeof (unsigned long)
21761 See \`config.log' for more details" "$LINENO" 5; }
21763 ac_cv_sizeof_unsigned_long=0
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21769 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21773 cat >>confdefs.h <<_ACEOF
21774 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21779 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21780 # 'signed long long' is not supported then the value defined is zero.
21781 # The cast to long int works around a bug in the HP C Compiler
21782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21784 # This bug is HP SR number 8606223364.
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21786 $as_echo_n "checking size of signed long long... " >&6; }
21787 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21788 $as_echo_n "(cached) " >&6
21790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
21793 if test "$ac_cv_type_signed_long_long" = yes; then
21794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21796 as_fn_error 77 "cannot compute sizeof (signed long long)
21797 See \`config.log' for more details" "$LINENO" 5; }
21799 ac_cv_sizeof_signed_long_long=0
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21805 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21809 cat >>confdefs.h <<_ACEOF
21810 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21815 # Obtain size of a 'unsigned long long' and define as
21816 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21817 # supported then the value defined is zero.
21818 # The cast to long int works around a bug in the HP C Compiler
21819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21821 # This bug is HP SR number 8606223364.
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21823 $as_echo_n "checking size of unsigned long long... " >&6; }
21824 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21827 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
21830 if test "$ac_cv_type_unsigned_long_long" = yes; then
21831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21833 as_fn_error 77 "cannot compute sizeof (unsigned long long)
21834 See \`config.log' for more details" "$LINENO" 5; }
21836 ac_cv_sizeof_unsigned_long_long=0
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21842 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21846 cat >>confdefs.h <<_ACEOF
21847 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21852 # Obtain size of off_t and define as SIZEOF_OFF_T
21853 # The cast to long int works around a bug in the HP C Compiler
21854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21856 # This bug is HP SR number 8606223364.
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21858 $as_echo_n "checking size of off_t... " >&6; }
21859 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21860 $as_echo_n "(cached) " >&6
21862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
21865 if test "$ac_cv_type_off_t" = yes; then
21866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21868 as_fn_error 77 "cannot compute sizeof (off_t)
21869 See \`config.log' for more details" "$LINENO" 5; }
21871 ac_cv_sizeof_off_t=0
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21877 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21881 cat >>confdefs.h <<_ACEOF
21882 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21887 # Obtain size of size_t and define as SIZEOF_SIZE_T
21888 # The cast to long int works around a bug in the HP C Compiler
21889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21891 # This bug is HP SR number 8606223364.
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21893 $as_echo_n "checking size of size_t... " >&6; }
21894 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21897 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
21900 if test "$ac_cv_type_size_t" = yes; then
21901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21903 as_fn_error 77 "cannot compute sizeof (size_t)
21904 See \`config.log' for more details" "$LINENO" 5; }
21906 ac_cv_sizeof_size_t=0
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21912 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21916 cat >>confdefs.h <<_ACEOF
21917 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21922 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21923 # The cast to long int works around a bug in the HP C Compiler
21924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21926 # This bug is HP SR number 8606223364.
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21928 $as_echo_n "checking size of ssize_t... " >&6; }
21929 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21930 $as_echo_n "(cached) " >&6
21932 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21935 if test "$ac_cv_type_ssize_t" = yes; then
21936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21938 as_fn_error 77 "cannot compute sizeof (ssize_t)
21939 See \`config.log' for more details" "$LINENO" 5; }
21941 ac_cv_sizeof_ssize_t=0
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21947 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21951 cat >>confdefs.h <<_ACEOF
21952 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21957 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21958 # The cast to long int works around a bug in the HP C Compiler
21959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21961 # This bug is HP SR number 8606223364.
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21963 $as_echo_n "checking size of unsigned int*... " >&6; }
21964 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21965 $as_echo_n "(cached) " >&6
21967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
21970 if test "$ac_cv_type_unsigned_intp" = yes; then
21971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21973 as_fn_error 77 "cannot compute sizeof (unsigned int*)
21974 See \`config.log' for more details" "$LINENO" 5; }
21976 ac_cv_sizeof_unsigned_intp=0
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21982 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21986 cat >>confdefs.h <<_ACEOF
21987 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21993 # Compute sized types for current CPU and compiler options.
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21997 $as_echo_n "checking for signed 8-bit type... " >&6; }
21998 INT8_T='signed char'
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22000 $as_echo "$INT8_T" >&6; }
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22004 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22005 UINT8_T='unsigned char'
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22007 $as_echo "$UINT8_T" >&6; }
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22011 $as_echo_n "checking for signed 16-bit type... " >&6; }
22012 INT16_T='signed short'
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22014 $as_echo "$INT16_T" >&6; }
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22018 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22019 UINT16_T='unsigned short'
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22021 $as_echo "$UINT16_T" >&6; }
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22025 $as_echo_n "checking for signed 32-bit type... " >&6; }
22027 if test $ac_cv_sizeof_signed_int -eq 4; then
22028 INT32_T='signed int'
22029 elif test $ac_cv_sizeof_signed_long -eq 4; then
22030 INT32_T='signed long'
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22033 $as_echo "$INT32_T" >&6; }
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22037 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22039 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22040 UINT32_T='unsigned int'
22041 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22042 UINT32_T='unsigned long'
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22045 $as_echo "$UINT32_T" >&6; }
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22049 $as_echo_n "checking for signed 64-bit type... " >&6; }
22051 if test $ac_cv_sizeof_signed_long -eq 8; then
22052 INT64_T='signed long'
22053 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22054 INT64_T='signed long long'
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22057 $as_echo "$INT64_T" >&6; }
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22061 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22063 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22064 UINT64_T='unsigned long'
22065 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22066 UINT64_T='unsigned long long'
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22069 $as_echo "$UINT64_T" >&6; }
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22073 $as_echo_n "checking for unsigned maximum type... " >&6; }
22075 if test "$UINT64_T" != 'none'; then
22076 UINTMAX_T=$UINT64_T
22077 elif test "$UINT32_T" != 'none'; then
22078 UINTMAX_T=$UINT32_T
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22081 $as_echo "$UINTMAX_T" >&6; }
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22085 $as_echo_n "checking for pointer difference type... " >&6; }
22087 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22088 UINTPTR_T='unsigned long'
22089 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22090 UINTPTR_T='unsigned long long'
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22093 $as_echo "$UINTPTR_T" >&6; }
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22097 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22104 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22109 if ac_fn_c_try_compile "$LINENO"; then :
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 $as_echo "yes" >&6; }
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22114 $as_echo "no" >&6; }
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22116 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h. */
22123 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22128 if ac_fn_c_try_compile "$LINENO"; then :
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22130 $as_echo "yes" >&6; }
22132 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22136 $as_echo "no" >&6; }
22138 $as_echo "#define __func__ __FILE__" >>confdefs.h
22141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 # Check for functions
22150 for ac_header in stdlib.h unistd.h
22152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22153 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22154 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22155 cat >>confdefs.h <<_ACEOF
22156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22163 for ac_func in getpagesize
22165 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22166 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22167 cat >>confdefs.h <<_ACEOF
22168 #define HAVE_GETPAGESIZE 1
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22175 $as_echo_n "checking for working mmap file i/o... " >&6; }
22176 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22177 $as_echo_n "(cached) " >&6
22179 if test "$cross_compiling" = yes; then :
22180 magick_cv_func_mmap_fileio=no
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 $ac_includes_default
22185 /* malloc might have been renamed as rpl_malloc. */
22189 This test is derived from GNU Autoconf's similar macro.
22190 The purpose of this test is to verify that files may be memory
22191 mapped, and that memory mapping and file I/O are coherent.
22193 The test creates a test file, memory maps the file, updates
22194 the file using the memory map, and then reads the file using
22195 file I/O to verify that the file contains the updates.
22199 #include <sys/mman.h>
22201 #if !STDC_HEADERS && !HAVE_STDLIB_H
22205 /* This mess was copied from the GNU getpagesize.h. */
22206 #if !HAVE_GETPAGESIZE
22207 /* Assume that all systems that can run configure have sys/param.h. */
22208 # if !HAVE_SYS_PARAM_H
22209 # define HAVE_SYS_PARAM_H 1
22212 # ifdef _SC_PAGESIZE
22213 # define getpagesize() sysconf(_SC_PAGESIZE)
22214 # else /* no _SC_PAGESIZE */
22215 # if HAVE_SYS_PARAM_H
22216 # include <sys/param.h>
22217 # ifdef EXEC_PAGESIZE
22218 # define getpagesize() EXEC_PAGESIZE
22219 # else /* no EXEC_PAGESIZE */
22221 # define getpagesize() NBPG * CLSIZE
22224 # endif /* no CLSIZE */
22225 # else /* no NBPG */
22227 # define getpagesize() NBPC
22228 # else /* no NBPC */
22230 # define getpagesize() PAGESIZE
22231 # endif /* PAGESIZE */
22232 # endif /* no NBPC */
22233 # endif /* no NBPG */
22234 # endif /* no EXEC_PAGESIZE */
22235 # else /* no HAVE_SYS_PARAM_H */
22236 # define getpagesize() 8192 /* punt totally */
22237 # endif /* no HAVE_SYS_PARAM_H */
22238 # endif /* no _SC_PAGESIZE */
22240 #endif /* no HAVE_GETPAGESIZE */
22245 char *data, *data2, *data3;
22249 pagesize = getpagesize ();
22251 /* First, make a file with some known garbage in it. */
22252 data = (char *) malloc (pagesize);
22255 for (i = 0; i < pagesize; ++i)
22256 *(data + i) = rand ();
22258 fd = creat ("conftest.mmap", 0600);
22261 if (write (fd, data, pagesize) != pagesize)
22265 /* Mmap the file as read/write/shared and verify that we see the
22267 fd = open ("conftest.mmap", O_RDWR);
22270 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22273 for (i = 0; i < pagesize; ++i)
22274 if (*(data + i) != *(data2 + i))
22277 /* Finally, make sure that changes to the mapped area
22278 percolate back to the file as seen by read(). */
22279 for (i = 0; i < pagesize; ++i)
22280 *(data2 + i) = *(data2 + i) + 1;
22281 data3 = (char *) malloc (pagesize);
22284 if (read (fd, data3, pagesize) != pagesize)
22286 for (i = 0; i < pagesize; ++i)
22287 if (*(data2 + i) != *(data3 + i))
22293 if ac_fn_c_try_run "$LINENO"; then :
22294 magick_cv_func_mmap_fileio=yes
22296 magick_cv_func_mmap_fileio=no
22298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22299 conftest.$ac_objext conftest.beam conftest.$ac_ext
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22304 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22305 if test $magick_cv_func_mmap_fileio = yes; then
22307 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22310 rm -f conftest.mmap
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22313 $as_echo_n "checking whether closedir returns void... " >&6; }
22314 if test "${ac_cv_func_closedir_void+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22317 if test "$cross_compiling" = yes; then :
22318 ac_cv_func_closedir_void=yes
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22322 $ac_includes_default
22323 #include <$ac_header_dirent>
22324 #ifndef __cplusplus
22331 return closedir (opendir (".")) != 0;
22336 if ac_fn_c_try_run "$LINENO"; then :
22337 ac_cv_func_closedir_void=no
22339 ac_cv_func_closedir_void=yes
22341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22342 conftest.$ac_objext conftest.beam conftest.$ac_ext
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22347 $as_echo "$ac_cv_func_closedir_void" >&6; }
22348 if test $ac_cv_func_closedir_void = yes; then
22350 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22357 for ac_header in $ac_header_list
22359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22360 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22363 cat >>confdefs.h <<_ACEOF
22364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22378 for ac_func in getpagesize
22380 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22381 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22382 cat >>confdefs.h <<_ACEOF
22383 #define HAVE_GETPAGESIZE 1
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22390 $as_echo_n "checking for working mmap... " >&6; }
22391 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22392 $as_echo_n "(cached) " >&6
22394 if test "$cross_compiling" = yes; then :
22395 ac_cv_func_mmap_fixed_mapped=no
22397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h. */
22399 $ac_includes_default
22400 /* malloc might have been renamed as rpl_malloc. */
22403 /* Thanks to Mike Haertel and Jim Avera for this test.
22404 Here is a matrix of mmap possibilities:
22405 mmap private not fixed
22406 mmap private fixed at somewhere currently unmapped
22407 mmap private fixed at somewhere already mapped
22408 mmap shared not fixed
22409 mmap shared fixed at somewhere currently unmapped
22410 mmap shared fixed at somewhere already mapped
22411 For private mappings, we should verify that changes cannot be read()
22412 back from the file, nor mmap's back from the file at a different
22413 address. (There have been systems where private was not correctly
22414 implemented like the infamous i386 svr4.0, and systems where the
22415 VM page cache was not coherent with the file system buffer cache
22416 like early versions of FreeBSD and possibly contemporary NetBSD.)
22417 For shared mappings, we should conversely verify that changes get
22418 propagated back to all the places they're supposed to be.
22420 Grep wants private fixed already mapped.
22421 The main things grep needs to know about mmap are:
22422 * does it exist and is it safe to write into the mmap'd area
22423 * how to use it (BSD variants) */
22426 #include <sys/mman.h>
22428 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22432 /* This mess was copied from the GNU getpagesize.h. */
22433 #ifndef HAVE_GETPAGESIZE
22434 # ifdef _SC_PAGESIZE
22435 # define getpagesize() sysconf(_SC_PAGESIZE)
22436 # else /* no _SC_PAGESIZE */
22437 # ifdef HAVE_SYS_PARAM_H
22438 # include <sys/param.h>
22439 # ifdef EXEC_PAGESIZE
22440 # define getpagesize() EXEC_PAGESIZE
22441 # else /* no EXEC_PAGESIZE */
22443 # define getpagesize() NBPG * CLSIZE
22446 # endif /* no CLSIZE */
22447 # else /* no NBPG */
22449 # define getpagesize() NBPC
22450 # else /* no NBPC */
22452 # define getpagesize() PAGESIZE
22453 # endif /* PAGESIZE */
22454 # endif /* no NBPC */
22455 # endif /* no NBPG */
22456 # endif /* no EXEC_PAGESIZE */
22457 # else /* no HAVE_SYS_PARAM_H */
22458 # define getpagesize() 8192 /* punt totally */
22459 # endif /* no HAVE_SYS_PARAM_H */
22460 # endif /* no _SC_PAGESIZE */
22462 #endif /* no HAVE_GETPAGESIZE */
22467 char *data, *data2, *data3;
22468 const char *cdata2;
22472 pagesize = getpagesize ();
22474 /* First, make a file with some known garbage in it. */
22475 data = (char *) malloc (pagesize);
22478 for (i = 0; i < pagesize; ++i)
22479 *(data + i) = rand ();
22481 fd = creat ("conftest.mmap", 0600);
22484 if (write (fd, data, pagesize) != pagesize)
22488 /* Next, check that the tail of a page is zero-filled. File must have
22489 non-zero length, otherwise we risk SIGBUS for entire page. */
22490 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22494 if (write (fd2, cdata2, 1) != 1)
22496 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22497 if (data2 == MAP_FAILED)
22499 for (i = 0; i < pagesize; ++i)
22503 if (munmap (data2, pagesize))
22506 /* Next, try to mmap the file at a fixed address which already has
22507 something else allocated at it. If we can, also make sure that
22508 we see the same garbage. */
22509 fd = open ("conftest.mmap", O_RDWR);
22512 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22513 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22515 for (i = 0; i < pagesize; ++i)
22516 if (*(data + i) != *(data2 + i))
22519 /* Finally, make sure that changes to the mapped area do not
22520 percolate back to the file as seen by read(). (This is a bug on
22521 some variants of i386 svr4.0.) */
22522 for (i = 0; i < pagesize; ++i)
22523 *(data2 + i) = *(data2 + i) + 1;
22524 data3 = (char *) malloc (pagesize);
22527 if (read (fd, data3, pagesize) != pagesize)
22529 for (i = 0; i < pagesize; ++i)
22530 if (*(data + i) != *(data3 + i))
22536 if ac_fn_c_try_run "$LINENO"; then :
22537 ac_cv_func_mmap_fixed_mapped=yes
22539 ac_cv_func_mmap_fixed_mapped=no
22541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22542 conftest.$ac_objext conftest.beam conftest.$ac_ext
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22547 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22548 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22550 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22553 rm -f conftest.mmap conftest.txt
22555 for ac_header in vfork.h
22557 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22558 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22559 cat >>confdefs.h <<_ACEOF
22560 #define HAVE_VFORK_H 1
22567 for ac_func in fork vfork
22569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22572 cat >>confdefs.h <<_ACEOF
22573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22579 if test "x$ac_cv_func_fork" = xyes; then
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22581 $as_echo_n "checking for working fork... " >&6; }
22582 if test "${ac_cv_func_fork_works+set}" = set; then :
22583 $as_echo_n "(cached) " >&6
22585 if test "$cross_compiling" = yes; then :
22586 ac_cv_func_fork_works=cross
22588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h. */
22590 $ac_includes_default
22595 /* By Ruediger Kuhlmann. */
22596 return fork () < 0;
22602 if ac_fn_c_try_run "$LINENO"; then :
22603 ac_cv_func_fork_works=yes
22605 ac_cv_func_fork_works=no
22607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22608 conftest.$ac_objext conftest.beam conftest.$ac_ext
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22613 $as_echo "$ac_cv_func_fork_works" >&6; }
22616 ac_cv_func_fork_works=$ac_cv_func_fork
22618 if test "x$ac_cv_func_fork_works" = xcross; then
22620 *-*-amigaos* | *-*-msdosdjgpp*)
22621 # Override, as these systems have only a dummy fork() stub
22622 ac_cv_func_fork_works=no
22625 ac_cv_func_fork_works=yes
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22629 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22631 ac_cv_func_vfork_works=$ac_cv_func_vfork
22632 if test "x$ac_cv_func_vfork" = xyes; then
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22634 $as_echo_n "checking for working vfork... " >&6; }
22635 if test "${ac_cv_func_vfork_works+set}" = set; then :
22636 $as_echo_n "(cached) " >&6
22638 if test "$cross_compiling" = yes; then :
22639 ac_cv_func_vfork_works=cross
22641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22642 /* end confdefs.h. */
22643 /* Thanks to Paul Eggert for this test. */
22644 $ac_includes_default
22645 #include <sys/wait.h>
22646 #ifdef HAVE_VFORK_H
22647 # include <vfork.h>
22649 /* On some sparc systems, changes by the child to local and incoming
22650 argument registers are propagated back to the parent. The compiler
22651 is told about this with #include <vfork.h>, but some compilers
22652 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22653 static variable whose address is put into a register that is
22654 clobbered by the vfork. */
22657 sparc_address_test (int arg)
22659 sparc_address_test (arg) int arg;
22662 static pid_t child;
22680 pid_t parent = getpid ();
22683 sparc_address_test (0);
22688 /* Here is another test for sparc vfork register problems. This
22689 test uses lots of local variables, at least as many local
22690 variables as main has allocated so far including compiler
22691 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22692 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22693 reuse the register of parent for one of the local variables,
22694 since it will think that parent can't possibly be used any more
22695 in this routine. Assigning to the local variable will thus
22696 munge parent in the parent process. */
22698 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22699 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22700 /* Convince the compiler that p..p7 are live; otherwise, it might
22701 use the same hardware register for all 8 local variables. */
22702 if (p != p1 || p != p2 || p != p3 || p != p4
22703 || p != p5 || p != p6 || p != p7)
22706 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22707 from child file descriptors. If the child closes a descriptor
22708 before it execs or exits, this munges the parent's descriptor
22709 as well. Test for this by closing stdout in the child. */
22710 _exit(close(fileno(stdout)) != 0);
22715 while (wait(&status) != child)
22718 /* Was there some problem with vforking? */
22721 /* Did the child fail? (This shouldn't happen.) */
22724 /* Did the vfork/compiler bug occur? */
22725 || parent != getpid()
22727 /* Did the file descriptor bug occur? */
22728 || fstat(fileno(stdout), &st) != 0
22733 if ac_fn_c_try_run "$LINENO"; then :
22734 ac_cv_func_vfork_works=yes
22736 ac_cv_func_vfork_works=no
22738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22739 conftest.$ac_objext conftest.beam conftest.$ac_ext
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22744 $as_echo "$ac_cv_func_vfork_works" >&6; }
22747 if test "x$ac_cv_func_fork_works" = xcross; then
22748 ac_cv_func_vfork_works=$ac_cv_func_vfork
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22750 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22753 if test "x$ac_cv_func_vfork_works" = xyes; then
22755 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22759 $as_echo "#define vfork fork" >>confdefs.h
22762 if test "x$ac_cv_func_fork_works" = xyes; then
22764 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22769 $as_echo_n "checking for working memcmp... " >&6; }
22770 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22773 if test "$cross_compiling" = yes; then :
22774 ac_cv_func_memcmp_working=no
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h. */
22778 $ac_includes_default
22783 /* Some versions of memcmp are not 8-bit clean. */
22784 char c0 = '\100', c1 = '\200', c2 = '\201';
22785 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22788 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22789 or more and with at least one buffer not starting on a 4-byte boundary.
22790 William Lewis provided this test program. */
22795 for (i = 0; i < 4; i++)
22799 strcpy (a, "--------01111111");
22800 strcpy (b, "--------10000000");
22801 if (memcmp (a, b, 16) >= 0)
22811 if ac_fn_c_try_run "$LINENO"; then :
22812 ac_cv_func_memcmp_working=yes
22814 ac_cv_func_memcmp_working=no
22816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22817 conftest.$ac_objext conftest.beam conftest.$ac_ext
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22822 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22823 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22824 *" memcmp.$ac_objext "* ) ;;
22825 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22830 for ac_header in sys/select.h sys/socket.h
22832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22833 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22835 cat >>confdefs.h <<_ACEOF
22836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22844 $as_echo_n "checking types of arguments for select... " >&6; }
22845 if test "${ac_cv_func_select_args+set}" = set; then :
22846 $as_echo_n "(cached) " >&6
22848 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22849 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22850 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22852 /* end confdefs.h. */
22853 $ac_includes_default
22854 #ifdef HAVE_SYS_SELECT_H
22855 # include <sys/select.h>
22857 #ifdef HAVE_SYS_SOCKET_H
22858 # include <sys/socket.h>
22864 extern int select ($ac_arg1,
22865 $ac_arg234, $ac_arg234, $ac_arg234,
22871 if ac_fn_c_try_compile "$LINENO"; then :
22872 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22878 # Provide a safe default value.
22879 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22883 $as_echo "$ac_cv_func_select_args" >&6; }
22884 ac_save_IFS=$IFS; IFS=','
22885 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22889 cat >>confdefs.h <<_ACEOF
22890 #define SELECT_TYPE_ARG1 $1
22894 cat >>confdefs.h <<_ACEOF
22895 #define SELECT_TYPE_ARG234 ($2)
22899 cat >>confdefs.h <<_ACEOF
22900 #define SELECT_TYPE_ARG5 ($3)
22905 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22906 $as_echo_n "(cached) " >&6
22908 ac_cv_func_setvbuf_reversed=no
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22913 $as_echo_n "checking return type of signal handlers... " >&6; }
22914 if test "${ac_cv_type_signal+set}" = set; then :
22915 $as_echo_n "(cached) " >&6
22917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h. */
22919 #include <sys/types.h>
22920 #include <signal.h>
22925 return *(signal (0, 0)) (0) == 1;
22930 if ac_fn_c_try_compile "$LINENO"; then :
22931 ac_cv_type_signal=int
22933 ac_cv_type_signal=void
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22938 $as_echo "$ac_cv_type_signal" >&6; }
22940 cat >>confdefs.h <<_ACEOF
22941 #define RETSIGTYPE $ac_cv_type_signal
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22946 $as_echo_n "checking for working strtod... " >&6; }
22947 if test "${ac_cv_func_strtod+set}" = set; then :
22948 $as_echo_n "(cached) " >&6
22950 if test "$cross_compiling" = yes; then :
22951 ac_cv_func_strtod=no
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22956 $ac_includes_default
22964 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22965 char *string = " +69";
22968 value = strtod (string, &term);
22969 if (value != 69 || term != (string + 4))
22974 /* Under Solaris 2.4, strtod returns the wrong value for the
22975 terminating character under some conditions. */
22976 char *string = "NaN";
22978 strtod (string, &term);
22979 if (term != string && *(term - 1) == 0)
22986 if ac_fn_c_try_run "$LINENO"; then :
22987 ac_cv_func_strtod=yes
22989 ac_cv_func_strtod=no
22991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22992 conftest.$ac_objext conftest.beam conftest.$ac_ext
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22997 $as_echo "$ac_cv_func_strtod" >&6; }
22998 if test $ac_cv_func_strtod = no; then
22999 case " $LIBOBJS " in
23000 *" strtod.$ac_objext "* ) ;;
23001 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23005 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23006 if test "x$ac_cv_func_pow" = x""yes; then :
23010 if test $ac_cv_func_pow = no; then
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23012 $as_echo_n "checking for pow in -lm... " >&6; }
23013 if test "${ac_cv_lib_m_pow+set}" = set; then :
23014 $as_echo_n "(cached) " >&6
23016 ac_check_lib_save_LIBS=$LIBS
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h. */
23021 /* Override any GCC internal prototype to avoid an error.
23022 Use char because int might match the return type of a GCC
23023 builtin and then its argument prototype would still apply. */
23036 if ac_fn_c_try_link "$LINENO"; then :
23037 ac_cv_lib_m_pow=yes
23041 rm -f core conftest.err conftest.$ac_objext \
23042 conftest$ac_exeext conftest.$ac_ext
23043 LIBS=$ac_check_lib_save_LIBS
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23046 $as_echo "$ac_cv_lib_m_pow" >&6; }
23047 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23051 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23058 for ac_func in vprintf
23060 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23061 if test "x$ac_cv_func_vprintf" = x""yes; then :
23062 cat >>confdefs.h <<_ACEOF
23063 #define HAVE_VPRINTF 1
23066 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23067 if test "x$ac_cv_func__doprnt" = x""yes; then :
23069 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23079 # Find math library
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23083 $as_echo_n "checking for sqrt in -lm... " >&6; }
23084 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23085 $as_echo_n "(cached) " >&6
23087 ac_check_lib_save_LIBS=$LIBS
23089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23090 /* end confdefs.h. */
23092 /* Override any GCC internal prototype to avoid an error.
23093 Use char because int might match the return type of a GCC
23094 builtin and then its argument prototype would still apply. */
23107 if ac_fn_c_try_link "$LINENO"; then :
23108 ac_cv_lib_m_sqrt=yes
23110 ac_cv_lib_m_sqrt=no
23112 rm -f core conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
23114 LIBS=$ac_check_lib_save_LIBS
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23117 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23118 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23122 LIBS="$MATH_LIBS $LIBS"
23125 for ac_func in 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 _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 strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23130 cat >>confdefs.h <<_ACEOF
23131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23139 # Check for clock_gettime().
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23142 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23143 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23144 $as_echo_n "(cached) " >&6
23146 ac_func_search_save_LIBS=$LIBS
23147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148 /* end confdefs.h. */
23150 /* Override any GCC internal prototype to avoid an error.
23151 Use char because int might match the return type of a GCC
23152 builtin and then its argument prototype would still apply. */
23156 char clock_gettime ();
23160 return clock_gettime ();
23165 for ac_lib in '' rt; do
23166 if test -z "$ac_lib"; then
23167 ac_res="none required"
23170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23172 if ac_fn_c_try_link "$LINENO"; then :
23173 ac_cv_search_clock_gettime=$ac_res
23175 rm -f core conftest.err conftest.$ac_objext \
23177 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23181 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23184 ac_cv_search_clock_gettime=no
23186 rm conftest.$ac_ext
23187 LIBS=$ac_func_search_save_LIBS
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23190 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23191 ac_res=$ac_cv_search_clock_gettime
23192 if test "$ac_res" != no; then :
23193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23196 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23199 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23201 /* end confdefs.h. */
23206 clockid_t clockType = CLOCK_REALTIME;
23211 if ac_fn_c_try_compile "$LINENO"; then :
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23214 $as_echo "yes" >&6; }
23216 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23221 $as_echo "no" >&6; }
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 for ac_func in gettimeofday ftime
23230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23232 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23233 cat >>confdefs.h <<_ACEOF
23234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23247 # Check for function prototypes
23251 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23252 #include <unistd.h>
23254 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23260 cat >>confdefs.h <<_ACEOF
23261 #define HAVE_DECL_PREAD $ac_have_decl
23263 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23264 #include <unistd.h>
23266 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23272 cat >>confdefs.h <<_ACEOF
23273 #define HAVE_DECL_PWRITE $ac_have_decl
23277 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23278 #include <strings.h>
23280 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23286 cat >>confdefs.h <<_ACEOF
23287 #define HAVE_DECL_STRLCPY $ac_have_decl
23291 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23293 #include <stdarg.h>
23295 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23308 # C++ Support Tests (For Magick++)
23311 have_magick_plus_plus='no'
23312 if test "$with_magick_plus_plus" = 'yes'; then
23316 ac_cpp='$CXXCPP $CPPFLAGS'
23317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23322 # Full set of headers used...
23323 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23324 # functional iomanip iosfwd iostream iterator list string strstream utility
23326 ac_cpp='$CXXCPP $CPPFLAGS'
23327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23332 ac_cpp='$CXXCPP $CPPFLAGS'
23333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23336 if test -z "$CXX"; then
23337 if test -n "$CCC"; then
23340 if test -n "$ac_tool_prefix"; then
23341 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23346 $as_echo_n "checking for $ac_word... " >&6; }
23347 if test "${ac_cv_prog_CXX+set}" = set; then :
23348 $as_echo_n "(cached) " >&6
23350 if test -n "$CXX"; then
23351 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23354 for as_dir in $PATH
23357 test -z "$as_dir" && as_dir=.
23358 for ac_exec_ext in '' $ac_executable_extensions; do
23359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23360 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23370 CXX=$ac_cv_prog_CXX
23371 if test -n "$CXX"; then
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23373 $as_echo "$CXX" >&6; }
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23376 $as_echo "no" >&6; }
23380 test -n "$CXX" && break
23383 if test -z "$CXX"; then
23385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23387 # Extract the first word of "$ac_prog", so it can be a program name with args.
23388 set dummy $ac_prog; ac_word=$2
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23390 $as_echo_n "checking for $ac_word... " >&6; }
23391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23392 $as_echo_n "(cached) " >&6
23394 if test -n "$ac_ct_CXX"; then
23395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23398 for as_dir in $PATH
23401 test -z "$as_dir" && as_dir=.
23402 for ac_exec_ext in '' $ac_executable_extensions; do
23403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23404 ac_cv_prog_ac_ct_CXX="$ac_prog"
23405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23414 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23415 if test -n "$ac_ct_CXX"; then
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23417 $as_echo "$ac_ct_CXX" >&6; }
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23420 $as_echo "no" >&6; }
23424 test -n "$ac_ct_CXX" && break
23427 if test "x$ac_ct_CXX" = x; then
23430 case $cross_compiling:$ac_tool_warned in
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23434 ac_tool_warned=yes ;;
23442 # Provide some information about the compiler.
23443 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23446 for ac_option in --version -v -V -qversion; do
23447 { { ac_try="$ac_compiler $ac_option >&5"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23453 $as_echo "$ac_try_echo"; } >&5
23454 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23456 if test -s conftest.err; then
23458 ... rest of stderr output deleted ...
23459 10q' conftest.err >conftest.er1
23460 cat conftest.er1 >&5
23462 rm -f conftest.er1 conftest.err
23463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23464 test $ac_status = 0; }
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23468 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23469 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23470 $as_echo_n "(cached) " >&6
23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23486 if ac_fn_cxx_try_compile "$LINENO"; then :
23487 ac_compiler_gnu=yes
23491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23496 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23497 if test $ac_compiler_gnu = yes; then
23502 ac_test_CXXFLAGS=${CXXFLAGS+set}
23503 ac_save_CXXFLAGS=$CXXFLAGS
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23505 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23506 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23507 $as_echo_n "(cached) " >&6
23509 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23510 ac_cxx_werror_flag=yes
23511 ac_cv_prog_cxx_g=no
23513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h. */
23524 if ac_fn_cxx_try_compile "$LINENO"; then :
23525 ac_cv_prog_cxx_g=yes
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h. */
23539 if ac_fn_cxx_try_compile "$LINENO"; then :
23542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23545 /* end confdefs.h. */
23555 if ac_fn_cxx_try_compile "$LINENO"; then :
23556 ac_cv_prog_cxx_g=yes
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23566 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23567 if test "$ac_test_CXXFLAGS" = set; then
23568 CXXFLAGS=$ac_save_CXXFLAGS
23569 elif test $ac_cv_prog_cxx_g = yes; then
23570 if test "$GXX" = yes; then
23576 if test "$GXX" = yes; then
23583 ac_cpp='$CXXCPP $CPPFLAGS'
23584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23588 depcc="$CXX" am_compiler_list=
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23591 $as_echo_n "checking dependency style of $depcc... " >&6; }
23592 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23593 $as_echo_n "(cached) " >&6
23595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23596 # We make a subdir and do the tests there. Otherwise we can end up
23597 # making bogus files that we don't know about and never remove. For
23598 # instance it was reported that on HP-UX the gcc test will end up
23599 # making a dummy file named `D' -- because `-MD' means `put the output
23602 # Copy depcomp to subdir because otherwise we won't find it if we're
23603 # using a relative directory.
23604 cp "$am_depcomp" conftest.dir
23606 # We will build objects and dependencies in a subdirectory because
23607 # it helps to detect inapplicable dependency modes. For instance
23608 # both Tru64's cc and ICC support -MD to output dependencies as a
23609 # side effect of compilation, but ICC will put the dependencies in
23610 # the current directory while Tru64 will put them in the object
23614 am_cv_CXX_dependencies_compiler_type=none
23615 if test "$am_compiler_list" = ""; then
23616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23618 am__universal=false
23619 case " $depcc " in #(
23620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23623 for depmode in $am_compiler_list; do
23624 # Setup a source with many dependencies, because some compilers
23625 # like to wrap large dependency lists on column 80 (with \), and
23626 # we should not choose a depcomp mode which is confused by this.
23628 # We need to recreate these files for each test, as the compiler may
23629 # overwrite some of them when testing with obscure command lines.
23630 # This happens at least with the AIX C compiler.
23632 for i in 1 2 3 4 5 6; do
23633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23635 # Solaris 8's {/usr,}/bin/sh.
23636 touch sub/conftst$i.h
23638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23640 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23641 # mode. It turns out that the SunPro C++ compiler does not properly
23642 # handle `-M -o', and we need to detect this. Also, some Intel
23643 # versions had trouble with output in subdirs
23644 am__obj=sub/conftest.${OBJEXT-o}
23645 am__minus_obj="-o $am__obj"
23648 # This depmode causes a compiler race in universal mode.
23649 test "$am__universal" = false || continue
23652 # after this tag, mechanisms are not by side-effect, so they'll
23653 # only be used when explicitly requested
23654 if test "x$enable_dependency_tracking" = xyes; then
23660 msvisualcpp | msvcmsys)
23661 # This compiler won't grok `-c -o', but also, the minuso test has
23662 # not run yet. These depmodes are late enough in the game, and
23663 # so weak that their functioning should not be impacted.
23664 am__obj=conftest.${OBJEXT-o}
23669 if depmode=$depmode \
23670 source=sub/conftest.c object=$am__obj \
23671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23673 >/dev/null 2>conftest.err &&
23674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23678 # icc doesn't choke on unknown options, it will just issue warnings
23679 # or remarks (even with -Werror). So we grep stderr for any message
23680 # that says an option was ignored or not supported.
23681 # When given -MP, icc 7.0 and 7.1 complain thusly:
23682 # icc: Command line warning: ignoring option '-M'; no argument required
23683 # The diagnosis changed in icc 8.0:
23684 # icc: Command line remark: option '-MP' not supported
23685 if (grep 'ignoring option' conftest.err ||
23686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23687 am_cv_CXX_dependencies_compiler_type=$depmode
23694 rm -rf conftest.dir
23696 am_cv_CXX_dependencies_compiler_type=none
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23701 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23702 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23705 test "x$enable_dependency_tracking" != xno \
23706 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23707 am__fastdepCXX_TRUE=
23708 am__fastdepCXX_FALSE='#'
23710 am__fastdepCXX_TRUE='#'
23711 am__fastdepCXX_FALSE=
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23716 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23717 if test "${ax_cv_cxx_bool+set}" = set; then :
23718 $as_echo_n "(cached) " >&6
23722 ac_cpp='$CXXCPP $CPPFLAGS'
23723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h. */
23730 int f(int x){return 1;}
23731 int f(char x){return 1;}
23732 int f(bool x){return 1;}
23737 bool b = true; return f(b);
23742 if ac_fn_cxx_try_compile "$LINENO"; then :
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23749 ac_cpp='$CXXCPP $CPPFLAGS'
23750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23757 $as_echo "$ax_cv_cxx_bool" >&6; }
23758 if test "$ax_cv_cxx_bool" = yes; then
23760 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23765 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23766 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23767 $as_echo_n "(cached) " >&6
23771 ac_cpp='$CXXCPP $CPPFLAGS'
23772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777 /* end confdefs.h. */
23778 namespace Outer { namespace Inner { int i = 0; }}
23782 using namespace Outer::Inner; return i;
23787 if ac_fn_cxx_try_compile "$LINENO"; then :
23788 ax_cv_cxx_namespaces=yes
23790 ax_cv_cxx_namespaces=no
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 ac_cpp='$CXXCPP $CPPFLAGS'
23795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23802 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23803 if test "$ax_cv_cxx_namespaces" = yes; then
23805 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23811 $as_echo_n "checking if g++ supports namespace std... " >&6; }
23812 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23813 $as_echo_n "(cached) " >&6
23817 ac_cpp='$CXXCPP $CPPFLAGS'
23818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h. */
23824 #include <iostream>
23825 std::istream& is = std::cin;
23834 if ac_fn_cxx_try_compile "$LINENO"; then :
23835 ax_cv_cxx_have_std_namespace=yes
23837 ax_cv_cxx_have_std_namespace=no
23839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23841 ac_cpp='$CXXCPP $CPPFLAGS'
23842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23849 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23850 if test "$ax_cv_cxx_have_std_namespace" = yes; then
23852 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23857 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23858 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23859 $as_echo_n "(cached) " >&6
23864 ac_cpp='$CXXCPP $CPPFLAGS'
23865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23870 /* end confdefs.h. */
23871 #include <iostream>
23875 #ifdef HAVE_NAMESPACES
23876 using namespace std;
23886 if ac_fn_cxx_try_compile "$LINENO"; then :
23887 ac_cv_cxx_have_std_libs=yes
23889 ac_cv_cxx_have_std_libs=no
23891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893 ac_cpp='$CXXCPP $CPPFLAGS'
23894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23901 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23902 if test "$ac_cv_cxx_have_std_libs" = yes; then
23904 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23909 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23910 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23911 $as_echo_n "(cached) " >&6
23915 ac_cpp='$CXXCPP $CPPFLAGS'
23916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921 /* end confdefs.h. */
23922 const wchar_t* s=L"wide string";
23924 if ac_fn_cxx_try_compile "$LINENO"; then :
23925 ac_cv_cxx_have_lstring=yes
23927 ac_cv_cxx_have_lstring=no
23929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23931 ac_cpp='$CXXCPP $CPPFLAGS'
23932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23939 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23940 if test "$ac_cv_cxx_have_lstring" = yes; then
23942 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23948 # Check whether --enable-openmp was given.
23949 if test "${enable_openmp+set}" = set; then :
23950 enableval=$enable_openmp;
23953 if test "$enable_openmp" != no; then
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23955 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23956 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23966 int main () { return omp_get_num_threads (); }
23969 if ac_fn_cxx_try_link "$LINENO"; then :
23970 ac_cv_prog_cxx_openmp='none needed'
23972 ac_cv_prog_cxx_openmp='unsupported'
23973 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23974 ac_save_CXXFLAGS=$CXXFLAGS
23975 CXXFLAGS="$CXXFLAGS $ac_option"
23976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h. */
23983 int main () { return omp_get_num_threads (); }
23986 if ac_fn_cxx_try_link "$LINENO"; then :
23987 ac_cv_prog_cxx_openmp=$ac_option
23989 rm -f core conftest.err conftest.$ac_objext \
23990 conftest$ac_exeext conftest.$ac_ext
23991 CXXFLAGS=$ac_save_CXXFLAGS
23992 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23997 rm -f core conftest.err conftest.$ac_objext \
23998 conftest$ac_exeext conftest.$ac_ext
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24001 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24002 case $ac_cv_prog_cxx_openmp in #(
24003 "none needed" | unsupported)
24006 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24012 ac_cpp='$CPP $CPPFLAGS'
24013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24019 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24021 test $ax_cv_cxx_bool = 'yes' && \
24022 test $ac_cv_cxx_have_lstring = 'yes' && \
24023 test $ax_cv_cxx_namespaces = 'yes' && \
24024 test $ac_cv_cxx_have_std_libs = 'yes' && \
24025 test $ax_cv_cxx_have_std_namespace = 'yes'; then
24026 have_magick_plus_plus='yes'
24028 have_magick_plus_plus='no (failed tests)'
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24031 $as_echo "$have_magick_plus_plus" >&6; }
24034 if test "$have_magick_plus_plus" = 'yes'; then
24035 WITH_MAGICK_PLUS_PLUS_TRUE=
24036 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24038 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24039 WITH_MAGICK_PLUS_PLUS_FALSE=
24043 # Only check for delegate libraries in subdirectories if requested.
24044 if test "$enable_delegate_build" != 'no'; then
24045 # Check for delegate sub-directories and add -I & -L options as required.
24046 # This presumes that delegates are installed as detailed in the ImageMagick
24047 # README. If delegates are installed in a standard location where the
24048 # compiler will automatically find them then these options should not be
24052 # Most delegates have includes in the same directory as the library, but not all...
24055 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
24056 if test -d "$builddir/$dir"; then
24057 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24059 if test -d "$srcdirfull/$dir"; then
24060 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24066 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
24067 if test -d "$builddir/$dir/.libs"; then
24068 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24070 if test -d "$srcdirfull/$dir/.libs"; then
24071 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24074 if test -d "$builddir/$dir"; then
24075 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24077 if test -d "$srcdirfull/$dir"; then
24078 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24084 # Assume that delegate headers reside under same directory as ImageMagick
24085 # installation prefix.
24086 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24089 # Find the X11 RGB database
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24092 $as_echo_n "checking for X11 configure files... " >&6; }
24093 if test "${im_cv_x_configure+set}" = set; then :
24094 $as_echo_n "(cached) " >&6
24096 # Look for the header file in a standard set of common directories.
24097 # Check X11 before X11Rn because it is often a symlink to the current release.
24106 /usr/XFree86/lib/X11 \
24114 /usr/local/X11/lib \
24115 /usr/local/X11R4/lib \
24116 /usr/local/X11R5/lib \
24117 /usr/local/X11R6/lib \
24119 /usr/local/lib/X11 \
24120 /usr/local/lib/X11R4 \
24121 /usr/local/lib/X11R5 \
24122 /usr/local/lib/X11R6 \
24123 /usr/local/lib/X11R7 \
24124 /usr/local/x11r5/lib \
24125 /usr/lpp/Xamples/lib \
24127 /usr/openwin/share/lib \
24128 /usr/unsupported/lib \
24131 if test -f "$ac_dir/X11/rgb.txt"; then
24132 im_cv_x_configure="$ac_dir/X11/"
24134 elif test -f "$ac_dir/rgb.txt"; then
24135 im_cv_x_configure="$ac_dir/"
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24142 $as_echo "$im_cv_x_configure" >&6; }
24143 X11_CONFIGURE_PATH="$im_cv_x_configure"
24144 case "${build_os}" in
24146 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24150 cat >>confdefs.h <<_ACEOF
24151 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24156 # Find OpenMP library
24159 if test "$enable_openmp" != 'no'; then
24160 if test "${GCC}" = "yes"; then
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24162 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24163 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24164 $as_echo_n "(cached) " >&6
24166 ac_check_lib_save_LIBS=$LIBS
24167 LIBS="-lgomp $LIBS"
24168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h. */
24171 /* Override any GCC internal prototype to avoid an error.
24172 Use char because int might match the return type of a GCC
24173 builtin and then its argument prototype would still apply. */
24177 char GOMP_parallel_start ();
24181 return GOMP_parallel_start ();
24186 if ac_fn_c_try_link "$LINENO"; then :
24187 ac_cv_lib_gomp_GOMP_parallel_start=yes
24189 ac_cv_lib_gomp_GOMP_parallel_start=no
24191 rm -f core conftest.err conftest.$ac_objext \
24192 conftest$ac_exeext conftest.$ac_ext
24193 LIBS=$ac_check_lib_save_LIBS
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24196 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24197 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24203 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24204 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24207 ac_check_lib_save_LIBS=$LIBS
24208 LIBS="-lmtsk $LIBS"
24209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24210 /* end confdefs.h. */
24212 /* Override any GCC internal prototype to avoid an error.
24213 Use char because int might match the return type of a GCC
24214 builtin and then its argument prototype would still apply. */
24218 char sunw_mp_register_warn ();
24222 return sunw_mp_register_warn ();
24227 if ac_fn_c_try_link "$LINENO"; then :
24228 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24230 ac_cv_lib_mtsk_sunw_mp_register_warn=no
24232 rm -f core conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24234 LIBS=$ac_check_lib_save_LIBS
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24237 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24238 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24243 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24244 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24245 $as_echo_n "(cached) " >&6
24247 ac_check_lib_save_LIBS=$LIBS
24248 LIBS="-lxlsmp $LIBS"
24249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24250 /* end confdefs.h. */
24252 /* Override any GCC internal prototype to avoid an error.
24253 Use char because int might match the return type of a GCC
24254 builtin and then its argument prototype would still apply. */
24258 char _xlsmpFlush ();
24262 return _xlsmpFlush ();
24267 if ac_fn_c_try_link "$LINENO"; then :
24268 ac_cv_lib_xlsmp__xlsmpFlush=yes
24270 ac_cv_lib_xlsmp__xlsmpFlush=no
24272 rm -f core conftest.err conftest.$ac_objext \
24273 conftest$ac_exeext conftest.$ac_ext
24274 LIBS=$ac_check_lib_save_LIBS
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24277 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24278 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24279 GOMP_LIBS="-lxlsmp"
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24283 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24284 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24285 $as_echo_n "(cached) " >&6
24287 ac_check_lib_save_LIBS=$LIBS
24289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24290 /* end confdefs.h. */
24292 /* Override any GCC internal prototype to avoid an error.
24293 Use char because int might match the return type of a GCC
24294 builtin and then its argument prototype would still apply. */
24298 char mp_destroy ();
24302 return mp_destroy ();
24307 if ac_fn_c_try_link "$LINENO"; then :
24308 ac_cv_lib_mp_mp_destroy=yes
24310 ac_cv_lib_mp_mp_destroy=no
24312 rm -f core conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
24314 LIBS=$ac_check_lib_save_LIBS
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24317 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24318 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24321 # SGI IRIX 6.5 MIPSpro C/C++
24323 LIBS="$GOMP_LIBS $LIBS"
24328 # Find Posix threads library
24331 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24333 if test "x$PTHREAD_LIBS" = "x"; then
24334 case "${host_cpu}-${host_os}" in
24340 ac_cpp='$CPP $CPPFLAGS'
24341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24345 magick_pthread_lib_ok=no
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24352 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24354 /* end confdefs.h. */
24355 #include <pthread.h>
24360 pthread_join(th, 0);
24361 pthread_attr_init(0);
24362 pthread_cleanup_push(0, 0);
24363 pthread_create(0,0,0,0);
24364 pthread_cleanup_pop(0);
24369 if ac_fn_c_try_link "$LINENO"; then :
24370 magick_pthread_lib_ok=yes
24372 rm -f core conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24376 $as_echo "${magick_pthread_lib_ok}" >&6; }
24377 if test "$magick_pthread_lib_ok" = yes
24389 ac_cpp='$CPP $CPPFLAGS'
24390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24398 for lib in pthread pthreads; do
24399 if test "x$PTHREAD_LIBS" = "x"; then
24404 ac_cpp='$CPP $CPPFLAGS'
24405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24409 magick_pthread_lib_ok=no
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24416 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24418 /* end confdefs.h. */
24419 #include <pthread.h>
24424 pthread_join(th, 0);
24425 pthread_attr_init(0);
24426 pthread_cleanup_push(0, 0);
24427 pthread_create(0,0,0,0);
24428 pthread_cleanup_pop(0);
24433 if ac_fn_c_try_link "$LINENO"; then :
24434 magick_pthread_lib_ok=yes
24436 rm -f core conftest.err conftest.$ac_objext \
24437 conftest$ac_exeext conftest.$ac_ext
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24440 $as_echo "${magick_pthread_lib_ok}" >&6; }
24441 if test "$magick_pthread_lib_ok" = yes
24443 PTHREAD_LIBS=-l$lib
24453 ac_cpp='$CPP $CPPFLAGS'
24454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24462 THREAD_LIBS="$PTHREAD_LIBS"
24463 LIBS="$LIBS $THREAD_LIBS"
24472 if test "$with_umem" != 'no'; then
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24474 $as_echo_n "checking for UMEM support ... " >&6; }
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24479 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24480 if test "x$ac_cv_header_umem_h" = x""yes; then :
24481 passed=`expr $passed + 1`
24483 failed=`expr $failed + 1`
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24488 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24489 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24490 $as_echo_n "(cached) " >&6
24492 ac_check_lib_save_LIBS=$LIBS
24493 LIBS="-lumem $LIBS"
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h. */
24497 /* Override any GCC internal prototype to avoid an error.
24498 Use char because int might match the return type of a GCC
24499 builtin and then its argument prototype would still apply. */
24503 char umem_alloc ();
24507 return umem_alloc ();
24512 if ac_fn_c_try_link "$LINENO"; then :
24513 ac_cv_lib_umem_umem_alloc=yes
24515 ac_cv_lib_umem_umem_alloc=no
24517 rm -f core conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
24519 LIBS=$ac_check_lib_save_LIBS
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24522 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24523 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24524 passed=`expr $passed + 1`
24526 failed=`expr $failed + 1`
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24530 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24531 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24532 $as_echo_n "(cached) " >&6
24534 ac_check_lib_save_LIBS=$LIBS
24535 LIBS="-lumem $LIBS"
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h. */
24539 /* Override any GCC internal prototype to avoid an error.
24540 Use char because int might match the return type of a GCC
24541 builtin and then its argument prototype would still apply. */
24549 return umem_free ();
24554 if ac_fn_c_try_link "$LINENO"; then :
24555 ac_cv_lib_umem_umem_free=yes
24557 ac_cv_lib_umem_umem_free=no
24559 rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
24561 LIBS=$ac_check_lib_save_LIBS
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24564 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24565 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24566 passed=`expr $passed + 1`
24568 failed=`expr $failed + 1`
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24572 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24573 if test $passed -gt 0; then
24574 if test $failed -gt 0; then
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24576 $as_echo "no -- some components failed test" >&6; }
24577 have_umem='no (failed tests)'
24580 LIBS="$UMEM_LIBS $LIBS"
24582 $as_echo "#define HasUMEM 1" >>confdefs.h
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24585 $as_echo "yes" >&6; }
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24590 $as_echo "no" >&6; }
24593 if test "$have_umem" = 'yes'; then
24604 # Add support for ccmalloc memory debugging library if requested
24608 if test "$enable_ccmalloc" = 'yes'; then
24609 # Extract the first word of "ccmalloc", so it can be a program name with args.
24610 set dummy ccmalloc; ac_word=$2
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24612 $as_echo_n "checking for $ac_word... " >&6; }
24613 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24614 $as_echo_n "(cached) " >&6
24616 case $CCMALLOCDelegate in
24618 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24622 for as_dir in $PATH
24625 test -z "$as_dir" && as_dir=.
24626 for ac_exec_ext in '' $ac_executable_extensions; do
24627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24628 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24639 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24640 if test -n "$CCMALLOCDelegate"; then
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24642 $as_echo "$CCMALLOCDelegate" >&6; }
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24645 $as_echo "no" >&6; }
24649 if test -n "$CCMALLOCDelegate"; then
24650 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24652 # Assume that gcc is used with ccmalloc.
24653 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24655 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24656 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24657 $as_echo_n "(cached) " >&6
24659 ac_check_lib_save_LIBS=$LIBS
24660 LIBS="-lccmalloc -ldl $LIBS"
24661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24662 /* end confdefs.h. */
24664 /* Override any GCC internal prototype to avoid an error.
24665 Use char because int might match the return type of a GCC
24666 builtin and then its argument prototype would still apply. */
24670 char ccmalloc_malloc ();
24674 return ccmalloc_malloc ();
24679 if ac_fn_c_try_link "$LINENO"; then :
24680 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24682 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24684 rm -f core conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
24686 LIBS=$ac_check_lib_save_LIBS
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24689 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24690 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24691 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24694 if test -n "$CCMALLOC_LIBS"; then
24696 LIBS="$LIBS $CCMALLOC_LIBS"
24697 have_ccmalloc='yes'
24705 # Add support for efence memory debugging library if requested
24707 if test "$enable_efence" = 'yes'; then
24708 EFENCE_LIBS='-lefence'
24709 LIBS="$EFENCE_LIBS $LIBS"
24718 # Check whether --with-bzlib was given.
24719 if test "${with_bzlib+set}" = set; then :
24720 withval=$with_bzlib; with_bzlib=$withval
24726 if test "$with_bzlib" != 'yes'; then
24727 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24731 if test "$with_bzlib" != 'no'; then
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24734 $as_echo "-------------------------------------------------------------" >&6; }
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24736 $as_echo_n "checking for BZLIB... " >&6; }
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24742 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24743 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24744 passed=`expr $passed + 1`
24746 failed=`expr $failed + 1`
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24751 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24752 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24755 ac_check_lib_save_LIBS=$LIBS
24757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24758 /* end confdefs.h. */
24760 /* Override any GCC internal prototype to avoid an error.
24761 Use char because int might match the return type of a GCC
24762 builtin and then its argument prototype would still apply. */
24766 char BZ2_bzDecompress ();
24770 return BZ2_bzDecompress ();
24775 if ac_fn_c_try_link "$LINENO"; then :
24776 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24778 ac_cv_lib_bz2_BZ2_bzDecompress=no
24780 rm -f core conftest.err conftest.$ac_objext \
24781 conftest$ac_exeext conftest.$ac_ext
24782 LIBS=$ac_check_lib_save_LIBS
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24785 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24786 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24787 found_libbz=`expr $found_libbz + 1`
24790 if test "$native_win32_build" = 'yes'; then
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24792 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24793 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24796 ac_check_lib_save_LIBS=$LIBS
24798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799 /* end confdefs.h. */
24801 /* Override any GCC internal prototype to avoid an error.
24802 Use char because int might match the return type of a GCC
24803 builtin and then its argument prototype would still apply. */
24807 char _imp__BZ2_decompress ();
24811 return _imp__BZ2_decompress ();
24816 if ac_fn_c_try_link "$LINENO"; then :
24817 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24819 ac_cv_lib_bz2__imp__BZ2_decompress=no
24821 rm -f core conftest.err conftest.$ac_objext \
24822 conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24826 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24827 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24828 found_libbz=`expr $found_libbz + 1`
24832 if test $found_libbz -gt 0; then
24833 passed=`expr $passed + 1`
24835 failed=`expr $failed + 1`
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24838 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24839 if test $passed -gt 0; then
24840 if test $failed -gt 0; then
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24842 $as_echo "no -- some components failed test" >&6; }
24843 have_bzlib='no (failed tests)'
24846 LIBS="$BZLIB_LIBS $LIBS"
24848 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24851 $as_echo "yes" >&6; }
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24859 if test "$have_bzlib" = 'yes'; then
24860 BZLIB_DELEGATE_TRUE=
24861 BZLIB_DELEGATE_FALSE='#'
24863 BZLIB_DELEGATE_TRUE='#'
24864 BZLIB_DELEGATE_FALSE=
24870 # Find the X11 include and library directories.
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24877 $as_echo_n "checking for X... " >&6; }
24880 # Check whether --with-x was given.
24881 if test "${with_x+set}" = set; then :
24885 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24886 if test "x$with_x" = xno; then
24887 # The user explicitly disabled X.
24890 case $x_includes,$x_libraries in #(
24891 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24893 $as_echo_n "(cached) " >&6
24895 # One or both of the vars are not set, and there is no cached value.
24896 ac_x_includes=no ac_x_libraries=no
24897 rm -f -r conftest.dir
24898 if mkdir conftest.dir; then
24900 cat >Imakefile <<'_ACEOF'
24902 @echo incroot='${INCROOT}'
24904 @echo usrlibdir='${USRLIBDIR}'
24906 @echo libdir='${LIBDIR}'
24908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24909 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24910 for ac_var in incroot usrlibdir libdir; do
24911 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24914 for ac_extension in a so sl dylib la dll; do
24915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24917 ac_im_usrlibdir=$ac_im_libdir; break
24920 # Screen out bogus values from the imake configuration. They are
24921 # bogus both because they are the default anyway, and because
24922 # using them would break gcc on systems where it needs fixed includes.
24923 case $ac_im_incroot in
24924 /usr/include) ac_x_includes= ;;
24925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24927 case $ac_im_usrlibdir in
24928 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24933 rm -f -r conftest.dir
24936 # Standard set of common directories for X headers.
24937 # Check X11 before X11Rn because it is often a symlink to the current release.
24951 /usr/local/X11/include
24952 /usr/local/X11R7/include
24953 /usr/local/X11R6/include
24954 /usr/local/X11R5/include
24955 /usr/local/X11R4/include
24957 /usr/local/include/X11
24958 /usr/local/include/X11R7
24959 /usr/local/include/X11R6
24960 /usr/local/include/X11R5
24961 /usr/local/include/X11R4
24965 /usr/XFree86/include/X11
24969 /usr/unsupported/include
24970 /usr/athena/include
24971 /usr/local/x11r5/include
24972 /usr/lpp/Xamples/include
24974 /usr/openwin/include
24975 /usr/openwin/share/include'
24977 if test "$ac_x_includes" = no; then
24978 # Guess where to find include files, by looking for Xlib.h.
24979 # First, try using that file with no special directory specified.
24980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981 /* end confdefs.h. */
24982 #include <X11/Xlib.h>
24984 if ac_fn_c_try_cpp "$LINENO"; then :
24985 # We can compile using X headers with no special include directory.
24988 for ac_dir in $ac_x_header_dirs; do
24989 if test -r "$ac_dir/X11/Xlib.h"; then
24990 ac_x_includes=$ac_dir
24995 rm -f conftest.err conftest.$ac_ext
24996 fi # $ac_x_includes = no
24998 if test "$ac_x_libraries" = no; then
24999 # Check for the libraries.
25000 # See if we find them without any special options.
25001 # Don't add to $LIBS permanently.
25004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005 /* end confdefs.h. */
25006 #include <X11/Xlib.h>
25015 if ac_fn_c_try_link "$LINENO"; then :
25017 # We can link X programs with no special library path.
25021 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25023 # Don't even attempt the hair of trying to link an X program!
25024 for ac_extension in a so sl dylib la dll; do
25025 if test -r "$ac_dir/libX11.$ac_extension"; then
25026 ac_x_libraries=$ac_dir
25032 rm -f core conftest.err conftest.$ac_objext \
25033 conftest$ac_exeext conftest.$ac_ext
25034 fi # $ac_x_libraries = no
25036 case $ac_x_includes,$ac_x_libraries in #(
25037 no,* | *,no | *\'*)
25038 # Didn't find X, or a directory has "'" in its name.
25039 ac_cv_have_x="have_x=no";; #(
25041 # Record where we found X for the cache.
25042 ac_cv_have_x="have_x=yes\
25043 ac_x_includes='$ac_x_includes'\
25044 ac_x_libraries='$ac_x_libraries'"
25050 eval "$ac_cv_have_x"
25053 if test "$have_x" != yes; then
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25055 $as_echo "$have_x" >&6; }
25058 # If each of the values was on the command line, it overrides each guess.
25059 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25060 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25061 # Update the cache value to reflect the command line values.
25062 ac_cv_have_x="have_x=yes\
25063 ac_x_includes='$x_includes'\
25064 ac_x_libraries='$x_libraries'"
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25066 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25069 if test "$no_x" = yes; then
25070 # Not all programs may use this symbol, but it does not hurt to define it.
25072 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25074 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25076 if test -n "$x_includes"; then
25077 X_CFLAGS="$X_CFLAGS -I$x_includes"
25080 # It would also be nice to do this for all -L options, not just this one.
25081 if test -n "$x_libraries"; then
25082 X_LIBS="$X_LIBS -L$x_libraries"
25083 # For Solaris; some versions of Sun CC require a space after -R and
25084 # others require no space. Words are not sufficient . . . .
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25086 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25087 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25088 ac_xsave_c_werror_flag=$ac_c_werror_flag
25089 ac_c_werror_flag=yes
25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25091 /* end confdefs.h. */
25101 if ac_fn_c_try_link "$LINENO"; then :
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103 $as_echo "no" >&6; }
25104 X_LIBS="$X_LIBS -R$x_libraries"
25106 LIBS="$ac_xsave_LIBS -R $x_libraries"
25107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25108 /* end confdefs.h. */
25118 if ac_fn_c_try_link "$LINENO"; then :
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25120 $as_echo "yes" >&6; }
25121 X_LIBS="$X_LIBS -R $x_libraries"
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25124 $as_echo "neither works" >&6; }
25126 rm -f core conftest.err conftest.$ac_objext \
25127 conftest$ac_exeext conftest.$ac_ext
25129 rm -f core conftest.err conftest.$ac_objext \
25130 conftest$ac_exeext conftest.$ac_ext
25131 ac_c_werror_flag=$ac_xsave_c_werror_flag
25132 LIBS=$ac_xsave_LIBS
25135 # Check for system-dependent libraries X programs must link with.
25136 # Do this before checking for the system-independent R6 libraries
25137 # (-lICE), since we may need -lsocket or whatever for X linking.
25139 if test "$ISC" = yes; then
25140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25142 # Martyn Johnson says this is needed for Ultrix, if the X
25143 # libraries were built with DECnet support. And Karl Berry says
25144 # the Alpha needs dnet_stub (dnet does not exist).
25145 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25147 /* end confdefs.h. */
25149 /* Override any GCC internal prototype to avoid an error.
25150 Use char because int might match the return type of a GCC
25151 builtin and then its argument prototype would still apply. */
25155 char XOpenDisplay ();
25159 return XOpenDisplay ();
25164 if ac_fn_c_try_link "$LINENO"; then :
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25168 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25170 $as_echo_n "(cached) " >&6
25172 ac_check_lib_save_LIBS=$LIBS
25173 LIBS="-ldnet $LIBS"
25174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25175 /* end confdefs.h. */
25177 /* Override any GCC internal prototype to avoid an error.
25178 Use char because int might match the return type of a GCC
25179 builtin and then its argument prototype would still apply. */
25187 return dnet_ntoa ();
25192 if ac_fn_c_try_link "$LINENO"; then :
25193 ac_cv_lib_dnet_dnet_ntoa=yes
25195 ac_cv_lib_dnet_dnet_ntoa=no
25197 rm -f core conftest.err conftest.$ac_objext \
25198 conftest$ac_exeext conftest.$ac_ext
25199 LIBS=$ac_check_lib_save_LIBS
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25202 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25203 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25209 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25210 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25211 $as_echo_n "(cached) " >&6
25213 ac_check_lib_save_LIBS=$LIBS
25214 LIBS="-ldnet_stub $LIBS"
25215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25216 /* end confdefs.h. */
25218 /* Override any GCC internal prototype to avoid an error.
25219 Use char because int might match the return type of a GCC
25220 builtin and then its argument prototype would still apply. */
25228 return dnet_ntoa ();
25233 if ac_fn_c_try_link "$LINENO"; then :
25234 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25236 ac_cv_lib_dnet_stub_dnet_ntoa=no
25238 rm -f core conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
25240 LIBS=$ac_check_lib_save_LIBS
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25243 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25244 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25250 rm -f core conftest.err conftest.$ac_objext \
25251 conftest$ac_exeext conftest.$ac_ext
25252 LIBS="$ac_xsave_LIBS"
25254 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25255 # to get the SysV transport functions.
25256 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25258 # The nsl library prevents programs from opening the X display
25259 # on Irix 5.2, according to T.E. Dickey.
25260 # The functions gethostbyname, getservbyname, and inet_addr are
25261 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25262 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25263 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25267 if test $ac_cv_func_gethostbyname = no; then
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25269 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25270 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25273 ac_check_lib_save_LIBS=$LIBS
25275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h. */
25278 /* Override any GCC internal prototype to avoid an error.
25279 Use char because int might match the return type of a GCC
25280 builtin and then its argument prototype would still apply. */
25284 char gethostbyname ();
25288 return gethostbyname ();
25293 if ac_fn_c_try_link "$LINENO"; then :
25294 ac_cv_lib_nsl_gethostbyname=yes
25296 ac_cv_lib_nsl_gethostbyname=no
25298 rm -f core conftest.err conftest.$ac_objext \
25299 conftest$ac_exeext conftest.$ac_ext
25300 LIBS=$ac_check_lib_save_LIBS
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25303 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25304 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25308 if test $ac_cv_lib_nsl_gethostbyname = no; then
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25310 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25311 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25312 $as_echo_n "(cached) " >&6
25314 ac_check_lib_save_LIBS=$LIBS
25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317 /* end confdefs.h. */
25319 /* Override any GCC internal prototype to avoid an error.
25320 Use char because int might match the return type of a GCC
25321 builtin and then its argument prototype would still apply. */
25325 char gethostbyname ();
25329 return gethostbyname ();
25334 if ac_fn_c_try_link "$LINENO"; then :
25335 ac_cv_lib_bsd_gethostbyname=yes
25337 ac_cv_lib_bsd_gethostbyname=no
25339 rm -f core conftest.err conftest.$ac_objext \
25340 conftest$ac_exeext conftest.$ac_ext
25341 LIBS=$ac_check_lib_save_LIBS
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25344 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25345 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25352 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25353 # socket/setsockopt and other routines are undefined under SCO ODT
25354 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25355 # on later versions), says Simon Leinen: it contains gethostby*
25356 # variants that don't use the name server (or something). -lsocket
25357 # must be given before -lnsl if both are needed. We assume that
25358 # if connect needs -lnsl, so does gethostbyname.
25359 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25360 if test "x$ac_cv_func_connect" = x""yes; then :
25364 if test $ac_cv_func_connect = no; then
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25366 $as_echo_n "checking for connect in -lsocket... " >&6; }
25367 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25370 ac_check_lib_save_LIBS=$LIBS
25371 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373 /* end confdefs.h. */
25375 /* Override any GCC internal prototype to avoid an error.
25376 Use char because int might match the return type of a GCC
25377 builtin and then its argument prototype would still apply. */
25390 if ac_fn_c_try_link "$LINENO"; then :
25391 ac_cv_lib_socket_connect=yes
25393 ac_cv_lib_socket_connect=no
25395 rm -f core conftest.err conftest.$ac_objext \
25396 conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25400 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25401 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25402 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25407 # Guillermo Gomez says -lposix is necessary on A/UX.
25408 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25409 if test "x$ac_cv_func_remove" = x""yes; then :
25413 if test $ac_cv_func_remove = no; then
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25415 $as_echo_n "checking for remove in -lposix... " >&6; }
25416 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25417 $as_echo_n "(cached) " >&6
25419 ac_check_lib_save_LIBS=$LIBS
25420 LIBS="-lposix $LIBS"
25421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25422 /* end confdefs.h. */
25424 /* Override any GCC internal prototype to avoid an error.
25425 Use char because int might match the return type of a GCC
25426 builtin and then its argument prototype would still apply. */
25439 if ac_fn_c_try_link "$LINENO"; then :
25440 ac_cv_lib_posix_remove=yes
25442 ac_cv_lib_posix_remove=no
25444 rm -f core conftest.err conftest.$ac_objext \
25445 conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25449 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25450 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25456 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25457 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25458 if test "x$ac_cv_func_shmat" = x""yes; then :
25462 if test $ac_cv_func_shmat = no; then
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25464 $as_echo_n "checking for shmat in -lipc... " >&6; }
25465 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25466 $as_echo_n "(cached) " >&6
25468 ac_check_lib_save_LIBS=$LIBS
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h. */
25473 /* Override any GCC internal prototype to avoid an error.
25474 Use char because int might match the return type of a GCC
25475 builtin and then its argument prototype would still apply. */
25488 if ac_fn_c_try_link "$LINENO"; then :
25489 ac_cv_lib_ipc_shmat=yes
25491 ac_cv_lib_ipc_shmat=no
25493 rm -f core conftest.err conftest.$ac_objext \
25494 conftest$ac_exeext conftest.$ac_ext
25495 LIBS=$ac_check_lib_save_LIBS
25497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25498 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25499 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25506 # Check for libraries that X11R6 Xt/Xaw programs need.
25507 ac_save_LDFLAGS=$LDFLAGS
25508 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25509 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25510 # check for ICE first), but we must link in the order -lSM -lICE or
25511 # we get undefined symbols. So assume we have SM if we have ICE.
25512 # These have to be linked with before -lX11, unlike the other
25513 # libraries we check for below, so use a different variable.
25514 # John Interrante, Karl Berry
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25516 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25517 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25518 $as_echo_n "(cached) " >&6
25520 ac_check_lib_save_LIBS=$LIBS
25521 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25523 /* end confdefs.h. */
25525 /* Override any GCC internal prototype to avoid an error.
25526 Use char because int might match the return type of a GCC
25527 builtin and then its argument prototype would still apply. */
25531 char IceConnectionNumber ();
25535 return IceConnectionNumber ();
25540 if ac_fn_c_try_link "$LINENO"; then :
25541 ac_cv_lib_ICE_IceConnectionNumber=yes
25543 ac_cv_lib_ICE_IceConnectionNumber=no
25545 rm -f core conftest.err conftest.$ac_objext \
25546 conftest$ac_exeext conftest.$ac_ext
25547 LIBS=$ac_check_lib_save_LIBS
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25550 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25551 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25552 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25555 LDFLAGS=$ac_save_LDFLAGS
25559 if test "$no_x" != 'yes'; then
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25561 $as_echo "-------------------------------------------------------------" >&6; }
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25563 $as_echo_n "checking for X11... " >&6; }
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25566 LDFLAGS="$LDFLAGS $X_LIBS"
25567 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25568 LIBS="$X11_LIBS $LIBS"
25569 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25572 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25575 # Check for X11 shared memory extension
25577 # shmctl is required to support the shared memory extension
25578 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25579 if test "x$ac_cv_func_shmctl" = x""yes; then :
25583 if test "$have_shmctl" != 'yes'; then
25585 LIBS="$LIBS -lcygipc"
25586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25587 /* end confdefs.h. */
25589 /* Override any GCC internal prototype to avoid an error.
25590 Use char because int might match the return type of a GCC
25591 builtin and then its argument prototype would still apply. */
25604 if ac_fn_c_try_link "$LINENO"; then :
25605 have_shmctl='yes'; IPC_LIBS='-lcygipc'
25607 rm -f core conftest.err conftest.$ac_objext \
25608 conftest$ac_exeext conftest.$ac_ext
25612 if test "$have_shmctl" = 'yes'; then
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25614 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25615 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25618 ac_check_lib_save_LIBS=$LIBS
25619 LIBS="-lXext $LIBS"
25620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* end confdefs.h. */
25623 /* Override any GCC internal prototype to avoid an error.
25624 Use char because int might match the return type of a GCC
25625 builtin and then its argument prototype would still apply. */
25629 char XShmAttach ();
25633 return XShmAttach ();
25638 if ac_fn_c_try_link "$LINENO"; then :
25639 ac_cv_lib_Xext_XShmAttach=yes
25641 ac_cv_lib_Xext_XShmAttach=no
25643 rm -f core conftest.err conftest.$ac_objext \
25644 conftest$ac_exeext conftest.$ac_ext
25645 LIBS=$ac_check_lib_save_LIBS
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25648 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25649 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25650 XEXT_LIBS='-lXext' ;
25651 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25658 # Check for X11 shape extension
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25661 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25662 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25663 $as_echo_n "(cached) " >&6
25665 ac_check_lib_save_LIBS=$LIBS
25666 LIBS="-lXext $LIBS"
25667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25668 /* end confdefs.h. */
25670 /* Override any GCC internal prototype to avoid an error.
25671 Use char because int might match the return type of a GCC
25672 builtin and then its argument prototype would still apply. */
25676 char XShapeCombineMask ();
25680 return XShapeCombineMask ();
25685 if ac_fn_c_try_link "$LINENO"; then :
25686 ac_cv_lib_Xext_XShapeCombineMask=yes
25688 ac_cv_lib_Xext_XShapeCombineMask=no
25690 rm -f core conftest.err conftest.$ac_objext \
25691 conftest$ac_exeext conftest.$ac_ext
25692 LIBS=$ac_check_lib_save_LIBS
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25695 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25696 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25697 XEXT_LIBS='-lXext' ;
25698 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25703 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25704 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25705 $as_echo_n "(cached) " >&6
25707 ac_check_lib_save_LIBS=$LIBS
25709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25710 /* end confdefs.h. */
25712 /* Override any GCC internal prototype to avoid an error.
25713 Use char because int might match the return type of a GCC
25714 builtin and then its argument prototype would still apply. */
25718 char XtSetEventDispatcher ();
25722 return XtSetEventDispatcher ();
25727 if ac_fn_c_try_link "$LINENO"; then :
25728 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25730 ac_cv_lib_Xt_XtSetEventDispatcher=no
25732 rm -f core conftest.err conftest.$ac_objext \
25733 conftest$ac_exeext conftest.$ac_ext
25734 LIBS=$ac_check_lib_save_LIBS
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25737 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25738 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25742 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25744 if test "$no_x" != 'yes'; then
25749 if test "$have_x" = 'yes'; then
25751 X11_DELEGATE_FALSE='#'
25753 X11_DELEGATE_TRUE='#'
25754 X11_DELEGATE_FALSE=
25765 # Check whether --with-zlib was given.
25766 if test "${with_zlib+set}" = set; then :
25767 withval=$with_zlib; with_zlib=$withval
25773 if test "$with_zlib" != 'yes'; then
25774 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25779 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25781 $as_echo "-------------------------------------------------------------" >&6; }
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25783 $as_echo_n "checking for ZLIB... " >&6; }
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25789 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25790 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25791 passed=`expr $passed + 1`
25793 failed=`expr $failed + 1`
25797 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25798 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25799 passed=`expr $passed + 1`
25801 failed=`expr $failed + 1`
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25806 $as_echo_n "checking for compress in -lz... " >&6; }
25807 if test "${ac_cv_lib_z_compress+set}" = set; then :
25808 $as_echo_n "(cached) " >&6
25810 ac_check_lib_save_LIBS=$LIBS
25812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25813 /* end confdefs.h. */
25815 /* Override any GCC internal prototype to avoid an error.
25816 Use char because int might match the return type of a GCC
25817 builtin and then its argument prototype would still apply. */
25825 return compress ();
25830 if ac_fn_c_try_link "$LINENO"; then :
25831 ac_cv_lib_z_compress=yes
25833 ac_cv_lib_z_compress=no
25835 rm -f core conftest.err conftest.$ac_objext \
25836 conftest$ac_exeext conftest.$ac_ext
25837 LIBS=$ac_check_lib_save_LIBS
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25840 $as_echo "$ac_cv_lib_z_compress" >&6; }
25841 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25842 passed=`expr $passed + 1`
25844 failed=`expr $failed + 1`
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25848 $as_echo_n "checking for uncompress in -lz... " >&6; }
25849 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25850 $as_echo_n "(cached) " >&6
25852 ac_check_lib_save_LIBS=$LIBS
25854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25855 /* end confdefs.h. */
25857 /* Override any GCC internal prototype to avoid an error.
25858 Use char because int might match the return type of a GCC
25859 builtin and then its argument prototype would still apply. */
25863 char uncompress ();
25867 return uncompress ();
25872 if ac_fn_c_try_link "$LINENO"; then :
25873 ac_cv_lib_z_uncompress=yes
25875 ac_cv_lib_z_uncompress=no
25877 rm -f core conftest.err conftest.$ac_objext \
25878 conftest$ac_exeext conftest.$ac_ext
25879 LIBS=$ac_check_lib_save_LIBS
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25882 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25883 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25884 passed=`expr $passed + 1`
25886 failed=`expr $failed + 1`
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25890 $as_echo_n "checking for deflate in -lz... " >&6; }
25891 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25892 $as_echo_n "(cached) " >&6
25894 ac_check_lib_save_LIBS=$LIBS
25896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h. */
25899 /* Override any GCC internal prototype to avoid an error.
25900 Use char because int might match the return type of a GCC
25901 builtin and then its argument prototype would still apply. */
25914 if ac_fn_c_try_link "$LINENO"; then :
25915 ac_cv_lib_z_deflate=yes
25917 ac_cv_lib_z_deflate=no
25919 rm -f core conftest.err conftest.$ac_objext \
25920 conftest$ac_exeext conftest.$ac_ext
25921 LIBS=$ac_check_lib_save_LIBS
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25924 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25925 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25926 passed=`expr $passed + 1`
25928 failed=`expr $failed + 1`
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25932 $as_echo_n "checking for inflate in -lz... " >&6; }
25933 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25934 $as_echo_n "(cached) " >&6
25936 ac_check_lib_save_LIBS=$LIBS
25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h. */
25941 /* Override any GCC internal prototype to avoid an error.
25942 Use char because int might match the return type of a GCC
25943 builtin and then its argument prototype would still apply. */
25956 if ac_fn_c_try_link "$LINENO"; then :
25957 ac_cv_lib_z_inflate=yes
25959 ac_cv_lib_z_inflate=no
25961 rm -f core conftest.err conftest.$ac_objext \
25962 conftest$ac_exeext conftest.$ac_ext
25963 LIBS=$ac_check_lib_save_LIBS
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25966 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25967 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25968 passed=`expr $passed + 1`
25970 failed=`expr $failed + 1`
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25974 $as_echo_n "checking for gzseek in -lz... " >&6; }
25975 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25976 $as_echo_n "(cached) " >&6
25978 ac_check_lib_save_LIBS=$LIBS
25980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981 /* end confdefs.h. */
25983 /* Override any GCC internal prototype to avoid an error.
25984 Use char because int might match the return type of a GCC
25985 builtin and then its argument prototype would still apply. */
25998 if ac_fn_c_try_link "$LINENO"; then :
25999 ac_cv_lib_z_gzseek=yes
26001 ac_cv_lib_z_gzseek=no
26003 rm -f core conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
26005 LIBS=$ac_check_lib_save_LIBS
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26008 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26009 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26010 passed=`expr $passed + 1`
26012 failed=`expr $failed + 1`
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26016 $as_echo_n "checking for gztell in -lz... " >&6; }
26017 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26020 ac_check_lib_save_LIBS=$LIBS
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h. */
26025 /* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26040 if ac_fn_c_try_link "$LINENO"; then :
26041 ac_cv_lib_z_gztell=yes
26043 ac_cv_lib_z_gztell=no
26045 rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
26047 LIBS=$ac_check_lib_save_LIBS
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26050 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26051 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26052 passed=`expr $passed + 1`
26054 failed=`expr $failed + 1`
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26058 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26059 if test $passed -gt 0; then
26060 if test $failed -gt 0; then
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26062 $as_echo "no -- some components failed test" >&6; }
26063 have_zlib='no (failed tests)'
26066 LIBS="$ZLIB_LIBS $LIBS"
26068 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26071 $as_echo "yes" >&6; }
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26076 $as_echo "no" >&6; }
26079 if test "$have_zlib" = 'yes'; then
26080 ZLIB_DELEGATE_TRUE=
26081 ZLIB_DELEGATE_FALSE='#'
26083 ZLIB_DELEGATE_TRUE='#'
26084 ZLIB_DELEGATE_FALSE=
26090 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26093 if test "$enable_profiling" = 'yes'; then
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26095 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26099 ac_check_lib_save_LIBS=$LIBS
26101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26102 /* end confdefs.h. */
26104 /* Override any GCC internal prototype to avoid an error.
26105 Use char because int might match the return type of a GCC
26106 builtin and then its argument prototype would still apply. */
26119 if ac_fn_c_try_link "$LINENO"; then :
26120 ac_cv_lib_dl_dlopen=yes
26122 ac_cv_lib_dl_dlopen=no
26124 rm -f core conftest.err conftest.$ac_objext \
26125 conftest$ac_exeext conftest.$ac_ext
26126 LIBS=$ac_check_lib_save_LIBS
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26129 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26130 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26134 LIBS="$LIB_DL $LIBS"
26140 # Check for Autotrace delegate library.
26143 # Check whether --with-autotrace was given.
26144 if test "${with_autotrace+set}" = set; then :
26145 withval=$with_autotrace; with_autotrace=$withval
26147 with_autotrace='no'
26151 if test "$with_autotrace" != 'yes'; then
26152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26155 have_autotrace='no'
26156 AUTOTRACE_CFLAGS=""
26159 if test "x$with_autotrace" = "xyes"; then
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26161 $as_echo "-------------------------------------------------------------" >&6; }
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26165 $as_echo_n "checking for AUTOTRACE... " >&6; }
26167 if test -n "$AUTOTRACE_CFLAGS"; then
26168 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26169 elif test -n "$PKG_CONFIG"; then
26170 if test -n "$PKG_CONFIG" && \
26171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26172 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26175 test $ac_status = 0; }; then
26176 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26183 if test -n "$AUTOTRACE_LIBS"; then
26184 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26185 elif test -n "$PKG_CONFIG"; then
26186 if test -n "$PKG_CONFIG" && \
26187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26188 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; then
26192 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26202 if test $pkg_failed = yes; then
26204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26205 _pkg_short_errors_supported=yes
26207 _pkg_short_errors_supported=no
26209 if test $_pkg_short_errors_supported = yes; then
26210 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26212 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26214 # Put the nasty error message in config.log where it belongs
26215 echo "$AUTOTRACE_PKG_ERRORS" >&5
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218 $as_echo "no" >&6; }
26220 elif test $pkg_failed = untried; then
26223 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26224 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26226 $as_echo "yes" >&6; }
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26233 if test "$have_autotrace" = 'yes'; then
26236 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26238 if test "$with_modules" = 'no'; then
26239 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26243 if test "$have_autotrace" = 'yes'; then
26244 AUTOTRACE_DELEGATE_TRUE=
26245 AUTOTRACE_DELEGATE_FALSE='#'
26247 AUTOTRACE_DELEGATE_TRUE='#'
26248 AUTOTRACE_DELEGATE_FALSE=
26256 # Check for Display Postscript delegate library.
26259 # Check whether --with-dps was given.
26260 if test "${with_dps+set}" = set; then :
26261 withval=$with_dps; with_dps=$withval
26267 if test "$with_dps" != 'yes'; then
26268 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26273 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26275 $as_echo "-------------------------------------------------------------" >&6; }
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26277 $as_echo_n "checking for DPS... " >&6; }
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26282 PERSIST_CPPFLAGS="$CPPFLAGS"
26283 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26284 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26285 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26286 passed=`expr $passed + 1`
26288 failed=`expr $failed + 1`
26293 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26294 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26295 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26296 # ImageMagick itself doesn't use -lXt.
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26300 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26301 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26302 $as_echo_n "(cached) " >&6
26304 ac_check_lib_save_LIBS=$LIBS
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26309 /* Override any GCC internal prototype to avoid an error.
26310 Use char because int might match the return type of a GCC
26311 builtin and then its argument prototype would still apply. */
26315 char DPSInitialize ();
26319 return DPSInitialize ();
26324 if ac_fn_c_try_link "$LINENO"; then :
26325 ac_cv_lib_dps_DPSInitialize=yes
26327 ac_cv_lib_dps_DPSInitialize=no
26329 rm -f core conftest.err conftest.$ac_objext \
26330 conftest$ac_exeext conftest.$ac_ext
26331 LIBS=$ac_check_lib_save_LIBS
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26334 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26335 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26341 if test "$have_libdps" != 'yes'; then
26342 # Unset cache variable so we can try again.
26343 unset ac_cv_lib_dps_DPSInitialize
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26345 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26346 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26349 ac_check_lib_save_LIBS=$LIBS
26350 LIBS="-ldps -lXt $LIBS"
26351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h. */
26354 /* Override any GCC internal prototype to avoid an error.
26355 Use char because int might match the return type of a GCC
26356 builtin and then its argument prototype would still apply. */
26360 char DPSInitialize ();
26364 return DPSInitialize ();
26369 if ac_fn_c_try_link "$LINENO"; then :
26370 ac_cv_lib_dps_DPSInitialize=yes
26372 ac_cv_lib_dps_DPSInitialize=no
26374 rm -f core conftest.err conftest.$ac_objext \
26375 conftest$ac_exeext conftest.$ac_ext
26376 LIBS=$ac_check_lib_save_LIBS
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26379 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26380 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26386 if test "$have_libdps" = 'yes'; then
26390 if test "$have_libdps" = 'yes'; then
26391 passed=`expr $passed + 1`
26393 failed=`expr $failed + 1`
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26396 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26397 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26398 $as_echo_n "(cached) " >&6
26400 ac_check_lib_save_LIBS=$LIBS
26401 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403 /* end confdefs.h. */
26405 /* Override any GCC internal prototype to avoid an error.
26406 Use char because int might match the return type of a GCC
26407 builtin and then its argument prototype would still apply. */
26411 char XDPSPixelsPerPoint ();
26415 return XDPSPixelsPerPoint ();
26420 if ac_fn_c_try_link "$LINENO"; then :
26421 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26423 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26425 rm -f core conftest.err conftest.$ac_objext \
26426 conftest$ac_exeext conftest.$ac_ext
26427 LIBS=$ac_check_lib_save_LIBS
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26430 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26431 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26432 passed=`expr $passed + 1`
26434 failed=`expr $failed + 1`
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26438 $as_echo_n "checking if DPS package is complete... " >&6; }
26439 if test $passed -gt 0; then
26440 if test $failed -gt 0; then
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26442 $as_echo "no -- some components failed test" >&6; }
26443 have_dps='no (failed tests)'
26444 CPPFLAGS="$PERSIST_CPPFLAGS"
26446 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26447 LIBS="$DPS_LIBS $LIBS"
26449 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26452 $as_echo "yes" >&6; }
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26457 $as_echo "no" >&6; }
26458 CPPFLAGS=$PERSIST_CPPFLAGS
26461 if test "$have_dps" = 'yes'; then
26463 DPS_DELEGATE_FALSE='#'
26465 DPS_DELEGATE_TRUE='#'
26466 DPS_DELEGATE_FALSE=
26473 # Check for DJVU delegate library.
26476 # Check whether --with-djvu was given.
26477 if test "${with_djvu+set}" = set; then :
26478 withval=$with_djvu; with_djvu=$withval
26484 if test "$with_djvu" != 'yes'; then
26485 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26490 if test "$with_djvu" != 'no'; then
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26492 $as_echo "-------------------------------------------------------------" >&6; }
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26494 $as_echo_n "checking for DJVU... " >&6; }
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26499 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26500 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26501 passed=`expr $passed + 1`
26503 failed=`expr $failed + 1`
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26508 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26509 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26510 $as_echo_n "(cached) " >&6
26512 ac_check_lib_save_LIBS=$LIBS
26513 LIBS="-ldjvulibre $LIBS"
26514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26515 /* end confdefs.h. */
26517 /* Override any GCC internal prototype to avoid an error.
26518 Use char because int might match the return type of a GCC
26519 builtin and then its argument prototype would still apply. */
26523 char ddjvu_context_create ();
26527 return ddjvu_context_create ();
26532 if ac_fn_c_try_link "$LINENO"; then :
26533 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26535 ac_cv_lib_djvulibre_ddjvu_context_create=no
26537 rm -f core conftest.err conftest.$ac_objext \
26538 conftest$ac_exeext conftest.$ac_ext
26539 LIBS=$ac_check_lib_save_LIBS
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26542 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26543 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26544 passed=`expr $passed + 1`
26546 failed=`expr $failed + 1`
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26550 $as_echo_n "checking if DJVU package is complete... " >&6; }
26551 if test $passed -gt 0; then
26552 if test $failed -gt 0; then
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26554 $as_echo "no -- some components failed test" >&6; }
26555 have_djvu='no (failed tests)'
26557 DJVU_LIBS='-ldjvulibre'
26558 LIBS="$DJVU_LIBS $LIBS"
26560 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26563 $as_echo "yes" >&6; }
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26568 $as_echo "no" >&6; }
26571 if test "$have_djvu" = 'yes'; then
26572 DJVU_DELEGATE_TRUE=
26573 DJVU_DELEGATE_FALSE='#'
26575 DJVU_DELEGATE_TRUE='#'
26576 DJVU_DELEGATE_FALSE=
26583 # Set DejaVu font directory.
26586 # Check whether --with-dejavu-font-dir was given.
26587 if test "${with_dejavu_font_dir+set}" = set; then :
26588 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26590 with_dejavu_font_dir='default'
26594 if test "$with_dejavu_font_dir" != 'default'; then
26595 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26600 # Check for FFTW delegate library.
26603 # Check whether --with-fftw was given.
26604 if test "${with_fftw+set}" = set; then :
26605 withval=$with_fftw; with_fftw=$withval
26611 if test "$with_fftw" != 'yes'; then
26612 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26617 if test "$with_fftw" != 'no'; then
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26619 $as_echo "-------------------------------------------------------------" >&6; }
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26621 $as_echo_n "checking for FFTW... " >&6; }
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26626 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26627 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26628 passed=`expr $passed + 1`
26630 failed=`expr $failed + 1`
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26635 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26636 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26637 $as_echo_n "(cached) " >&6
26639 ac_check_lib_save_LIBS=$LIBS
26640 LIBS="-lfftw3 $LIBS"
26641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26642 /* end confdefs.h. */
26644 /* Override any GCC internal prototype to avoid an error.
26645 Use char because int might match the return type of a GCC
26646 builtin and then its argument prototype would still apply. */
26650 char fftw_execute ();
26654 return fftw_execute ();
26659 if ac_fn_c_try_link "$LINENO"; then :
26660 ac_cv_lib_fftw3_fftw_execute=yes
26662 ac_cv_lib_fftw3_fftw_execute=no
26664 rm -f core conftest.err conftest.$ac_objext \
26665 conftest$ac_exeext conftest.$ac_ext
26666 LIBS=$ac_check_lib_save_LIBS
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26669 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26670 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26671 passed=`expr $passed + 1`
26673 failed=`expr $failed + 1`
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26677 $as_echo_n "checking if FFTW package is complete... " >&6; }
26678 if test $passed -gt 0; then
26679 if test $failed -gt 0; then
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26681 $as_echo "no -- some components failed test" >&6; }
26682 have_fftw='no (failed tests)'
26684 FFTW_LIBS='-lfftw3'
26685 LIBS="$FFTW_LIBS $LIBS"
26687 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26690 $as_echo "yes" >&6; }
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26695 $as_echo "no" >&6; }
26698 if test "$have_fftw" = 'yes'; then
26699 FFTW_DELEGATE_TRUE=
26700 FFTW_DELEGATE_FALSE='#'
26702 FFTW_DELEGATE_TRUE='#'
26703 FFTW_DELEGATE_FALSE=
26710 # Check for FlashPIX delegate library.
26713 # Check whether --with-fpx was given.
26714 if test "${with_fpx+set}" = set; then :
26715 withval=$with_fpx; with_fpx=$withval
26721 if test "$with_fpx" != 'yes'; then
26722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26727 if test "$with_fpx" != 'no'; then
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26729 $as_echo "-------------------------------------------------------------" >&6; }
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26731 $as_echo_n "checking for FlashPIX... " >&6; }
26732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26737 ac_cpp='$CXXCPP $CPPFLAGS'
26738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26743 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26744 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26745 passed=`expr $passed + 1`
26747 failed=`expr $failed + 1`
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26752 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26753 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26754 $as_echo_n "(cached) " >&6
26756 ac_check_lib_save_LIBS=$LIBS
26758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26759 /* end confdefs.h. */
26761 /* Override any GCC internal prototype to avoid an error.
26762 Use char because int might match the return type of a GCC
26763 builtin and then its argument prototype would still apply. */
26767 char FPX_OpenImageByFilename ();
26771 return FPX_OpenImageByFilename ();
26776 if ac_fn_cxx_try_link "$LINENO"; then :
26777 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26779 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26781 rm -f core conftest.err conftest.$ac_objext \
26782 conftest$ac_exeext conftest.$ac_ext
26783 LIBS=$ac_check_lib_save_LIBS
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26786 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26787 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26788 passed=`expr $passed + 1`
26790 failed=`expr $failed + 1`
26794 ac_cpp='$CPP $CPPFLAGS'
26795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26800 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26801 if test $passed -gt 0; then
26802 if test $failed -gt 0; then
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26804 $as_echo "no -- some components failed test" >&6; }
26805 have_fpx='no (failed tests)'
26809 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26812 $as_echo "yes" >&6; }
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26818 $as_echo "no" >&6; }
26821 if test "$have_fpx" = 'yes'; then
26823 FPX_DELEGATE_FALSE='#'
26825 FPX_DELEGATE_TRUE='#'
26826 FPX_DELEGATE_FALSE=
26833 # Check for fontconfig delegate library.
26836 # Check whether --with-fontconfig was given.
26837 if test "${with_fontconfig+set}" = set; then :
26838 withval=$with_fontconfig; with_fontconfig=$withval
26840 with_fontconfig=$have_x
26844 if test "$with_fontconfig" != 'yes'; then
26845 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26848 have_fontconfig='no'
26849 FONTCONFIG_CFLAGS=""
26852 if test "x$with_fontconfig" = "xyes"; then
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26854 $as_echo "-------------------------------------------------------------" >&6; }
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26858 $as_echo_n "checking for FONTCONFIG... " >&6; }
26860 if test -n "$FONTCONFIG_CFLAGS"; then
26861 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26862 elif test -n "$PKG_CONFIG"; then
26863 if test -n "$PKG_CONFIG" && \
26864 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26865 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868 test $ac_status = 0; }; then
26869 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26876 if test -n "$FONTCONFIG_LIBS"; then
26877 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26878 elif test -n "$PKG_CONFIG"; then
26879 if test -n "$PKG_CONFIG" && \
26880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26881 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; then
26885 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26895 if test $pkg_failed = yes; then
26897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26898 _pkg_short_errors_supported=yes
26900 _pkg_short_errors_supported=no
26902 if test $_pkg_short_errors_supported = yes; then
26903 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26905 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26907 # Put the nasty error message in config.log where it belongs
26908 echo "$FONTCONFIG_PKG_ERRORS" >&5
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26911 $as_echo "no" >&6; }
26913 elif test $pkg_failed = untried; then
26916 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26917 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26919 $as_echo "yes" >&6; }
26920 have_fontconfig=yes
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26926 if test "$have_fontconfig" = 'yes'; then
26928 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26930 if test "$with_modules" = 'no'; then
26931 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26935 if test "$have_fontconfig" = 'yes'; then
26936 FONTCONFIG_DELEGATE_TRUE=
26937 FONTCONFIG_DELEGATE_FALSE='#'
26939 FONTCONFIG_DELEGATE_TRUE='#'
26940 FONTCONFIG_DELEGATE_FALSE=
26948 # Check for freetype delegate library.
26951 # Check whether --with-freetype was given.
26952 if test "${with_freetype+set}" = set; then :
26953 withval=$with_freetype; with_freetype=$withval
26955 with_freetype='yes'
26960 if test "$with_freetype" != 'yes'; then
26961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26966 if test "$with_freetype" != 'no'; then
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26968 $as_echo "-------------------------------------------------------------" >&6; }
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26970 $as_echo_n "checking for FreeType 2.0... " >&6; }
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26975 PERSIST_LIBS="$LIBS"
26976 PERSIST_CPPFLAGS="$CPPFLAGS"
26977 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26981 for ac_prog in freetype-config
26983 # Extract the first word of "$ac_prog", so it can be a program name with args.
26984 set dummy $ac_prog; ac_word=$2
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26986 $as_echo_n "checking for $ac_word... " >&6; }
26987 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26988 $as_echo_n "(cached) " >&6
26990 if test -n "$freetype_config"; then
26991 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26994 for as_dir in $PATH
26997 test -z "$as_dir" && as_dir=.
26998 for ac_exec_ext in '' $ac_executable_extensions; do
26999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27000 ac_cv_prog_freetype_config="$ac_prog"
27001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27010 freetype_config=$ac_cv_prog_freetype_config
27011 if test -n "$freetype_config"; then
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27013 $as_echo "$freetype_config" >&6; }
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27016 $as_echo "no" >&6; }
27020 test -n "$freetype_config" && break
27022 if test -n "$freetype_config"; then
27023 freetype_cflags=`$freetype_config --cflags`
27024 freetype_libs=`$freetype_config --libs`
27025 LIBS="$LIBS $freetype_libs"
27026 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27030 if test "$FREETYPE_LIBS" = ''; then
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27032 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27033 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27034 $as_echo_n "(cached) " >&6
27036 ac_check_lib_save_LIBS=$LIBS
27037 LIBS="-lfreetype $LIBS"
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h. */
27041 /* Override any GCC internal prototype to avoid an error.
27042 Use char because int might match the return type of a GCC
27043 builtin and then its argument prototype would still apply. */
27047 char FT_Init_FreeType ();
27051 return FT_Init_FreeType ();
27056 if ac_fn_c_try_link "$LINENO"; then :
27057 ac_cv_lib_freetype_FT_Init_FreeType=yes
27059 ac_cv_lib_freetype_FT_Init_FreeType=no
27061 rm -f core conftest.err conftest.$ac_objext \
27062 conftest$ac_exeext conftest.$ac_ext
27063 LIBS=$ac_check_lib_save_LIBS
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27066 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27067 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27068 FREETYPE_LIBS='-lfreetype'
27071 if test "$FREETYPE_LIBS" != ''; then
27072 passed=`expr $passed + 1`
27074 failed=`expr $failed + 1`
27075 LIBS="$PERSIST_LIBS"
27079 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27080 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27081 FT2BUILD_H='#include <ft2build.h>'
27087 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27089 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27090 have_freetype_h='yes'
27092 have_freetype_h='no'
27096 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27097 passed=`expr $passed + 1`
27099 failed=`expr $failed + 1`
27100 CPPFLAGS="$PERSIST_CPPFLAGS"
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27104 $as_echo_n "checking if FreeType package is complete... " >&6; }
27105 if test $passed -gt 0; then
27106 if test $failed -gt 0; then
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27109 $as_echo "no -- some components failed test" >&6; }
27110 have_freetype='no (failed tests)'
27112 LIBS="$FREETYPE_LIBS $LIBS"
27114 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27116 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27118 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27122 $as_echo "yes" >&6; }
27123 have_freetype='yes'
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27127 $as_echo "no" >&6; }
27130 if test "$have_freetype" = 'yes'; then
27131 FREETYPE_DELEGATE_TRUE=
27132 FREETYPE_DELEGATE_FALSE='#'
27134 FREETYPE_DELEGATE_TRUE='#'
27135 FREETYPE_DELEGATE_FALSE=
27143 # Check for Ghostscript library or framework.
27145 # Test for iapi.h & test for gsapi_new_instance in -lgs
27146 # or -framework Ghostscript
27149 # Check whether --with-gslib was given.
27150 if test "${with_gslib+set}" = set; then :
27151 withval=$with_gslib; with_gslib=$withval
27157 gslib_framework='no'
27158 if test "$with_gslib" != 'yes'; then
27159 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27164 if test "$with_gslib" != 'no'; then
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27166 $as_echo "-------------------------------------------------------------" >&6; }
27167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27168 $as_echo_n "checking for Ghostscript... " >&6; }
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27174 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27175 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27176 passed=`expr $passed + 1`
27178 failed=`expr $failed + 1`
27182 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27183 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27184 passed=`expr $passed + 1`
27186 failed=`expr $failed + 1`
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27191 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27192 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27193 $as_echo_n "(cached) " >&6
27195 ac_check_framework_save_LIBS=$LIBS
27196 LIBS="-framework Ghostscript $LIBS"
27197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27198 /* end confdefs.h. */
27200 /* Override any GCC internal prototype to avoid an error.
27201 Use char because int might match the return type of a GCC
27202 builtin and then its argument prototype would still apply. */
27206 char gsapi_new_instance ();
27210 return gsapi_new_instance ();
27215 if ac_fn_c_try_link "$LINENO"; then :
27216 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27218 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27220 rm -f core conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
27222 LIBS=$ac_check_framework_save_LIBS
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27225 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27226 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27227 framework=`expr $framework + 1`
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27230 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27231 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27232 $as_echo_n "(cached) " >&6
27234 ac_check_lib_save_LIBS=$LIBS
27236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27237 /* end confdefs.h. */
27239 /* Override any GCC internal prototype to avoid an error.
27240 Use char because int might match the return type of a GCC
27241 builtin and then its argument prototype would still apply. */
27245 char gsapi_new_instance ();
27249 return gsapi_new_instance ();
27254 if ac_fn_c_try_link "$LINENO"; then :
27255 ac_cv_lib_gs_gsapi_new_instance=yes
27257 ac_cv_lib_gs_gsapi_new_instance=no
27259 rm -f core conftest.err conftest.$ac_objext \
27260 conftest$ac_exeext conftest.$ac_ext
27261 LIBS=$ac_check_lib_save_LIBS
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27264 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27265 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27266 passed=`expr $passed + 1`
27268 failed=`expr $failed + 1`
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27273 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27274 if test $passed -gt 0; then
27275 if test $failed -gt 0; then
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27277 $as_echo "no -- some components failed test" >&6; }
27278 have_gslib='no (failed tests)'
27280 if test $framework -gt 0; then
27281 GS_LIBS='-framework Ghostscript'
27282 gslib_framework='yes'
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27284 $as_echo "yes, using framework." >&6; }
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27287 $as_echo "yes, using library." >&6; }
27290 LIBS="$GS_LIBS $LIBS"
27292 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27298 $as_echo "no" >&6; }
27301 if test "$have_gslib" = 'yes'; then
27303 GS_DELEGATE_FALSE='#'
27305 GS_DELEGATE_TRUE='#'
27311 # Set default font search path
27313 # Check whether --with-fontpath was given.
27314 if test "${with_fontpath+set}" = set; then :
27315 withval=$with_fontpath; with_fontpath=$withval
27321 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27325 cat >>confdefs.h <<_ACEOF
27326 #define MAGICK_FONT_PATH "$with_fontpath"
27330 if test "$with_fontpath=" != ''; then
27331 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27334 # Set Ghostscript font directory
27336 # Check whether --with-gs-font-dir was given.
27337 if test "${with_gs_font_dir+set}" = set; then :
27338 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27340 with_gs_font_dir='default'
27344 if test "$with_gs_font_dir" != 'default'; then
27345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27350 # Check for GVC delegate library.
27353 # Check whether --with-gvc was given.
27354 if test "${with_gvc+set}" = set; then :
27355 withval=$with_gvc; with_gvc=$withval
27361 if test "$with_gvc" != 'yes'; then
27362 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27366 if test "x$with_gvc" = "xyes"; then
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27368 $as_echo "-------------------------------------------------------------" >&6; }
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27372 $as_echo_n "checking for GVC... " >&6; }
27374 if test -n "$GVC_CFLAGS"; then
27375 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27376 elif test -n "$PKG_CONFIG"; then
27377 if test -n "$PKG_CONFIG" && \
27378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27379 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27382 test $ac_status = 0; }; then
27383 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27390 if test -n "$GVC_LIBS"; then
27391 pkg_cv_GVC_LIBS="$GVC_LIBS"
27392 elif test -n "$PKG_CONFIG"; then
27393 if test -n "$PKG_CONFIG" && \
27394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27395 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27398 test $ac_status = 0; }; then
27399 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27409 if test $pkg_failed = yes; then
27411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27412 _pkg_short_errors_supported=yes
27414 _pkg_short_errors_supported=no
27416 if test $_pkg_short_errors_supported = yes; then
27417 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27419 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27421 # Put the nasty error message in config.log where it belongs
27422 echo "$GVC_PKG_ERRORS" >&5
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27425 $as_echo "no" >&6; }
27427 elif test $pkg_failed = untried; then
27430 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27431 GVC_LIBS=$pkg_cv_GVC_LIBS
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27433 $as_echo "yes" >&6; }
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27440 if test "$have_gvc" = 'yes'; then
27442 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27444 if test "$with_modules" = 'no'; then
27445 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27449 if test "$have_gvc" = 'yes'; then
27451 GVC_DELEGATE_FALSE='#'
27453 GVC_DELEGATE_TRUE='#'
27454 GVC_DELEGATE_FALSE=
27462 # Check for JBIG delegate library.
27466 # Check whether --with-jbig was given.
27467 if test "${with_jbig+set}" = set; then :
27468 withval=$with_jbig; with_jbig=$withval
27476 if test "$with_jbig" != 'no'; then
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27478 $as_echo "-------------------------------------------------------------" >&6; }
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27480 $as_echo_n "checking for JBIG... " >&6; }
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27485 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27486 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27487 passed=`expr $passed + 1`
27489 failed=`expr $failed + 1`
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27494 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27495 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27496 $as_echo_n "(cached) " >&6
27498 ac_check_lib_save_LIBS=$LIBS
27499 LIBS="-ljbig $LIBS"
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27503 /* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27509 char jbg_dec_init ();
27513 return jbg_dec_init ();
27518 if ac_fn_c_try_link "$LINENO"; then :
27519 ac_cv_lib_jbig_jbg_dec_init=yes
27521 ac_cv_lib_jbig_jbg_dec_init=no
27523 rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
27525 LIBS=$ac_check_lib_save_LIBS
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27528 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27529 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27530 passed=`expr $passed + 1`
27532 failed=`expr $failed + 1`
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27536 $as_echo_n "checking if JBIG package is complete... " >&6; }
27537 if test $passed -gt 0; then
27538 if test $failed -gt 0; then
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27540 $as_echo "no -- some components failed test" >&6; }
27541 have_jbig='no (failed tests)'
27544 LIBS="$JBIG_LIBS $LIBS"
27546 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27549 $as_echo "yes" >&6; }
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27554 $as_echo "no" >&6; }
27557 if test "$have_jbig" = 'yes'; then
27558 JBIG_DELEGATE_TRUE=
27559 JBIG_DELEGATE_FALSE='#'
27561 JBIG_DELEGATE_TRUE='#'
27562 JBIG_DELEGATE_FALSE=
27569 # Check for JPEG delegate library.
27572 # Check whether --with-jpeg was given.
27573 if test "${with_jpeg+set}" = set; then :
27574 withval=$with_jpeg; with_jpeg=$withval
27580 if test "$with_jpeg" != 'yes'; then
27581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27586 if test "$with_jpeg" != 'no'; then
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27588 $as_echo "-------------------------------------------------------------" >&6; }
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27590 $as_echo_n "checking for JPEG... " >&6; }
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27595 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27596 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27597 passed=`expr $passed + 1`
27599 failed=`expr $failed + 1`
27603 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27604 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27605 passed=`expr $passed + 1`
27607 failed=`expr $failed + 1`
27611 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27612 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27613 passed=`expr $passed + 1`
27615 failed=`expr $failed + 1`
27619 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27620 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27621 passed=`expr $passed + 1`
27623 failed=`expr $failed + 1`
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27628 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27629 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27630 $as_echo_n "(cached) " >&6
27632 ac_check_lib_save_LIBS=$LIBS
27633 LIBS="-ljpeg $LIBS"
27634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27635 /* end confdefs.h. */
27637 /* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27643 char jpeg_read_header ();
27647 return jpeg_read_header ();
27652 if ac_fn_c_try_link "$LINENO"; then :
27653 ac_cv_lib_jpeg_jpeg_read_header=yes
27655 ac_cv_lib_jpeg_jpeg_read_header=no
27657 rm -f core conftest.err conftest.$ac_objext \
27658 conftest$ac_exeext conftest.$ac_ext
27659 LIBS=$ac_check_lib_save_LIBS
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27662 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27663 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27664 passed=`expr $passed + 1`
27666 failed=`expr $failed + 1`
27670 # Test for compatible JPEG library
27671 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27673 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27674 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27675 $as_echo_n "(cached) " >&6
27677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27678 /* end confdefs.h. */
27680 #include <stdlib.h>
27681 #include <jpeglib.h>
27687 #if JPEG_LIB_VERSION < 62
27688 #error IJG JPEG library must be version 6b or newer!
27696 if ac_fn_c_try_compile "$LINENO"; then :
27697 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27699 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27704 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27707 $as_echo_n "checking if JPEG package is complete... " >&6; }
27708 if test $passed -gt 0; then
27709 if test $failed -gt 0; then
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27711 $as_echo "no -- some components failed test" >&6; }
27712 have_jpeg='no (failed tests)'
27715 LIBS="$JPEG_LIBS $LIBS"
27717 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27720 $as_echo "yes" >&6; }
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27725 $as_echo "no" >&6; }
27728 if test "$have_jpeg" = 'yes'; then
27729 JPEG_DELEGATE_TRUE=
27730 JPEG_DELEGATE_FALSE='#'
27732 JPEG_DELEGATE_TRUE='#'
27733 JPEG_DELEGATE_FALSE=
27740 # Check for JPEG Version 2 delegate library.
27743 # Check whether --with-jp2 was given.
27744 if test "${with_jp2+set}" = set; then :
27745 withval=$with_jp2; with_jp2=$withval
27751 if test "$with_jp2" != 'yes'; then
27752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27757 if test "$with_jp2" != 'no'; then
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27759 $as_echo "-------------------------------------------------------------" >&6; }
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27761 $as_echo_n "checking for JPEG Version 2... " >&6; }
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27766 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27767 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27768 passed=`expr $passed + 1`
27770 failed=`expr $failed + 1`
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27775 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27776 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27777 $as_echo_n "(cached) " >&6
27779 ac_check_lib_save_LIBS=$LIBS
27780 LIBS="-ljasper $LIBS"
27781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27782 /* end confdefs.h. */
27784 /* Override any GCC internal prototype to avoid an error.
27785 Use char because int might match the return type of a GCC
27786 builtin and then its argument prototype would still apply. */
27790 char jas_stream_fopen ();
27794 return jas_stream_fopen ();
27799 if ac_fn_c_try_link "$LINENO"; then :
27800 ac_cv_lib_jasper_jas_stream_fopen=yes
27802 ac_cv_lib_jasper_jas_stream_fopen=no
27804 rm -f core conftest.err conftest.$ac_objext \
27805 conftest$ac_exeext conftest.$ac_ext
27806 LIBS=$ac_check_lib_save_LIBS
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27809 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27810 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27811 passed=`expr $passed + 1`
27813 failed=`expr $failed + 1`
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27817 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27818 if test $passed -gt 0; then
27819 if test $failed -gt 0; then
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27821 $as_echo "no -- some components failed test" >&6; }
27822 have_jp2='no (failed tests)'
27824 JP2_LIBS='-ljasper'
27825 LIBS="$JP2_LIBS $LIBS"
27827 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27830 $as_echo "yes" >&6; }
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27835 $as_echo "no" >&6; }
27838 if test "$have_jp2" = 'yes'; then
27840 JP2_DELEGATE_FALSE='#'
27842 JP2_DELEGATE_TRUE='#'
27843 JP2_DELEGATE_FALSE=
27850 # Check for LCMS delegate library.
27854 # Check whether --with-lcms was given.
27855 if test "${with_lcms+set}" = set; then :
27856 withval=$with_lcms; with_lcms=$withval
27861 if test "$with_lcms" != 'yes' ; then
27862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27867 # Check whether --with-lcms2 was given.
27868 if test "${with_lcms2+set}" = set; then :
27869 withval=$with_lcms2; with_lcms2=$withval
27874 if test "$with_lcms2" != 'yes' ; then
27875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27880 if test "$with_lcms2" != 'no'; then
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27882 $as_echo "-------------------------------------------------------------" >&6; }
27883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27884 $as_echo_n "checking for LCMS v2... " >&6; }
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27889 have_lcms_header='no'
27891 # Check for <lcms2.h>
27892 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27893 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27894 have_lcms_header='yes'
27898 if test "$have_lcms_header" = 'yes'; then
27900 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27902 passed=`expr $passed + 1`
27905 # Check for <lcms2/lcms2.h)
27906 if test "$have_lcms_header" != 'yes'; then
27907 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27908 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
27909 have_lcms_header='yes'
27913 if test "$have_lcms_header" = 'yes'; then
27914 passed=`expr $passed + 1`
27916 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
27921 # Failed to find lcms header?
27922 if test "$have_lcms_header" != 'yes'; then
27923 failed=`expr $failed + 1`
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27927 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27928 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
27929 $as_echo_n "(cached) " >&6
27931 ac_check_lib_save_LIBS=$LIBS
27932 LIBS="-llcms2 $LIBS"
27933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27934 /* end confdefs.h. */
27936 /* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
27942 char cmsSetLogErrorHandler ();
27946 return cmsSetLogErrorHandler ();
27951 if ac_fn_c_try_link "$LINENO"; then :
27952 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
27954 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
27956 rm -f core conftest.err conftest.$ac_objext \
27957 conftest$ac_exeext conftest.$ac_ext
27958 LIBS=$ac_check_lib_save_LIBS
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27961 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27962 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
27963 passed=`expr $passed + 1`
27965 failed=`expr $failed + 1`
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27969 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
27970 if test $passed -gt 0; then
27971 if test $failed -gt 0; then
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27973 $as_echo "no -- some components failed test" >&6; }
27974 have_lcms2='no (failed tests)'
27976 LCMS_LIBS='-llcms2'
27977 LIBS="$LCMS_LIBS $LIBS"
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27979 $as_echo "yes" >&6; }
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27984 $as_echo "no" >&6; }
27989 # Check for LCMS v1 (1.11 or later)
27991 if test $have_lcms2 = 'yes'; then
27996 if test "$with_lcms" != 'no'; then
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27998 $as_echo "-------------------------------------------------------------" >&6; }
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28000 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28005 have_lcms_header='no'
28007 # Check for <lcms.h>
28008 if test "$have_lcms_header" != 'yes'; then
28009 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28010 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28011 have_lcms_header='yes'
28015 if test "$have_lcms_header" = 'yes'; then
28016 passed=`expr $passed + 1`
28018 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28023 # Check for <lcms/lcms.h>
28024 if test "$have_lcms_header" != 'yes'; then
28025 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28026 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28027 have_lcms_header='yes'
28031 if test "$have_lcms_header" = 'yes'; then
28032 passed=`expr $passed + 1`
28034 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28039 # Failed to find lcms header?
28040 if test "$have_lcms_header" != 'yes'; then
28041 failed=`expr $failed + 1`
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28045 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28046 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28047 $as_echo_n "(cached) " >&6
28049 ac_check_lib_save_LIBS=$LIBS
28050 LIBS="-llcms $LIBS"
28051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28052 /* end confdefs.h. */
28054 /* Override any GCC internal prototype to avoid an error.
28055 Use char because int might match the return type of a GCC
28056 builtin and then its argument prototype would still apply. */
28060 char cmsSetErrorHandler ();
28064 return cmsSetErrorHandler ();
28069 if ac_fn_c_try_link "$LINENO"; then :
28070 ac_cv_lib_lcms_cmsSetErrorHandler=yes
28072 ac_cv_lib_lcms_cmsSetErrorHandler=no
28074 rm -f core conftest.err conftest.$ac_objext \
28075 conftest$ac_exeext conftest.$ac_ext
28076 LIBS=$ac_check_lib_save_LIBS
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28079 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28080 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28081 passed=`expr $passed + 1`
28083 failed=`expr $failed + 1`
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28087 $as_echo_n "checking if LCMS package is complete... " >&6; }
28088 if test $passed -gt 0; then
28089 if test $failed -gt 0; then
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28091 $as_echo "no -- some components failed test" >&6; }
28092 have_lcms='no (failed tests)'
28095 LIBS="$LCMS_LIBS $LIBS"
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28097 $as_echo "yes" >&6; }
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28102 $as_echo "no" >&6; }
28106 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28107 LCMS_DELEGATE_TRUE=
28108 LCMS_DELEGATE_FALSE='#'
28110 LCMS_DELEGATE_TRUE='#'
28111 LCMS_DELEGATE_FALSE=
28114 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28116 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28124 # Check for the LQR (Liquid Rescale) delegate library.
28127 # Check whether --with-lqr was given.
28128 if test "${with_lqr+set}" = set; then :
28129 withval=$with_lqr; with_lqr=$withval
28135 if test "$with_lqr" != 'yes'; then
28136 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28143 if test "x$with_lqr" = "xyes"; then
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28145 $as_echo "-------------------------------------------------------------" >&6; }
28148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28149 $as_echo_n "checking for LQR... " >&6; }
28151 if test -n "$LQR_CFLAGS"; then
28152 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28153 elif test -n "$PKG_CONFIG"; then
28154 if test -n "$PKG_CONFIG" && \
28155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28156 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28159 test $ac_status = 0; }; then
28160 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28167 if test -n "$LQR_LIBS"; then
28168 pkg_cv_LQR_LIBS="$LQR_LIBS"
28169 elif test -n "$PKG_CONFIG"; then
28170 if test -n "$PKG_CONFIG" && \
28171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28172 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28175 test $ac_status = 0; }; then
28176 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28186 if test $pkg_failed = yes; then
28188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28189 _pkg_short_errors_supported=yes
28191 _pkg_short_errors_supported=no
28193 if test $_pkg_short_errors_supported = yes; then
28194 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28196 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28198 # Put the nasty error message in config.log where it belongs
28199 echo "$LQR_PKG_ERRORS" >&5
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28202 $as_echo "no" >&6; }
28204 elif test $pkg_failed = untried; then
28207 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28208 LQR_LIBS=$pkg_cv_LQR_LIBS
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28210 $as_echo "yes" >&6; }
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28217 if test "$have_lqr" = 'yes'; then
28219 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28221 CFLAGS="$LQR_CFLAGS $CFLAGS"
28224 if test "$have_lqr" = 'yes'; then
28226 LQR_DELEGATE_FALSE='#'
28228 LQR_DELEGATE_TRUE='#'
28229 LQR_DELEGATE_FALSE=
28236 # Disable LZMA (lzma library)
28238 # Check whether --with-lzma was given.
28239 if test "${with_lzma+set}" = set; then :
28240 withval=$with_lzma; with_lzma=$withval
28245 if test "$with_lzma" != 'yes' ; then
28246 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
28254 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28256 $as_echo "-------------------------------------------------------------" >&6; }
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
28258 $as_echo_n "checking for LZMA... " >&6; }
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28263 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
28264 if test "x$ac_cv_header_lzma_h" = x""yes; then :
28265 passed=`expr $passed + 1`
28267 failed=`expr $failed + 1`
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
28272 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
28273 if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then :
28274 $as_echo_n "(cached) " >&6
28276 ac_check_lib_save_LIBS=$LIBS
28277 LIBS="-llzma $LIBS"
28278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28279 /* end confdefs.h. */
28281 /* Override any GCC internal prototype to avoid an error.
28282 Use char because int might match the return type of a GCC
28283 builtin and then its argument prototype would still apply. */
28291 return lzma_code ();
28296 if ac_fn_c_try_link "$LINENO"; then :
28297 ac_cv_lib_lzma_lzma_code=yes
28299 ac_cv_lib_lzma_lzma_code=no
28301 rm -f core conftest.err conftest.$ac_objext \
28302 conftest$ac_exeext conftest.$ac_ext
28303 LIBS=$ac_check_lib_save_LIBS
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
28306 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
28307 if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then :
28308 passed=`expr $passed + 1`
28310 failed=`expr $failed + 1`
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
28314 $as_echo_n "checking if LZMA package is complete... " >&6; }
28315 if test $passed -gt 0; then
28316 if test $failed -gt 0; then
28317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28318 $as_echo "no -- some components failed test" >&6; }
28319 have_lzma='no (failed tests)'
28322 LIBS="$LZMA_LIBS $LIBS"
28324 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28327 $as_echo "yes" >&6; }
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28332 $as_echo "no" >&6; }
28335 if test "$have_lzma" = 'yes'; then
28336 LZMA_DELEGATE_TRUE=
28337 LZMA_DELEGATE_FALSE='#'
28339 LZMA_DELEGATE_TRUE='#'
28340 LZMA_DELEGATE_FALSE=
28347 # Check for the OpenEXR delegate library.
28350 # Check whether --with-openexr was given.
28351 if test "${with_openexr+set}" = set; then :
28352 withval=$with_openexr; with_openexr=$withval
28358 if test "$with_openexr" != 'yes'; then
28359 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28366 if test "x$with_openexr" = "xyes"; then
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28368 $as_echo "-------------------------------------------------------------" >&6; }
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28372 $as_echo_n "checking for OPENEXR... " >&6; }
28374 if test -n "$OPENEXR_CFLAGS"; then
28375 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28376 elif test -n "$PKG_CONFIG"; then
28377 if test -n "$PKG_CONFIG" && \
28378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28379 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28382 test $ac_status = 0; }; then
28383 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28390 if test -n "$OPENEXR_LIBS"; then
28391 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28392 elif test -n "$PKG_CONFIG"; then
28393 if test -n "$PKG_CONFIG" && \
28394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28395 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28398 test $ac_status = 0; }; then
28399 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28409 if test $pkg_failed = yes; then
28411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28412 _pkg_short_errors_supported=yes
28414 _pkg_short_errors_supported=no
28416 if test $_pkg_short_errors_supported = yes; then
28417 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28419 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28421 # Put the nasty error message in config.log where it belongs
28422 echo "$OPENEXR_PKG_ERRORS" >&5
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28425 $as_echo "no" >&6; }
28427 elif test $pkg_failed = untried; then
28430 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28431 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28433 $as_echo "yes" >&6; }
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28440 if test "$have_openexr" = 'yes'; then
28442 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28444 if test "$with_modules" = 'no'; then
28445 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28449 if test "$have_openexr" = 'yes'; then
28450 OPENEXR_DELEGATE_TRUE=
28451 OPENEXR_DELEGATE_FALSE='#'
28453 OPENEXR_DELEGATE_TRUE='#'
28454 OPENEXR_DELEGATE_FALSE=
28462 # Check for PNG delegate library.
28465 # Check whether --with-png was given.
28466 if test "${with_png+set}" = set; then :
28467 withval=$with_png; with_png=$withval
28473 if test "$with_png" != 'yes'; then
28474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28479 if test "$with_png" != 'no'; then
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28481 $as_echo "-------------------------------------------------------------" >&6; }
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28483 $as_echo_n "checking for PNG... " >&6; }
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28488 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28489 if test "x$ac_cv_header_png_h" = x""yes; then :
28490 passed=`expr $passed + 1`
28492 failed=`expr $failed + 1`
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28497 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28498 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28499 $as_echo_n "(cached) " >&6
28501 ac_check_lib_save_LIBS=$LIBS
28503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28504 /* end confdefs.h. */
28506 /* Override any GCC internal prototype to avoid an error.
28507 Use char because int might match the return type of a GCC
28508 builtin and then its argument prototype would still apply. */
28512 char png_get_io_ptr ();
28516 return png_get_io_ptr ();
28521 if ac_fn_c_try_link "$LINENO"; then :
28522 ac_cv_lib_png_png_get_io_ptr=yes
28524 ac_cv_lib_png_png_get_io_ptr=no
28526 rm -f core conftest.err conftest.$ac_objext \
28527 conftest$ac_exeext conftest.$ac_ext
28528 LIBS=$ac_check_lib_save_LIBS
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28531 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28532 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28533 passed=`expr $passed + 1`
28535 failed=`expr $failed + 1`
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28539 $as_echo_n "checking if PNG package is complete... " >&6; }
28540 if test $passed -gt 0; then
28541 if test $failed -gt 0; then
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28543 $as_echo "no -- some components failed test" >&6; }
28544 have_png='no (failed tests)'
28547 LIBS="$PNG_LIBS $LIBS"
28549 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28552 $as_echo "yes" >&6; }
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28557 $as_echo "no" >&6; }
28560 if test "$have_png" = 'yes'; then
28562 PNG_DELEGATE_FALSE='#'
28564 PNG_DELEGATE_TRUE='#'
28565 PNG_DELEGATE_FALSE=
28572 # Check for RSVG delegate library.
28575 # Check whether --with-rsvg was given.
28576 if test "${with_rsvg+set}" = set; then :
28577 withval=$with_rsvg; with_rsvg=$withval
28583 if test "$with_rsvg" != 'yes'; then
28584 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28592 if test "x$with_rsvg" = "xyes"; then
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28594 $as_echo "-------------------------------------------------------------" >&6; }
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28598 $as_echo_n "checking for RSVG... " >&6; }
28600 if test -n "$RSVG_CFLAGS"; then
28601 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28602 elif test -n "$PKG_CONFIG"; then
28603 if test -n "$PKG_CONFIG" && \
28604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28605 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28608 test $ac_status = 0; }; then
28609 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28616 if test -n "$RSVG_LIBS"; then
28617 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28618 elif test -n "$PKG_CONFIG"; then
28619 if test -n "$PKG_CONFIG" && \
28620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28621 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28624 test $ac_status = 0; }; then
28625 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28635 if test $pkg_failed = yes; then
28637 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28638 _pkg_short_errors_supported=yes
28640 _pkg_short_errors_supported=no
28642 if test $_pkg_short_errors_supported = yes; then
28643 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28645 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28647 # Put the nasty error message in config.log where it belongs
28648 echo "$RSVG_PKG_ERRORS" >&5
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28651 $as_echo "no" >&6; }
28653 elif test $pkg_failed = untried; then
28656 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28657 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28659 $as_echo "yes" >&6; }
28662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28667 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28669 if test -n "$CAIRO_SVG_CFLAGS"; then
28670 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28671 elif test -n "$PKG_CONFIG"; then
28672 if test -n "$PKG_CONFIG" && \
28673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28674 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28677 test $ac_status = 0; }; then
28678 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28685 if test -n "$CAIRO_SVG_LIBS"; then
28686 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28687 elif test -n "$PKG_CONFIG"; then
28688 if test -n "$PKG_CONFIG" && \
28689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28690 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693 test $ac_status = 0; }; then
28694 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28704 if test $pkg_failed = yes; then
28706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28707 _pkg_short_errors_supported=yes
28709 _pkg_short_errors_supported=no
28711 if test $_pkg_short_errors_supported = yes; then
28712 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28714 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28716 # Put the nasty error message in config.log where it belongs
28717 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28720 $as_echo "no" >&6; }
28722 elif test $pkg_failed = untried; then
28725 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28726 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28728 $as_echo "yes" >&6; }
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28735 if test "$have_rsvg" = 'yes'; then
28737 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28739 if test "$with_modules" = 'no'; then
28740 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28744 if test "$have_cairo" = 'yes'; then
28746 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28748 if test "$with_modules" = 'no'; then
28749 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28753 if test "$have_rsvg" = 'yes'; then
28754 RSVG_DELEGATE_TRUE=
28755 RSVG_DELEGATE_FALSE='#'
28757 RSVG_DELEGATE_TRUE='#'
28758 RSVG_DELEGATE_FALSE=
28761 if test "$have_cairo" = 'yes'; then
28762 CAIRO_DELEGATE_TRUE=
28763 CAIRO_DELEGATE_FALSE='#'
28765 CAIRO_DELEGATE_TRUE='#'
28766 CAIRO_DELEGATE_FALSE=
28774 # Check for TIFF delegate library.
28777 # Check whether --with-tiff was given.
28778 if test "${with_tiff+set}" = set; then :
28779 withval=$with_tiff; with_tiff=$withval
28785 if test "$with_tiff" != 'yes'; then
28786 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28791 if test "$with_tiff" != 'no'; then
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28793 $as_echo "-------------------------------------------------------------" >&6; }
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28795 $as_echo_n "checking for TIFF... " >&6; }
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28800 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28801 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28802 passed=`expr $passed + 1`
28804 failed=`expr $failed + 1`
28808 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28809 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28810 passed=`expr $passed + 1`
28812 failed=`expr $failed + 1`
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28817 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28818 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28819 $as_echo_n "(cached) " >&6
28821 ac_check_lib_save_LIBS=$LIBS
28822 LIBS="-ltiff $LIBS"
28823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28824 /* end confdefs.h. */
28826 /* Override any GCC internal prototype to avoid an error.
28827 Use char because int might match the return type of a GCC
28828 builtin and then its argument prototype would still apply. */
28836 return TIFFOpen ();
28841 if ac_fn_c_try_link "$LINENO"; then :
28842 ac_cv_lib_tiff_TIFFOpen=yes
28844 ac_cv_lib_tiff_TIFFOpen=no
28846 rm -f core conftest.err conftest.$ac_objext \
28847 conftest$ac_exeext conftest.$ac_ext
28848 LIBS=$ac_check_lib_save_LIBS
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28851 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28852 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28853 passed=`expr $passed + 1`
28855 failed=`expr $failed + 1`
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28859 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28860 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28861 $as_echo_n "(cached) " >&6
28863 ac_check_lib_save_LIBS=$LIBS
28864 LIBS="-ltiff $LIBS"
28865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866 /* end confdefs.h. */
28868 /* Override any GCC internal prototype to avoid an error.
28869 Use char because int might match the return type of a GCC
28870 builtin and then its argument prototype would still apply. */
28874 char TIFFClientOpen ();
28878 return TIFFClientOpen ();
28883 if ac_fn_c_try_link "$LINENO"; then :
28884 ac_cv_lib_tiff_TIFFClientOpen=yes
28886 ac_cv_lib_tiff_TIFFClientOpen=no
28888 rm -f core conftest.err conftest.$ac_objext \
28889 conftest$ac_exeext conftest.$ac_ext
28890 LIBS=$ac_check_lib_save_LIBS
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28893 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28894 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28895 passed=`expr $passed + 1`
28897 failed=`expr $failed + 1`
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28901 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28902 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28903 $as_echo_n "(cached) " >&6
28905 ac_check_lib_save_LIBS=$LIBS
28906 LIBS="-ltiff $LIBS"
28907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28908 /* end confdefs.h. */
28910 /* Override any GCC internal prototype to avoid an error.
28911 Use char because int might match the return type of a GCC
28912 builtin and then its argument prototype would still apply. */
28916 char TIFFIsBigEndian ();
28920 return TIFFIsBigEndian ();
28925 if ac_fn_c_try_link "$LINENO"; then :
28926 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28928 ac_cv_lib_tiff_TIFFIsBigEndian=no
28930 rm -f core conftest.err conftest.$ac_objext \
28931 conftest$ac_exeext conftest.$ac_ext
28932 LIBS=$ac_check_lib_save_LIBS
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28935 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28936 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28937 passed=`expr $passed + 1`
28939 failed=`expr $failed + 1`
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28943 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28944 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28945 $as_echo_n "(cached) " >&6
28947 ac_check_lib_save_LIBS=$LIBS
28948 LIBS="-ltiff $LIBS"
28949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28950 /* end confdefs.h. */
28952 /* Override any GCC internal prototype to avoid an error.
28953 Use char because int might match the return type of a GCC
28954 builtin and then its argument prototype would still apply. */
28958 char TIFFIsByteSwapped ();
28962 return TIFFIsByteSwapped ();
28967 if ac_fn_c_try_link "$LINENO"; then :
28968 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28970 ac_cv_lib_tiff_TIFFIsByteSwapped=no
28972 rm -f core conftest.err conftest.$ac_objext \
28973 conftest$ac_exeext conftest.$ac_ext
28974 LIBS=$ac_check_lib_save_LIBS
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28977 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28978 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28979 passed=`expr $passed + 1`
28981 failed=`expr $failed + 1`
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28985 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28986 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28987 $as_echo_n "(cached) " >&6
28989 ac_check_lib_save_LIBS=$LIBS
28990 LIBS="-ltiff $LIBS"
28991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28992 /* end confdefs.h. */
28994 /* Override any GCC internal prototype to avoid an error.
28995 Use char because int might match the return type of a GCC
28996 builtin and then its argument prototype would still apply. */
29000 char TIFFReadRGBATile ();
29004 return TIFFReadRGBATile ();
29009 if ac_fn_c_try_link "$LINENO"; then :
29010 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29012 ac_cv_lib_tiff_TIFFReadRGBATile=no
29014 rm -f core conftest.err conftest.$ac_objext \
29015 conftest$ac_exeext conftest.$ac_ext
29016 LIBS=$ac_check_lib_save_LIBS
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29019 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29020 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
29021 passed=`expr $passed + 1`
29023 failed=`expr $failed + 1`
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29027 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29028 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
29029 $as_echo_n "(cached) " >&6
29031 ac_check_lib_save_LIBS=$LIBS
29032 LIBS="-ltiff $LIBS"
29033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29034 /* end confdefs.h. */
29036 /* Override any GCC internal prototype to avoid an error.
29037 Use char because int might match the return type of a GCC
29038 builtin and then its argument prototype would still apply. */
29042 char TIFFReadRGBAStrip ();
29046 return TIFFReadRGBAStrip ();
29051 if ac_fn_c_try_link "$LINENO"; then :
29052 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29054 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29056 rm -f core conftest.err conftest.$ac_objext \
29057 conftest$ac_exeext conftest.$ac_ext
29058 LIBS=$ac_check_lib_save_LIBS
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29061 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29062 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
29063 passed=`expr $passed + 1`
29065 failed=`expr $failed + 1`
29068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29069 $as_echo_n "checking if TIFF package is complete... " >&6; }
29070 if test $passed -gt 0; then
29071 if test $failed -gt 0; then
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29073 $as_echo "no -- some components failed test" >&6; }
29074 have_tiff='no (failed tests)'
29077 LIBS="$TIFF_LIBS $LIBS"
29079 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29082 $as_echo "yes" >&6; }
29084 for ac_header in tiffconf.h
29086 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29087 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
29088 cat >>confdefs.h <<_ACEOF
29089 #define HAVE_TIFFCONF_H 1
29096 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29097 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29098 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29103 cat >>confdefs.h <<_ACEOF
29104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29113 $as_echo "no" >&6; }
29116 if test "$have_tiff" = 'yes'; then
29117 TIFF_DELEGATE_TRUE=
29118 TIFF_DELEGATE_FALSE='#'
29120 TIFF_DELEGATE_TRUE='#'
29121 TIFF_DELEGATE_FALSE=
29128 # Set Windows font directory.
29131 # Check whether --with-windows-font-dir was given.
29132 if test "${with_windows_font_dir+set}" = set; then :
29133 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29135 with_windows_font_dir=''
29138 if test "$with_windows_font_dir" != '' ; then
29139 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29144 # Check for WMF delegate library.
29147 # Check whether --with-wmf was given.
29148 if test "${with_wmf+set}" = set; then :
29149 withval=$with_wmf; with_wmf=$withval
29155 if test "$with_wmf" != 'yes'; then
29156 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29161 if test "$with_wmf" != 'no'; then
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29163 $as_echo "-------------------------------------------------------------" >&6; }
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29165 $as_echo_n "checking for WMF... " >&6; }
29166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29170 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29171 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29172 passed=`expr $passed + 1`
29174 failed=`expr $failed + 1`
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29179 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29180 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29181 $as_echo_n "(cached) " >&6
29183 ac_check_lib_save_LIBS=$LIBS
29184 LIBS="-lwmf "-lwmflite" $LIBS"
29185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29186 /* end confdefs.h. */
29188 /* Override any GCC internal prototype to avoid an error.
29189 Use char because int might match the return type of a GCC
29190 builtin and then its argument prototype would still apply. */
29194 char wmf_eps_function ();
29198 return wmf_eps_function ();
29203 if ac_fn_c_try_link "$LINENO"; then :
29204 ac_cv_lib_wmf_wmf_eps_function=yes
29206 ac_cv_lib_wmf_wmf_eps_function=no
29208 rm -f core conftest.err conftest.$ac_objext \
29209 conftest$ac_exeext conftest.$ac_ext
29210 LIBS=$ac_check_lib_save_LIBS
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29213 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29214 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29215 passed=`expr $passed + 1`
29217 failed=`expr $failed + 1`
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29221 $as_echo_n "checking if WMF package is complete... " >&6; }
29222 if test $passed -gt 0; then
29223 if test $failed -gt 0; then
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29225 $as_echo "no -- some components failed test" >&6; }
29226 have_wmf='no (failed tests)'
29228 WMF_LIBS='-lwmf -lwmflite'
29229 LIBS="$WMF_LIBS $LIBS"
29231 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29234 $as_echo "yes" >&6; }
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29239 $as_echo "no" >&6; }
29242 if test "$have_wmf" = 'yes'; then
29244 WMF_DELEGATE_FALSE='#'
29246 WMF_DELEGATE_TRUE='#'
29247 WMF_DELEGATE_FALSE=
29256 # Check for XML delegate library.
29259 # Check whether --with-xml was given.
29260 if test "${with_xml+set}" = set; then :
29261 withval=$with_xml; with_xml=$withval
29267 if test "$with_xml" != 'yes' ; then
29268 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29273 if test "$with_xml" != 'no'; then
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29275 $as_echo "-------------------------------------------------------------" >&6; }
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29277 $as_echo_n "checking for XML... " >&6; }
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29280 PERSIST_LDFLAGS=$LDFLAGS
29281 PERSIST_CPPFLAGS=$CPPFLAGS
29283 for ac_prog in xml2-config
29285 # Extract the first word of "$ac_prog", so it can be a program name with args.
29286 set dummy $ac_prog; ac_word=$2
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29288 $as_echo_n "checking for $ac_word... " >&6; }
29289 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29290 $as_echo_n "(cached) " >&6
29292 if test -n "$xml2_config"; then
29293 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29296 for as_dir in $PATH
29299 test -z "$as_dir" && as_dir=.
29300 for ac_exec_ext in '' $ac_executable_extensions; do
29301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29302 ac_cv_prog_xml2_config="$ac_prog"
29303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29312 xml2_config=$ac_cv_prog_xml2_config
29313 if test -n "$xml2_config"; then
29314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29315 $as_echo "$xml2_config" >&6; }
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29318 $as_echo "no" >&6; }
29322 test -n "$xml2_config" && break
29324 if test -n "$xml2_config"; then
29325 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29326 # the shared library installed under /usr/lib, whereas the package
29327 # installs itself under $prefix/libxml and $prefix/lib.
29328 xml2_prefix=`xml2-config --prefix`
29329 if test -d "${xml2_prefix}/include/libxml2"; then
29330 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29332 if test "${xml2_prefix}" != '/usr'; then
29333 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29338 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29339 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29340 passed=`expr $passed + 1`
29342 failed=`expr $failed + 1`
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29347 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29348 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29349 $as_echo_n "(cached) " >&6
29351 ac_check_lib_save_LIBS=$LIBS
29352 LIBS="-lxml2 $LIBS"
29353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29354 /* end confdefs.h. */
29356 /* Override any GCC internal prototype to avoid an error.
29357 Use char because int might match the return type of a GCC
29358 builtin and then its argument prototype would still apply. */
29362 char xmlParseExternalEntity ();
29366 return xmlParseExternalEntity ();
29371 if ac_fn_c_try_link "$LINENO"; then :
29372 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29374 ac_cv_lib_xml2_xmlParseExternalEntity=no
29376 rm -f core conftest.err conftest.$ac_objext \
29377 conftest$ac_exeext conftest.$ac_ext
29378 LIBS=$ac_check_lib_save_LIBS
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29381 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29382 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29383 passed=`expr $passed + 1`
29385 failed=`expr $failed + 1`
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29389 $as_echo_n "checking if XML package is complete... " >&6; }
29390 if test $passed -gt 0; then
29391 if test $failed -gt 0; then
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29393 $as_echo "no -- some components failed test" >&6; }
29394 have_xml='no (failed tests)'
29395 LDFLAGS="$PERSIST_LDFLAGS"
29396 CPPFLAGS="$PERSIST_CPPFLAGS"
29399 LIBS="$XML_LIBS $LIBS"
29401 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29404 $as_echo "yes" >&6; }
29408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29409 $as_echo "no" >&6; }
29412 if test "$have_xml" = 'yes'; then
29414 XML_DELEGATE_FALSE='#'
29416 XML_DELEGATE_TRUE='#'
29417 XML_DELEGATE_FALSE=
29423 # Substitute compiler name to build/link PerlMagick
29428 # Configure install Paths
29431 # Subdirectory under lib to place ImageMagick lib files
29432 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29434 cat >>confdefs.h <<_ACEOF
29435 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29439 # Path to ImageMagick bin directory
29440 EXECUTABLE_PATH="${BIN_DIR}"
29441 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29442 case "${build_os}" in
29444 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29448 cat >>confdefs.h <<_ACEOF
29449 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29454 # Path to ImageMagick lib
29455 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29456 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29457 case "${build_os}" in
29459 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29463 cat >>confdefs.h <<_ACEOF
29464 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29469 # Subdirectory under lib to place ImageMagick configuration files
29470 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29472 cat >>confdefs.h <<_ACEOF
29473 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29476 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29477 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29478 case "${build_os}" in
29480 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29484 cat >>confdefs.h <<_ACEOF
29485 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29491 # Subdirectory under lib to place ImageMagick coder module files
29492 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29494 cat >>confdefs.h <<_ACEOF
29495 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29498 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29499 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29500 case "${build_os}" in
29502 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29506 cat >>confdefs.h <<_ACEOF
29507 #define CODER_PATH "$DEFINE_CODER_PATH"
29513 # Subdirectory under lib to place ImageMagick filter module files
29514 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29516 cat >>confdefs.h <<_ACEOF
29517 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29520 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29521 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29522 case "${build_os}" in
29524 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29528 cat >>confdefs.h <<_ACEOF
29529 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29535 # Path to ImageMagick documentation files
29536 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29537 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29538 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29539 case "${build_os}" in
29541 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29545 cat >>confdefs.h <<_ACEOF
29546 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29552 # Path to ImageMagick share files
29553 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29554 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29555 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29556 case "${build_os}" in
29558 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29562 cat >>confdefs.h <<_ACEOF
29563 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29568 # Subdirectory under share to place ImageMagick configuration files
29569 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29571 cat >>confdefs.h <<_ACEOF
29572 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29575 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29576 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29577 case "${build_os}" in
29579 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29583 cat >>confdefs.h <<_ACEOF
29584 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29590 # program_transform_name is formed for use in a Makefile, so create a
29591 # modified version for use in a shell script.
29592 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29594 # Default delegate definitions
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29596 $as_echo "-------------------------------------------------------------" >&6; }
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29598 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29601 AutotraceDecodeDelegateDefault='autotrace'
29602 BlenderDecodeDelegateDefault='blender'
29603 BZIPDelegateDefault='bzip2'
29604 BrowseDelegateDefault='xdg-open'
29605 CGMDecodeDelegateDefault='ralcgm'
29606 CatDelegateDefault='cat'
29607 DNGDecodeDelegateDefault='ufraw-batch'
29608 GVCDecodeDelegateDefault='dot'
29609 DVIDecodeDelegateDefault='dvips'
29610 EchoDelegateDefault='echo'
29611 EditorDelegateDefault='xterm'
29612 FIGDecodeDelegateDefault='fig2dev'
29613 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29614 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29615 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29616 GnuplotDecodeDelegateDefault='gnuplot'
29617 HDRDecodeDelegateDefault='ra_pfm'
29618 HPGLDecodeDelegateDefault='hp2xx'
29619 HTMLDecodeDelegateDefault='html2ps'
29620 ILBMDecodeDelegateDefault='ilbmtoppm'
29621 ILBMEncodeDelegateDefault='ppmtoilbm'
29622 LPDelegateDefault='lp'
29623 LPRDelegateDefault='lpr'
29624 LZWDecodeDelegateDefault='uncompress'
29625 LZWEncodeDelegateDefault='compress'
29626 LaunchDelegateDefault='gimp'
29627 MANDelegateDefault='groff'
29628 MPEGDecodeDelegateDefault='ffmpeg'
29629 MPEGEncodeDelegateDefault='ffmpeg'
29630 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29631 MVDelegateDefault='mv'
29632 PCLDelegateDefault='pcl6'
29633 PGPDecodeDelegateDefault='pgpv'
29634 POVDelegateDefault='povray'
29635 if test "$native_win32_build" = 'yes'; then
29636 PSDelegateDefault='gswin32c'
29637 elif test "$gslib_framework" = 'yes'; then
29638 PSDelegateDefault='gsc'
29640 PSDelegateDefault='gs'
29642 RLEEncodeDelegateDefault='rawtorle'
29643 RMDelegateDefault='rm'
29644 RSVGDecodeDelegateDefault='rsvg'
29645 SCANDecodeDelegateDefault='scanimage'
29646 TXTDelegateDefault='enscript'
29647 UniconvertorDelegateDefault='uniconvertor'
29648 WEBPDelegateDefault='webpconv'
29649 WMFDecodeDelegateDefault='wmf2eps'
29650 WWWDecodeDelegateDefault='curl'
29651 XPSDelegateDefault='gxps'
29652 ZipDelegateDefault='gzip'
29654 # Search for delegates
29655 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29656 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29658 $as_echo_n "checking for $ac_word... " >&6; }
29659 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29660 $as_echo_n "(cached) " >&6
29662 case $AutotraceDecodeDelegate in
29664 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29668 for as_dir in $PATH
29671 test -z "$as_dir" && as_dir=.
29672 for ac_exec_ext in '' $ac_executable_extensions; do
29673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29674 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29682 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29686 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29687 if test -n "$AutotraceDecodeDelegate"; then
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29689 $as_echo "$AutotraceDecodeDelegate" >&6; }
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29692 $as_echo "no" >&6; }
29696 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29697 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29699 $as_echo_n "checking for $ac_word... " >&6; }
29700 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29701 $as_echo_n "(cached) " >&6
29703 case $BlenderDecodeDelegate in
29705 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29709 for as_dir in $PATH
29712 test -z "$as_dir" && as_dir=.
29713 for ac_exec_ext in '' $ac_executable_extensions; do
29714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29715 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29723 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29727 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29728 if test -n "$BlenderDecodeDelegate"; then
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29730 $as_echo "$BlenderDecodeDelegate" >&6; }
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29733 $as_echo "no" >&6; }
29737 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29738 set dummy "$BZIPDelegateDefault"; ac_word=$2
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29740 $as_echo_n "checking for $ac_word... " >&6; }
29741 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29742 $as_echo_n "(cached) " >&6
29744 case $BZIPDelegate in
29746 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29750 for as_dir in $PATH
29753 test -z "$as_dir" && as_dir=.
29754 for ac_exec_ext in '' $ac_executable_extensions; do
29755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29756 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29764 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29768 BZIPDelegate=$ac_cv_path_BZIPDelegate
29769 if test -n "$BZIPDelegate"; then
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29771 $as_echo "$BZIPDelegate" >&6; }
29773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29774 $as_echo "no" >&6; }
29778 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29779 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29781 $as_echo_n "checking for $ac_word... " >&6; }
29782 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29783 $as_echo_n "(cached) " >&6
29785 case $BrowseDelegate in
29787 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29791 for as_dir in $PATH
29794 test -z "$as_dir" && as_dir=.
29795 for ac_exec_ext in '' $ac_executable_extensions; do
29796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29797 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29805 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29809 BrowseDelegate=$ac_cv_path_BrowseDelegate
29810 if test -n "$BrowseDelegate"; then
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29812 $as_echo "$BrowseDelegate" >&6; }
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29815 $as_echo "no" >&6; }
29819 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29820 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29822 $as_echo_n "checking for $ac_word... " >&6; }
29823 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29824 $as_echo_n "(cached) " >&6
29826 case $CGMDecodeDelegate in
29828 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29832 for as_dir in $PATH
29835 test -z "$as_dir" && as_dir=.
29836 for ac_exec_ext in '' $ac_executable_extensions; do
29837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29838 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29846 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29850 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29851 if test -n "$CGMDecodeDelegate"; then
29852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29853 $as_echo "$CGMDecodeDelegate" >&6; }
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29856 $as_echo "no" >&6; }
29860 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29861 set dummy "$CatDelegateDefault"; ac_word=$2
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29863 $as_echo_n "checking for $ac_word... " >&6; }
29864 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29865 $as_echo_n "(cached) " >&6
29867 case $CatDelegate in
29869 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29873 for as_dir in $PATH
29876 test -z "$as_dir" && as_dir=.
29877 for ac_exec_ext in '' $ac_executable_extensions; do
29878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29879 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29887 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29891 CatDelegate=$ac_cv_path_CatDelegate
29892 if test -n "$CatDelegate"; then
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29894 $as_echo "$CatDelegate" >&6; }
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29897 $as_echo "no" >&6; }
29901 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29902 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29904 $as_echo_n "checking for $ac_word... " >&6; }
29905 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29906 $as_echo_n "(cached) " >&6
29908 case $DNGDecodeDelegate in
29910 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29914 for as_dir in $PATH
29917 test -z "$as_dir" && as_dir=.
29918 for ac_exec_ext in '' $ac_executable_extensions; do
29919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29920 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29928 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29932 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29933 if test -n "$DNGDecodeDelegate"; then
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29935 $as_echo "$DNGDecodeDelegate" >&6; }
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29938 $as_echo "no" >&6; }
29942 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29943 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29945 $as_echo_n "checking for $ac_word... " >&6; }
29946 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29947 $as_echo_n "(cached) " >&6
29949 case $GVCDecodeDelegate in
29951 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29955 for as_dir in $PATH
29958 test -z "$as_dir" && as_dir=.
29959 for ac_exec_ext in '' $ac_executable_extensions; do
29960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29961 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29969 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29973 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29974 if test -n "$GVCDecodeDelegate"; then
29975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29976 $as_echo "$GVCDecodeDelegate" >&6; }
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29979 $as_echo "no" >&6; }
29983 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29984 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29986 $as_echo_n "checking for $ac_word... " >&6; }
29987 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29988 $as_echo_n "(cached) " >&6
29990 case $DVIDecodeDelegate in
29992 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29996 for as_dir in $PATH
29999 test -z "$as_dir" && as_dir=.
30000 for ac_exec_ext in '' $ac_executable_extensions; do
30001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30002 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30010 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30014 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30015 if test -n "$DVIDecodeDelegate"; then
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30017 $as_echo "$DVIDecodeDelegate" >&6; }
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020 $as_echo "no" >&6; }
30024 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30025 set dummy "$EchoDelegateDefault"; ac_word=$2
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30027 $as_echo_n "checking for $ac_word... " >&6; }
30028 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
30029 $as_echo_n "(cached) " >&6
30031 case $EchoDelegate in
30033 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037 for as_dir in $PATH
30040 test -z "$as_dir" && as_dir=.
30041 for ac_exec_ext in '' $ac_executable_extensions; do
30042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30043 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30051 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30055 EchoDelegate=$ac_cv_path_EchoDelegate
30056 if test -n "$EchoDelegate"; then
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30058 $as_echo "$EchoDelegate" >&6; }
30060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30061 $as_echo "no" >&6; }
30065 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30066 set dummy "$EditorDelegateDefault"; ac_word=$2
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30068 $as_echo_n "checking for $ac_word... " >&6; }
30069 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
30070 $as_echo_n "(cached) " >&6
30072 case $EditorDelegate in
30074 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30078 for as_dir in $PATH
30081 test -z "$as_dir" && as_dir=.
30082 for ac_exec_ext in '' $ac_executable_extensions; do
30083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30084 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30092 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30096 EditorDelegate=$ac_cv_path_EditorDelegate
30097 if test -n "$EditorDelegate"; then
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30099 $as_echo "$EditorDelegate" >&6; }
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30102 $as_echo "no" >&6; }
30106 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30107 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30109 $as_echo_n "checking for $ac_word... " >&6; }
30110 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30111 $as_echo_n "(cached) " >&6
30113 case $FIGDecodeDelegate in
30115 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30119 for as_dir in $PATH
30122 test -z "$as_dir" && as_dir=.
30123 for ac_exec_ext in '' $ac_executable_extensions; do
30124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30125 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30133 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30137 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30138 if test -n "$FIGDecodeDelegate"; then
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30140 $as_echo "$FIGDecodeDelegate" >&6; }
30142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30143 $as_echo "no" >&6; }
30147 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30148 set dummy "$ConvertDelegateDefault"; ac_word=$2
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30150 $as_echo_n "checking for $ac_word... " >&6; }
30151 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30152 $as_echo_n "(cached) " >&6
30154 case $ConvertDelegate in
30156 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30160 for as_dir in $PATH
30163 test -z "$as_dir" && as_dir=.
30164 for ac_exec_ext in '' $ac_executable_extensions; do
30165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30166 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30174 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30178 ConvertDelegate=$ac_cv_path_ConvertDelegate
30179 if test -n "$ConvertDelegate"; then
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30181 $as_echo "$ConvertDelegate" >&6; }
30183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30184 $as_echo "no" >&6; }
30188 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30189 set dummy "$DisplayDelegateDefault"; ac_word=$2
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30191 $as_echo_n "checking for $ac_word... " >&6; }
30192 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30193 $as_echo_n "(cached) " >&6
30195 case $DisplayDelegate in
30197 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30201 for as_dir in $PATH
30204 test -z "$as_dir" && as_dir=.
30205 for ac_exec_ext in '' $ac_executable_extensions; do
30206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30207 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30215 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30219 DisplayDelegate=$ac_cv_path_DisplayDelegate
30220 if test -n "$DisplayDelegate"; then
30221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30222 $as_echo "$DisplayDelegate" >&6; }
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30225 $as_echo "no" >&6; }
30229 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30230 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30232 $as_echo_n "checking for $ac_word... " >&6; }
30233 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30234 $as_echo_n "(cached) " >&6
30236 case $MogrifyDelegate in
30238 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30242 for as_dir in $PATH
30245 test -z "$as_dir" && as_dir=.
30246 for ac_exec_ext in '' $ac_executable_extensions; do
30247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30248 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30256 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30260 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30261 if test -n "$MogrifyDelegate"; then
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30263 $as_echo "$MogrifyDelegate" >&6; }
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30266 $as_echo "no" >&6; }
30270 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30271 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30273 $as_echo_n "checking for $ac_word... " >&6; }
30274 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30275 $as_echo_n "(cached) " >&6
30277 case $GnuplotDecodeDelegate in
30279 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30283 for as_dir in $PATH
30286 test -z "$as_dir" && as_dir=.
30287 for ac_exec_ext in '' $ac_executable_extensions; do
30288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30289 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30297 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30301 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30302 if test -n "$GnuplotDecodeDelegate"; then
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30304 $as_echo "$GnuplotDecodeDelegate" >&6; }
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307 $as_echo "no" >&6; }
30311 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30312 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30314 $as_echo_n "checking for $ac_word... " >&6; }
30315 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30316 $as_echo_n "(cached) " >&6
30318 case $HDRDecodeDelegate in
30320 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30324 for as_dir in $PATH
30327 test -z "$as_dir" && as_dir=.
30328 for ac_exec_ext in '' $ac_executable_extensions; do
30329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30330 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30338 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30342 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30343 if test -n "$HDRDecodeDelegate"; then
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30345 $as_echo "$HDRDecodeDelegate" >&6; }
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30348 $as_echo "no" >&6; }
30352 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30353 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30355 $as_echo_n "checking for $ac_word... " >&6; }
30356 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30357 $as_echo_n "(cached) " >&6
30359 case $HPGLDecodeDelegate in
30361 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30365 for as_dir in $PATH
30368 test -z "$as_dir" && as_dir=.
30369 for ac_exec_ext in '' $ac_executable_extensions; do
30370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30371 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30379 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30383 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30384 if test -n "$HPGLDecodeDelegate"; then
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30386 $as_echo "$HPGLDecodeDelegate" >&6; }
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30389 $as_echo "no" >&6; }
30393 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30394 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30396 $as_echo_n "checking for $ac_word... " >&6; }
30397 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30398 $as_echo_n "(cached) " >&6
30400 case $HTMLDecodeDelegate in
30402 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406 for as_dir in $PATH
30409 test -z "$as_dir" && as_dir=.
30410 for ac_exec_ext in '' $ac_executable_extensions; do
30411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30412 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30420 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30424 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30425 if test -n "$HTMLDecodeDelegate"; then
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30427 $as_echo "$HTMLDecodeDelegate" >&6; }
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30430 $as_echo "no" >&6; }
30434 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30435 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30437 $as_echo_n "checking for $ac_word... " >&6; }
30438 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30439 $as_echo_n "(cached) " >&6
30441 case $ILBMDecodeDelegate in
30443 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30447 for as_dir in $PATH
30450 test -z "$as_dir" && as_dir=.
30451 for ac_exec_ext in '' $ac_executable_extensions; do
30452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30453 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30461 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30465 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30466 if test -n "$ILBMDecodeDelegate"; then
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30468 $as_echo "$ILBMDecodeDelegate" >&6; }
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30471 $as_echo "no" >&6; }
30475 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30476 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30478 $as_echo_n "checking for $ac_word... " >&6; }
30479 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30480 $as_echo_n "(cached) " >&6
30482 case $ILBMEncodeDelegate in
30484 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30488 for as_dir in $PATH
30491 test -z "$as_dir" && as_dir=.
30492 for ac_exec_ext in '' $ac_executable_extensions; do
30493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30494 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30502 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30506 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30507 if test -n "$ILBMEncodeDelegate"; then
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30509 $as_echo "$ILBMEncodeDelegate" >&6; }
30511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30512 $as_echo "no" >&6; }
30516 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30517 set dummy "$LPDelegateDefault"; ac_word=$2
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30519 $as_echo_n "checking for $ac_word... " >&6; }
30520 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30521 $as_echo_n "(cached) " >&6
30523 case $LPDelegate in
30525 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30529 for as_dir in $PATH
30532 test -z "$as_dir" && as_dir=.
30533 for ac_exec_ext in '' $ac_executable_extensions; do
30534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30535 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30543 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30547 LPDelegate=$ac_cv_path_LPDelegate
30548 if test -n "$LPDelegate"; then
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30550 $as_echo "$LPDelegate" >&6; }
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30553 $as_echo "no" >&6; }
30557 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30558 set dummy "$LPRDelegateDefault"; ac_word=$2
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30560 $as_echo_n "checking for $ac_word... " >&6; }
30561 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30562 $as_echo_n "(cached) " >&6
30564 case $LPRDelegate in
30566 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30570 for as_dir in $PATH
30573 test -z "$as_dir" && as_dir=.
30574 for ac_exec_ext in '' $ac_executable_extensions; do
30575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30576 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30584 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30588 LPRDelegate=$ac_cv_path_LPRDelegate
30589 if test -n "$LPRDelegate"; then
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30591 $as_echo "$LPRDelegate" >&6; }
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30594 $as_echo "no" >&6; }
30598 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30599 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30601 $as_echo_n "checking for $ac_word... " >&6; }
30602 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30603 $as_echo_n "(cached) " >&6
30605 case $LZWDecodeDelegate in
30607 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611 for as_dir in $PATH
30614 test -z "$as_dir" && as_dir=.
30615 for ac_exec_ext in '' $ac_executable_extensions; do
30616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30625 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30629 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30630 if test -n "$LZWDecodeDelegate"; then
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30632 $as_echo "$LZWDecodeDelegate" >&6; }
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30635 $as_echo "no" >&6; }
30639 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30640 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30642 $as_echo_n "checking for $ac_word... " >&6; }
30643 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30644 $as_echo_n "(cached) " >&6
30646 case $LZWEncodeDelegate in
30648 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30652 for as_dir in $PATH
30655 test -z "$as_dir" && as_dir=.
30656 for ac_exec_ext in '' $ac_executable_extensions; do
30657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30658 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30666 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30670 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30671 if test -n "$LZWEncodeDelegate"; then
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30673 $as_echo "$LZWEncodeDelegate" >&6; }
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30676 $as_echo "no" >&6; }
30680 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30681 set dummy "$LaunchDelegateDefault"; ac_word=$2
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30683 $as_echo_n "checking for $ac_word... " >&6; }
30684 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30685 $as_echo_n "(cached) " >&6
30687 case $LaunchDelegate in
30689 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30693 for as_dir in $PATH
30696 test -z "$as_dir" && as_dir=.
30697 for ac_exec_ext in '' $ac_executable_extensions; do
30698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30699 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30707 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30711 LaunchDelegate=$ac_cv_path_LaunchDelegate
30712 if test -n "$LaunchDelegate"; then
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30714 $as_echo "$LaunchDelegate" >&6; }
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30717 $as_echo "no" >&6; }
30721 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30722 set dummy "$MANDelegateDefault"; ac_word=$2
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30724 $as_echo_n "checking for $ac_word... " >&6; }
30725 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30726 $as_echo_n "(cached) " >&6
30728 case $MANDelegate in
30730 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30734 for as_dir in $PATH
30737 test -z "$as_dir" && as_dir=.
30738 for ac_exec_ext in '' $ac_executable_extensions; do
30739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30740 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30748 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30752 MANDelegate=$ac_cv_path_MANDelegate
30753 if test -n "$MANDelegate"; then
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30755 $as_echo "$MANDelegate" >&6; }
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30758 $as_echo "no" >&6; }
30762 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30763 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30765 $as_echo_n "checking for $ac_word... " >&6; }
30766 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30767 $as_echo_n "(cached) " >&6
30769 case $MPEGDecodeDelegate in
30771 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30775 for as_dir in $PATH
30778 test -z "$as_dir" && as_dir=.
30779 for ac_exec_ext in '' $ac_executable_extensions; do
30780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30781 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30789 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30793 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30794 if test -n "$MPEGDecodeDelegate"; then
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30796 $as_echo "$MPEGDecodeDelegate" >&6; }
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30799 $as_echo "no" >&6; }
30803 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30804 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30806 $as_echo_n "checking for $ac_word... " >&6; }
30807 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30808 $as_echo_n "(cached) " >&6
30810 case $MPEGEncodeDelegate in
30812 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30816 for as_dir in $PATH
30819 test -z "$as_dir" && as_dir=.
30820 for ac_exec_ext in '' $ac_executable_extensions; do
30821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30822 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30830 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30834 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30835 if test -n "$MPEGEncodeDelegate"; then
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30837 $as_echo "$MPEGEncodeDelegate" >&6; }
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30840 $as_echo "no" >&6; }
30844 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30845 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30847 $as_echo_n "checking for $ac_word... " >&6; }
30848 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30849 $as_echo_n "(cached) " >&6
30851 case $MrSIDDecodeDelegate in
30853 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30857 for as_dir in $PATH
30860 test -z "$as_dir" && as_dir=.
30861 for ac_exec_ext in '' $ac_executable_extensions; do
30862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30863 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30871 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30875 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30876 if test -n "$MrSIDDecodeDelegate"; then
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30878 $as_echo "$MrSIDDecodeDelegate" >&6; }
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30881 $as_echo "no" >&6; }
30885 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30886 set dummy "$MVDelegateDefault"; ac_word=$2
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30888 $as_echo_n "checking for $ac_word... " >&6; }
30889 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30890 $as_echo_n "(cached) " >&6
30892 case $MVDelegate in
30894 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30898 for as_dir in $PATH
30901 test -z "$as_dir" && as_dir=.
30902 for ac_exec_ext in '' $ac_executable_extensions; do
30903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30904 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30912 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30916 MVDelegate=$ac_cv_path_MVDelegate
30917 if test -n "$MVDelegate"; then
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30919 $as_echo "$MVDelegate" >&6; }
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30922 $as_echo "no" >&6; }
30926 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30927 set dummy "$PCLDelegateDefault"; ac_word=$2
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30929 $as_echo_n "checking for $ac_word... " >&6; }
30930 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30931 $as_echo_n "(cached) " >&6
30933 case $PCLDelegate in
30935 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30939 for as_dir in $PATH
30942 test -z "$as_dir" && as_dir=.
30943 for ac_exec_ext in '' $ac_executable_extensions; do
30944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30945 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30953 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30957 PCLDelegate=$ac_cv_path_PCLDelegate
30958 if test -n "$PCLDelegate"; then
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30960 $as_echo "$PCLDelegate" >&6; }
30962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30963 $as_echo "no" >&6; }
30967 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30968 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30970 $as_echo_n "checking for $ac_word... " >&6; }
30971 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30972 $as_echo_n "(cached) " >&6
30974 case $PGPDecodeDelegate in
30976 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30980 for as_dir in $PATH
30983 test -z "$as_dir" && as_dir=.
30984 for ac_exec_ext in '' $ac_executable_extensions; do
30985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30986 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30994 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30998 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30999 if test -n "$PGPDecodeDelegate"; then
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31001 $as_echo "$PGPDecodeDelegate" >&6; }
31003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31004 $as_echo "no" >&6; }
31008 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31009 set dummy "$POVDelegateDefault"; ac_word=$2
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31011 $as_echo_n "checking for $ac_word... " >&6; }
31012 if test "${ac_cv_path_POVDelegate+set}" = set; then :
31013 $as_echo_n "(cached) " >&6
31015 case $POVDelegate in
31017 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31021 for as_dir in $PATH
31024 test -z "$as_dir" && as_dir=.
31025 for ac_exec_ext in '' $ac_executable_extensions; do
31026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31027 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31035 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31039 POVDelegate=$ac_cv_path_POVDelegate
31040 if test -n "$POVDelegate"; then
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31042 $as_echo "$POVDelegate" >&6; }
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31045 $as_echo "no" >&6; }
31049 for ac_prog in gsx gsc "$PSDelegateDefault"
31051 # Extract the first word of "$ac_prog", so it can be a program name with args.
31052 set dummy $ac_prog; ac_word=$2
31053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31054 $as_echo_n "checking for $ac_word... " >&6; }
31055 if test "${ac_cv_path_PSDelegate+set}" = set; then :
31056 $as_echo_n "(cached) " >&6
31058 case $PSDelegate in
31060 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31064 for as_dir in $PATH
31067 test -z "$as_dir" && as_dir=.
31068 for ac_exec_ext in '' $ac_executable_extensions; do
31069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31070 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31081 PSDelegate=$ac_cv_path_PSDelegate
31082 if test -n "$PSDelegate"; then
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31084 $as_echo "$PSDelegate" >&6; }
31086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31087 $as_echo "no" >&6; }
31091 test -n "$PSDelegate" && break
31093 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31095 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31096 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31098 $as_echo_n "checking for $ac_word... " >&6; }
31099 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31100 $as_echo_n "(cached) " >&6
31102 case $RLEEncodeDelegate in
31104 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31108 for as_dir in $PATH
31111 test -z "$as_dir" && as_dir=.
31112 for ac_exec_ext in '' $ac_executable_extensions; do
31113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31114 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31122 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31126 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31127 if test -n "$RLEEncodeDelegate"; then
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31129 $as_echo "$RLEEncodeDelegate" >&6; }
31131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31132 $as_echo "no" >&6; }
31136 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31137 set dummy "$RMDelegateDefault"; ac_word=$2
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31139 $as_echo_n "checking for $ac_word... " >&6; }
31140 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31141 $as_echo_n "(cached) " >&6
31143 case $RMDelegate in
31145 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31149 for as_dir in $PATH
31152 test -z "$as_dir" && as_dir=.
31153 for ac_exec_ext in '' $ac_executable_extensions; do
31154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31155 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31163 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31167 RMDelegate=$ac_cv_path_RMDelegate
31168 if test -n "$RMDelegate"; then
31169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31170 $as_echo "$RMDelegate" >&6; }
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31173 $as_echo "no" >&6; }
31177 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31178 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31180 $as_echo_n "checking for $ac_word... " >&6; }
31181 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31182 $as_echo_n "(cached) " >&6
31184 case $RSVGDecodeDelegate in
31186 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31190 for as_dir in $PATH
31193 test -z "$as_dir" && as_dir=.
31194 for ac_exec_ext in '' $ac_executable_extensions; do
31195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31196 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31204 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31208 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31209 if test -n "$RSVGDecodeDelegate"; then
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31211 $as_echo "$RSVGDecodeDelegate" >&6; }
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31214 $as_echo "no" >&6; }
31218 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31219 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31221 $as_echo_n "checking for $ac_word... " >&6; }
31222 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31223 $as_echo_n "(cached) " >&6
31225 case $SCANDecodeDelegate in
31227 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31231 for as_dir in $PATH
31234 test -z "$as_dir" && as_dir=.
31235 for ac_exec_ext in '' $ac_executable_extensions; do
31236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31237 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31245 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31249 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31250 if test -n "$SCANDecodeDelegate"; then
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31252 $as_echo "$SCANDecodeDelegate" >&6; }
31254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31255 $as_echo "no" >&6; }
31259 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31260 set dummy "$TXTDelegateDefault"; ac_word=$2
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31262 $as_echo_n "checking for $ac_word... " >&6; }
31263 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31264 $as_echo_n "(cached) " >&6
31266 case $TXTDelegate in
31268 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31272 for as_dir in $PATH
31275 test -z "$as_dir" && as_dir=.
31276 for ac_exec_ext in '' $ac_executable_extensions; do
31277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31278 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31286 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31290 TXTDelegate=$ac_cv_path_TXTDelegate
31291 if test -n "$TXTDelegate"; then
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31293 $as_echo "$TXTDelegate" >&6; }
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296 $as_echo "no" >&6; }
31300 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31301 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31303 $as_echo_n "checking for $ac_word... " >&6; }
31304 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31305 $as_echo_n "(cached) " >&6
31307 case $UniconvertorDelegate in
31309 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31313 for as_dir in $PATH
31316 test -z "$as_dir" && as_dir=.
31317 for ac_exec_ext in '' $ac_executable_extensions; do
31318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31319 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31327 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31331 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31332 if test -n "$UniconvertorDelegate"; then
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31334 $as_echo "$UniconvertorDelegate" >&6; }
31336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31337 $as_echo "no" >&6; }
31341 # Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31342 set dummy "$WEBPDelegateDefault"; ac_word=$2
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31344 $as_echo_n "checking for $ac_word... " >&6; }
31345 if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31346 $as_echo_n "(cached) " >&6
31348 case $WEBPDelegate in
31350 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31354 for as_dir in $PATH
31357 test -z "$as_dir" && as_dir=.
31358 for ac_exec_ext in '' $ac_executable_extensions; do
31359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31360 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31368 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31372 WEBPDelegate=$ac_cv_path_WEBPDelegate
31373 if test -n "$WEBPDelegate"; then
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31375 $as_echo "$WEBPDelegate" >&6; }
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31378 $as_echo "no" >&6; }
31382 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31383 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31385 $as_echo_n "checking for $ac_word... " >&6; }
31386 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31387 $as_echo_n "(cached) " >&6
31389 case $WMFDecodeDelegate in
31391 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31395 for as_dir in $PATH
31398 test -z "$as_dir" && as_dir=.
31399 for ac_exec_ext in '' $ac_executable_extensions; do
31400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31401 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31409 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31413 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31414 if test -n "$WMFDecodeDelegate"; then
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31416 $as_echo "$WMFDecodeDelegate" >&6; }
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31419 $as_echo "no" >&6; }
31423 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31424 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31426 $as_echo_n "checking for $ac_word... " >&6; }
31427 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31428 $as_echo_n "(cached) " >&6
31430 case $WWWDecodeDelegate in
31432 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31436 for as_dir in $PATH
31439 test -z "$as_dir" && as_dir=.
31440 for ac_exec_ext in '' $ac_executable_extensions; do
31441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31442 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31450 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31454 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31455 if test -n "$WWWDecodeDelegate"; then
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31457 $as_echo "$WWWDecodeDelegate" >&6; }
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31460 $as_echo "no" >&6; }
31464 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31465 set dummy "$XPSDelegateDefault"; ac_word=$2
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31467 $as_echo_n "checking for $ac_word... " >&6; }
31468 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31469 $as_echo_n "(cached) " >&6
31471 case $XPSDelegate in
31473 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31477 for as_dir in $PATH
31480 test -z "$as_dir" && as_dir=.
31481 for ac_exec_ext in '' $ac_executable_extensions; do
31482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31483 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31491 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31495 XPSDelegate=$ac_cv_path_XPSDelegate
31496 if test -n "$XPSDelegate"; then
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31498 $as_echo "$XPSDelegate" >&6; }
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31501 $as_echo "no" >&6; }
31505 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31506 set dummy "$ZipDelegateDefault"; ac_word=$2
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31508 $as_echo_n "checking for $ac_word... " >&6; }
31509 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31510 $as_echo_n "(cached) " >&6
31512 case $ZipDelegate in
31514 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31518 for as_dir in $PATH
31521 test -z "$as_dir" && as_dir=.
31522 for ac_exec_ext in '' $ac_executable_extensions; do
31523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31524 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31532 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31536 ZipDelegate=$ac_cv_path_ZipDelegate
31537 if test -n "$ZipDelegate"; then
31538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31539 $as_echo "$ZipDelegate" >&6; }
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31542 $as_echo "no" >&6; }
31547 # Prefer lpr to lp; lp needs options tacked on.
31548 if test "$LPRDelegate" != no; then
31549 PrintDelegate="$LPRDelegate"
31551 PrintDelegate="$LPDelegate -c -s"
31555 # Installed ImageMagick utiltity paths
31556 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31557 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31558 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31560 # Set delegate booleans
31561 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31562 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31563 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31564 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31565 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31566 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31567 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31568 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31569 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31570 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31571 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31574 # Test for font directories
31576 type_include_files=''
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31580 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31582 if test "${with_dejavu_font_dir}" != 'default'; then
31583 dejavu_font_dir="${with_dejavu_font_dir}/"
31585 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31586 if test -f "${font_dir}DejaVuSerif.ttf"; then
31587 dejavu_font_dir="${font_dir}"
31592 if test "${dejavu_font_dir}x" != 'x'; then
31593 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31595 $as_echo "$dejavu_font_dir" >&6; }
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31598 $as_echo "not found!" >&6; };
31603 windows_font_dir=''
31604 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31605 windows_font_dir="${with_windows_font_dir}/"
31607 if test "${windows_font_dir}x" != 'x'; then
31608 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31609 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31611 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31612 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31614 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31615 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31618 if test "${windows_font_dir}x" != 'x'; then
31619 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31625 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31626 ghostscript_font_dir=''
31627 if test "${with_gs_font_dir}" != 'default'; then
31628 ghostscript_font_dir="${with_gs_font_dir}/"
31630 if test "${native_win32_build}" = 'yes'; then
31631 # Native Windows Build
31632 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31633 if test -f "${font_dir}a010013l.pfb"; then
31634 ghostscript_font_dir="$font_dir"
31638 if test "${PSDelegate}" != 'gswin32c'; then
31639 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31642 # Linux / Mac OS X / Unix Build
31643 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
31644 if test -f "${font_dir}a010013l.pfb"; then
31645 ghostscript_font_dir="${font_dir}"
31649 if test "${ghostscript_font_dir}x" = 'x'; then
31650 if test "$PSDelegate" != 'gs'; then
31651 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31656 if test "${ghostscript_font_dir}x" != 'x'; then
31657 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31659 $as_echo "$ghostscript_font_dir" >&6; }
31661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31662 $as_echo "not found!" >&6; };
31665 case "${build_os}" in
31667 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31674 # Handle case where user doesn't want frozen paths
31676 if test "$with_frozenpaths" != 'yes'; then
31677 # Re-set delegate definitions to default (no paths)
31678 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31679 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31680 BZIPDelegate="$BZIPDelegateDefault"
31681 BrowseDelegate="$BrowseDelegateDefault"
31682 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31683 CatDelegate="$CatDelegateDefault"
31684 ConvertDelegate="$ConvertDelegateDefault"
31685 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31686 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31687 EchoDelegate="$EchoDelegateDefault"
31688 EditorDelegate="$EditorDelegateDefault"
31689 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31690 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31691 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31692 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31693 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31694 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31695 LPDelegate="$LPDelegateDefault"
31696 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31697 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31698 LaunchDelegate="$LaunchDelegateDefault"
31699 MANDelegate="$MANDelegateDefault"
31700 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31701 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31702 MogrifyDelegate="$MogrifyDelegateDefault"
31703 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31704 MVDelegate="$MVDelegateDefault"
31705 PCLDelegate="$PCLDelegateDefault"
31706 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31707 POVDelegate="$POVDelegateDefault"
31708 PSDelegate="$PSDelegateDefault"
31709 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31710 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31711 RMDelegate="$RMDelegateDefault"
31712 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31713 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31714 ShowImageDelegate="$ShowImageDelegateDefault"
31715 TXTDelegate="$TXTDelegateDefault"
31716 UniconvertorDelegate="$UniconvertorDelegateDefault"
31717 WEBPDelegate="$WEBPDelegateDefault"
31718 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31719 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31720 XPSDelegate="$XPSDelegateDefault"
31721 ZipDelegate="$ZipDelegateDefault"
31724 # Delegate substitutions
31773 for ac_prog in gnutar gtar tar
31775 # Extract the first word of "$ac_prog", so it can be a program name with args.
31776 set dummy $ac_prog; ac_word=$2
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31778 $as_echo_n "checking for $ac_word... " >&6; }
31779 if test "${ac_cv_prog_TAR+set}" = set; then :
31780 $as_echo_n "(cached) " >&6
31782 if test -n "$TAR"; then
31783 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31786 for as_dir in $PATH
31789 test -z "$as_dir" && as_dir=.
31790 for ac_exec_ext in '' $ac_executable_extensions; do
31791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31792 ac_cv_prog_TAR="$ac_prog"
31793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31802 TAR=$ac_cv_prog_TAR
31803 if test -n "$TAR"; then
31804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31805 $as_echo "$TAR" >&6; }
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31808 $as_echo "no" >&6; }
31812 test -n "$TAR" && break
31815 for ac_prog in perl
31817 # Extract the first word of "$ac_prog", so it can be a program name with args.
31818 set dummy $ac_prog; ac_word=$2
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31820 $as_echo_n "checking for $ac_word... " >&6; }
31821 if test "${ac_cv_prog_PERL+set}" = set; then :
31822 $as_echo_n "(cached) " >&6
31824 if test -n "$PERL"; then
31825 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31828 for as_dir in $PATH
31831 test -z "$as_dir" && as_dir=.
31832 for ac_exec_ext in '' $ac_executable_extensions; do
31833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31834 ac_cv_prog_PERL="$ac_prog"
31835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31844 PERL=$ac_cv_prog_PERL
31845 if test -n "$PERL"; then
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31847 $as_echo "$PERL" >&6; }
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31850 $as_echo "no" >&6; }
31854 test -n "$PERL" && break
31857 for ac_prog in rpmbuild rpm
31859 # Extract the first word of "$ac_prog", so it can be a program name with args.
31860 set dummy $ac_prog; ac_word=$2
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31862 $as_echo_n "checking for $ac_word... " >&6; }
31863 if test "${ac_cv_prog_RPM+set}" = set; then :
31864 $as_echo_n "(cached) " >&6
31866 if test -n "$RPM"; then
31867 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31870 for as_dir in $PATH
31873 test -z "$as_dir" && as_dir=.
31874 for ac_exec_ext in '' $ac_executable_extensions; do
31875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31876 ac_cv_prog_RPM="$ac_prog"
31877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31886 RPM=$ac_cv_prog_RPM
31887 if test -n "$RPM"; then
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31889 $as_echo "$RPM" >&6; }
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31892 $as_echo "no" >&6; }
31896 test -n "$RPM" && break
31900 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31903 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31906 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31909 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31912 if test "x$RPM" != "x" ; then
31914 RPM_DELEGATE_FALSE='#'
31916 RPM_DELEGATE_TRUE='#'
31917 RPM_DELEGATE_FALSE=
31922 # 7ZIP support (http://p7zip.sourceforge.net/)
31927 # Extract the first word of "$ac_prog", so it can be a program name with args.
31928 set dummy $ac_prog; ac_word=$2
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31930 $as_echo_n "checking for $ac_word... " >&6; }
31931 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31932 $as_echo_n "(cached) " >&6
31934 if test -n "$P7ZIP"; then
31935 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938 for as_dir in $PATH
31941 test -z "$as_dir" && as_dir=.
31942 for ac_exec_ext in '' $ac_executable_extensions; do
31943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31944 ac_cv_prog_P7ZIP="$ac_prog"
31945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31954 P7ZIP=$ac_cv_prog_P7ZIP
31955 if test -n "$P7ZIP"; then
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31957 $as_echo "$P7ZIP" >&6; }
31959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31960 $as_echo "no" >&6; }
31964 test -n "$P7ZIP" && break
31968 if test "x$P7ZIP" != "x" ; then
31969 P7ZIP_DELEGATE_TRUE=
31970 P7ZIP_DELEGATE_FALSE='#'
31972 P7ZIP_DELEGATE_TRUE='#'
31973 P7ZIP_DELEGATE_FALSE=
31978 # ZIP support (http://www.info-zip.org/Zip.html)
31983 # Extract the first word of "$ac_prog", so it can be a program name with args.
31984 set dummy $ac_prog; ac_word=$2
31985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31986 $as_echo_n "checking for $ac_word... " >&6; }
31987 if test "${ac_cv_prog_ZIP+set}" = set; then :
31988 $as_echo_n "(cached) " >&6
31990 if test -n "$ZIP"; then
31991 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31994 for as_dir in $PATH
31997 test -z "$as_dir" && as_dir=.
31998 for ac_exec_ext in '' $ac_executable_extensions; do
31999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32000 ac_cv_prog_ZIP="$ac_prog"
32001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32010 ZIP=$ac_cv_prog_ZIP
32011 if test -n "$ZIP"; then
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32013 $as_echo "$ZIP" >&6; }
32015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32016 $as_echo "no" >&6; }
32020 test -n "$ZIP" && break
32024 if test "x$ZIP" != "x" ; then
32026 ZIP_DELEGATE_FALSE='#'
32028 ZIP_DELEGATE_TRUE='#'
32029 ZIP_DELEGATE_FALSE=
32034 # GhostPCL related configuration.
32036 PCLColorDevice=ppmraw
32037 PCLCMYKDevice=bmpsep8
32038 PCLMonoDevice=pbmraw
32039 if test -z "$PCLVersion"; then
32040 PCLVersion='unknown'
32042 if test $have_pcl = 'yes'; then
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32044 $as_echo "-------------------------------------------------------------" >&6; }
32045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32046 $as_echo_n "checking for PCL... " >&6; }
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32051 $as_echo_n "checking for pcl color device... " >&6; }
32052 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32055 PCLColorDevice=ppmraw
32057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32058 $as_echo "$PCLColorDevice" >&6; }
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32062 $as_echo_n "checking for pcl CMYK device... " >&6; }
32063 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32066 PCLCMYKDevice=$PCLColorDevice
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32069 $as_echo "$PCLCMYKDevice" >&6; }
32072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32073 $as_echo_n "checking for pcl mono device... " >&6; }
32074 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32077 PCLMonoDevice=$PCLColorDevice
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32080 $as_echo "$PCLMonoDevice" >&6; }
32089 # GhostXPS related configuration.
32091 XPSColorDevice=ppmraw
32092 XPSCMYKDevice=bmpsep8
32093 XPSMonoDevice=pbmraw
32094 if test -z "$XPSVersion"; then
32095 XPSVersion='unknown'
32097 if test $have_xps = 'yes'; then
32098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32099 $as_echo "-------------------------------------------------------------" >&6; }
32100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32101 $as_echo_n "checking for XPS... " >&6; }
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32106 $as_echo_n "checking for xps color device... " >&6; }
32107 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32110 XPSColorDevice=ppmraw
32112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32113 $as_echo "$XPSColorDevice" >&6; }
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32117 $as_echo_n "checking for xps CMYK device... " >&6; }
32118 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32121 XPSCMYKDevice=$XPSColorDevice
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32124 $as_echo "$XPSCMYKDevice" >&6; }
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32128 $as_echo_n "checking for xps mono device... " >&6; }
32129 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32132 XPSMonoDevice=$XPSColorDevice
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32135 $as_echo "$XPSMonoDevice" >&6; }
32144 # Ghostscript related configuration.
32146 if test "$have_png" = 'yes'; then
32147 GSAlphaDevice=pngalpha
32149 GSAlphaDevice=pnmraw
32151 GSColorDevice=pnmraw
32153 GSMonoDevice=pbmraw
32154 GSPDFDevice=pdfwrite
32156 GSEPSDevice=epswrite
32157 GSVersion='unknown'
32158 if test $have_gs = 'yes'; then
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32160 $as_echo "-------------------------------------------------------------" >&6; }
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32162 $as_echo_n "checking for Ghostscript... " >&6; }
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32166 $as_echo_n "checking for Ghostscript version... " >&6; }
32167 if GSVersion=`$PSDelegate --version`; then
32170 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32173 $as_echo "$GSVersion" >&6; }
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32177 $as_echo_n "checking for gs alpha device... " >&6; }
32178 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32181 GSAlphaDevice=pnmraw
32183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32184 $as_echo "$GSAlphaDevice" >&6; }
32187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32188 $as_echo_n "checking for gs color device... " >&6; }
32189 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32192 GSColorDevice=pnmraw
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32195 $as_echo "$GSColorDevice" >&6; }
32198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32199 $as_echo_n "checking for gs CMYK device... " >&6; }
32200 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32203 GSCMYKDevice=bmpsep8
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32206 $as_echo "$GSCMYKDevice" >&6; }
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32210 $as_echo_n "checking for gs mono device... " >&6; }
32211 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32214 GSMonoDevice=$GSColorDevice
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32217 $as_echo "$GSMonoDevice" >&6; }
32220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32221 $as_echo_n "checking for gs PDF writing device... " >&6; }
32222 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32225 GSPDFDevice=nodevice
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32228 $as_echo "$GSPDFDevice" >&6; }
32231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32232 $as_echo_n "checking for gs PS writing device... " >&6; }
32233 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32236 GSPSDevice=nodevice
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32239 $as_echo "$GSPSDevice" >&6; }
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32243 $as_echo_n "checking for gs EPS writing device... " >&6; }
32244 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32247 GSEPSDevice=nodevice
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32250 $as_echo "$GSEPSDevice" >&6; }
32263 # PerlMagick-related configuration
32266 # Look for PERL if PerlMagick requested
32267 # If name/path of desired PERL interpreter is specified, look for that one first
32269 if test "$with_perl" != 'no'; then
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32271 $as_echo "-------------------------------------------------------------" >&6; }
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32273 $as_echo_n "checking for Perl... " >&6; }
32274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32276 if test "$with_perl" != 'yes'; then
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32278 $as_echo_n "checking for perl... " >&6; }
32279 if test "${ac_cv_path_PERL+set}" = set; then :
32280 $as_echo_n "(cached) " >&6
32282 ac_cv_path_PERL="$with_perl"
32284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32285 $as_echo "$ac_cv_path_PERL" >&6; };
32286 PERL=$ac_cv_path_PERL
32287 have_perl="$ac_cv_path_PERL"
32289 for ac_prog in perl perl5
32291 # Extract the first word of "$ac_prog", so it can be a program name with args.
32292 set dummy $ac_prog; 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 test "${ac_cv_path_PERL+set}" = set; then :
32296 $as_echo_n "(cached) " >&6
32300 ac_cv_path_PERL="$PERL" # 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_PERL="$as_dir/$ac_word$ac_exec_ext"
32311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32321 PERL=$ac_cv_path_PERL
32322 if test -n "$PERL"; then
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32324 $as_echo "$PERL" >&6; }
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32327 $as_echo "no" >&6; }
32331 test -n "$PERL" && break
32333 if test "$ac_cv_path_PERL"; then
32334 have_perl="$ac_cv_path_PERL"
32339 if test "$with_perl" != 'yes' ; then
32340 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32343 PERL_SUPPORTS_DESTDIR='no'
32345 with_perl_static='no'
32346 with_perl_dynamic='no'
32347 if test "$have_perl" != 'no'; then
32348 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32349 with_perl_static='yes'
32351 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32352 with_perl_dynamic='yes'
32354 # Is PERL's MakeMaker new enough to support DESTDIR?
32359 if test -n "$PERL"; then :
32361 ax_perl_version="5.8.1"
32363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32364 $as_echo_n "checking for perl version... " >&6; }
32366 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32369 $as_echo "$perl_version" >&6; }
32371 PERL_VERSION=$perl_version
32377 # Used to indicate true or false condition
32378 ax_compare_version=false
32380 # Convert the two version strings to be compared into a format that
32381 # allows a simple string comparison. The end result is that a version
32382 # string of the form 1.12.5-r617 will be converted to the form
32383 # 0001001200050617. In other words, each number is zero padded to four
32384 # digits, and non digits are removed.
32386 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32387 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32388 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32389 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32393 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32394 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32395 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32396 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32400 ax_compare_version=`echo "x$ax_compare_version_A
32401 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32405 if test "$ax_compare_version" = "true" ; then
32408 PERL_SUPPORTS_DESTDIR='yes'
32412 PERL_SUPPORTS_DESTDIR='no'
32419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32420 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32421 PERL_SUPPORTS_DESTDIR='no'
32426 if test "$have_perl" != 'no'; then
32428 WITH_PERL_FALSE='#'
32434 if test $with_perl_static = 'yes'; then
32435 WITH_PERL_STATIC_TRUE=
32436 WITH_PERL_STATIC_FALSE='#'
32438 WITH_PERL_STATIC_TRUE='#'
32439 WITH_PERL_STATIC_FALSE=
32442 if test $with_perl_dynamic = 'yes'; then
32443 WITH_PERL_DYNAMIC_TRUE=
32444 WITH_PERL_DYNAMIC_FALSE='#'
32446 WITH_PERL_DYNAMIC_TRUE='#'
32447 WITH_PERL_DYNAMIC_FALSE=
32452 # Determine path to pick up MagickCore library from for use with building PerlMagick
32453 MAGICKCORE_PATH="${LIB_DIR}"
32454 if test $with_perl_static = 'yes'; then
32455 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32456 libtool_objdir=$objdir
32458 # Linker search path to library, followed by -lMagickCore
32459 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32463 # Create a simple string containing format names for all delegate libraries
32465 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32466 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32467 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32468 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32469 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32470 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32471 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32472 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32473 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32474 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32475 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32476 if test "$have_jpeg" = 'yes'; then
32477 DELEGATES="$DELEGATES jpeg";
32478 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32480 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32481 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32482 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32483 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32484 if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
32485 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32486 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32487 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32488 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32489 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32490 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32491 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32492 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32493 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32498 # Handle special compiler flags
32501 # Add '-p' if prof source profiling support enabled
32502 if test "$enable_prof" = 'yes'; then
32503 CFLAGS="-p $CFLAGS"
32504 CXXFLAGS="-p $CXXFLAGS"
32505 LDFLAGS="-p $LDFLAGS"
32508 # Add '-pg' if gprof source profiling support enabled
32509 if test "$enable_gprof" = 'yes'; then
32510 CFLAGS="-pg $CFLAGS"
32511 CXXFLAGS="-pg $CXXFLAGS"
32512 LDFLAGS="-pg $LDFLAGS"
32515 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32516 # This is a gcc-specific feature
32517 if test "$enable_gcov" = 'yes'; then
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32519 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32520 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32521 $as_echo_n "(cached) " >&6
32523 ac_check_lib_save_LIBS=$LIBS
32524 LIBS="-lgcov $LIBS"
32525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32526 /* end confdefs.h. */
32528 /* Override any GCC internal prototype to avoid an error.
32529 Use char because int might match the return type of a GCC
32530 builtin and then its argument prototype would still apply. */
32534 char _gcov_init ();
32538 return _gcov_init ();
32543 if ac_fn_c_try_link "$LINENO"; then :
32544 ac_cv_lib_gcov__gcov_init=yes
32546 ac_cv_lib_gcov__gcov_init=no
32548 rm -f core conftest.err conftest.$ac_objext \
32549 conftest$ac_exeext conftest.$ac_ext
32550 LIBS=$ac_check_lib_save_LIBS
32552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32553 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32554 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32555 cat >>confdefs.h <<_ACEOF
32556 #define HAVE_LIBGCOV 1
32559 LIBS="-lgcov $LIBS"
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32564 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32565 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32566 $as_echo_n "(cached) " >&6
32568 ac_check_lib_save_LIBS=$LIBS
32569 LIBS="-lgcov $LIBS"
32570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32571 /* end confdefs.h. */
32573 /* Override any GCC internal prototype to avoid an error.
32574 Use char because int might match the return type of a GCC
32575 builtin and then its argument prototype would still apply. */
32579 char __gcov_init ();
32583 return __gcov_init ();
32588 if ac_fn_c_try_link "$LINENO"; then :
32589 ac_cv_lib_gcov___gcov_init=yes
32591 ac_cv_lib_gcov___gcov_init=no
32593 rm -f core conftest.err conftest.$ac_objext \
32594 conftest$ac_exeext conftest.$ac_ext
32595 LIBS=$ac_check_lib_save_LIBS
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32598 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32599 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32600 cat >>confdefs.h <<_ACEOF
32601 #define HAVE_LIBGCOV 1
32604 LIBS="-lgcov $LIBS"
32608 case "$target_os" in
32610 OSX_GCOV_LDFLAG="-Wl,-single_module"
32617 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32618 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32619 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32623 # Build library dependency list for libMagickCore
32626 MAGICK_LIBLTDL='' # Libltdl for build
32627 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32628 MAGICK_LTDLDEPS='' # extra libltdl dependencies
32629 if test "$with_ltdl" != 'no'
32631 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32632 MAGICK_API_LIBLTDL='-lltdl'
32634 MAGICK_LIBLTDL=${LIBLTDL}
32635 MAGICK_LTDLDEPS=${LTDLDEPS}
32640 if test "$with_modules" != 'no'; then
32641 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"
32643 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 $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"
32648 # Remove extraneous spaces from output variables (asthetic)
32650 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32651 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32652 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32653 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32655 CC=`echo $CC | sed -e 's/ */ /g'`
32656 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32657 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32658 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32659 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32660 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32661 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32662 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32663 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32664 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32666 # Pass only user-provided LIBS as "global" libraries
32669 #AC_SUBST(CPPFLAGS)
32672 #AC_SUBST(X_PRE_LIBS)
32674 #AC_SUBST(X_EXTRA_LIBS)
32676 MAGICK_CFLAGS=$CFLAGS
32677 MAGICK_CXXFLAGS="$CXXFLAGS"
32678 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32679 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32680 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32681 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32691 # Set configured scripts to executable.
32692 ac_config_commands="$ac_config_commands default"
32694 ac_config_commands="$ac_config_commands MagickCore-config.in"
32696 ac_config_commands="$ac_config_commands Magick-config.in"
32698 ac_config_commands="$ac_config_commands MagickWand-config.in"
32700 ac_config_commands="$ac_config_commands Wand-config.in"
32702 ac_config_commands="$ac_config_commands Magick++-config.in"
32704 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32708 $as_echo "-------------------------------------------------------------" >&6; }
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32710 $as_echo "Update ImageMagick configuration" >&6; }
32711 cat >confcache <<\_ACEOF
32712 # This file is a shell script that caches the results of configure
32713 # tests run on this system so they can be shared between configure
32714 # scripts and configure runs, see configure's option --config-cache.
32715 # It is not useful on other systems. If it contains results you don't
32716 # want to keep, you may remove or edit it.
32718 # config.status only pays attention to the cache file if you give it
32719 # the --recheck option to rerun configure.
32721 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32722 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32723 # following values.
32727 # The following way of writing the cache mishandles newlines in values,
32728 # but we know of no workaround that is simple, portable, and efficient.
32729 # So, we kill variables containing newlines.
32730 # Ultrix sh set writes to stderr and can't be redirected directly,
32731 # and sets the high bit in the cache file unless we assign to the vars.
32733 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32734 eval ac_val=\$$ac_var
32738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32742 _ | IFS | as_nl) ;; #(
32743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32744 *) { eval $ac_var=; unset $ac_var;} ;;
32750 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32751 *${as_nl}ac_space=\ *)
32752 # `set' does not quote correctly, so add quotes: double-quote
32753 # substitution turns \\\\ into \\, and sed turns \\ into \.
32756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32759 # `set' quotes correctly as required by POSIX, so do not add quotes.
32760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32771 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32773 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32774 if test -w "$cache_file"; then
32775 test "x$cache_file" != "x/dev/null" &&
32776 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32777 $as_echo "$as_me: updating cache $cache_file" >&6;}
32778 cat confcache >$cache_file
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32781 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32787 # Let make expand exec_prefix.
32788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32790 DEFS=-DHAVE_CONFIG_H
32795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32796 # 1. Remove the extension, and $U if already installed.
32797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32800 # will be set to the directory where LIBOBJS objects are built.
32801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32804 LIBOBJS=$ac_libobjs
32806 LTLIBOBJS=$ac_ltlibobjs
32809 if test -n "$EXEEXT"; then
32811 am__EXEEXT_FALSE='#'
32813 am__EXEEXT_TRUE='#'
32817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32818 as_fn_error $? "conditional \"AMDEP\" was never defined.
32819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32822 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32826 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32829 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32830 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32833 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32834 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
32835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32837 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32838 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32841 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32842 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
32843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32845 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32846 as_fn_error $? "conditional \"USING_CL\" was never defined.
32847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32849 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32850 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
32851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32853 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32854 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
32855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32857 LT_CONFIG_H=config/config.h
32861 if test -n "$_LT_LIBOBJS"; then
32862 # Remove the extension.
32863 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32864 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32865 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32866 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32869 ltdl_LIBOBJS=$_ltdl_libobjs
32871 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32874 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32875 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
32876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32878 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32879 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
32880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32882 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32883 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
32884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32886 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32887 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32891 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32892 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32895 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32896 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32899 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32900 as_fn_error $? "conditional \"HasUMEM\" was never defined.
32901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32903 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32904 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
32905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32907 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32908 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
32909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32911 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32912 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
32913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32915 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32916 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32919 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32920 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
32921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32923 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32924 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
32925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32927 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32928 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
32929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32931 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32932 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
32933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32935 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32936 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32939 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32940 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
32941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32943 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32944 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
32945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32947 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32948 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
32949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32951 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32952 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
32953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32955 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32956 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
32957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32959 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32960 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
32961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32963 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32964 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
32965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32967 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32968 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
32969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32971 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
32972 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
32973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32975 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32976 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
32977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32979 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32980 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
32981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32983 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32984 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
32985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32987 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32988 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
32989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32991 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32992 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
32993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32995 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32996 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
32997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32999 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33000 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
33001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33003 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33004 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
33005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33007 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33008 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
33009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33011 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33012 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
33013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33015 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33016 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
33017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33019 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33020 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
33021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33023 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33024 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33028 : ${CONFIG_STATUS=./config.status}
33030 ac_clean_files_save=$ac_clean_files
33031 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33033 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33035 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33037 # Generated by $as_me.
33038 # Run this file to recreate the current configuration.
33039 # Compiler output produced by configure, useful for debugging
33040 # configure, is in config.log if it exists.
33043 ac_cs_recheck=false
33046 SHELL=\${CONFIG_SHELL-$SHELL}
33049 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33050 ## -------------------- ##
33051 ## M4sh Initialization. ##
33052 ## -------------------- ##
33054 # Be more Bourne compatible
33055 DUALCASE=1; export DUALCASE # for MKS sh
33056 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33060 # is contrary to our usage. Disable this feature.
33061 alias -g '${1+"$@"}'='"$@"'
33062 setopt NO_GLOB_SUBST
33064 case `(set -o) 2>/dev/null` in #(
33076 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33077 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33078 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33080 # Prefer a ksh shell builtin over an external printf program on Solaris,
33081 # but without wasting forks for bash or zsh.
33082 if test -z "$BASH_VERSION$ZSH_VERSION" \
33083 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33084 as_echo='print -r --'
33085 as_echo_n='print -rn --'
33086 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33087 as_echo='printf %s\n'
33088 as_echo_n='printf %s'
33090 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33091 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33092 as_echo_n='/usr/ucb/echo -n'
33094 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33095 as_echo_n_body='eval
33099 expr "X$arg" : "X\\(.*\\)$as_nl";
33100 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33102 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33104 export as_echo_n_body
33105 as_echo_n='sh -c $as_echo_n_body as_echo'
33107 export as_echo_body
33108 as_echo='sh -c $as_echo_body as_echo'
33111 # The user is always right.
33112 if test "${PATH_SEPARATOR+set}" != set; then
33114 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33115 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33122 # We need space, tab and new line, in precisely that order. Quoting is
33123 # there to prevent editors from complaining about space-tab.
33124 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33125 # splitting by setting IFS to empty value.)
33128 # Find who we are. Look in the path if we contain no directory separator.
33130 *[\\/]* ) as_myself=$0 ;;
33131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33132 for as_dir in $PATH
33135 test -z "$as_dir" && as_dir=.
33136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33142 # We did not find ourselves, most probably we were run as `sh COMMAND'
33143 # in which case we are not to be found in the path.
33144 if test "x$as_myself" = x; then
33147 if test ! -f "$as_myself"; then
33148 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33152 # Unset variables that we do not need and which cause bugs (e.g. in
33153 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33154 # suppresses any "Segmentation fault" message there. '((' could
33155 # trigger a bug in pdksh 5.2.14.
33156 for as_var in BASH_ENV ENV MAIL MAILPATH
33157 do eval test x\${$as_var+set} = xset \
33158 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33171 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33174 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33175 # ----------------------------------------
33176 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33177 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33178 # script with STATUS, using 1 if that was 0.
33181 as_status=$1; test $as_status -eq 0 && as_status=1
33183 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33184 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33186 $as_echo "$as_me: error: $2" >&2
33187 as_fn_exit $as_status
33191 # as_fn_set_status STATUS
33192 # -----------------------
33193 # Set $? to STATUS, without forking.
33194 as_fn_set_status ()
33197 } # as_fn_set_status
33199 # as_fn_exit STATUS
33200 # -----------------
33201 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33205 as_fn_set_status $1
33211 # Portably unset VAR.
33214 { eval $1=; unset $1;}
33216 as_unset=as_fn_unset
33217 # as_fn_append VAR VALUE
33218 # ----------------------
33219 # Append the text in VALUE to the end of the definition contained in VAR. Take
33220 # advantage of any shell optimizations that allow amortized linear growth over
33221 # repeated appends, instead of the typical quadratic growth present in naive
33223 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33224 eval 'as_fn_append ()
33235 # as_fn_arith ARG...
33236 # ------------------
33237 # Perform arithmetic evaluation on the ARGs, and store the result in the
33238 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33239 # must be portable across $(()) and expr.
33240 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33241 eval 'as_fn_arith ()
33248 as_val=`expr "$@" || test $? -eq 1`
33253 if expr a : '\(a\)' >/dev/null 2>&1 &&
33254 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33260 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33261 as_basename=basename
33266 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33272 as_me=`$as_basename -- "$0" ||
33273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33274 X"$0" : 'X\(//\)$' \| \
33275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33277 sed '/^.*\/\([^/][^/]*\)\/*$/{
33291 # Avoid depending upon Character Ranges.
33292 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33293 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33294 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33295 as_cr_digits='0123456789'
33296 as_cr_alnum=$as_cr_Letters$as_cr_digits
33298 ECHO_C= ECHO_N= ECHO_T=
33299 case `echo -n x` in #(((((
33301 case `echo 'xy\c'` in
33302 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33304 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33311 rm -f conf$$ conf$$.exe conf$$.file
33312 if test -d conf$$.dir; then
33313 rm -f conf$$.dir/conf$$.file
33316 mkdir conf$$.dir 2>/dev/null
33318 if (echo >conf$$.file) 2>/dev/null; then
33319 if ln -s conf$$.file conf$$ 2>/dev/null; then
33321 # ... but there are two gotchas:
33322 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33323 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33324 # In both cases, we have to default to `cp -p'.
33325 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33327 elif ln conf$$.file conf$$ 2>/dev/null; then
33335 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33336 rmdir conf$$.dir 2>/dev/null
33341 # Create "$as_dir" as a directory, including parents if necessary.
33346 -*) as_dir=./$as_dir;;
33348 test -d "$as_dir" || eval $as_mkdir_p || {
33352 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33353 *) as_qdir=$as_dir;;
33355 as_dirs="'$as_qdir' $as_dirs"
33356 as_dir=`$as_dirname -- "$as_dir" ||
33357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33358 X"$as_dir" : 'X\(//\)[^/]' \| \
33359 X"$as_dir" : 'X\(//\)$' \| \
33360 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33361 $as_echo X"$as_dir" |
33362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33366 /^X\(\/\/\)[^/].*/{
33379 test -d "$as_dir" && break
33381 test -z "$as_dirs" || eval "mkdir $as_dirs"
33382 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33386 if mkdir -p . 2>/dev/null; then
33387 as_mkdir_p='mkdir -p "$as_dir"'
33389 test -d ./-p && rmdir ./-p
33393 if test -x / >/dev/null 2>&1; then
33394 as_test_x='test -x'
33396 if ls -dL / >/dev/null 2>&1; then
33403 if test -d "$1"; then
33409 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33410 ???[sx]*):;;*)false;;esac;fi
33414 as_executable_p=$as_test_x
33416 # Sed expression to map a string onto a valid CPP name.
33417 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33419 # Sed expression to map a string onto a valid variable name.
33420 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33424 ## ----------------------------------- ##
33425 ## Main body of $CONFIG_STATUS script. ##
33426 ## ----------------------------------- ##
33428 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33431 # Save the log message, to keep $0 and so on meaningful, and to
33432 # report actual input values of CONFIG_FILES etc. instead of their
33433 # values after options handling.
33435 This file was extended by ImageMagick $as_me 6.6.6, which was
33436 generated by GNU Autoconf 2.66. Invocation command line was
33438 CONFIG_FILES = $CONFIG_FILES
33439 CONFIG_HEADERS = $CONFIG_HEADERS
33440 CONFIG_LINKS = $CONFIG_LINKS
33441 CONFIG_COMMANDS = $CONFIG_COMMANDS
33444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33449 case $ac_config_files in *"
33450 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33453 case $ac_config_headers in *"
33454 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33459 # Files that config.status was made for.
33460 config_files="$ac_config_files"
33461 config_headers="$ac_config_headers"
33462 config_commands="$ac_config_commands"
33466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33468 \`$as_me' instantiates files and other configuration actions
33469 from templates according to the current configuration. Unless the files
33470 and actions are specified as TAGs, all are instantiated by default.
33472 Usage: $0 [OPTION]... [TAG]...
33474 -h, --help print this help, then exit
33475 -V, --version print version number and configuration settings, then exit
33476 --config print configuration, then exit
33477 -q, --quiet, --silent
33478 do not print progress messages
33479 -d, --debug don't remove temporary files
33480 --recheck update $as_me by reconfiguring in the same conditions
33481 --file=FILE[:TEMPLATE]
33482 instantiate the configuration file FILE
33483 --header=FILE[:TEMPLATE]
33484 instantiate the configuration header FILE
33486 Configuration files:
33489 Configuration headers:
33492 Configuration commands:
33495 Report bugs to <http://www.imagemagick.org>."
33498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33499 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33501 ImageMagick config.status 6.6.6
33502 configured by $0, generated by GNU Autoconf 2.66,
33503 with options \\"\$ac_cs_config\\"
33505 Copyright (C) 2010 Free Software Foundation, Inc.
33506 This config.status script is free software; the Free Software Foundation
33507 gives unlimited permission to copy, distribute and modify it."
33514 test -n "\$AWK" || AWK=awk
33517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33518 # The default lists apply if the user does not specify any file.
33524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33536 # Handling of the options.
33537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33540 $as_echo "$ac_cs_version"; exit ;;
33541 --config | --confi | --conf | --con | --co | --c )
33542 $as_echo "$ac_cs_config"; exit ;;
33543 --debug | --debu | --deb | --de | --d | -d )
33545 --file | --fil | --fi | --f )
33548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33550 as_fn_append CONFIG_FILES " '$ac_optarg'"
33551 ac_need_defaults=false;;
33552 --header | --heade | --head | --hea )
33555 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33557 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33558 ac_need_defaults=false;;
33560 # Conflict between --help and --header
33561 as_fn_error $? "ambiguous option: \`$1'
33562 Try \`$0 --help' for more information.";;
33563 --help | --hel | -h )
33564 $as_echo "$ac_cs_usage"; exit ;;
33565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33569 # This is an error.
33570 -*) as_fn_error $? "unrecognized option: \`$1'
33571 Try \`$0 --help' for more information." ;;
33573 *) as_fn_append ac_config_targets " $1"
33574 ac_need_defaults=false ;;
33580 ac_configure_extra_args=
33582 if $ac_cs_silent; then
33584 ac_configure_extra_args="$ac_configure_extra_args --silent"
33588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33589 if \$ac_cs_recheck; then
33590 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33592 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33593 CONFIG_SHELL='$SHELL'
33594 export CONFIG_SHELL
33599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33604 ## Running $as_me. ##
33610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33615 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33618 # The HP-UX ksh and POSIX shell print the target directory to stdout
33619 # if CDPATH is set.
33620 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33622 sed_quote_subst='$sed_quote_subst'
33623 double_quote_subst='$double_quote_subst'
33624 delay_variable_subst='$delay_variable_subst'
33625 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33626 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33627 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33628 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33629 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33630 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33631 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33632 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33635 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33636 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33637 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33638 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33639 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33640 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33641 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33648 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33649 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33650 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33651 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33652 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33653 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33654 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33655 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33656 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33657 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33658 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33659 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33660 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33661 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33662 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33663 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33664 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33665 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33666 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33667 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33668 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33669 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33670 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33671 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33672 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33673 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33674 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33675 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"`'
33676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33679 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33680 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33684 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33685 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33686 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33687 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33688 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33689 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33690 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33691 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33692 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33693 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33694 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33695 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33696 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33697 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33698 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33699 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33700 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33701 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33702 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33703 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33704 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33705 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33706 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33707 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33716 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33717 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33718 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33719 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33720 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33721 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33747 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33748 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33749 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33750 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33751 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33752 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33753 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33754 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33755 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33756 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33757 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33758 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33759 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33760 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33761 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33762 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33763 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33764 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33765 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33766 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33767 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33768 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33769 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33770 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33771 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33772 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33773 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33774 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33775 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33776 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33777 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33778 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33779 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33780 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33781 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33782 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33783 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33784 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33785 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33786 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33787 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33788 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33789 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33790 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33791 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33792 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33793 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33794 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33795 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33796 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33797 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33798 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33799 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33800 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33801 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33804 LTCFLAGS='$LTCFLAGS'
33805 compiler='$compiler_DEFAULT'
33807 # A function that is used when there is no print builtin or printf.
33808 func_fallback_echo ()
33810 eval 'cat <<_LTECHO_EOF
33815 # Quote evaled strings.
33831 deplibs_check_method \
33840 lt_cv_sys_global_symbol_pipe \
33841 lt_cv_sys_global_symbol_to_cdecl \
33842 lt_cv_sys_global_symbol_to_c_name_address \
33843 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33844 lt_prog_compiler_no_builtin_flag \
33845 lt_prog_compiler_wl \
33846 lt_prog_compiler_pic \
33847 lt_prog_compiler_static \
33848 lt_cv_prog_compiler_c_o \
33856 export_dynamic_flag_spec \
33857 whole_archive_flag_spec \
33858 compiler_needs_object \
33860 allow_undefined_flag \
33861 no_undefined_flag \
33862 hardcode_libdir_flag_spec \
33863 hardcode_libdir_flag_spec_ld \
33864 hardcode_libdir_separator \
33869 variables_saved_for_relink \
33871 library_names_spec \
33873 install_override_mode \
33877 compiler_lib_search_dirs \
33882 compiler_lib_search_path \
33886 lt_prog_compiler_no_builtin_flag_CXX \
33887 lt_prog_compiler_wl_CXX \
33888 lt_prog_compiler_pic_CXX \
33889 lt_prog_compiler_static_CXX \
33890 lt_cv_prog_compiler_c_o_CXX \
33891 export_dynamic_flag_spec_CXX \
33892 whole_archive_flag_spec_CXX \
33893 compiler_needs_object_CXX \
33895 allow_undefined_flag_CXX \
33896 no_undefined_flag_CXX \
33897 hardcode_libdir_flag_spec_CXX \
33898 hardcode_libdir_flag_spec_ld_CXX \
33899 hardcode_libdir_separator_CXX \
33900 fix_srcfile_path_CXX \
33901 exclude_expsyms_CXX \
33902 include_expsyms_CXX \
33903 file_list_spec_CXX \
33904 compiler_lib_search_dirs_CXX \
33905 predep_objects_CXX \
33906 postdep_objects_CXX \
33909 compiler_lib_search_path_CXX; do
33910 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33911 *[\\\\\\\`\\"\\\$]*)
33912 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33915 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33920 # Double-quote double-evaled strings.
33921 for var in reload_cmds \
33922 old_postinstall_cmds \
33923 old_postuninstall_cmds \
33925 extract_expsyms_cmds \
33926 old_archive_from_new_cmds \
33927 old_archive_from_expsyms_cmds \
33929 archive_expsym_cmds \
33931 module_expsym_cmds \
33932 export_symbols_cmds \
33935 postuninstall_cmds \
33937 sys_lib_search_path_spec \
33938 sys_lib_dlsearch_path_spec \
33940 old_archive_cmds_CXX \
33941 old_archive_from_new_cmds_CXX \
33942 old_archive_from_expsyms_cmds_CXX \
33944 archive_expsym_cmds_CXX \
33946 module_expsym_cmds_CXX \
33947 export_symbols_cmds_CXX \
33948 prelink_cmds_CXX; do
33949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33950 *[\\\\\\\`\\"\\\$]*)
33951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33959 ac_aux_dir='$ac_aux_dir'
33960 xsi_shell='$xsi_shell'
33961 lt_shell_append='$lt_shell_append'
33963 # See if we are running on zsh, and set the options which allow our
33964 # commands through without removal of \ escapes INIT.
33965 if test -n "\${ZSH_VERSION+set}" ; then
33966 setopt NO_GLOB_SUBST
33972 TIMESTAMP='$TIMESTAMP'
33983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33985 # Handling of arguments.
33986 for ac_config_target in $ac_config_targets
33988 case $ac_config_target in
33989 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33990 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33991 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33992 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33993 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33994 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33995 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33996 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33997 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33998 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33999 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34000 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34001 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34002 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34003 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34004 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34005 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34006 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34007 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34008 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34009 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34010 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34011 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34012 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34013 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34014 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34015 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34016 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34017 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34018 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34019 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34020 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34021 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34022 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34023 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34024 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34025 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34026 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34027 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34028 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34029 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34030 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34031 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34032 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34033 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34034 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34035 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34036 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34037 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34038 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34040 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34045 # If the user did not use the arguments to specify the items to instantiate,
34046 # then the envvar interface is used. Set only those that are not.
34047 # We use the long form for the default assignment because of an extremely
34048 # bizarre bug on SunOS 4.1.3.
34049 if $ac_need_defaults; then
34050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34055 # Have a temporary directory for convenience. Make it in the build tree
34056 # simply because there is no reason against having it here, and in addition,
34057 # creating and moving files from /tmp can sometimes cause problems.
34058 # Hook for its removal unless debugging.
34059 # Note that there is a small window in which the directory will not be cleaned:
34060 # after its creation but before its name has been assigned to `$tmp'.
34064 trap 'exit_status=$?
34065 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34067 trap 'as_fn_exit 1' 1 2 13 15
34069 # Create a (secure) tmp directory for tmp files.
34072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34073 test -n "$tmp" && test -d "$tmp"
34076 tmp=./conf$$-$RANDOM
34077 (umask 077 && mkdir "$tmp")
34078 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34080 # Set up the scripts for CONFIG_FILES section.
34081 # No need to generate them if there are no CONFIG_FILES.
34082 # This happens for instance with `./config.status config.h'.
34083 if test -n "$CONFIG_FILES"; then
34086 ac_cr=`echo X | tr X '\015'`
34087 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34088 # But we know of no other shell where ac_cr would be empty at this
34089 # point, so we can use a bashism as a fallback.
34090 if test "x$ac_cr" = x; then
34091 eval ac_cr=\$\'\\r\'
34093 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34094 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34097 ac_cs_awk_cr=$ac_cr
34100 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34105 echo "cat >conf$$subs.awk <<_ACEOF" &&
34106 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34108 } >conf$$subs.sh ||
34109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34110 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34112 for ac_last_try in false false false false false :; do
34113 . ./conf$$subs.sh ||
34114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34116 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34117 if test $ac_delim_n = $ac_delim_num; then
34119 elif $ac_last_try; then
34120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34125 rm -f conf$$subs.sh
34127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34128 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34132 s/^/S["/; s/!.*/"]=/
34142 s/\(.\{148\}\)..*/\1/
34144 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34156 s/\(.\{148\}\)..*/\1/
34158 s/["\\]/\\&/g; s/^/"/; s/$/"/
34162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34167 ' <conf$$subs.awk | sed '
34172 ' >>$CONFIG_STATUS || ac_write_fail=1
34173 rm -f conf$$subs.awk
34174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34176 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34177 for (key in S) S_is_set[key] = 1
34183 nfields = split(line, field, "@")
34185 len = length(field[1])
34186 for (i = 2; i < nfields; i++) {
34188 keylen = length(key)
34189 if (S_is_set[key]) {
34191 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34192 len += length(value) + length(field[++i])
34203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34204 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34205 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34208 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34209 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34212 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34213 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34214 # trailing colons and then remove the whole line if VPATH becomes empty
34215 # (actually we leave an empty line to preserve line numbers).
34216 if test "x$srcdir" = x.; then
34217 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34236 fi # test -n "$CONFIG_FILES"
34238 # Set up the scripts for CONFIG_HEADERS section.
34239 # No need to generate them if there are no CONFIG_HEADERS.
34240 # This happens for instance with `./config.status Makefile'.
34241 if test -n "$CONFIG_HEADERS"; then
34242 cat >"$tmp/defines.awk" <<\_ACAWK ||
34246 # Transform confdefs.h into an awk script `defines.awk', embedded as
34247 # here-document in config.status, that substitutes the proper values into
34248 # config.h.in to produce config.h.
34250 # Create a delimiter string that does not exist in confdefs.h, to ease
34251 # handling of long lines.
34253 for ac_last_try in false false :; do
34254 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34255 if test -z "$ac_t"; then
34257 elif $ac_last_try; then
34258 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34264 # For the awk script, D is an array of macro values keyed by name,
34265 # likewise P contains macro parameters if any. Preserve backslash
34266 # newline sequences.
34268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34270 s/.\{148\}/&'"$ac_delim"'/g
34273 s/^[ ]*#[ ]*define[ ][ ]*/ /
34280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34287 D["\1"]=" \3\\\\\\n"\\/p
34289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34294 s/.\{148\}/&'"$ac_delim"'/g
34299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34304 ' <confdefs.h | sed '
34305 s/'"$ac_delim"'/"\\\
34306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34309 for (key in D) D_is_set[key] = 1
34312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34314 split(line, arg, " ")
34315 if (arg[1] == "#") {
34319 defundef = substr(arg[1], 2)
34322 split(mac1, mac2, "(") #)
34324 prefix = substr(line, 1, index(line, defundef) - 1)
34325 if (D_is_set[macro]) {
34326 # Preserve the white space surrounding the "#".
34327 print prefix "define", macro P[macro] D[macro]
34330 # Replace #undef with comments. This is necessary, for example,
34331 # in the case of _POSIX_SOURCE, which is predefined and required
34332 # on some systems where configure will not decide to define it.
34333 if (defundef == "undef") {
34334 print "/*", prefix defundef, macro, "*/"
34342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34343 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34344 fi # test -n "$CONFIG_HEADERS"
34347 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34352 :[FHLC]) ac_mode=$ac_tag; continue;;
34354 case $ac_mode$ac_tag in
34356 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34357 :[FH]-) ac_tag=-:-;;
34358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34375 -) ac_f="$tmp/stdin";;
34376 *) # Look for the file first in the build tree, then in the source tree
34377 # (if the path is not absolute). The absolute path cannot be DOS-style,
34378 # because $ac_f cannot contain `:'.
34382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34384 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34387 as_fn_append ac_file_inputs " '$ac_f'"
34390 # Let's still pretend it is `configure' which instantiates (i.e., don't
34391 # use $as_me), people would be surprised to read:
34392 # /* config.h. Generated by config.status. */
34393 configure_input='Generated from '`
34394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34396 if test x"$ac_file" != x-; then
34397 configure_input="$ac_file. $configure_input"
34398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34399 $as_echo "$as_me: creating $ac_file" >&6;}
34401 # Neutralize special characters interpreted by sed in replacement strings.
34402 case $configure_input in #(
34403 *\&* | *\|* | *\\* )
34404 ac_sed_conf_input=`$as_echo "$configure_input" |
34405 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34406 *) ac_sed_conf_input=$configure_input;;
34410 *:-:* | *:-) cat >"$tmp/stdin" \
34411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34416 ac_dir=`$as_dirname -- "$ac_file" ||
34417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34418 X"$ac_file" : 'X\(//\)[^/]' \| \
34419 X"$ac_file" : 'X\(//\)$' \| \
34420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34421 $as_echo X"$ac_file" |
34422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34426 /^X\(\/\/\)[^/].*/{
34439 as_dir="$ac_dir"; as_fn_mkdir_p
34443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34446 # A ".." for each directory in $ac_dir_suffix.
34447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34448 case $ac_top_builddir_sub in
34449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34453 ac_abs_top_builddir=$ac_pwd
34454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34455 # for backward compatibility:
34456 ac_top_builddir=$ac_top_build_prefix
34459 .) # We are building in place.
34461 ac_top_srcdir=$ac_top_builddir_sub
34462 ac_abs_top_srcdir=$ac_pwd ;;
34463 [\\/]* | ?:[\\/]* ) # Absolute name.
34464 ac_srcdir=$srcdir$ac_dir_suffix;
34465 ac_top_srcdir=$srcdir
34466 ac_abs_top_srcdir=$srcdir ;;
34467 *) # Relative name.
34468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34469 ac_top_srcdir=$ac_top_build_prefix$srcdir
34470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34483 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34485 ac_MKDIR_P=$MKDIR_P
34487 [\\/$]* | ?:[\\/]* ) ;;
34488 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34493 # If the template does not know about datarootdir, expand it.
34494 # FIXME: This hack should be removed a few years after 2.60.
34495 ac_datarootdir_hack=; ac_datarootdir_seen=
34506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34507 *datarootdir*) ac_datarootdir_seen=yes;;
34508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34513 ac_datarootdir_hack='
34514 s&@datadir@&$datadir&g
34515 s&@docdir@&$docdir&g
34516 s&@infodir@&$infodir&g
34517 s&@localedir@&$localedir&g
34518 s&@mandir@&$mandir&g
34519 s&\\\${datarootdir}&$datarootdir&g' ;;
34523 # Neutralize VPATH when `$srcdir' = `.'.
34524 # Shell code in configure.ac might set extrasub.
34525 # FIXME: do we really want to maintain this feature?
34526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34527 ac_sed_extra="$ac_vpsub
34530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34533 s|@configure_input@|$ac_sed_conf_input|;t t
34534 s&@top_builddir@&$ac_top_builddir_sub&;t t
34535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34536 s&@srcdir@&$ac_srcdir&;t t
34537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34538 s&@top_srcdir@&$ac_top_srcdir&;t t
34539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34540 s&@builddir@&$ac_builddir&;t t
34541 s&@abs_builddir@&$ac_abs_builddir&;t t
34542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34543 s&@INSTALL@&$ac_INSTALL&;t t
34544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34545 $ac_datarootdir_hack
34547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34550 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34551 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34552 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34554 which seems to be undefined. Please make sure it is defined" >&5
34555 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34556 which seems to be undefined. Please make sure it is defined" >&2;}
34560 -) cat "$tmp/out" && rm -f "$tmp/out";;
34561 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34569 if test x"$ac_file" != x-; then
34571 $as_echo "/* $configure_input */" \
34572 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34573 } >"$tmp/config.h" \
34574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34575 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34576 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34577 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34580 mv "$tmp/config.h" "$ac_file" \
34581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34584 $as_echo "/* $configure_input */" \
34585 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34586 || as_fn_error $? "could not create -" "$LINENO" 5
34588 # Compute "$ac_file"'s index in $config_headers.
34591 for _am_header in $config_headers :; do
34592 case $_am_header in
34593 $_am_arg | $_am_arg:* )
34596 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34599 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34600 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34601 X"$_am_arg" : 'X\(//\)[^/]' \| \
34602 X"$_am_arg" : 'X\(//\)$' \| \
34603 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34604 $as_echo X"$_am_arg" |
34605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34609 /^X\(\/\/\)[^/].*/{
34621 s/.*/./; q'`/stamp-h$_am_stamp_count
34624 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34625 $as_echo "$as_me: executing $ac_file commands" >&6;}
34630 case $ac_file$ac_mode in
34631 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34632 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34633 ac_prefix_conf_PKG=`echo MagickCore`
34634 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34635 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34636 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34637 if test ".$ac_prefix_conf_INP" = "."; then
34638 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34640 *.h) ac_prefix_conf_INP=$ac_file ;;
34643 test ".$ac_prefix_conf_INP" != "." && break
34646 if test ".$ac_prefix_conf_INP" = "."; then
34647 case "$ac_prefix_conf_OUT" in
34648 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34650 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34652 *) ac_prefix_conf_INP=config.h
34656 if test -z "$ac_prefix_conf_PKG" ; then
34657 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34659 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34660 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34663 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34664 if test -f $ac_prefix_conf_INP ; then
34665 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34666 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34667 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34668 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34669 $as_echo "#endif/" >> conftest.prefix
34670 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34671 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34672 $as_echo "#endif/" >> conftest.prefix
34673 # now executing _script on _DEF input to create _OUT output file
34674 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34675 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34676 echo ' ' >>$tmp/pconfig.h
34677 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34679 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34680 echo ' ' >>$tmp/pconfig.h
34681 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34682 echo "#endif" >>$tmp/pconfig.h
34683 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34684 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34685 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34687 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34688 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34689 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34690 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34691 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34692 $as_echo X"$ac_prefix_conf_OUT" |
34693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34697 /^X\(\/\/\)[^/].*/{
34710 as_dir="$ac_dir"; as_fn_mkdir_p
34711 rm -f "$ac_prefix_conf_OUT"
34712 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34714 cp conftest.prefix _configs.sed
34716 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34721 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34722 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34723 # are listed without --file. Let's play safe and only enable the eval
34724 # if we detect the quoting.
34725 case $CONFIG_FILES in
34726 *\'*) eval set x "$CONFIG_FILES" ;;
34727 *) set x $CONFIG_FILES ;;
34732 # Strip MF so we end up with the name of the file.
34733 mf=`echo "$mf" | sed -e 's/:.*$//'`
34734 # Check whether this is an Automake generated Makefile or not.
34735 # We used to match only the files named `Makefile.in', but
34736 # some people rename them; so instead we look at the file content.
34737 # Grep'ing the first line is not enough: some people post-process
34738 # each Makefile.in and add a new line on top of each file to say so.
34739 # Grep'ing the whole file is not good either: AIX grep has a line
34740 # limit of 2048, but all sed's we know have understand at least 4000.
34741 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34742 dirpart=`$as_dirname -- "$mf" ||
34743 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34744 X"$mf" : 'X\(//\)[^/]' \| \
34745 X"$mf" : 'X\(//\)$' \| \
34746 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34752 /^X\(\/\/\)[^/].*/{
34768 # Extract the definition of DEPDIR, am__include, and am__quote
34769 # from the Makefile without running `make'.
34770 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34771 test -z "$DEPDIR" && continue
34772 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34773 test -z "am__include" && continue
34774 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34775 # When using ansi2knr, U may be empty or an underscore; expand it
34776 U=`sed -n 's/^U = //p' < "$mf"`
34777 # Find all dependency output files, they are included files with
34778 # $(DEPDIR) in their names. We invoke sed twice because it is the
34779 # simplest approach to changing $(DEPDIR) to its actual value in the
34781 for file in `sed -n "
34782 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34783 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34784 # Make sure the directory exists.
34785 test -f "$dirpart/$file" && continue
34786 fdir=`$as_dirname -- "$file" ||
34787 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34788 X"$file" : 'X\(//\)[^/]' \| \
34789 X"$file" : 'X\(//\)$' \| \
34790 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34791 $as_echo X"$file" |
34792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34796 /^X\(\/\/\)[^/].*/{
34809 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34810 # echo "creating $dirpart/$file"
34811 echo '# dummy' > "$dirpart/$file"
34818 # See if we are running on zsh, and set the options which allow our
34819 # commands through without removal of \ escapes.
34820 if test -n "${ZSH_VERSION+set}" ; then
34821 setopt NO_GLOB_SUBST
34824 cfgfile="${ofile}T"
34825 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34828 cat <<_LT_EOF >> "$cfgfile"
34831 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34832 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34834 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34836 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34837 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34839 # Written by Gordon Matzigkeit, 1996
34841 # This file is part of GNU Libtool.
34843 # GNU Libtool is free software; you can redistribute it and/or
34844 # modify it under the terms of the GNU General Public License as
34845 # published by the Free Software Foundation; either version 2 of
34846 # the License, or (at your option) any later version.
34848 # As a special exception to the GNU General Public License,
34849 # if you distribute this file as part of a program or library that
34850 # is built using GNU Libtool, you may include this file under the
34851 # same distribution terms that you use for the rest of that program.
34853 # GNU Libtool is distributed in the hope that it will be useful,
34854 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34855 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34856 # GNU General Public License for more details.
34858 # You should have received a copy of the GNU General Public License
34859 # along with GNU Libtool; see the file COPYING. If not, a copy
34860 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34861 # obtained by writing to the Free Software Foundation, Inc.,
34862 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34865 # The names of the tagged configurations supported by this script.
34866 available_tags="CXX "
34868 # ### BEGIN LIBTOOL CONFIG
34870 # A sed program that does not truncate output.
34873 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34874 Xsed="\$SED -e 1s/^X//"
34876 # A grep program that handles long lines.
34882 # A literal string matcher.
34885 # Shell to use when invoking shell scripts.
34888 # An echo program that protects backslashes.
34891 # Which release of libtool.m4 was used?
34892 macro_version=$macro_version
34893 macro_revision=$macro_revision
34895 # Assembler program.
34898 # DLL creation program.
34899 DLLTOOL=$lt_DLLTOOL
34901 # Object dumper program.
34902 OBJDUMP=$lt_OBJDUMP
34904 # Whether or not to build shared libraries.
34905 build_libtool_libs=$enable_shared
34907 # Whether or not to build static libraries.
34908 build_old_libs=$enable_static
34910 # What type of objects to build.
34913 # Whether or not to optimize for fast installation.
34914 fast_install=$enable_fast_install
34917 host_alias=$host_alias
34921 # The build system.
34922 build_alias=$build_alias
34926 # A BSD- or MS-compatible name lister.
34929 # Whether we need soft or hard links.
34932 # What is the maximum length of a command?
34933 max_cmd_len=$max_cmd_len
34935 # Object file suffix (normally "o").
34938 # Executable file suffix (normally "").
34941 # whether the shell understands "unset".
34944 # turn spaces into newlines.
34947 # turn newlines into spaces.
34950 # Method to check whether dependent libraries are shared objects.
34951 deplibs_check_method=$lt_deplibs_check_method
34953 # Command to use when deplibs_check_method == "file_magic".
34954 file_magic_cmd=$lt_file_magic_cmd
34958 AR_FLAGS=$lt_AR_FLAGS
34960 # A symbol stripping program.
34963 # Commands used to install an old-style archive.
34965 old_postinstall_cmds=$lt_old_postinstall_cmds
34966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34968 # Whether to use a lock for old archive extraction.
34969 lock_old_archive_extraction=$lock_old_archive_extraction
34974 # LTCC compiler flags.
34975 LTCFLAGS=$lt_CFLAGS
34977 # Take the output of nm and produce a listing of raw symbols and C names.
34978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34980 # Transform the output of nm in a proper C declaration.
34981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34983 # Transform the output of nm in a C name address pair.
34984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34986 # Transform the output of nm in a C name address pair when lib prefix is needed.
34987 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34989 # The name of the directory that contains temporary libtool files.
34992 # Used to examine libraries when file_magic_cmd begins with "file".
34993 MAGIC_CMD=$MAGIC_CMD
34995 # Must we lock files when doing compilation?
34996 need_locks=$lt_need_locks
34998 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34999 DSYMUTIL=$lt_DSYMUTIL
35001 # Tool to change global to local symbols on Mac OS X.
35004 # Tool to manipulate fat objects and archives on Mac OS X.
35007 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35010 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35011 OTOOL64=$lt_OTOOL64
35013 # Old archive suffix (normally "a").
35016 # Shared library suffix (normally ".so").
35017 shrext_cmds=$lt_shrext_cmds
35019 # The commands to extract the exported symbol list from a shared archive.
35020 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35022 # Variables whose values should be saved in libtool wrapper scripts and
35023 # restored at link time.
35024 variables_saved_for_relink=$lt_variables_saved_for_relink
35026 # Do we need the "lib" prefix for modules?
35027 need_lib_prefix=$need_lib_prefix
35029 # Do we need a version for libraries?
35030 need_version=$need_version
35032 # Library versioning type.
35033 version_type=$version_type
35035 # Shared library runtime path variable.
35036 runpath_var=$runpath_var
35038 # Shared library path variable.
35039 shlibpath_var=$shlibpath_var
35041 # Is shlibpath searched before the hard-coded library search path?
35042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35044 # Format of library name prefix.
35045 libname_spec=$lt_libname_spec
35047 # List of archive names. First name is the real one, the rest are links.
35048 # The last name is the one that the linker finds with -lNAME
35049 library_names_spec=$lt_library_names_spec
35051 # The coded name of the library, if different from the real name.
35052 soname_spec=$lt_soname_spec
35054 # Permission mode override for installation of shared libraries.
35055 install_override_mode=$lt_install_override_mode
35057 # Command to use after installation of a shared archive.
35058 postinstall_cmds=$lt_postinstall_cmds
35060 # Command to use after uninstallation of a shared archive.
35061 postuninstall_cmds=$lt_postuninstall_cmds
35063 # Commands used to finish a libtool library installation in a directory.
35064 finish_cmds=$lt_finish_cmds
35066 # As "finish_cmds", except a single script fragment to be evaled but
35068 finish_eval=$lt_finish_eval
35070 # Whether we should hardcode library paths into libraries.
35071 hardcode_into_libs=$hardcode_into_libs
35073 # Compile-time system search path for libraries.
35074 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35076 # Run-time system search path for libraries.
35077 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35079 # Whether dlopen is supported.
35080 dlopen_support=$enable_dlopen
35082 # Whether dlopen of programs is supported.
35083 dlopen_self=$enable_dlopen_self
35085 # Whether dlopen of statically linked programs is supported.
35086 dlopen_self_static=$enable_dlopen_self_static
35088 # Commands to strip libraries.
35089 old_striplib=$lt_old_striplib
35090 striplib=$lt_striplib
35093 # The linker used to build libraries.
35096 # How to create reloadable object files.
35097 reload_flag=$lt_reload_flag
35098 reload_cmds=$lt_reload_cmds
35100 # Commands used to build an old-style archive.
35101 old_archive_cmds=$lt_old_archive_cmds
35103 # A language specific compiler.
35106 # Is the compiler the GNU compiler?
35109 # Compiler flag to turn off builtin functions.
35110 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35112 # How to pass a linker flag through the compiler.
35113 wl=$lt_lt_prog_compiler_wl
35115 # Additional compiler flags for building library objects.
35116 pic_flag=$lt_lt_prog_compiler_pic
35118 # Compiler flag to prevent dynamic linking.
35119 link_static_flag=$lt_lt_prog_compiler_static
35121 # Does compiler simultaneously support -c and -o options?
35122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35124 # Whether or not to add -lc for building shared libraries.
35125 build_libtool_need_lc=$archive_cmds_need_lc
35127 # Whether or not to disallow shared libs when runtime libs are static.
35128 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35130 # Compiler flag to allow reflexive dlopens.
35131 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35133 # Compiler flag to generate shared objects directly from archives.
35134 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35136 # Whether the compiler copes with passing no objects directly.
35137 compiler_needs_object=$lt_compiler_needs_object
35139 # Create an old-style archive from a shared archive.
35140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35142 # Create a temporary old-style archive to link instead of a shared archive.
35143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35145 # Commands used to build a shared archive.
35146 archive_cmds=$lt_archive_cmds
35147 archive_expsym_cmds=$lt_archive_expsym_cmds
35149 # Commands used to build a loadable module if different from building
35150 # a shared archive.
35151 module_cmds=$lt_module_cmds
35152 module_expsym_cmds=$lt_module_expsym_cmds
35154 # Whether we are building with GNU ld or not.
35155 with_gnu_ld=$lt_with_gnu_ld
35157 # Flag that allows shared libraries with undefined symbols to be built.
35158 allow_undefined_flag=$lt_allow_undefined_flag
35160 # Flag that enforces no undefined symbols.
35161 no_undefined_flag=$lt_no_undefined_flag
35163 # Flag to hardcode \$libdir into a binary during linking.
35164 # This must work even if \$libdir does not exist
35165 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35167 # If ld is used when linking, flag to hardcode \$libdir into a binary
35168 # during linking. This must work even if \$libdir does not exist.
35169 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35171 # Whether we need a single "-rpath" flag with a separated argument.
35172 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35174 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35175 # DIR into the resulting binary.
35176 hardcode_direct=$hardcode_direct
35178 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35179 # DIR into the resulting binary and the resulting library dependency is
35180 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35181 # library is relocated.
35182 hardcode_direct_absolute=$hardcode_direct_absolute
35184 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35185 # into the resulting binary.
35186 hardcode_minus_L=$hardcode_minus_L
35188 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35189 # into the resulting binary.
35190 hardcode_shlibpath_var=$hardcode_shlibpath_var
35192 # Set to "yes" if building a shared library automatically hardcodes DIR
35193 # into the library and all subsequent libraries and executables linked
35195 hardcode_automatic=$hardcode_automatic
35197 # Set to yes if linker adds runtime paths of dependent libraries
35198 # to runtime path list.
35199 inherit_rpath=$inherit_rpath
35201 # Whether libtool must link a program against all its dependency libraries.
35202 link_all_deplibs=$link_all_deplibs
35204 # Fix the shell variable \$srcfile for the compiler.
35205 fix_srcfile_path=$lt_fix_srcfile_path
35207 # Set to "yes" if exported symbols are required.
35208 always_export_symbols=$always_export_symbols
35210 # The commands to list exported symbols.
35211 export_symbols_cmds=$lt_export_symbols_cmds
35213 # Symbols that should not be listed in the preloaded symbols.
35214 exclude_expsyms=$lt_exclude_expsyms
35216 # Symbols that must always be exported.
35217 include_expsyms=$lt_include_expsyms
35219 # Commands necessary for linking programs (against libraries) with templates.
35220 prelink_cmds=$lt_prelink_cmds
35222 # Specify filename containing input files.
35223 file_list_spec=$lt_file_list_spec
35225 # How to hardcode a shared library path into an executable.
35226 hardcode_action=$hardcode_action
35228 # The directories searched by this compiler when creating a shared library.
35229 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35231 # Dependencies to place before and after the objects being linked to
35232 # create a shared library.
35233 predep_objects=$lt_predep_objects
35234 postdep_objects=$lt_postdep_objects
35235 predeps=$lt_predeps
35236 postdeps=$lt_postdeps
35238 # The library search path used internally by the compiler when linking
35239 # a shared library.
35240 compiler_lib_search_path=$lt_compiler_lib_search_path
35242 # ### END LIBTOOL CONFIG
35248 cat <<\_LT_EOF >> "$cfgfile"
35249 # AIX sometimes has problems with the GCC collect2 program. For some
35250 # reason, if we set the COLLECT_NAMES environment variable, the problems
35251 # vanish in a puff of smoke.
35252 if test "X${COLLECT_NAMES+set}" != Xset; then
35254 export COLLECT_NAMES
35261 ltmain="$ac_aux_dir/ltmain.sh"
35264 # We use sed instead of cat because bash on DJGPP gets confused if
35265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35266 # text mode, it properly converts lines to CR/LF. This bash problem
35267 # is reportedly fixed, but why not run on old versions too?
35268 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35269 || (rm -f "$cfgfile"; exit 1)
35273 cat << \_LT_EOF >> "$cfgfile"
35275 # func_dirname file append nondir_replacement
35276 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35277 # otherwise set result to NONDIR_REPLACEMENT.
35281 */*) func_dirname_result="${1%/*}${2}" ;;
35282 * ) func_dirname_result="${3}" ;;
35286 # func_basename file
35289 func_basename_result="${1##*/}"
35292 # func_dirname_and_basename file append nondir_replacement
35293 # perform func_basename and func_dirname in a single function
35295 # dirname: Compute the dirname of FILE. If nonempty,
35296 # add APPEND to the result, otherwise set result
35297 # to NONDIR_REPLACEMENT.
35298 # value returned in "$func_dirname_result"
35299 # basename: Compute filename of FILE.
35300 # value retuned in "$func_basename_result"
35301 # Implementation must be kept synchronized with func_dirname
35302 # and func_basename. For efficiency, we do not delegate to
35303 # those functions but instead duplicate the functionality here.
35304 func_dirname_and_basename ()
35307 */*) func_dirname_result="${1%/*}${2}" ;;
35308 * ) func_dirname_result="${3}" ;;
35310 func_basename_result="${1##*/}"
35313 # func_stripname prefix suffix name
35314 # strip PREFIX and SUFFIX off of NAME.
35315 # PREFIX and SUFFIX must not contain globbing or regex special
35316 # characters, hashes, percent signs, but SUFFIX may contain a leading
35317 # dot (in which case that matches only a dot).
35320 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35321 # positional parameters, so assign one to ordinary parameter first.
35322 func_stripname_result=${3}
35323 func_stripname_result=${func_stripname_result#"${1}"}
35324 func_stripname_result=${func_stripname_result%"${2}"}
35330 func_opt_split_opt=${1%%=*}
35331 func_opt_split_arg=${1#*=}
35338 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35339 *) func_lo2o_result=${1} ;;
35343 # func_xform libobj-or-source
35346 func_xform_result=${1%.*}.lo
35349 # func_arith arithmetic-term...
35352 func_arith_result=$(( $* ))
35356 # STRING may not start with a hyphen.
35359 func_len_result=${#1}
35364 *) # Bourne compatible functions.
35365 cat << \_LT_EOF >> "$cfgfile"
35367 # func_dirname file append nondir_replacement
35368 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35369 # otherwise set result to NONDIR_REPLACEMENT.
35372 # Extract subdirectory from the argument.
35373 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
35374 if test "X$func_dirname_result" = "X${1}"; then
35375 func_dirname_result="${3}"
35377 func_dirname_result="$func_dirname_result${2}"
35381 # func_basename file
35384 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
35388 # func_stripname prefix suffix name
35389 # strip PREFIX and SUFFIX off of NAME.
35390 # PREFIX and SUFFIX must not contain globbing or regex special
35391 # characters, hashes, percent signs, but SUFFIX may contain a leading
35392 # dot (in which case that matches only a dot).
35393 # func_strip_suffix prefix name
35397 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35398 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35403 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35404 my_sed_long_arg='1s/^-[^=]*=//'
35409 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35410 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35416 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
35419 # func_xform libobj-or-source
35422 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35425 # func_arith arithmetic-term...
35428 func_arith_result=`expr "$@"`
35432 # STRING may not start with a hyphen.
35435 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35441 case $lt_shell_append in
35443 cat << \_LT_EOF >> "$cfgfile"
35445 # func_append var value
35446 # Append VALUE to the end of shell variable VAR.
35454 cat << \_LT_EOF >> "$cfgfile"
35456 # func_append var value
35457 # Append VALUE to the end of shell variable VAR.
35468 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35469 || (rm -f "$cfgfile"; exit 1)
35471 mv -f "$cfgfile" "$ofile" ||
35472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35476 cat <<_LT_EOF >> "$ofile"
35478 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35480 # The linker used to build libraries.
35483 # How to create reloadable object files.
35484 reload_flag=$lt_reload_flag_CXX
35485 reload_cmds=$lt_reload_cmds_CXX
35487 # Commands used to build an old-style archive.
35488 old_archive_cmds=$lt_old_archive_cmds_CXX
35490 # A language specific compiler.
35491 CC=$lt_compiler_CXX
35493 # Is the compiler the GNU compiler?
35496 # Compiler flag to turn off builtin functions.
35497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35499 # How to pass a linker flag through the compiler.
35500 wl=$lt_lt_prog_compiler_wl_CXX
35502 # Additional compiler flags for building library objects.
35503 pic_flag=$lt_lt_prog_compiler_pic_CXX
35505 # Compiler flag to prevent dynamic linking.
35506 link_static_flag=$lt_lt_prog_compiler_static_CXX
35508 # Does compiler simultaneously support -c and -o options?
35509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35511 # Whether or not to add -lc for building shared libraries.
35512 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35514 # Whether or not to disallow shared libs when runtime libs are static.
35515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35517 # Compiler flag to allow reflexive dlopens.
35518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35520 # Compiler flag to generate shared objects directly from archives.
35521 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35523 # Whether the compiler copes with passing no objects directly.
35524 compiler_needs_object=$lt_compiler_needs_object_CXX
35526 # Create an old-style archive from a shared archive.
35527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35529 # Create a temporary old-style archive to link instead of a shared archive.
35530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35532 # Commands used to build a shared archive.
35533 archive_cmds=$lt_archive_cmds_CXX
35534 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35536 # Commands used to build a loadable module if different from building
35537 # a shared archive.
35538 module_cmds=$lt_module_cmds_CXX
35539 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35541 # Whether we are building with GNU ld or not.
35542 with_gnu_ld=$lt_with_gnu_ld_CXX
35544 # Flag that allows shared libraries with undefined symbols to be built.
35545 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35547 # Flag that enforces no undefined symbols.
35548 no_undefined_flag=$lt_no_undefined_flag_CXX
35550 # Flag to hardcode \$libdir into a binary during linking.
35551 # This must work even if \$libdir does not exist
35552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35554 # If ld is used when linking, flag to hardcode \$libdir into a binary
35555 # during linking. This must work even if \$libdir does not exist.
35556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35558 # Whether we need a single "-rpath" flag with a separated argument.
35559 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35562 # DIR into the resulting binary.
35563 hardcode_direct=$hardcode_direct_CXX
35565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35566 # DIR into the resulting binary and the resulting library dependency is
35567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35568 # library is relocated.
35569 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35572 # into the resulting binary.
35573 hardcode_minus_L=$hardcode_minus_L_CXX
35575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35576 # into the resulting binary.
35577 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35579 # Set to "yes" if building a shared library automatically hardcodes DIR
35580 # into the library and all subsequent libraries and executables linked
35582 hardcode_automatic=$hardcode_automatic_CXX
35584 # Set to yes if linker adds runtime paths of dependent libraries
35585 # to runtime path list.
35586 inherit_rpath=$inherit_rpath_CXX
35588 # Whether libtool must link a program against all its dependency libraries.
35589 link_all_deplibs=$link_all_deplibs_CXX
35591 # Fix the shell variable \$srcfile for the compiler.
35592 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35594 # Set to "yes" if exported symbols are required.
35595 always_export_symbols=$always_export_symbols_CXX
35597 # The commands to list exported symbols.
35598 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35600 # Symbols that should not be listed in the preloaded symbols.
35601 exclude_expsyms=$lt_exclude_expsyms_CXX
35603 # Symbols that must always be exported.
35604 include_expsyms=$lt_include_expsyms_CXX
35606 # Commands necessary for linking programs (against libraries) with templates.
35607 prelink_cmds=$lt_prelink_cmds_CXX
35609 # Specify filename containing input files.
35610 file_list_spec=$lt_file_list_spec_CXX
35612 # How to hardcode a shared library path into an executable.
35613 hardcode_action=$hardcode_action_CXX
35615 # The directories searched by this compiler when creating a shared library.
35616 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35618 # Dependencies to place before and after the objects being linked to
35619 # create a shared library.
35620 predep_objects=$lt_predep_objects_CXX
35621 postdep_objects=$lt_postdep_objects_CXX
35622 predeps=$lt_predeps_CXX
35623 postdeps=$lt_postdeps_CXX
35625 # The library search path used internally by the compiler when linking
35626 # a shared library.
35627 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35629 # ### END LIBTOOL TAG CONFIG: CXX
35633 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35634 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35635 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35636 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35637 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35638 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35646 ac_clean_files=$ac_clean_files_save
35648 test $ac_write_fail = 0 ||
35649 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35652 # configure is writing to config.log, and then calls config.status.
35653 # config.status does its own redirection, appending to config.log.
35654 # Unfortunately, on DOS this fails, as config.log is still kept open
35655 # by configure, so config.status won't be able to write to it; its
35656 # output is simply discarded. So we exec the FD to /dev/null,
35657 # effectively closing config.log, so it can be properly (re)opened and
35658 # appended to by config.status. When coming back to configure, we
35659 # need to make the FD available again.
35660 if test "$no_create" != yes; then
35662 ac_config_status_args=
35663 test "$silent" = yes &&
35664 ac_config_status_args="$ac_config_status_args --quiet"
35666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35669 # would make configure fail if this is the last instruction.
35670 $ac_cs_success || as_fn_exit 1
35672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35678 rm -f magick-version
35680 result_dejavu_font_dir='none'
35681 if test "${dejavu_font_dir}x" != 'x'; then
35682 result_dejavu_font_dir=$dejavu_font_dir
35685 result_ghostscript_font_dir='none'
35686 if test "${ghostscript_font_dir}x" != 'x'; then
35687 result_ghostscript_font_dir=$ghostscript_font_dir
35690 result_windows_font_dir='none'
35691 if test "${windows_font_dir}x" != 'x'; then
35692 result_windows_font_dir=${windows_font_dir}
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35696 ImageMagick is configured as follows. Please verify that this configuration
35697 matches your expectations.
35699 Host system type: $host
35700 Build system type: $build
35703 -------------------------------------------------------------------------------
35704 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35705 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35706 Module support --with-modules=$with_modules $with_modules
35707 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35708 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35709 High Dynamic Range Imagery
35710 --enable-hdri=$enable_hdri $enable_hdri
35712 Delegate Configuration:
35713 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35714 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35715 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35716 DJVU --with-djvu=$with_djvu $have_djvu
35717 DPS --with-dps=$with_dps $have_dps
35718 FFTW --with-fftw=$with_fftw $have_fftw
35719 FlashPIX --with-fpx=$with_fpx $have_fpx
35720 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35721 FreeType --with-freetype=$with_freetype $have_freetype
35722 GhostPCL None $PCLDelegate ($PCLVersion)
35723 GhostXPS None $XPSDelegate ($XPSVersion)
35724 Ghostscript None $PSDelegate ($GSVersion)
35725 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35726 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35727 Graphviz --with-gvc=$with_gvc $have_gvc
35728 JBIG --with-jbig=$with_jbig $have_jbig
35729 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35730 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35731 LCMS v1 --with-lcms=$with_lcms $have_lcms
35732 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35733 LQR --with-lqr=$with_lqr $have_lqr
35734 LZMA --with-lzma=$with_lzma $have_lzma
35735 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35736 OpenEXR --with-openexr=$with_openexr $have_openexr
35737 PERL --with-perl=$with_perl $have_perl
35738 PNG --with-png=$with_png $have_png
35739 RSVG --with-rsvg=$with_rsvg $have_rsvg
35740 TIFF --with-tiff=$with_tiff $have_tiff
35741 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35742 WMF --with-wmf=$with_wmf $have_wmf
35743 X11 --with-x=$with_x $have_x
35744 XML --with-xml=$with_xml $have_xml
35745 ZLIB --with-zlib=$with_zlib $have_zlib
35748 X_CFLAGS = $X_CFLAGS
35749 X_PRE_LIBS = $X_PRE_LIBS
35751 X_EXTRA_LIBS = $X_EXTRA_LIBS
35753 Options used to compile and link:
35754 PREFIX = $PREFIX_DIR
35755 EXEC-PREFIX = $EXEC_PREFIX_DIR
35756 VERSION = $PACKAGE_VERSION
35759 CPPFLAGS = $MAGICK_CPPFLAGS
35760 PCFLAGS = $MAGICK_PCFLAGS
35763 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35764 LIBS = $MAGICK_LIBS
35766 CXXFLAGS = $CXXFLAGS
35767 FEATURES = $MAGICK_FEATURES
35770 ImageMagick is configured as follows. Please verify that this configuration
35771 matches your expectations.
35773 Host system type: $host
35774 Build system type: $build
35777 -------------------------------------------------------------------------------
35778 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35779 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35780 Module support --with-modules=$with_modules $with_modules
35781 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35782 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35783 High Dynamic Range Imagery
35784 --enable-hdri=$enable_hdri $enable_hdri
35786 Delegate Configuration:
35787 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35788 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35789 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35790 DJVU --with-djvu=$with_djvu $have_djvu
35791 DPS --with-dps=$with_dps $have_dps
35792 FFTW --with-fftw=$with_fftw $have_fftw
35793 FlashPIX --with-fpx=$with_fpx $have_fpx
35794 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35795 FreeType --with-freetype=$with_freetype $have_freetype
35796 GhostPCL None $PCLDelegate ($PCLVersion)
35797 GhostXPS None $XPSDelegate ($XPSVersion)
35798 Ghostscript None $PSDelegate ($GSVersion)
35799 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35800 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35801 Graphviz --with-gvc=$with_gvc $have_gvc
35802 JBIG --with-jbig=$with_jbig $have_jbig
35803 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35804 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35805 LCMS v1 --with-lcms=$with_lcms $have_lcms
35806 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35807 LQR --with-lqr=$with_lqr $have_lqr
35808 LZMA --with-lzma=$with_lzma $have_lzma
35809 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35810 OpenEXR --with-openexr=$with_openexr $have_openexr
35811 PERL --with-perl=$with_perl $have_perl
35812 PNG --with-png=$with_png $have_png
35813 RSVG --with-rsvg=$with_rsvg $have_rsvg
35814 TIFF --with-tiff=$with_tiff $have_tiff
35815 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35816 WMF --with-wmf=$with_wmf $have_wmf
35817 X11 --with-x=$with_x $have_x
35818 XML --with-xml=$with_xml $have_xml
35819 ZLIB --with-zlib=$with_zlib $have_zlib
35822 X_CFLAGS = $X_CFLAGS
35823 X_PRE_LIBS = $X_PRE_LIBS
35825 X_EXTRA_LIBS = $X_EXTRA_LIBS
35827 Options used to compile and link:
35828 PREFIX = $PREFIX_DIR
35829 EXEC-PREFIX = $EXEC_PREFIX_DIR
35830 VERSION = $PACKAGE_VERSION
35833 CPPFLAGS = $MAGICK_CPPFLAGS
35834 PCFLAGS = $MAGICK_PCFLAGS
35837 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35838 LIBS = $MAGICK_LIBS
35840 CXXFLAGS = $CXXFLAGS
35841 FEATURES = $MAGICK_FEATURES