2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.6.1.
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 Free Software Foundation,
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"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.imagemagick.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
685 test -n "$DJDIR" || exec 7<&0 </dev/null
689 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690 # so uname gets run too.
691 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696 ac_default_prefix=/usr/local
698 ac_config_libobj_dir=.
705 # Identity of this package.
706 PACKAGE_NAME='ImageMagick'
707 PACKAGE_TARNAME='ImageMagick'
708 PACKAGE_VERSION='6.6.1'
709 PACKAGE_STRING='ImageMagick 6.6.1'
710 PACKAGE_BUGREPORT='http://www.imagemagick.org'
713 ac_unique_file="magick/MagickCore.h"
714 ac_config_libobj_dir=ltdl
715 # Factoring default headers for most tests.
716 ac_includes_default="\
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
728 # ifdef HAVE_STDLIB_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
752 ac_subst_vars='ltdl_LTLIBOBJS
769 PERL_SUPPORTS_DESTDIR
770 WITH_PERL_DYNAMIC_FALSE
771 WITH_PERL_DYNAMIC_TRUE
772 WITH_PERL_STATIC_FALSE
773 WITH_PERL_STATIC_TRUE
836 GnuplotDecodeDelegate
850 BlenderDecodeDelegate
852 AutotraceDecodeDelegate
883 OPENEXR_DELEGATE_FALSE
884 OPENEXR_DELEGATE_TRUE
911 FREETYPE_DELEGATE_FALSE
912 FREETYPE_DELEGATE_TRUE
914 FONTCONFIG_DELEGATE_FALSE
915 FONTCONFIG_DELEGATE_TRUE
930 AUTOTRACE_DELEGATE_FALSE
931 AUTOTRACE_DELEGATE_TRUE
956 WITH_MAGICK_PLUS_PLUS_FALSE
957 WITH_MAGICK_PLUS_PLUS_TRUE
972 LIBRARY_EXTRA_CPPFLAGS
973 MODULE_EXTRA_CPPFLAGS
978 MAINTAINER_MODE_FALSE
986 WITH_SHARED_LIBS_FALSE
987 WITH_SHARED_LIBS_TRUE
990 CONVENIENCE_LTDL_FALSE
991 CONVENIENCE_LTDL_TRUE
995 sys_symbol_underscore
1036 WIN32_NATIVE_BUILD_FALSE
1037 WIN32_NATIVE_BUILD_TRUE
1038 WINGDI32_DELEGATE_FALSE
1039 WINGDI32_DELEGATE_TRUE
1046 am__fastdepCXX_FALSE
1072 MAGICK_FILTER_MODULE_PATH
1073 MAGICK_CONFIGURE_BUILD_PATH
1074 MAGICK_CONFIGURE_SRC_PATH
1075 MAGICK_CODER_MODULE_PATH
1090 CONFIG_STATUS_DEPENDENCIES
1091 MAGICK_LIB_VERSION_NUMBER
1092 MAGICK_LIB_VERSION_TEXT
1095 AM_DEFAULT_VERBOSITY
1104 INSTALL_STRIP_PROGRAM
1119 PACKAGE_VERSION_ADDENDUM
1120 PACKAGE_RELEASE_DATE
1121 PACKAGE_LIB_VERSION_NUMBER
1125 MAGICK_LIBRARY_VERSION_INFO
1126 MAGICK_LIBRARY_CURRENT_MIN
1128 MAGICK_LIBRARY_REVISION
1129 MAGICK_LIBRARY_CURRENT
1131 MAGICK_TARGET_VENDOR
1146 DISTCHECK_CONFIG_FLAGS
1174 program_transform_name
1187 enable_option_checking
1189 enable_dependency_tracking
1191 with_maximum_compile_warnings
1193 enable_bounds_checking
1194 enable_osx_universal_binary
1209 enable_delegate_build
1216 enable_maintainer_mode
1226 with_magick_plus_plus
1237 with_dejavu_font_dir
1255 with_windows_font_dir
1259 ac_precious_vars='build_alias
1290 # Initialize some variables set by options.
1292 ac_init_version=false
1293 ac_unrecognized_opts=
1294 ac_unrecognized_sep=
1295 # The variables have the same names as the options, with
1296 # dashes changed to underlines.
1297 cache_file=/dev/null
1304 program_transform_name=s,x,x,
1312 # Installation directory options.
1313 # These are left unexpanded so users can "make install exec_prefix=/foo"
1314 # and all the variables that are supposed to be based on exec_prefix
1315 # by default will actually change.
1316 # Use braces instead of parens because sh, perl, etc. also accept them.
1317 # (The list follows the same order as the GNU Coding Standards.)
1318 bindir='${exec_prefix}/bin'
1319 sbindir='${exec_prefix}/sbin'
1320 libexecdir='${exec_prefix}/libexec'
1321 datarootdir='${prefix}/share'
1322 datadir='${datarootdir}'
1323 sysconfdir='${prefix}/etc'
1324 sharedstatedir='${prefix}/com'
1325 localstatedir='${prefix}/var'
1326 includedir='${prefix}/include'
1327 oldincludedir='/usr/include'
1328 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1329 infodir='${datarootdir}/info'
1334 libdir='${exec_prefix}/lib'
1335 localedir='${datarootdir}/locale'
1336 mandir='${datarootdir}/man'
1342 # If the previous option needs an argument, assign it.
1343 if test -n "$ac_prev"; then
1344 eval $ac_prev=\$ac_option
1350 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1354 # Accept the important Cygnus configure options, so we can diagnose typos.
1356 case $ac_dashdash$ac_option in
1360 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1362 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1363 bindir=$ac_optarg ;;
1365 -build | --build | --buil | --bui | --bu)
1366 ac_prev=build_alias ;;
1367 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1368 build_alias=$ac_optarg ;;
1370 -cache-file | --cache-file | --cache-fil | --cache-fi \
1371 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1372 ac_prev=cache_file ;;
1373 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1374 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1375 cache_file=$ac_optarg ;;
1377 --config-cache | -C)
1378 cache_file=config.cache ;;
1380 -datadir | --datadir | --datadi | --datad)
1382 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1383 datadir=$ac_optarg ;;
1385 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1386 | --dataroo | --dataro | --datar)
1387 ac_prev=datarootdir ;;
1388 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1389 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1390 datarootdir=$ac_optarg ;;
1392 -disable-* | --disable-*)
1393 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1396 as_fn_error "invalid feature name: $ac_useropt"
1397 ac_useropt_orig=$ac_useropt
1398 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399 case $ac_user_opts in
1401 "enable_$ac_useropt"
1403 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1404 ac_unrecognized_sep=', ';;
1406 eval enable_$ac_useropt=no ;;
1408 -docdir | --docdir | --docdi | --doc | --do)
1410 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1411 docdir=$ac_optarg ;;
1413 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1415 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1416 dvidir=$ac_optarg ;;
1418 -enable-* | --enable-*)
1419 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1420 # Reject names that are not valid shell variable names.
1421 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422 as_fn_error "invalid feature name: $ac_useropt"
1423 ac_useropt_orig=$ac_useropt
1424 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425 case $ac_user_opts in
1427 "enable_$ac_useropt"
1429 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1430 ac_unrecognized_sep=', ';;
1432 eval enable_$ac_useropt=\$ac_optarg ;;
1434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1436 | --exec | --exe | --ex)
1437 ac_prev=exec_prefix ;;
1438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1440 | --exec=* | --exe=* | --ex=*)
1441 exec_prefix=$ac_optarg ;;
1443 -gas | --gas | --ga | --g)
1444 # Obsolete; use --with-gas.
1447 -help | --help | --hel | --he | -h)
1448 ac_init_help=long ;;
1449 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1450 ac_init_help=recursive ;;
1451 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1452 ac_init_help=short ;;
1454 -host | --host | --hos | --ho)
1455 ac_prev=host_alias ;;
1456 -host=* | --host=* | --hos=* | --ho=*)
1457 host_alias=$ac_optarg ;;
1459 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1461 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1463 htmldir=$ac_optarg ;;
1465 -includedir | --includedir | --includedi | --included | --include \
1466 | --includ | --inclu | --incl | --inc)
1467 ac_prev=includedir ;;
1468 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1469 | --includ=* | --inclu=* | --incl=* | --inc=*)
1470 includedir=$ac_optarg ;;
1472 -infodir | --infodir | --infodi | --infod | --info | --inf)
1474 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1475 infodir=$ac_optarg ;;
1477 -libdir | --libdir | --libdi | --libd)
1479 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1480 libdir=$ac_optarg ;;
1482 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1483 | --libexe | --libex | --libe)
1484 ac_prev=libexecdir ;;
1485 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1486 | --libexe=* | --libex=* | --libe=*)
1487 libexecdir=$ac_optarg ;;
1489 -localedir | --localedir | --localedi | --localed | --locale)
1490 ac_prev=localedir ;;
1491 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1492 localedir=$ac_optarg ;;
1494 -localstatedir | --localstatedir | --localstatedi | --localstated \
1495 | --localstate | --localstat | --localsta | --localst | --locals)
1496 ac_prev=localstatedir ;;
1497 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1498 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1499 localstatedir=$ac_optarg ;;
1501 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1503 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1504 mandir=$ac_optarg ;;
1506 -nfp | --nfp | --nf)
1507 # Obsolete; use --without-fp.
1510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1511 | --no-cr | --no-c | -n)
1514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1518 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1519 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1520 | --oldin | --oldi | --old | --ol | --o)
1521 ac_prev=oldincludedir ;;
1522 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1523 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1524 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1525 oldincludedir=$ac_optarg ;;
1527 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1529 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1530 prefix=$ac_optarg ;;
1532 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1533 | --program-pre | --program-pr | --program-p)
1534 ac_prev=program_prefix ;;
1535 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1536 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1537 program_prefix=$ac_optarg ;;
1539 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1540 | --program-suf | --program-su | --program-s)
1541 ac_prev=program_suffix ;;
1542 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1543 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1544 program_suffix=$ac_optarg ;;
1546 -program-transform-name | --program-transform-name \
1547 | --program-transform-nam | --program-transform-na \
1548 | --program-transform-n | --program-transform- \
1549 | --program-transform | --program-transfor \
1550 | --program-transfo | --program-transf \
1551 | --program-trans | --program-tran \
1552 | --progr-tra | --program-tr | --program-t)
1553 ac_prev=program_transform_name ;;
1554 -program-transform-name=* | --program-transform-name=* \
1555 | --program-transform-nam=* | --program-transform-na=* \
1556 | --program-transform-n=* | --program-transform-=* \
1557 | --program-transform=* | --program-transfor=* \
1558 | --program-transfo=* | --program-transf=* \
1559 | --program-trans=* | --program-tran=* \
1560 | --progr-tra=* | --program-tr=* | --program-t=*)
1561 program_transform_name=$ac_optarg ;;
1563 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1565 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1566 pdfdir=$ac_optarg ;;
1568 -psdir | --psdir | --psdi | --psd | --ps)
1570 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1574 | -silent | --silent | --silen | --sile | --sil)
1577 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1579 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1581 sbindir=$ac_optarg ;;
1583 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1584 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1585 | --sharedst | --shareds | --shared | --share | --shar \
1587 ac_prev=sharedstatedir ;;
1588 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1589 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1590 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1592 sharedstatedir=$ac_optarg ;;
1594 -site | --site | --sit)
1596 -site=* | --site=* | --sit=*)
1599 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1601 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1602 srcdir=$ac_optarg ;;
1604 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1605 | --syscon | --sysco | --sysc | --sys | --sy)
1606 ac_prev=sysconfdir ;;
1607 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1608 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1609 sysconfdir=$ac_optarg ;;
1611 -target | --target | --targe | --targ | --tar | --ta | --t)
1612 ac_prev=target_alias ;;
1613 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1614 target_alias=$ac_optarg ;;
1616 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1619 -version | --version | --versio | --versi | --vers | -V)
1620 ac_init_version=: ;;
1623 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1624 # Reject names that are not valid shell variable names.
1625 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1626 as_fn_error "invalid package name: $ac_useropt"
1627 ac_useropt_orig=$ac_useropt
1628 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1629 case $ac_user_opts in
1633 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1634 ac_unrecognized_sep=', ';;
1636 eval with_$ac_useropt=\$ac_optarg ;;
1638 -without-* | --without-*)
1639 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1640 # Reject names that are not valid shell variable names.
1641 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1642 as_fn_error "invalid package name: $ac_useropt"
1643 ac_useropt_orig=$ac_useropt
1644 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1645 case $ac_user_opts in
1649 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1650 ac_unrecognized_sep=', ';;
1652 eval with_$ac_useropt=no ;;
1655 # Obsolete; use --with-x.
1658 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1659 | --x-incl | --x-inc | --x-in | --x-i)
1660 ac_prev=x_includes ;;
1661 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1662 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1663 x_includes=$ac_optarg ;;
1665 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1666 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1667 ac_prev=x_libraries ;;
1668 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1669 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1670 x_libraries=$ac_optarg ;;
1672 -*) as_fn_error "unrecognized option: \`$ac_option'
1673 Try \`$0 --help' for more information."
1677 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1678 # Reject names that are not valid shell variable names.
1679 case $ac_envvar in #(
1680 '' | [0-9]* | *[!_$as_cr_alnum]* )
1681 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1683 eval $ac_envvar=\$ac_optarg
1684 export $ac_envvar ;;
1687 # FIXME: should be removed in autoconf 3.0.
1688 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1689 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1690 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1691 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1697 if test -n "$ac_prev"; then
1698 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1699 as_fn_error "missing argument to $ac_option"
1702 if test -n "$ac_unrecognized_opts"; then
1703 case $enable_option_checking in
1705 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1706 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1710 # Check all directory arguments for consistency.
1711 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1712 datadir sysconfdir sharedstatedir localstatedir includedir \
1713 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1714 libdir localedir mandir
1716 eval ac_val=\$$ac_var
1717 # Remove trailing slashes.
1720 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1721 eval $ac_var=\$ac_val;;
1723 # Be sure to have absolute directory names.
1725 [\\/$]* | ?:[\\/]* ) continue;;
1726 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1728 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1731 # There might be people who depend on the old broken behavior: `$host'
1732 # used to hold the argument of --host etc.
1733 # FIXME: To remove some day.
1736 target=$target_alias
1738 # FIXME: To remove some day.
1739 if test "x$host_alias" != x; then
1740 if test "x$build_alias" = x; then
1741 cross_compiling=maybe
1742 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1743 If a cross compiler is detected then cross compile mode will be used." >&2
1744 elif test "x$build_alias" != "x$host_alias"; then
1750 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1752 test "$silent" = yes && exec 6>/dev/null
1755 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1756 ac_ls_di=`ls -di .` &&
1757 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1758 as_fn_error "working directory cannot be determined"
1759 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1760 as_fn_error "pwd does not report name of working directory"
1763 # Find the source files, if location was not specified.
1764 if test -z "$srcdir"; then
1765 ac_srcdir_defaulted=yes
1766 # Try the directory containing this script, then the parent directory.
1767 ac_confdir=`$as_dirname -- "$as_myself" ||
1768 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1769 X"$as_myself" : 'X\(//\)[^/]' \| \
1770 X"$as_myself" : 'X\(//\)$' \| \
1771 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1772 $as_echo X"$as_myself" |
1773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1791 if test ! -r "$srcdir/$ac_unique_file"; then
1795 ac_srcdir_defaulted=no
1797 if test ! -r "$srcdir/$ac_unique_file"; then
1798 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1799 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1801 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1803 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1805 # When building in place, set srcdir=.
1806 if test "$ac_abs_confdir" = "$ac_pwd"; then
1809 # Remove unnecessary trailing slashes from srcdir.
1810 # Double slashes in file names in object file debugging info
1811 # mess up M-x gdb in Emacs.
1813 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1815 for ac_var in $ac_precious_vars; do
1816 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1817 eval ac_env_${ac_var}_value=\$${ac_var}
1818 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1823 # Report the --help message.
1825 if test "$ac_init_help" = "long"; then
1826 # Omit some internal or obsolete options to make the list less imposing.
1827 # This message is too long to be a string in the A/UX 3.1 sh.
1829 \`configure' configures ImageMagick 6.6.1 to adapt to many kinds of systems.
1831 Usage: $0 [OPTION]... [VAR=VALUE]...
1833 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1834 VAR=VALUE. See below for descriptions of some of the useful variables.
1836 Defaults for the options are specified in brackets.
1839 -h, --help display this help and exit
1840 --help=short display options specific to this package
1841 --help=recursive display the short help of all the included packages
1842 -V, --version display version information and exit
1843 -q, --quiet, --silent do not print \`checking...' messages
1844 --cache-file=FILE cache test results in FILE [disabled]
1845 -C, --config-cache alias for \`--cache-file=config.cache'
1846 -n, --no-create do not create output files
1847 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1849 Installation directories:
1850 --prefix=PREFIX install architecture-independent files in PREFIX
1851 [$ac_default_prefix]
1852 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1855 By default, \`make install' will install all the files in
1856 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1857 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1858 for instance \`--prefix=\$HOME'.
1860 For better control, use the options below.
1862 Fine tuning of the installation directories:
1863 --bindir=DIR user executables [EPREFIX/bin]
1864 --sbindir=DIR system admin executables [EPREFIX/sbin]
1865 --libexecdir=DIR program executables [EPREFIX/libexec]
1866 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1867 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1868 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1869 --libdir=DIR object code libraries [EPREFIX/lib]
1870 --includedir=DIR C header files [PREFIX/include]
1871 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1872 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1873 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1874 --infodir=DIR info documentation [DATAROOTDIR/info]
1875 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1876 --mandir=DIR man documentation [DATAROOTDIR/man]
1877 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1878 --htmldir=DIR html documentation [DOCDIR]
1879 --dvidir=DIR dvi documentation [DOCDIR]
1880 --pdfdir=DIR pdf documentation [DOCDIR]
1881 --psdir=DIR ps documentation [DOCDIR]
1887 --program-prefix=PREFIX prepend PREFIX to installed program names
1888 --program-suffix=SUFFIX append SUFFIX to installed program names
1889 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1892 --x-includes=DIR X include files are in DIR
1893 --x-libraries=DIR X library files are in DIR
1896 --build=BUILD configure for building on BUILD [guessed]
1897 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1898 --target=TARGET configure for building compilers for TARGET [HOST]
1902 if test -n "$ac_init_help"; then
1903 case $ac_init_help in
1904 short | recursive ) echo "Configuration of ImageMagick 6.6.1:";;
1909 --disable-option-checking ignore unrecognized --enable/--with options
1910 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1911 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1912 --enable-silent-rules less verbose build output (undo: `make V=1')
1913 --disable-silent-rules verbose build output (undo: `make V=0')
1914 --disable-dependency-tracking speeds up one-time build
1915 --enable-dependency-tracking do not reject slow dependency extractors
1916 --bounds-checking enable run-time bounds-checking
1917 --enable-osx-universal-binary
1918 build universal binary on OS X [[default=no]]
1919 --disable-openmp do not use OpenMP
1920 --disable-opencl do not use OpenCL
1921 --disable-largefile omit support for large files
1922 --enable-shared[=PKGS] build shared libraries [default=yes]
1923 --enable-static[=PKGS] build static libraries [default=yes]
1924 --enable-fast-install[=PKGS]
1925 optimize for fast installation [default=yes]
1926 --disable-libtool-lock avoid locking (might break parallel builds)
1927 --enable-ltdl-install install libltdl
1928 --enable-delegate-build look for delegate libraries in build directory
1929 --disable-deprecated exclude deprecated methods in MagickCore and
1931 --disable-installed Formally install ImageMagick under PREFIX
1932 --disable-cipher disable enciphering and deciphering image pixels
1933 --enable-embeddable enable self-contained, embeddable,
1934 zero-configuration ImageMagick
1935 --enable-hdri accurately represent the wide range of intensity
1936 levels found in real scenes
1937 --disable-assert disable assert() statements in build
1938 --enable-maintainer-mode enable make rules and dependencies not useful
1939 (and sometimes confusing) to the casual installer
1940 --enable-ccmalloc enable 'ccmalloc' memory debug support
1941 --enable-efence enable 'efence' memory debug support
1942 --enable-prof enable 'prof' profiling support
1943 --enable-gprof enable 'gprof' profiling support
1944 --enable-gcov enable 'gcov' profiling support
1945 --disable-assert turn off assertions
1948 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1949 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1950 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1951 --without-maximum-compile-warnings
1952 Disable maximum warning verbosity
1953 --with-dmalloc use dmalloc, as in
1954 http://www.dmalloc.com/dmalloc.tar.gz
1955 --without-threads disable threads support
1956 --with-pic try to use only PIC/non-PIC objects [default=use
1958 --with-included-ltdl use the GNU ltdl sources included here
1959 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1960 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1961 --with-modules enable building dynamically loadable modules
1962 --with-method-prefix=PREFIX
1963 prefix MagickCore API methods
1964 --with-quantum-depth=DEPTH
1965 number of bits in a pixel quantum (default 16)
1966 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1968 --with-frozenpaths freeze delegate paths
1969 --without-magick-plus-plus
1970 disable build/install of Magick++
1971 --with-perl enable build/install of PerlMagick
1972 --with-perl-options=OPTIONS
1973 options to pass on command-line when generating
1974 PerlMagick's build file
1975 --with-umem enable umem memory allocation library support
1976 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1977 --without-bzlib disable BZLIB support
1978 --with-x use the X Window System
1979 --without-zlib disable ZLIB support
1980 --with-autotrace enable autotrace support
1981 --without-dps disable Display Postscript support
1982 --without-djvu disable DjVu support
1983 --with-dejavu-font-dir=DIR
1984 DejaVu font directory
1985 --without-fftw disable FFTW support
1986 --without-fpx disable FlashPIX support
1987 --without-fontconfig disable fontconfig support
1988 --without-freetype disable Freetype support
1989 --without-gslib enable Ghostscript library support
1990 --with-fontpath=DIR prepend to default font search path
1991 --with-gs-font-dir=DIR Ghostscript font directory
1992 --without-gvc disable GVC support
1993 --without-jbig disable JBIG support
1994 --without-jpeg disable JPEG support
1995 --without-jp2 disable JPEG-2000 support
1996 --without-lcms disable LCMS support
1997 --without-lqr disable Liquid Rescale support
1998 --without-openexr disable OpenEXR support
1999 --without-png disable PNG support
2000 --without-rsvg disable RSVG support
2001 --without-tiff disable TIFF support
2002 --with-windows-font-dir=DIR
2003 directory containing MS-Windows fonts
2004 --without-wmf disable WMF support
2005 --without-xml disable XML support
2007 Some influential environment variables:
2008 CC C compiler command
2009 CFLAGS C compiler flags
2010 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2011 nonstandard directory <lib dir>
2012 LIBS libraries to pass to the linker, e.g. -l<library>
2013 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2014 you have headers in a nonstandard directory <include dir>
2016 CXX C++ compiler command
2017 CXXFLAGS C++ compiler flags
2018 PKG_CONFIG path to pkg-config utility
2019 CXXCPP C++ preprocessor
2020 XMKMF Path to xmkmf, Makefile generator for X Window System
2022 C compiler flags for AUTOTRACE, overriding pkg-config
2024 linker flags for AUTOTRACE, overriding pkg-config
2026 C compiler flags for FONTCONFIG, overriding pkg-config
2028 linker flags for FONTCONFIG, overriding pkg-config
2029 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2030 GVC_LIBS linker flags for GVC, overriding pkg-config
2031 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2032 LQR_LIBS linker flags for LQR, overriding pkg-config
2034 C compiler flags for OPENEXR, overriding pkg-config
2036 linker flags for OPENEXR, overriding pkg-config
2037 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2038 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2040 C compiler flags for CAIRO_SVG, overriding pkg-config
2042 linker flags for CAIRO_SVG, overriding pkg-config
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2047 Report bugs to <http://www.imagemagick.org>.
2052 if test "$ac_init_help" = "recursive"; then
2053 # If there are subdirs, report their specific --help.
2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055 test -d "$ac_dir" ||
2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2064 # A ".." for each directory in $ac_dir_suffix.
2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2066 case $ac_top_builddir_sub in
2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2071 ac_abs_top_builddir=$ac_pwd
2072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073 # for backward compatibility:
2074 ac_top_builddir=$ac_top_build_prefix
2077 .) # We are building in place.
2079 ac_top_srcdir=$ac_top_builddir_sub
2080 ac_abs_top_srcdir=$ac_pwd ;;
2081 [\\/]* | ?:[\\/]* ) # Absolute name.
2082 ac_srcdir=$srcdir$ac_dir_suffix;
2083 ac_top_srcdir=$srcdir
2084 ac_abs_top_srcdir=$srcdir ;;
2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087 ac_top_srcdir=$ac_top_build_prefix$srcdir
2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2092 cd "$ac_dir" || { ac_status=$?; continue; }
2093 # Check for guested configure.
2094 if test -f "$ac_srcdir/configure.gnu"; then
2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097 elif test -f "$ac_srcdir/configure"; then
2099 $SHELL "$ac_srcdir/configure" --help=recursive
2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2103 cd "$ac_pwd" || { ac_status=$?; break; }
2107 test -n "$ac_init_help" && exit $ac_status
2108 if $ac_init_version; then
2110 ImageMagick configure 6.6.1
2111 generated by GNU Autoconf 2.65
2113 Copyright (C) 2009 Free Software Foundation, Inc.
2114 This configure script is free software; the Free Software Foundation
2115 gives unlimited permission to copy, distribute and modify it.
2120 ## ------------------------ ##
2121 ## Autoconf initialization. ##
2122 ## ------------------------ ##
2124 # ac_fn_c_try_compile LINENO
2125 # --------------------------
2126 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_c_try_compile ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 rm -f conftest.$ac_objext
2131 if { { ac_try="$ac_compile"
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_compile") 2>conftest.err
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } && {
2147 test -z "$ac_c_werror_flag" ||
2148 test ! -s conftest.err
2149 } && test -s conftest.$ac_objext; then :
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 as_fn_set_status $ac_retval
2160 } # ac_fn_c_try_compile
2162 # ac_fn_c_try_cpp LINENO
2163 # ----------------------
2164 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_cpp conftest.$ac_ext"
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } >/dev/null && {
2184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185 test ! -s conftest.err
2189 $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 as_fn_set_status $ac_retval
2199 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200 # -------------------------------------------------------
2201 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202 # the include files in INCLUDES and setting the cache variable VAR
2204 ac_fn_c_check_header_mongrel ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209 $as_echo_n "checking for $2... " >&6; }
2210 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2211 $as_echo_n "(cached) " >&6
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2217 # Is the header compilable?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219 $as_echo_n "checking $2 usability... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_header_compiler=yes
2228 ac_header_compiler=no
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232 $as_echo "$ac_header_compiler" >&6; }
2234 # Is the header present?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236 $as_echo_n "checking $2 presence... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2241 if ac_fn_c_try_cpp "$LINENO"; then :
2242 ac_header_preproc=yes
2244 ac_header_preproc=no
2246 rm -f conftest.err conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248 $as_echo "$ac_header_preproc" >&6; }
2250 # So? What about this header?
2251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2262 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2266 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2270 ## ----------------------------------------- ##
2271 ## Report this to http://www.imagemagick.org ##
2272 ## ----------------------------------------- ##
2274 ) | sed "s/^/$as_me: WARNING: /" >&2
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2280 $as_echo_n "(cached) " >&6
2282 eval "$3=\$ac_header_compiler"
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 } # ac_fn_c_check_header_mongrel
2292 # ac_fn_c_try_run LINENO
2293 # ----------------------
2294 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2295 # that executables *can* be run.
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if { { ac_try="$ac_link"
2301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302 *) ac_try_echo=$ac_try;;
2304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305 $as_echo "$ac_try_echo"; } >&5
2306 (eval "$ac_link") 2>&5
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2310 { { case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_try") 2>&5
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; }; }; then :
2322 $as_echo "$as_me: program exited with status $ac_status" >&5
2323 $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 ac_retval=$ac_status
2328 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2330 as_fn_set_status $ac_retval
2334 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2335 # -------------------------------------------------------
2336 # Tests whether HEADER exists and can be compiled using the include files in
2337 # INCLUDES, setting the cache variable VAR accordingly.
2338 ac_fn_c_check_header_compile ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2351 if ac_fn_c_try_compile "$LINENO"; then :
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363 } # ac_fn_c_check_header_compile
2365 # ac_fn_cxx_try_compile LINENO
2366 # ----------------------------
2367 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2368 ac_fn_cxx_try_compile ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 rm -f conftest.$ac_objext
2372 if { { ac_try="$ac_compile"
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_compile") 2>conftest.err
2381 if test -s conftest.err; then
2382 grep -v '^ *+' conftest.err >conftest.er1
2383 cat conftest.er1 >&5
2384 mv -f conftest.er1 conftest.err
2386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387 test $ac_status = 0; } && {
2388 test -z "$ac_cxx_werror_flag" ||
2389 test ! -s conftest.err
2390 } && test -s conftest.$ac_objext; then :
2393 $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 as_fn_set_status $ac_retval
2401 } # ac_fn_cxx_try_compile
2403 # ac_fn_c_try_link LINENO
2404 # -----------------------
2405 # Try to link conftest.$ac_ext, and return whether this succeeded.
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 rm -f conftest.$ac_objext conftest$ac_exeext
2410 if { { ac_try="$ac_link"
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417 (eval "$ac_link") 2>conftest.err
2419 if test -s conftest.err; then
2420 grep -v '^ *+' conftest.err >conftest.er1
2421 cat conftest.er1 >&5
2422 mv -f conftest.er1 conftest.err
2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425 test $ac_status = 0; } && {
2426 test -z "$ac_c_werror_flag" ||
2427 test ! -s conftest.err
2428 } && test -s conftest$ac_exeext && {
2429 test "$cross_compiling" = yes ||
2430 $as_test_x conftest$ac_exeext
2434 $as_echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2439 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2440 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2441 # interfere with the next link command; also delete a directory that is
2442 # left behind by Apple's compiler. We do this before executing the actions.
2443 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 as_fn_set_status $ac_retval
2447 } # ac_fn_c_try_link
2449 # ac_fn_c_check_func LINENO FUNC VAR
2450 # ----------------------------------
2451 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2452 ac_fn_c_check_func ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458 $as_echo_n "(cached) " >&6
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2462 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2464 #define $2 innocuous_$2
2466 /* System header to define __stub macros and hopefully few prototypes,
2467 which can conflict with char $2 (); below.
2468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469 <limits.h> exists even on freestanding compilers. */
2472 # include <limits.h>
2474 # include <assert.h>
2479 /* Override any GCC internal prototype to avoid an error.
2480 Use char because int might match the return type of a GCC
2481 builtin and then its argument prototype would still apply. */
2486 /* The GNU C library defines this for functions which it implements
2487 to always fail with ENOSYS. Some functions are actually named
2488 something starting with __ and the normal name is an alias. */
2489 #if defined __stub_$2 || defined __stub___$2
2501 if ac_fn_c_try_link "$LINENO"; then :
2506 rm -f core conftest.err conftest.$ac_objext \
2507 conftest$ac_exeext conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511 $as_echo "$ac_res" >&6; }
2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514 } # ac_fn_c_check_func
2516 # ac_fn_cxx_try_cpp LINENO
2517 # ------------------------
2518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2519 ac_fn_cxx_try_cpp ()
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 if { { ac_try="$ac_cpp conftest.$ac_ext"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2528 $as_echo "$ac_try_echo"; } >&5
2529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2531 if test -s conftest.err; then
2532 grep -v '^ *+' conftest.err >conftest.er1
2533 cat conftest.er1 >&5
2534 mv -f conftest.er1 conftest.err
2536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2537 test $ac_status = 0; } >/dev/null && {
2538 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2539 test ! -s conftest.err
2543 $as_echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 as_fn_set_status $ac_retval
2551 } # ac_fn_cxx_try_cpp
2553 # ac_fn_cxx_try_link LINENO
2554 # -------------------------
2555 # Try to link conftest.$ac_ext, and return whether this succeeded.
2556 ac_fn_cxx_try_link ()
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 rm -f conftest.$ac_objext conftest$ac_exeext
2560 if { { ac_try="$ac_link"
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2566 $as_echo "$ac_try_echo"; } >&5
2567 (eval "$ac_link") 2>conftest.err
2569 if test -s conftest.err; then
2570 grep -v '^ *+' conftest.err >conftest.er1
2571 cat conftest.er1 >&5
2572 mv -f conftest.er1 conftest.err
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; } && {
2576 test -z "$ac_cxx_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest$ac_exeext && {
2579 test "$cross_compiling" = yes ||
2580 $as_test_x conftest$ac_exeext
2584 $as_echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2591 # interfere with the next link command; also delete a directory that is
2592 # left behind by Apple's compiler. We do this before executing the actions.
2593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2595 as_fn_set_status $ac_retval
2597 } # ac_fn_cxx_try_link
2599 # ac_fn_c_check_decl LINENO SYMBOL VAR
2600 # ------------------------------------
2601 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2602 ac_fn_c_check_decl ()
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2606 $as_echo_n "checking whether $2 is declared... " >&6; }
2607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2624 if ac_fn_c_try_compile "$LINENO"; then :
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_decl
2638 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2639 # -------------------------------------------
2640 # Tests whether TYPE exists after having included INCLUDES, setting cache
2641 # variable VAR accordingly.
2642 ac_fn_c_check_type ()
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2646 $as_echo_n "checking for $2... " >&6; }
2647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2648 $as_echo_n "(cached) " >&6
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2676 if ac_fn_c_try_compile "$LINENO"; then :
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_c_check_type
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2697 ac_fn_c_compute_int ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if test "$cross_compiling" = yes; then
2701 # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2715 if ac_fn_c_try_compile "$LINENO"; then :
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732 ac_hi=$ac_mid; break
2734 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2735 if test $ac_lo -le $ac_mid; then
2739 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2750 static int test_array [1 - 2 * !(($2) < 0)];
2757 if ac_fn_c_try_compile "$LINENO"; then :
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774 ac_lo=$ac_mid; break
2776 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2777 if test $ac_mid -le $ac_hi; then
2781 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807 if ac_fn_c_try_compile "$LINENO"; then :
2810 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h. */
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2830 FILE *f = fopen ("conftest.val", "w");
2835 long int i = longval ();
2838 fprintf (f, "%ld", i);
2842 unsigned long int i = ulongval ();
2845 fprintf (f, "%lu", i);
2847 /* Do not output a trailing newline, as this causes \r\n confusion
2848 on some platforms. */
2849 return ferror (f) || fclose (f) != 0;
2855 if ac_fn_c_try_run "$LINENO"; then :
2856 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2861 conftest.$ac_objext conftest.beam conftest.$ac_ext
2865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2866 as_fn_set_status $ac_retval
2868 } # ac_fn_c_compute_int
2870 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2871 # ---------------------------------------------------------
2872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2873 # the include files in INCLUDES and setting the cache variable VAR
2875 ac_fn_cxx_check_header_mongrel ()
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2880 $as_echo_n "checking for $2... " >&6; }
2881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2882 $as_echo_n "(cached) " >&6
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886 $as_echo "$ac_res" >&6; }
2888 # Is the header compilable?
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2890 $as_echo_n "checking $2 usability... " >&6; }
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h. */
2896 if ac_fn_cxx_try_compile "$LINENO"; then :
2897 ac_header_compiler=yes
2899 ac_header_compiler=no
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2903 $as_echo "$ac_header_compiler" >&6; }
2905 # Is the header present?
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2907 $as_echo_n "checking $2 presence... " >&6; }
2908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909 /* end confdefs.h. */
2912 if ac_fn_cxx_try_cpp "$LINENO"; then :
2913 ac_header_preproc=yes
2915 ac_header_preproc=no
2917 rm -f conftest.err conftest.$ac_ext
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2919 $as_echo "$ac_header_preproc" >&6; }
2921 # So? What about this header?
2922 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2933 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2937 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2941 ## ----------------------------------------- ##
2942 ## Report this to http://www.imagemagick.org ##
2943 ## ----------------------------------------- ##
2945 ) | sed "s/^/$as_me: WARNING: /" >&2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2949 $as_echo_n "checking for $2... " >&6; }
2950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2951 $as_echo_n "(cached) " >&6
2953 eval "$3=\$ac_header_compiler"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2957 $as_echo "$ac_res" >&6; }
2959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2961 } # ac_fn_cxx_check_header_mongrel
2962 cat >config.log <<_ACEOF
2963 This file contains any messages produced by compilers while
2964 running configure, to aid debugging if configure makes a mistake.
2966 It was created by ImageMagick $as_me 6.6.1, which was
2967 generated by GNU Autoconf 2.65. Invocation command line was
2979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir=.
3003 $as_echo "PATH: $as_dir"
3019 # Keep a trace of the command line.
3020 # Strip out --no-create and --no-recursion so they do not pile up.
3021 # Strip out --silent because we don't want to record it for future runs.
3022 # Also quote any args containing shell meta-characters.
3023 # Make two passes to allow for proper duplicate-argument suppression.
3027 ac_must_keep_next=false
3033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3035 | -silent | --silent | --silen | --sile | --sil)
3038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3043 as_fn_append ac_configure_args1 " '$ac_arg'"
3044 if test $ac_must_keep_next = true; then
3045 ac_must_keep_next=false # Got value, back to normal.
3048 *=* | --config-cache | -C | -disable-* | --disable-* \
3049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3051 | -with-* | --with-* | -without-* | --without-* | --x)
3052 case "$ac_configure_args0 " in
3053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3056 -* ) ac_must_keep_next=true ;;
3059 as_fn_append ac_configure_args " '$ac_arg'"
3064 { ac_configure_args0=; unset ac_configure_args0;}
3065 { ac_configure_args1=; unset ac_configure_args1;}
3067 # When interrupted or exit'd, cleanup temporary files, and complete
3068 # config.log. We remove comments because anyway the quotes in there
3069 # would cause problems or look ugly.
3070 # WARNING: Use '\'' to represent an apostrophe within the trap.
3071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3072 trap 'exit_status=$?
3073 # Save into config.log some information that might help in debugging.
3078 ## ---------------- ##
3079 ## Cache variables. ##
3080 ## ---------------- ##
3083 # The following way of writing the cache mishandles newlines in values,
3085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3086 eval ac_val=\$$ac_var
3090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3094 _ | IFS | as_nl) ;; #(
3095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3096 *) { eval $ac_var=; unset $ac_var;} ;;
3101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3102 *${as_nl}ac_space=\ *)
3104 "s/'\''/'\''\\\\'\'''\''/g;
3105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3116 ## ----------------- ##
3117 ## Output variables. ##
3118 ## ----------------- ##
3121 for ac_var in $ac_subst_vars
3123 eval ac_val=\$$ac_var
3125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3127 $as_echo "$ac_var='\''$ac_val'\''"
3131 if test -n "$ac_subst_files"; then
3133 ## ------------------- ##
3134 ## File substitutions. ##
3135 ## ------------------- ##
3138 for ac_var in $ac_subst_files
3140 eval ac_val=\$$ac_var
3142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3144 $as_echo "$ac_var='\''$ac_val'\''"
3149 if test -s confdefs.h; then
3159 test "$ac_signal" != 0 &&
3160 $as_echo "$as_me: caught signal $ac_signal"
3161 $as_echo "$as_me: exit $exit_status"
3163 rm -f core *.core core.conftest.* &&
3164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3167 for ac_signal in 1 2 13 15; do
3168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3173 rm -f -r conftest* confdefs.h
3175 $as_echo "/* confdefs.h */" > confdefs.h
3177 # Predefined preprocessor variables.
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE_NAME "$PACKAGE_NAME"
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_STRING "$PACKAGE_STRING"
3195 cat >>confdefs.h <<_ACEOF
3196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE_URL "$PACKAGE_URL"
3204 # Let the site file select an alternate cache file if it wants to.
3205 # Prefer an explicitly selected file to automatically selected ones.
3208 if test -n "$CONFIG_SITE"; then
3209 ac_site_file1=$CONFIG_SITE
3210 elif test "x$prefix" != xNONE; then
3211 ac_site_file1=$prefix/share/config.site
3212 ac_site_file2=$prefix/etc/config.site
3214 ac_site_file1=$ac_default_prefix/share/config.site
3215 ac_site_file2=$ac_default_prefix/etc/config.site
3217 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3219 test "x$ac_site_file" = xNONE && continue
3220 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3223 sed 's/^/| /' "$ac_site_file" >&5
3228 if test -r "$cache_file"; then
3229 # Some versions of bash will fail to source /dev/null (special files
3230 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3231 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3233 $as_echo "$as_me: loading cache $cache_file" >&6;}
3235 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3236 *) . "./$cache_file";;
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3241 $as_echo "$as_me: creating cache $cache_file" >&6;}
3245 as_fn_append ac_header_list " stdlib.h"
3246 as_fn_append ac_header_list " unistd.h"
3247 as_fn_append ac_header_list " sys/param.h"
3248 # Check that the precious variables saved in the cache have kept the same
3250 ac_cache_corrupted=false
3251 for ac_var in $ac_precious_vars; do
3252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3253 eval ac_new_set=\$ac_env_${ac_var}_set
3254 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3255 eval ac_new_val=\$ac_env_${ac_var}_value
3256 case $ac_old_set,$ac_new_set in
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3259 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3260 ac_cache_corrupted=: ;;
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3263 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3264 ac_cache_corrupted=: ;;
3267 if test "x$ac_old_val" != "x$ac_new_val"; then
3268 # differences in whitespace do not lead to failure.
3269 ac_old_val_w=`echo x $ac_old_val`
3270 ac_new_val_w=`echo x $ac_new_val`
3271 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3273 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3274 ac_cache_corrupted=:
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3277 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3278 eval $ac_var=\$ac_old_val
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3281 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3283 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3286 # Pass precious variables to config.status.
3287 if test "$ac_new_set" = set; then
3289 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3290 *) ac_arg=$ac_var=$ac_new_val ;;
3292 case " $ac_configure_args " in
3293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3294 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3298 if $ac_cache_corrupted; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3302 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3303 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3305 ## -------------------- ##
3306 ## Main body of script. ##
3307 ## -------------------- ##
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 for ac_dir in config "$srcdir"/config; do
3319 for ac_t in install-sh install.sh shtool; do
3320 if test -f "$ac_dir/$ac_t"; then
3322 ac_install_sh="$ac_aux_dir/$ac_t -c"
3327 if test -z "$ac_aux_dir"; then
3328 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3331 # These three variables are undocumented and unsupported,
3332 # and are intended to be withdrawn in a future Autoconf release.
3333 # They can cause serious problems if a builder's source tree is in a directory
3334 # whose full name contains unusual characters.
3335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3342 ac_config_headers="$ac_config_headers config/config.h"
3344 ac_config_commands="$ac_config_commands magick/magick-config.h"
3346 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"
3350 # Save initial user-tunable values
3353 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3354 eval isset=\${$var+set}
3355 if test "$isset" = 'set'; then
3356 eval val=$`echo $var`
3357 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3362 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3365 # Source file containing package/library versioning information.
3366 . ${srcdir}/version.sh
3368 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3369 # Make sure we can run config.sub.
3370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3371 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3374 $as_echo_n "checking build system type... " >&6; }
3375 if test "${ac_cv_build+set}" = set; then :
3376 $as_echo_n "(cached) " >&6
3378 ac_build_alias=$build_alias
3379 test "x$ac_build_alias" = x &&
3380 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3381 test "x$ac_build_alias" = x &&
3382 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3384 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3388 $as_echo "$ac_cv_build" >&6; }
3389 case $ac_cv_build in
3391 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3394 ac_save_IFS=$IFS; IFS='-'
3400 # Remember, the first character of IFS is used to create $*,
3401 # except with old shells:
3404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3408 $as_echo_n "checking host system type... " >&6; }
3409 if test "${ac_cv_host+set}" = set; then :
3410 $as_echo_n "(cached) " >&6
3412 if test "x$host_alias" = x; then
3413 ac_cv_host=$ac_cv_build
3415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3416 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3421 $as_echo "$ac_cv_host" >&6; }
3424 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3427 ac_save_IFS=$IFS; IFS='-'
3433 # Remember, the first character of IFS is used to create $*,
3434 # except with old shells:
3437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3441 $as_echo_n "checking target system type... " >&6; }
3442 if test "${ac_cv_target+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test "x$target_alias" = x; then
3446 ac_cv_target=$ac_cv_host
3448 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3449 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3454 $as_echo "$ac_cv_target" >&6; }
3455 case $ac_cv_target in
3457 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3459 target=$ac_cv_target
3460 ac_save_IFS=$IFS; IFS='-'
3466 # Remember, the first character of IFS is used to create $*,
3467 # except with old shells:
3470 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3473 # The aliases save the names the user supplied, while $host etc.
3474 # will get canonicalized.
3475 test -n "$target_alias" &&
3476 test "$program_prefix$program_suffix$program_transform_name" = \
3478 program_prefix=${target_alias}-
3484 MAGICK_TARGET_CPU=$target_cpu
3487 MAGICK_TARGET_VENDOR=$target_vendor
3490 MAGICK_TARGET_OS=$target_os
3493 # Substitute library versioning
3494 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3496 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3500 # Ensure that make can run correctly
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3502 $as_echo_n "checking whether build environment is sane... " >&6; }
3505 echo timestamp > conftest.file
3506 # Reject unsafe characters in $srcdir or the absolute working directory
3507 # name. Accept space and tab only in the latter.
3511 *[\\\"\#\$\&\'\`$am_lf]*)
3512 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3515 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3516 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3519 # Do `set' in a subshell so we don't clobber the current shell's
3520 # arguments. Must try -L first in case configure is actually a
3521 # symlink; some systems play weird games with the mod time of symlinks
3522 # (eg FreeBSD returns the mod time of the symlink's containing
3525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3526 if test "$*" = "X"; then
3528 set X `ls -t "$srcdir/configure" conftest.file`
3531 if test "$*" != "X $srcdir/configure conftest.file" \
3532 && test "$*" != "X conftest.file $srcdir/configure"; then
3534 # If neither matched, then we have a broken ls. This can happen
3535 # if, for instance, CONFIG_SHELL is bash and it inherits a
3536 # broken ls alias from the environment. This has actually
3537 # happened. Such a system could not be considered "sane".
3538 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3539 alias in your environment" "$LINENO" 5
3542 test "$2" = conftest.file
3548 as_fn_error "newly created file is older than distributed files!
3549 Check your system clock" "$LINENO" 5
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3554 am__api_version='1.11'
3556 # Find a good install program. We prefer a C program (faster),
3557 # so one script is as good as another. But avoid the broken or
3558 # incompatible versions:
3559 # SysV /etc/install, /usr/sbin/install
3560 # SunOS /usr/etc/install
3561 # IRIX /sbin/install
3563 # AmigaOS /C/install, which installs bootblocks on floppy discs
3564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3567 # OS/2's system install, which has a completely different semantic
3568 # ./install, which can be erroneously created by make from ./install.sh.
3569 # Reject install programs that cannot install multiple files.
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3571 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3572 if test -z "$INSTALL"; then
3573 if test "${ac_cv_path_install+set}" = set; then :
3574 $as_echo_n "(cached) " >&6
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 # Account for people who put trailing slashes in PATH elements.
3582 case $as_dir/ in #((
3583 ./ | .// | /[cC]/* | \
3584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3585 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3588 # OSF1 and SCO ODT 3.0 have their own names for install.
3589 # Don't use installbsd from OSF since it installs stuff as root
3591 for ac_prog in ginstall scoinst install; do
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3594 if test $ac_prog = install &&
3595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3596 # AIX install. It has an incompatible calling convention.
3598 elif test $ac_prog = install &&
3599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3600 # program-specific install script used by HP pwplus--don't use.
3603 rm -rf conftest.one conftest.two conftest.dir
3604 echo one > conftest.one
3605 echo two > conftest.two
3607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3608 test -s conftest.one && test -s conftest.two &&
3609 test -s conftest.dir/conftest.one &&
3610 test -s conftest.dir/conftest.two
3612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3625 rm -rf conftest.one conftest.two conftest.dir
3628 if test "${ac_cv_path_install+set}" = set; then
3629 INSTALL=$ac_cv_path_install
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for INSTALL within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 INSTALL=$ac_install_sh
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3639 $as_echo "$INSTALL" >&6; }
3641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642 # It thinks the first close brace ends the variable substitution.
3643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3649 test "$program_prefix" != NONE &&
3650 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3651 # Use a double $ so make ignores it.
3652 test "$program_suffix" != NONE &&
3653 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3654 # Double any \ or $.
3655 # By default was `s,x,x', remove it if useless.
3656 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3657 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3659 # expand $ac_aux_dir to an absolute path
3660 am_aux_dir=`cd $ac_aux_dir && pwd`
3662 if test x"${MISSING+set}" != xset; then
3665 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3667 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3670 # Use eval to expand $SHELL
3671 if eval "$MISSING --run true"; then
3672 am_missing_run="$MISSING --run "
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3676 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3679 if test x"${install_sh}" != xset; then
3682 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3684 install_sh="\${SHELL} $am_aux_dir/install-sh"
3688 # Installed binaries are usually stripped using `strip' when the user
3689 # run `make install-strip'. However `strip' might not be the right
3690 # tool to use in cross-compilation environments, therefore Automake
3691 # will honor the `STRIP' environment variable to overrule this program.
3692 if test "$cross_compiling" != no; then
3693 if test -n "$ac_tool_prefix"; then
3694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}strip; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_STRIP+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$STRIP"; then
3702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 STRIP=$ac_cv_prog_STRIP
3722 if test -n "$STRIP"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3724 $as_echo "$STRIP" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3732 if test -z "$ac_cv_prog_STRIP"; then
3734 # Extract the first word of "strip", so it can be a program name with args.
3735 set dummy strip; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$ac_ct_STRIP"; then
3742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_STRIP="strip"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3762 if test -n "$ac_ct_STRIP"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3764 $as_echo "$ac_ct_STRIP" >&6; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3770 if test "x$ac_ct_STRIP" = x; then
3773 case $cross_compiling:$ac_tool_warned in
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3782 STRIP="$ac_cv_prog_STRIP"
3786 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3789 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3790 if test -z "$MKDIR_P"; then
3791 if test "${ac_cv_path_mkdir+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3798 test -z "$as_dir" && as_dir=.
3799 for ac_prog in mkdir gmkdir; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3802 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3803 'mkdir (GNU coreutils) '* | \
3804 'mkdir (coreutils) '* | \
3805 'mkdir (fileutils) '4.1*)
3806 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3816 test -d ./--version && rmdir ./--version
3817 if test "${ac_cv_path_mkdir+set}" = set; then
3818 MKDIR_P="$ac_cv_path_mkdir -p"
3820 # As a last resort, use the slow shell script. Don't cache a
3821 # value for MKDIR_P within a source directory, because that will
3822 # break other packages using the cache if that directory is
3823 # removed, or if the value is a relative name.
3824 MKDIR_P="$ac_install_sh -d"
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3828 $as_echo "$MKDIR_P" >&6; }
3832 [\\/$]* | ?:[\\/]*) ;;
3833 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3836 for ac_prog in gawk mawk nawk awk
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if test "${ac_cv_prog_AWK+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3845 if test -n "$AWK"; then
3846 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3855 ac_cv_prog_AWK="$ac_prog"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 if test -n "$AWK"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3868 $as_echo "$AWK" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3875 test -n "$AWK" && break
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3879 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3881 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3882 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3883 $as_echo_n "(cached) " >&6
3885 cat >conftest.make <<\_ACEOF
3888 @echo '@@@%%%=$(MAKE)=@@@%%%'
3890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3891 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3893 eval ac_cv_prog_make_${ac_make}_set=yes;;
3895 eval ac_cv_prog_make_${ac_make}_set=no;;
3899 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 $as_echo "yes" >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 SET_MAKE="MAKE=${MAKE-make}"
3909 rm -rf .tst 2>/dev/null
3910 mkdir .tst 2>/dev/null
3911 if test -d .tst; then
3916 rmdir .tst 2>/dev/null
3918 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3919 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3920 # is not polluted with repeated "-I."
3921 am__isrc=' -I$(srcdir)'
3922 # test to see if srcdir already configured
3923 if test -f $srcdir/config.status; then
3924 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3928 # test whether we have cygpath
3929 if test -z "$CYGPATH_W"; then
3930 if (cygpath --version) >/dev/null 2>/dev/null; then
3931 CYGPATH_W='cygpath -w'
3938 # Define the identity of the package.
3939 PACKAGE=$PACKAGE_NAME
3940 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3943 # Some tools Automake needs.
3945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3959 # We need awk for the "check" target. The system "awk" is bad on
3961 # Always define AMTAR for backward compatibility.
3963 AMTAR=${AMTAR-"${am_missing_run}tar"}
3965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3972 # Enable support for silent build rules
3973 # Check whether --enable-silent-rules was given.
3974 if test "${enable_silent_rules+set}" = set; then :
3975 enableval=$enable_silent_rules;
3978 case $enable_silent_rules in
3979 yes) AM_DEFAULT_VERBOSITY=0;;
3980 no) AM_DEFAULT_VERBOSITY=1;;
3981 *) AM_DEFAULT_VERBOSITY=0;;
3986 MAGICK_LIB_VERSION="0x"
3987 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3988 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3990 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3991 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3992 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3994 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3995 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3996 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3998 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4001 # Definition used to define MagickLibVersionText in version.h
4002 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4005 # Definition used to define MagickLibVersionNumber in version.h
4006 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4009 # Regenerate config.status if ChangeLog or version.sh is updated.
4010 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4016 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4017 MAGICK_PCFLAGS=$CPPFLAGS_USER
4022 # Evaluate shell variable equivalents to Makefile directory variables
4024 if test "x$prefix" = xNONE; then
4025 prefix=$ac_default_prefix
4027 # Let make expand exec_prefix.
4028 if test "x$exec_prefix" = xNONE; then
4029 exec_prefix='${prefix}'
4033 eval "eval PREFIX_DIR=${prefix}"
4035 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4037 eval "eval BIN_DIR=$bindir"
4039 eval "eval SBIN_DIR=$sbindir"
4041 eval "eval LIBEXEC_DIR=$libexecdir"
4043 eval "eval DATA_DIR=$datadir"
4045 eval "eval SYSCONF_DIR=$sysconfdir"
4047 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4049 eval "eval LOCALSTATE_DIR=$localstatedir"
4051 eval "eval LIB_DIR=$libdir"
4053 eval "eval INCLUDE_DIR=$includedir"
4055 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4057 eval "eval INFO_DIR=$infodir"
4059 eval "eval MAN_DIR=$mandir"
4062 # Get full paths to source and build directories
4063 srcdirfull="`cd $srcdir && pwd`"
4067 # Compute variables useful for running uninstalled software.
4069 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4070 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4071 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4072 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4074 case "${build_os}" in
4076 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4077 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4078 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4079 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4083 case "${host_os}" in
4096 # Enable OS features.
4098 DEPDIR="${am__leading_dot}deps"
4100 ac_config_commands="$ac_config_commands depfiles"
4103 am_make=${MAKE-make}
4104 cat > confinc << 'END'
4106 @echo this is the am__doit target
4109 # If we don't find an include directive, just comment out the code.
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4111 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4115 # First try GNU make style include.
4116 echo "include confinc" > confmf
4117 # Ignore all kinds of additional output from `make'.
4118 case `$am_make -s -f confmf 2> /dev/null` in #(
4119 *the\ am__doit\ target*)
4125 # Now try BSD make style include.
4126 if test "$am__include" = "#"; then
4127 echo '.include "confinc"' > confmf
4128 case `$am_make -s -f confmf 2> /dev/null` in #(
4129 *the\ am__doit\ target*)
4130 am__include=.include
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4139 $as_echo "$_am_result" >&6; }
4140 rm -f confinc confmf
4142 # Check whether --enable-dependency-tracking was given.
4143 if test "${enable_dependency_tracking+set}" = set; then :
4144 enableval=$enable_dependency_tracking;
4147 if test "x$enable_dependency_tracking" != xno; then
4148 am_depcomp="$ac_aux_dir/depcomp"
4151 if test "x$enable_dependency_tracking" != xno; then
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if test "${ac_cv_prog_CC+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4173 if test -n "$CC"; then
4174 ac_cv_prog_CC="$CC" # Let the user override the test.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 if test -n "$CC"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4196 $as_echo "$CC" >&6; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4204 if test -z "$ac_cv_prog_CC"; then
4206 # Extract the first word of "gcc", so it can be a program name with args.
4207 set dummy gcc; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4213 if test -n "$ac_ct_CC"; then
4214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_ac_ct_CC="gcc"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4234 if test -n "$ac_ct_CC"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4236 $as_echo "$ac_ct_CC" >&6; }
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4242 if test "x$ac_ct_CC" = x; then
4245 case $cross_compiling:$ac_tool_warned in
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249 ac_tool_warned=yes ;;
4257 if test -z "$CC"; then
4258 if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}cc; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if test "${ac_cv_prog_CC+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="${ac_tool_prefix}cc"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 if test -n "$CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 $as_echo "$CC" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4298 if test -z "$CC"; then
4299 # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if test "${ac_cv_prog_CC+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318 ac_prog_rejected=yes
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test $ac_prog_rejected = yes; then
4330 # We found a bogon in the path, so make sure we never use it.
4331 set dummy $ac_cv_prog_CC
4333 if test $# != 0; then
4334 # We chose a different compiler from the bogus one.
4335 # However, it has the same basename, so the bogon will be chosen
4336 # first if we set CC to just the basename; use the full file name.
4338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4344 if test -n "$CC"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4346 $as_echo "$CC" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4354 if test -z "$CC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 for ac_prog in cl.exe
4358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CC+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -n "$CC"; then
4366 ac_cv_prog_CC="$CC" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 if test -n "$CC"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4388 $as_echo "$CC" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4395 test -n "$CC" && break
4398 if test -z "$CC"; then
4400 for ac_prog in cl.exe
4402 # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4409 if test -n "$ac_ct_CC"; then
4410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_ac_ct_CC="$ac_prog"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4430 if test -n "$ac_ct_CC"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4432 $as_echo "$ac_ct_CC" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4439 test -n "$ac_ct_CC" && break
4442 if test "x$ac_ct_CC" = x; then
4445 case $cross_compiling:$ac_tool_warned in
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4458 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4460 as_fn_error "no acceptable C compiler found in \$PATH
4461 See \`config.log' for more details." "$LINENO" 5; }
4463 # Provide some information about the compiler.
4464 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4467 for ac_option in --version -v -V -qversion; do
4468 { { ac_try="$ac_compiler $ac_option >&5"
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 $as_echo "$ac_try_echo"; } >&5
4475 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4477 if test -s conftest.err; then
4479 ... rest of stderr output deleted ...
4480 10q' conftest.err >conftest.er1
4481 cat conftest.er1 >&5
4483 rm -f conftest.er1 conftest.err
4484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485 test $ac_status = 0; }
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4499 ac_clean_files_save=$ac_clean_files
4500 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4501 # Try to create an executable without -o first, disregard a.out.
4502 # It will help us diagnose broken compilers, and finding out an intuition
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4505 $as_echo_n "checking whether the C compiler works... " >&6; }
4506 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4508 # The possible output files:
4509 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4512 for ac_file in $ac_files
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4521 if { { ac_try="$ac_link_default"
4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527 $as_echo "$ac_try_echo"; } >&5
4528 (eval "$ac_link_default") 2>&5
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }; then :
4532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4535 # so that the user can short-circuit this test for compilers unknown to
4537 for ac_file in $ac_files ''
4539 test -f "$ac_file" || continue
4541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4544 # We found the default executable, but exeext='' is most
4548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4552 # We set ac_cv_exeext here because the later test for it is not
4553 # safe: cross compilers may not add the suffix if given an `-o'
4554 # argument, so we may need to know it at that point already.
4555 # Even if this section looks crufty: it has the advantage of
4562 test "$ac_cv_exeext" = no && ac_cv_exeext=
4567 if test -z "$ac_file"; then :
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 { as_fn_set_status 77
4576 as_fn_error "C compiler cannot create executables
4577 See \`config.log' for more details." "$LINENO" 5; }; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580 $as_echo "yes" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4583 $as_echo_n "checking for C compiler default output file name... " >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4585 $as_echo "$ac_file" >&6; }
4586 ac_exeext=$ac_cv_exeext
4588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4589 ac_clean_files=$ac_clean_files_save
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4591 $as_echo_n "checking for suffix of executables... " >&6; }
4592 if { { ac_try="$ac_link"
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598 $as_echo "$ac_try_echo"; } >&5
4599 (eval "$ac_link") 2>&5
4601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4602 test $ac_status = 0; }; then :
4603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4605 # work properly (i.e., refer to `conftest.exe'), while it won't with
4607 for ac_file in conftest.exe conftest conftest.*; do
4608 test -f "$ac_file" || continue
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 as_fn_error "cannot compute suffix of executables: cannot compile and link
4620 See \`config.log' for more details." "$LINENO" 5; }
4622 rm -f conftest conftest$ac_cv_exeext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4624 $as_echo "$ac_cv_exeext" >&6; }
4626 rm -f conftest.$ac_ext
4627 EXEEXT=$ac_cv_exeext
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4635 FILE *f = fopen ("conftest.out", "w");
4636 return ferror (f) || fclose (f) != 0;
4642 ac_clean_files="$ac_clean_files conftest.out"
4643 # Check that the compiler produces executables we can run. If not, either
4644 # the compiler is broken, or we cross compile.
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4646 $as_echo_n "checking whether we are cross compiling... " >&6; }
4647 if test "$cross_compiling" != yes; then
4648 { { ac_try="$ac_link"
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654 $as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_link") 2>&5
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 if { ac_try='./conftest$ac_cv_exeext'
4660 { { case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_try") 2>&5
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }; }; then
4672 if test "$cross_compiling" = maybe; then
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error "cannot run C compiled programs.
4678 If you meant to cross compile, use \`--host'.
4679 See \`config.log' for more details." "$LINENO" 5; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4684 $as_echo "$cross_compiling" >&6; }
4686 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4687 ac_clean_files=$ac_clean_files_save
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4689 $as_echo_n "checking for suffix of object files... " >&6; }
4690 if test "${ac_cv_objext+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4704 rm -f conftest.o conftest.obj
4705 if { { ac_try="$ac_compile"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compile") 2>&5
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; then :
4716 for ac_file in conftest.o conftest.obj conftest.*; do
4717 test -f "$ac_file" || continue;
4719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730 as_fn_error "cannot compute suffix of object files: cannot compile
4731 See \`config.log' for more details." "$LINENO" 5; }
4733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4736 $as_echo "$ac_cv_objext" >&6; }
4737 OBJEXT=$ac_cv_objext
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4741 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4758 if ac_fn_c_try_compile "$LINENO"; then :
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4769 if test $ac_compiler_gnu = yes; then
4774 ac_test_CFLAGS=${CFLAGS+set}
4775 ac_save_CFLAGS=$CFLAGS
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4778 if test "${ac_cv_prog_cc_g+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 ac_save_c_werror_flag=$ac_c_werror_flag
4782 ac_c_werror_flag=yes
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4796 if ac_fn_c_try_compile "$LINENO"; then :
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4811 if ac_fn_c_try_compile "$LINENO"; then :
4814 ac_c_werror_flag=$ac_save_c_werror_flag
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4827 if ac_fn_c_try_compile "$LINENO"; then :
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4838 $as_echo "$ac_cv_prog_cc_g" >&6; }
4839 if test "$ac_test_CFLAGS" = set; then
4840 CFLAGS=$ac_save_CFLAGS
4841 elif test $ac_cv_prog_cc_g = yes; then
4842 if test "$GCC" = yes; then
4848 if test "$GCC" = yes; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4856 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4859 ac_cv_prog_cc_c89=no
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4865 #include <sys/types.h>
4866 #include <sys/stat.h>
4867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4868 struct buf { int x; };
4869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4870 static char *e (p, i)
4876 static char *f (char * (*g) (char **, int), char **p, ...)
4881 s = g (p, va_arg (v,int));
4886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4887 function prototypes and stuff, but not '\xHH' hex character constants.
4888 These don't provoke an error unfortunately, instead are silently treated
4889 as 'x'. The following induces an error, until -std is added to get
4890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4891 array size at least. It's necessary to write '\x00'==0 to get something
4892 that's true only with -std. */
4893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4896 inside strings and character constants. */
4898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4900 int test (int i, double x);
4901 struct s1 {int (*f) (int a);};
4902 struct s2 {int (*f) (double a);};
4903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4917 CC="$ac_save_CC $ac_arg"
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919 ac_cv_prog_cc_c89=$ac_arg
4921 rm -f core conftest.err conftest.$ac_objext
4922 test "x$ac_cv_prog_cc_c89" != "xno" && break
4924 rm -f conftest.$ac_ext
4929 case "x$ac_cv_prog_cc_c89" in
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4932 $as_echo "none needed" >&6; } ;;
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4935 $as_echo "unsupported" >&6; } ;;
4937 CC="$CC $ac_cv_prog_cc_c89"
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4941 if test "x$ac_cv_prog_cc_c89" != xno; then :
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4951 depcc="$CC" am_compiler_list=
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4954 $as_echo_n "checking dependency style of $depcc... " >&6; }
4955 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4959 # We make a subdir and do the tests there. Otherwise we can end up
4960 # making bogus files that we don't know about and never remove. For
4961 # instance it was reported that on HP-UX the gcc test will end up
4962 # making a dummy file named `D' -- because `-MD' means `put the output
4965 # Copy depcomp to subdir because otherwise we won't find it if we're
4966 # using a relative directory.
4967 cp "$am_depcomp" conftest.dir
4969 # We will build objects and dependencies in a subdirectory because
4970 # it helps to detect inapplicable dependency modes. For instance
4971 # both Tru64's cc and ICC support -MD to output dependencies as a
4972 # side effect of compilation, but ICC will put the dependencies in
4973 # the current directory while Tru64 will put them in the object
4977 am_cv_CC_dependencies_compiler_type=none
4978 if test "$am_compiler_list" = ""; then
4979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4982 case " $depcc " in #(
4983 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4986 for depmode in $am_compiler_list; do
4987 # Setup a source with many dependencies, because some compilers
4988 # like to wrap large dependency lists on column 80 (with \), and
4989 # we should not choose a depcomp mode which is confused by this.
4991 # We need to recreate these files for each test, as the compiler may
4992 # overwrite some of them when testing with obscure command lines.
4993 # This happens at least with the AIX C compiler.
4995 for i in 1 2 3 4 5 6; do
4996 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4998 # Solaris 8's {/usr,}/bin/sh.
4999 touch sub/conftst$i.h
5001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5003 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5004 # mode. It turns out that the SunPro C++ compiler does not properly
5005 # handle `-M -o', and we need to detect this. Also, some Intel
5006 # versions had trouble with output in subdirs
5007 am__obj=sub/conftest.${OBJEXT-o}
5008 am__minus_obj="-o $am__obj"
5011 # This depmode causes a compiler race in universal mode.
5012 test "$am__universal" = false || continue
5015 # after this tag, mechanisms are not by side-effect, so they'll
5016 # only be used when explicitly requested
5017 if test "x$enable_dependency_tracking" = xyes; then
5023 msvisualcpp | msvcmsys)
5024 # This compiler won't grok `-c -o', but also, the minuso test has
5025 # not run yet. These depmodes are late enough in the game, and
5026 # so weak that their functioning should not be impacted.
5027 am__obj=conftest.${OBJEXT-o}
5032 if depmode=$depmode \
5033 source=sub/conftest.c object=$am__obj \
5034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5035 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5036 >/dev/null 2>conftest.err &&
5037 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5039 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5041 # icc doesn't choke on unknown options, it will just issue warnings
5042 # or remarks (even with -Werror). So we grep stderr for any message
5043 # that says an option was ignored or not supported.
5044 # When given -MP, icc 7.0 and 7.1 complain thusly:
5045 # icc: Command line warning: ignoring option '-M'; no argument required
5046 # The diagnosis changed in icc 8.0:
5047 # icc: Command line remark: option '-MP' not supported
5048 if (grep 'ignoring option' conftest.err ||
5049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5050 am_cv_CC_dependencies_compiler_type=$depmode
5059 am_cv_CC_dependencies_compiler_type=none
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5064 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5068 test "x$enable_dependency_tracking" != xno \
5069 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5071 am__fastdepCC_FALSE='#'
5073 am__fastdepCC_TRUE='#'
5074 am__fastdepCC_FALSE=
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5085 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5086 # On Suns, sometimes $CPP names a directory.
5087 if test -n "$CPP" && test -d "$CPP"; then
5090 if test -z "$CPP"; then
5091 if test "${ac_cv_prog_CPP+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5094 # Double quotes because CPP needs to be expanded
5095 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5098 for ac_c_preproc_warn_flag in '' yes
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5109 # include <limits.h>
5111 # include <assert.h>
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5118 # Broken: fails on valid input.
5121 rm -f conftest.err conftest.$ac_ext
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5129 if ac_fn_c_try_cpp "$LINENO"; then :
5130 # Broken: success on invalid input.
5133 # Passes both tests.
5137 rm -f conftest.err conftest.$ac_ext
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then :
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5155 $as_echo "$CPP" >&6; }
5157 for ac_c_preproc_warn_flag in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5168 # include <limits.h>
5170 # include <assert.h>
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5177 # Broken: fails on valid input.
5180 rm -f conftest.err conftest.$ac_ext
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5188 if ac_fn_c_try_cpp "$LINENO"; then :
5189 # Broken: success on invalid input.
5192 # Passes both tests.
5196 rm -f conftest.err conftest.$ac_ext
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then :
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5207 See \`config.log' for more details." "$LINENO" 5; }
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219 if test "${ac_cv_path_GREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in grep ggrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5241 $as_echo_n 0123456789 >"conftest.in"
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'GREP' >> "conftest.nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP="$ac_path_GREP"
5254 ac_path_GREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 $ac_path_GREP_found && break 3
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271 ac_cv_path_GREP=$GREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281 $as_echo_n "checking for egrep... " >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5307 $as_echo_n 0123456789 >"conftest.in"
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 $as_echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316 as_fn_arith $ac_count + 1 && ac_count=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328 $ac_path_EGREP_found && break 3
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337 ac_cv_path_EGREP=$EGREP
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP="$ac_cv_path_EGREP"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348 $as_echo_n "checking for ANSI C header files... " >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_header_stdc=yes
5370 ac_cv_header_stdc=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 if test $ac_cv_header_stdc = yes; then
5375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "memchr" >/dev/null 2>&1; then :
5385 ac_cv_header_stdc=no
5391 if test $ac_cv_header_stdc = yes; then
5392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "free" >/dev/null 2>&1; then :
5402 ac_cv_header_stdc=no
5408 if test $ac_cv_header_stdc = yes; then
5409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410 if test "$cross_compiling" = yes; then :
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5440 if ac_fn_c_try_run "$LINENO"; then :
5443 ac_cv_header_stdc=no
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5446 conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452 $as_echo "$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5466 eval as_val=\$$as_ac_Header
5467 if test "x$as_val" = x""yes; then :
5468 cat >>confdefs.h <<_ACEOF
5469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5479 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5486 if test "$MINIX" = yes; then
5488 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5491 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5494 $as_echo "#define _MINIX 1" >>confdefs.h
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5500 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5501 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5507 # define __EXTENSIONS__ 1
5508 $ac_includes_default
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_safe_to_define___extensions__=yes
5520 ac_cv_safe_to_define___extensions__=no
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5525 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5526 test $ac_cv_safe_to_define___extensions__ = yes &&
5527 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5529 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5531 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5533 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5535 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5539 # Check for programs
5541 ac_cpp='$CPP $CPPFLAGS'
5542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545 if test -n "$ac_tool_prefix"; then
5546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_CC+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5553 if test -n "$CC"; then
5554 ac_cv_prog_CC="$CC" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 if test -n "$CC"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5576 $as_echo "$CC" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5584 if test -z "$ac_cv_prog_CC"; then
5586 # Extract the first word of "gcc", so it can be a program name with args.
5587 set dummy gcc; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5593 if test -n "$ac_ct_CC"; then
5594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_ac_ct_CC="gcc"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5614 if test -n "$ac_ct_CC"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5616 $as_echo "$ac_ct_CC" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5622 if test "x$ac_ct_CC" = x; then
5625 case $cross_compiling:$ac_tool_warned in
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629 ac_tool_warned=yes ;;
5637 if test -z "$CC"; then
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}cc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if test "${ac_cv_prog_CC+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$CC"; then
5647 ac_cv_prog_CC="$CC" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_CC="${ac_tool_prefix}cc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 if test -n "$CC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5669 $as_echo "$CC" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5678 if test -z "$CC"; then
5679 # Extract the first word of "cc", so it can be a program name with args.
5680 set dummy cc; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_CC+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$CC"; then
5687 ac_cv_prog_CC="$CC" # Let the user override the test.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5698 ac_prog_rejected=yes
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 if test $ac_prog_rejected = yes; then
5710 # We found a bogon in the path, so make sure we never use it.
5711 set dummy $ac_cv_prog_CC
5713 if test $# != 0; then
5714 # We chose a different compiler from the bogus one.
5715 # However, it has the same basename, so the bogon will be chosen
5716 # first if we set CC to just the basename; use the full file name.
5718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5724 if test -n "$CC"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5726 $as_echo "$CC" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5734 if test -z "$CC"; then
5735 if test -n "$ac_tool_prefix"; then
5736 for ac_prog in cl.exe
5738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if test "${ac_cv_prog_CC+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 if test -n "$CC"; then
5746 ac_cv_prog_CC="$CC" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 if test -n "$CC"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5768 $as_echo "$CC" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5775 test -n "$CC" && break
5778 if test -z "$CC"; then
5780 for ac_prog in cl.exe
5782 # Extract the first word of "$ac_prog", so it can be a program name with args.
5783 set dummy $ac_prog; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5789 if test -n "$ac_ct_CC"; then
5790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_prog_ac_ct_CC="$ac_prog"
5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5810 if test -n "$ac_ct_CC"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5812 $as_echo "$ac_ct_CC" >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5819 test -n "$ac_ct_CC" && break
5822 if test "x$ac_ct_CC" = x; then
5825 case $cross_compiling:$ac_tool_warned in
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5829 ac_tool_warned=yes ;;
5838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5840 as_fn_error "no acceptable C compiler found in \$PATH
5841 See \`config.log' for more details." "$LINENO" 5; }
5843 # Provide some information about the compiler.
5844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5847 for ac_option in --version -v -V -qversion; do
5848 { { ac_try="$ac_compiler $ac_option >&5"
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854 $as_echo "$ac_try_echo"; } >&5
5855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5857 if test -s conftest.err; then
5859 ... rest of stderr output deleted ...
5860 10q' conftest.err >conftest.er1
5861 cat conftest.er1 >&5
5863 rm -f conftest.er1 conftest.err
5864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865 test $ac_status = 0; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5870 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5887 if ac_fn_c_try_compile "$LINENO"; then :
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5898 if test $ac_compiler_gnu = yes; then
5903 ac_test_CFLAGS=${CFLAGS+set}
5904 ac_save_CFLAGS=$CFLAGS
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5907 if test "${ac_cv_prog_cc_g+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5910 ac_save_c_werror_flag=$ac_c_werror_flag
5911 ac_c_werror_flag=yes
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5925 if ac_fn_c_try_compile "$LINENO"; then :
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5940 if ac_fn_c_try_compile "$LINENO"; then :
5943 ac_c_werror_flag=$ac_save_c_werror_flag
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5956 if ac_fn_c_try_compile "$LINENO"; then :
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 ac_c_werror_flag=$ac_save_c_werror_flag
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5967 $as_echo "$ac_cv_prog_cc_g" >&6; }
5968 if test "$ac_test_CFLAGS" = set; then
5969 CFLAGS=$ac_save_CFLAGS
5970 elif test $ac_cv_prog_cc_g = yes; then
5971 if test "$GCC" = yes; then
5977 if test "$GCC" = yes; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5985 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 ac_cv_prog_cc_c89=no
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5994 #include <sys/types.h>
5995 #include <sys/stat.h>
5996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5997 struct buf { int x; };
5998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5999 static char *e (p, i)
6005 static char *f (char * (*g) (char **, int), char **p, ...)
6010 s = g (p, va_arg (v,int));
6015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6016 function prototypes and stuff, but not '\xHH' hex character constants.
6017 These don't provoke an error unfortunately, instead are silently treated
6018 as 'x'. The following induces an error, until -std is added to get
6019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6020 array size at least. It's necessary to write '\x00'==0 to get something
6021 that's true only with -std. */
6022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6024 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6025 inside strings and character constants. */
6027 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6029 int test (int i, double x);
6030 struct s1 {int (*f) (int a);};
6031 struct s2 {int (*f) (double a);};
6032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6038 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6044 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6046 CC="$ac_save_CC $ac_arg"
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 ac_cv_prog_cc_c89=$ac_arg
6050 rm -f core conftest.err conftest.$ac_objext
6051 test "x$ac_cv_prog_cc_c89" != "xno" && break
6053 rm -f conftest.$ac_ext
6058 case "x$ac_cv_prog_cc_c89" in
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6061 $as_echo "none needed" >&6; } ;;
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6064 $as_echo "unsupported" >&6; } ;;
6066 CC="$CC $ac_cv_prog_cc_c89"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6068 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6070 if test "x$ac_cv_prog_cc_c89" != xno; then :
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6080 depcc="$CC" am_compiler_list=
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6083 $as_echo_n "checking dependency style of $depcc... " >&6; }
6084 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
6087 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6088 # We make a subdir and do the tests there. Otherwise we can end up
6089 # making bogus files that we don't know about and never remove. For
6090 # instance it was reported that on HP-UX the gcc test will end up
6091 # making a dummy file named `D' -- because `-MD' means `put the output
6094 # Copy depcomp to subdir because otherwise we won't find it if we're
6095 # using a relative directory.
6096 cp "$am_depcomp" conftest.dir
6098 # We will build objects and dependencies in a subdirectory because
6099 # it helps to detect inapplicable dependency modes. For instance
6100 # both Tru64's cc and ICC support -MD to output dependencies as a
6101 # side effect of compilation, but ICC will put the dependencies in
6102 # the current directory while Tru64 will put them in the object
6106 am_cv_CC_dependencies_compiler_type=none
6107 if test "$am_compiler_list" = ""; then
6108 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6111 case " $depcc " in #(
6112 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6115 for depmode in $am_compiler_list; do
6116 # Setup a source with many dependencies, because some compilers
6117 # like to wrap large dependency lists on column 80 (with \), and
6118 # we should not choose a depcomp mode which is confused by this.
6120 # We need to recreate these files for each test, as the compiler may
6121 # overwrite some of them when testing with obscure command lines.
6122 # This happens at least with the AIX C compiler.
6124 for i in 1 2 3 4 5 6; do
6125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6126 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6127 # Solaris 8's {/usr,}/bin/sh.
6128 touch sub/conftst$i.h
6130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6132 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6133 # mode. It turns out that the SunPro C++ compiler does not properly
6134 # handle `-M -o', and we need to detect this. Also, some Intel
6135 # versions had trouble with output in subdirs
6136 am__obj=sub/conftest.${OBJEXT-o}
6137 am__minus_obj="-o $am__obj"
6140 # This depmode causes a compiler race in universal mode.
6141 test "$am__universal" = false || continue
6144 # after this tag, mechanisms are not by side-effect, so they'll
6145 # only be used when explicitly requested
6146 if test "x$enable_dependency_tracking" = xyes; then
6152 msvisualcpp | msvcmsys)
6153 # This compiler won't grok `-c -o', but also, the minuso test has
6154 # not run yet. These depmodes are late enough in the game, and
6155 # so weak that their functioning should not be impacted.
6156 am__obj=conftest.${OBJEXT-o}
6161 if depmode=$depmode \
6162 source=sub/conftest.c object=$am__obj \
6163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6164 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6165 >/dev/null 2>conftest.err &&
6166 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6168 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6170 # icc doesn't choke on unknown options, it will just issue warnings
6171 # or remarks (even with -Werror). So we grep stderr for any message
6172 # that says an option was ignored or not supported.
6173 # When given -MP, icc 7.0 and 7.1 complain thusly:
6174 # icc: Command line warning: ignoring option '-M'; no argument required
6175 # The diagnosis changed in icc 8.0:
6176 # icc: Command line remark: option '-MP' not supported
6177 if (grep 'ignoring option' conftest.err ||
6178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6179 am_cv_CC_dependencies_compiler_type=$depmode
6188 am_cv_CC_dependencies_compiler_type=none
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6193 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6197 test "x$enable_dependency_tracking" != xno \
6198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6200 am__fastdepCC_FALSE='#'
6202 am__fastdepCC_TRUE='#'
6203 am__fastdepCC_FALSE=
6208 ac_cpp='$CXXCPP $CPPFLAGS'
6209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6212 if test -z "$CXX"; then
6213 if test -n "$CCC"; then
6216 if test -n "$ac_tool_prefix"; then
6217 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if test "${ac_cv_prog_CXX+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6226 if test -n "$CXX"; then
6227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 if test -n "$CXX"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6249 $as_echo "$CXX" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6256 test -n "$CXX" && break
6259 if test -z "$CXX"; then
6261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6263 # Extract the first word of "$ac_prog", so it can be a program name with args.
6264 set dummy $ac_prog; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6268 $as_echo_n "(cached) " >&6
6270 if test -n "$ac_ct_CXX"; then
6271 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_ac_ct_CXX="$ac_prog"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6291 if test -n "$ac_ct_CXX"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6293 $as_echo "$ac_ct_CXX" >&6; }
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6300 test -n "$ac_ct_CXX" && break
6303 if test "x$ac_ct_CXX" = x; then
6306 case $cross_compiling:$ac_tool_warned in
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6318 # Provide some information about the compiler.
6319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6322 for ac_option in --version -v -V -qversion; do
6323 { { ac_try="$ac_compiler $ac_option >&5"
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6329 $as_echo "$ac_try_echo"; } >&5
6330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6332 if test -s conftest.err; then
6334 ... rest of stderr output deleted ...
6335 10q' conftest.err >conftest.er1
6336 cat conftest.er1 >&5
6338 rm -f conftest.er1 conftest.err
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6344 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6345 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6362 if ac_fn_cxx_try_compile "$LINENO"; then :
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6372 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6373 if test $ac_compiler_gnu = yes; then
6378 ac_test_CXXFLAGS=${CXXFLAGS+set}
6379 ac_save_CXXFLAGS=$CXXFLAGS
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6381 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6382 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6385 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6386 ac_cxx_werror_flag=yes
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6400 if ac_fn_cxx_try_compile "$LINENO"; then :
6401 ac_cv_prog_cxx_g=yes
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6415 if ac_fn_cxx_try_compile "$LINENO"; then :
6418 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6431 if ac_fn_cxx_try_compile "$LINENO"; then :
6432 ac_cv_prog_cxx_g=yes
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6442 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6443 if test "$ac_test_CXXFLAGS" = set; then
6444 CXXFLAGS=$ac_save_CXXFLAGS
6445 elif test $ac_cv_prog_cxx_g = yes; then
6446 if test "$GXX" = yes; then
6452 if test "$GXX" = yes; then
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464 depcc="$CXX" am_compiler_list=
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6467 $as_echo_n "checking dependency style of $depcc... " >&6; }
6468 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6472 # We make a subdir and do the tests there. Otherwise we can end up
6473 # making bogus files that we don't know about and never remove. For
6474 # instance it was reported that on HP-UX the gcc test will end up
6475 # making a dummy file named `D' -- because `-MD' means `put the output
6478 # Copy depcomp to subdir because otherwise we won't find it if we're
6479 # using a relative directory.
6480 cp "$am_depcomp" conftest.dir
6482 # We will build objects and dependencies in a subdirectory because
6483 # it helps to detect inapplicable dependency modes. For instance
6484 # both Tru64's cc and ICC support -MD to output dependencies as a
6485 # side effect of compilation, but ICC will put the dependencies in
6486 # the current directory while Tru64 will put them in the object
6490 am_cv_CXX_dependencies_compiler_type=none
6491 if test "$am_compiler_list" = ""; then
6492 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6495 case " $depcc " in #(
6496 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6499 for depmode in $am_compiler_list; do
6500 # Setup a source with many dependencies, because some compilers
6501 # like to wrap large dependency lists on column 80 (with \), and
6502 # we should not choose a depcomp mode which is confused by this.
6504 # We need to recreate these files for each test, as the compiler may
6505 # overwrite some of them when testing with obscure command lines.
6506 # This happens at least with the AIX C compiler.
6508 for i in 1 2 3 4 5 6; do
6509 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6510 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6511 # Solaris 8's {/usr,}/bin/sh.
6512 touch sub/conftst$i.h
6514 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6516 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6517 # mode. It turns out that the SunPro C++ compiler does not properly
6518 # handle `-M -o', and we need to detect this. Also, some Intel
6519 # versions had trouble with output in subdirs
6520 am__obj=sub/conftest.${OBJEXT-o}
6521 am__minus_obj="-o $am__obj"
6524 # This depmode causes a compiler race in universal mode.
6525 test "$am__universal" = false || continue
6528 # after this tag, mechanisms are not by side-effect, so they'll
6529 # only be used when explicitly requested
6530 if test "x$enable_dependency_tracking" = xyes; then
6536 msvisualcpp | msvcmsys)
6537 # This compiler won't grok `-c -o', but also, the minuso test has
6538 # not run yet. These depmodes are late enough in the game, and
6539 # so weak that their functioning should not be impacted.
6540 am__obj=conftest.${OBJEXT-o}
6545 if depmode=$depmode \
6546 source=sub/conftest.c object=$am__obj \
6547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6548 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6549 >/dev/null 2>conftest.err &&
6550 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6552 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6554 # icc doesn't choke on unknown options, it will just issue warnings
6555 # or remarks (even with -Werror). So we grep stderr for any message
6556 # that says an option was ignored or not supported.
6557 # When given -MP, icc 7.0 and 7.1 complain thusly:
6558 # icc: Command line warning: ignoring option '-M'; no argument required
6559 # The diagnosis changed in icc 8.0:
6560 # icc: Command line remark: option '-MP' not supported
6561 if (grep 'ignoring option' conftest.err ||
6562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6563 am_cv_CXX_dependencies_compiler_type=$depmode
6572 am_cv_CXX_dependencies_compiler_type=none
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6577 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6578 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6581 test "x$enable_dependency_tracking" != xno \
6582 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6583 am__fastdepCXX_TRUE=
6584 am__fastdepCXX_FALSE='#'
6586 am__fastdepCXX_TRUE='#'
6587 am__fastdepCXX_FALSE=
6591 case $ac_cv_prog_cc_stdc in #(
6593 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6596 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6597 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6600 ac_cv_prog_cc_c99=no
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6605 #include <stdbool.h>
6610 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6611 #define debug(...) fprintf (stderr, __VA_ARGS__)
6612 #define showlist(...) puts (#__VA_ARGS__)
6613 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6615 test_varargs_macros (void)
6620 debug ("X = %d\n", x);
6621 showlist (The first, second, and third items.);
6622 report (x>y, "x is %d but y is %d", x, y);
6625 // Check long long types.
6626 #define BIG64 18446744073709551615ull
6627 #define BIG32 4294967295ul
6628 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6630 your preprocessor is broken;
6634 your preprocessor is broken;
6636 static long long int bignum = -9223372036854775807LL;
6637 static unsigned long long int ubignum = BIG64;
6639 struct incomplete_array
6647 const wchar_t *name;
6651 typedef const char *ccp;
6654 test_restrict (ccp restrict text)
6656 // See if C++-style comments work.
6657 // Iterate through items via the restricted pointer.
6658 // Also check for declarations in for loops.
6659 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6664 // Check varargs and va_copy.
6666 test_varargs (const char *format, ...)
6669 va_start (args, format);
6671 va_copy (args_copy, args);
6682 str = va_arg (args_copy, const char *);
6685 number = va_arg (args_copy, int);
6688 fnumber = va_arg (args_copy, double);
6703 _Bool success = false;
6706 if (test_restrict ("String literal") == 0)
6708 char *restrict newvar = "Another string";
6711 test_varargs ("s, d' f .", "string", 65, 34.234);
6712 test_varargs_macros ();
6714 // Check flexible array members.
6715 struct incomplete_array *ia =
6716 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6718 for (int i = 0; i < ia->datasize; ++i)
6719 ia->data[i] = i * 1.234;
6721 // Check named initializers.
6722 struct named_init ni = {
6724 .name = L"Test wide string",
6725 .average = 543.34343,
6730 int dynamic_array[ni.number];
6731 dynamic_array[ni.number - 1] = 543;
6733 // work around unused variable warnings
6734 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6735 || dynamic_array[ni.number - 1] != 543);
6741 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6743 CC="$ac_save_CC $ac_arg"
6744 if ac_fn_c_try_compile "$LINENO"; then :
6745 ac_cv_prog_cc_c99=$ac_arg
6747 rm -f core conftest.err conftest.$ac_objext
6748 test "x$ac_cv_prog_cc_c99" != "xno" && break
6750 rm -f conftest.$ac_ext
6755 case "x$ac_cv_prog_cc_c99" in
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6758 $as_echo "none needed" >&6; } ;;
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6761 $as_echo "unsupported" >&6; } ;;
6763 CC="$CC $ac_cv_prog_cc_c99"
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6765 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6767 if test "x$ac_cv_prog_cc_c99" != xno; then :
6768 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6771 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6772 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6775 ac_cv_prog_cc_c89=no
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6781 #include <sys/types.h>
6782 #include <sys/stat.h>
6783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6784 struct buf { int x; };
6785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6786 static char *e (p, i)
6792 static char *f (char * (*g) (char **, int), char **p, ...)
6797 s = g (p, va_arg (v,int));
6802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6803 function prototypes and stuff, but not '\xHH' hex character constants.
6804 These don't provoke an error unfortunately, instead are silently treated
6805 as 'x'. The following induces an error, until -std is added to get
6806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6807 array size at least. It's necessary to write '\x00'==0 to get something
6808 that's true only with -std. */
6809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6812 inside strings and character constants. */
6814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6816 int test (int i, double x);
6817 struct s1 {int (*f) (int a);};
6818 struct s2 {int (*f) (double a);};
6819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6825 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6831 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6833 CC="$ac_save_CC $ac_arg"
6834 if ac_fn_c_try_compile "$LINENO"; then :
6835 ac_cv_prog_cc_c89=$ac_arg
6837 rm -f core conftest.err conftest.$ac_objext
6838 test "x$ac_cv_prog_cc_c89" != "xno" && break
6840 rm -f conftest.$ac_ext
6845 case "x$ac_cv_prog_cc_c89" in
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6848 $as_echo "none needed" >&6; } ;;
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6851 $as_echo "unsupported" >&6; } ;;
6853 CC="$CC $ac_cv_prog_cc_c89"
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6857 if test "x$ac_cv_prog_cc_c89" != xno; then :
6858 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6860 ac_cv_prog_cc_stdc=no
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6867 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6868 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6872 case $ac_cv_prog_cc_stdc in #(
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6875 $as_echo "unsupported" >&6; } ;; #(
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6878 $as_echo "none needed" >&6; } ;; #(
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6881 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6890 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6891 # On Suns, sometimes $CPP names a directory.
6892 if test -n "$CPP" && test -d "$CPP"; then
6895 if test -z "$CPP"; then
6896 if test "${ac_cv_prog_CPP+set}" = set; then :
6897 $as_echo_n "(cached) " >&6
6899 # Double quotes because CPP needs to be expanded
6900 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6903 for ac_c_preproc_warn_flag in '' yes
6905 # Use a header file that comes with gcc, so configuring glibc
6906 # with a fresh cross-compiler works.
6907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908 # <limits.h> exists even on freestanding compilers.
6909 # On the NeXT, cc -E runs the code through the compiler's parser,
6910 # not just through cpp. "Syntax error" is here to catch this case.
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6914 # include <limits.h>
6916 # include <assert.h>
6920 if ac_fn_c_try_cpp "$LINENO"; then :
6923 # Broken: fails on valid input.
6926 rm -f conftest.err conftest.$ac_ext
6928 # OK, works on sane cases. Now check whether nonexistent headers
6929 # can be detected and how.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 #include <ac_nonexistent.h>
6934 if ac_fn_c_try_cpp "$LINENO"; then :
6935 # Broken: success on invalid input.
6938 # Passes both tests.
6942 rm -f conftest.err conftest.$ac_ext
6945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6946 rm -f conftest.err conftest.$ac_ext
6947 if $ac_preproc_ok; then :
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6960 $as_echo "$CPP" >&6; }
6962 for ac_c_preproc_warn_flag in '' yes
6964 # Use a header file that comes with gcc, so configuring glibc
6965 # with a fresh cross-compiler works.
6966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967 # <limits.h> exists even on freestanding compilers.
6968 # On the NeXT, cc -E runs the code through the compiler's parser,
6969 # not just through cpp. "Syntax error" is here to catch this case.
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6973 # include <limits.h>
6975 # include <assert.h>
6979 if ac_fn_c_try_cpp "$LINENO"; then :
6982 # Broken: fails on valid input.
6985 rm -f conftest.err conftest.$ac_ext
6987 # OK, works on sane cases. Now check whether nonexistent headers
6988 # can be detected and how.
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #include <ac_nonexistent.h>
6993 if ac_fn_c_try_cpp "$LINENO"; then :
6994 # Broken: success on invalid input.
6997 # Passes both tests.
7001 rm -f conftest.err conftest.$ac_ext
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then :
7009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7011 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7012 See \`config.log' for more details." "$LINENO" 5; }
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7022 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7023 if test "${ac_cv_path_SED+set}" = set; then :
7024 $as_echo_n "(cached) " >&6
7026 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7027 for ac_i in 1 2 3 4 5 6 7; do
7028 ac_script="$ac_script$as_nl$ac_script"
7030 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7031 { ac_script=; unset ac_script;}
7032 if test -z "$SED"; then
7033 ac_path_SED_found=false
7034 # Loop through the user's path and test for each of PROGNAME-LIST
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_prog in sed gsed; do
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7043 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7044 # Check for GNU ac_path_SED and select it if it is found.
7045 # Check for GNU $ac_path_SED
7046 case `"$ac_path_SED" --version 2>&1` in
7048 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7051 $as_echo_n 0123456789 >"conftest.in"
7054 cat "conftest.in" "conftest.in" >"conftest.tmp"
7055 mv "conftest.tmp" "conftest.in"
7056 cp "conftest.in" "conftest.nl"
7057 $as_echo '' >> "conftest.nl"
7058 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7060 as_fn_arith $ac_count + 1 && ac_count=$as_val
7061 if test $ac_count -gt ${ac_path_SED_max-0}; then
7062 # Best one so far, save it but keep looking for a better one
7063 ac_cv_path_SED="$ac_path_SED"
7064 ac_path_SED_max=$ac_count
7066 # 10*(2^10) chars as input seems more than enough
7067 test $ac_count -gt 10 && break
7069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7072 $ac_path_SED_found && break 3
7077 if test -z "$ac_cv_path_SED"; then
7078 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7086 $as_echo "$ac_cv_path_SED" >&6; }
7087 SED="$ac_cv_path_SED"
7090 test -z "$SED" && SED=sed
7091 Xsed="$SED -e 1s/^X//"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7104 $as_echo_n "checking for fgrep... " >&6; }
7105 if test "${ac_cv_path_FGREP+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7108 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7109 then ac_cv_path_FGREP="$GREP -F"
7111 if test -z "$FGREP"; then
7112 ac_path_FGREP_found=false
7113 # Loop through the user's path and test for each of PROGNAME-LIST
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7118 test -z "$as_dir" && as_dir=.
7119 for ac_prog in fgrep; do
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7122 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7123 # Check for GNU ac_path_FGREP and select it if it is found.
7124 # Check for GNU $ac_path_FGREP
7125 case `"$ac_path_FGREP" --version 2>&1` in
7127 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7130 $as_echo_n 0123456789 >"conftest.in"
7133 cat "conftest.in" "conftest.in" >"conftest.tmp"
7134 mv "conftest.tmp" "conftest.in"
7135 cp "conftest.in" "conftest.nl"
7136 $as_echo 'FGREP' >> "conftest.nl"
7137 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7139 as_fn_arith $ac_count + 1 && ac_count=$as_val
7140 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7141 # Best one so far, save it but keep looking for a better one
7142 ac_cv_path_FGREP="$ac_path_FGREP"
7143 ac_path_FGREP_max=$ac_count
7145 # 10*(2^10) chars as input seems more than enough
7146 test $ac_count -gt 10 && break
7148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7151 $ac_path_FGREP_found && break 3
7156 if test -z "$ac_cv_path_FGREP"; then
7157 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7160 ac_cv_path_FGREP=$FGREP
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7166 $as_echo "$ac_cv_path_FGREP" >&6; }
7167 FGREP="$ac_cv_path_FGREP"
7170 test -z "$GREP" && GREP=grep
7190 # Check whether --with-gnu-ld was given.
7191 if test "${with_gnu_ld+set}" = set; then :
7192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7198 if test "$GCC" = yes; then
7199 # Check if gcc -print-prog-name=ld gives a path.
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7201 $as_echo_n "checking for ld used by $CC... " >&6; }
7204 # gcc leaves a trailing carriage return which upsets mingw
7205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7210 # Accept absolute paths.
7212 re_direlt='/[^/][^/]*/\.\./'
7213 # Canonicalize the pathname of ld
7214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7218 test -z "$LD" && LD="$ac_prog"
7221 # If it fails, then pretend we aren't using GCC.
7225 # If it is relative, then search for the first ld in PATH.
7229 elif test "$with_gnu_ld" = yes; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7231 $as_echo_n "checking for GNU ld... " >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7234 $as_echo_n "checking for non-GNU ld... " >&6; }
7236 if test "${lt_cv_path_LD+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7239 if test -z "$LD"; then
7240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7241 for ac_dir in $PATH; do
7243 test -z "$ac_dir" && ac_dir=.
7244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7245 lt_cv_path_LD="$ac_dir/$ac_prog"
7246 # Check to see if the program is GNU ld. I'd rather use --version,
7247 # but apparently some variants of GNU ld only accept -v.
7248 # Break only if it was the GNU/non-GNU ld that we prefer.
7249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7250 *GNU* | *'with BFD'*)
7251 test "$with_gnu_ld" != no && break
7254 test "$with_gnu_ld" != yes && break
7261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7266 if test -n "$LD"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7268 $as_echo "$LD" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7273 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7276 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7279 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7280 case `$LD -v 2>&1 </dev/null` in
7281 *GNU* | *'with BFD'*)
7282 lt_cv_prog_gnu_ld=yes
7285 lt_cv_prog_gnu_ld=no
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7290 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7291 with_gnu_ld=$lt_cv_prog_gnu_ld
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7303 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7304 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7307 ac_cv_prog_cc_c99=no
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7312 #include <stdbool.h>
7317 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7318 #define debug(...) fprintf (stderr, __VA_ARGS__)
7319 #define showlist(...) puts (#__VA_ARGS__)
7320 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7322 test_varargs_macros (void)
7327 debug ("X = %d\n", x);
7328 showlist (The first, second, and third items.);
7329 report (x>y, "x is %d but y is %d", x, y);
7332 // Check long long types.
7333 #define BIG64 18446744073709551615ull
7334 #define BIG32 4294967295ul
7335 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7337 your preprocessor is broken;
7341 your preprocessor is broken;
7343 static long long int bignum = -9223372036854775807LL;
7344 static unsigned long long int ubignum = BIG64;
7346 struct incomplete_array
7354 const wchar_t *name;
7358 typedef const char *ccp;
7361 test_restrict (ccp restrict text)
7363 // See if C++-style comments work.
7364 // Iterate through items via the restricted pointer.
7365 // Also check for declarations in for loops.
7366 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7371 // Check varargs and va_copy.
7373 test_varargs (const char *format, ...)
7376 va_start (args, format);
7378 va_copy (args_copy, args);
7389 str = va_arg (args_copy, const char *);
7392 number = va_arg (args_copy, int);
7395 fnumber = va_arg (args_copy, double);
7410 _Bool success = false;
7413 if (test_restrict ("String literal") == 0)
7415 char *restrict newvar = "Another string";
7418 test_varargs ("s, d' f .", "string", 65, 34.234);
7419 test_varargs_macros ();
7421 // Check flexible array members.
7422 struct incomplete_array *ia =
7423 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7425 for (int i = 0; i < ia->datasize; ++i)
7426 ia->data[i] = i * 1.234;
7428 // Check named initializers.
7429 struct named_init ni = {
7431 .name = L"Test wide string",
7432 .average = 543.34343,
7437 int dynamic_array[ni.number];
7438 dynamic_array[ni.number - 1] = 543;
7440 // work around unused variable warnings
7441 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7442 || dynamic_array[ni.number - 1] != 543);
7448 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7450 CC="$ac_save_CC $ac_arg"
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 ac_cv_prog_cc_c99=$ac_arg
7454 rm -f core conftest.err conftest.$ac_objext
7455 test "x$ac_cv_prog_cc_c99" != "xno" && break
7457 rm -f conftest.$ac_ext
7462 case "x$ac_cv_prog_cc_c99" in
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7465 $as_echo "none needed" >&6; } ;;
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7468 $as_echo "unsupported" >&6; } ;;
7470 CC="$CC $ac_cv_prog_cc_c99"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7472 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7474 if test "x$ac_cv_prog_cc_c99" != xno; then :
7479 if test "x$CC" != xcc; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7481 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7484 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7486 set dummy $CC; ac_cc=`$as_echo "$2" |
7487 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7488 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7489 $as_echo_n "(cached) " >&6
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7502 # Make sure it works both with $CC and with simple cc.
7503 # We do the test twice because some compilers refuse to overwrite an
7504 # existing .o file with -o, though they will create one.
7505 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7507 if { { case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7512 $as_echo "$ac_try_echo"; } >&5
7513 (eval "$ac_try") 2>&5
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; } &&
7517 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7522 $as_echo "$ac_try_echo"; } >&5
7523 (eval "$ac_try") 2>&5
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; };
7528 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7529 if test "x$CC" != xcc; then
7530 # Test first that cc exists at all.
7531 if { ac_try='cc -c conftest.$ac_ext >&5'
7532 { { case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7537 $as_echo "$ac_try_echo"; } >&5
7538 (eval "$ac_try") 2>&5
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }; }; then
7542 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7544 if { { case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7549 $as_echo "$ac_try_echo"; } >&5
7550 (eval "$ac_try") 2>&5
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; } &&
7554 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7559 $as_echo "$ac_try_echo"; } >&5
7560 (eval "$ac_try") 2>&5
7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; };
7568 # cc exists but doesn't like -o.
7569 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7574 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7576 rm -f core conftest*
7579 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7581 $as_echo "yes" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7586 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7590 # FIXME: we rely on the cache variable name because
7591 # there is no other way.
7593 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7594 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7595 if test "$am_t" != yes; then
7596 # Losing compiler, so override with the script.
7597 # FIXME: It is wrong to rewrite CC.
7598 # But if we don't then we get into trouble of one sort or another.
7599 # A longer-term fix would be to have automake use am__CC in this case,
7600 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7601 CC="$am_aux_dir/compile $CC"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
7607 $as_echo_n "checking maximum warning verbosity option... " >&6; }
7612 # Check whether --with-maximum-compile-warnings was given.
7613 if test "${with_maximum_compile_warnings+set}" = set; then :
7614 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7616 ac_compile_warnings_on=""
7620 if test x"$ac_compile_warnings_on" = xno
7622 ac_compile_warnings_msg=no
7626 if test "$GXX" = "yes"
7628 ac_compile_warnings_opt='-Wall -W'
7630 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7631 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7636 if test "$GCC" = "yes"
7638 ac_compile_warnings_opt='-Wall -W'
7640 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7641 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
7645 $as_echo "$ac_compile_warnings_msg" >&6; }
7646 unset ac_compile_warnings_msg
7647 unset ac_compile_warnings_opt
7649 $ac_includes_default
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7655 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7656 $as_echo_n "(cached) " >&6
7658 cat >conftest.make <<\_ACEOF
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674 $as_echo "yes" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7683 $as_echo_n "checking whether ln -s works... " >&6; }
7685 if test "$LN_S" = "ln -s"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7690 $as_echo "no, using $LN_S" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7694 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7696 # Check whether --with-dmalloc was given.
7697 if test "${with_dmalloc+set}" = set; then :
7698 withval=$with_dmalloc; if test "$withval" = yes; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700 $as_echo "yes" >&6; }
7702 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7718 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7719 if test -n "$ac_tool_prefix"; then
7720 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7751 if test -n "$PKG_CONFIG"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7753 $as_echo "$PKG_CONFIG" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7761 if test -z "$ac_cv_path_PKG_CONFIG"; then
7762 ac_pt_PKG_CONFIG=$PKG_CONFIG
7763 # Extract the first word of "pkg-config", so it can be a program name with args.
7764 set dummy pkg-config; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7770 case $ac_pt_PKG_CONFIG in
7772 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7794 if test -n "$ac_pt_PKG_CONFIG"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7796 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_pt_PKG_CONFIG" = x; then
7805 case $cross_compiling:$ac_tool_warned in
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7811 PKG_CONFIG=$ac_pt_PKG_CONFIG
7814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7818 if test -n "$PKG_CONFIG"; then
7819 _pkg_min_version=0.9.0
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7821 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7822 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7824 $as_echo "yes" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7834 # Enable run-time checking.
7836 # Check whether --enable-bounds-checking was given.
7837 if test "${enable_bounds_checking+set}" = set; then :
7838 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7840 enable_bounds_checking='no'
7844 if test "$enable_bounds_checking" = yes; then
7846 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7857 native_win32_build='no'
7859 case "${host_os}" in
7862 GDI32_LIBS='-lgdi32'
7865 native_win32_build='yes'
7866 GDI32_LIBS='-lgdi32'
7869 if test "${GDI32_LIBS}x" != 'x'; then
7871 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7875 if test "${GDI32_LIBS}x" != 'x' ; then
7876 WINGDI32_DELEGATE_TRUE=
7877 WINGDI32_DELEGATE_FALSE='#'
7879 WINGDI32_DELEGATE_TRUE='#'
7880 WINGDI32_DELEGATE_FALSE=
7883 if test "${native_win32_build}" = 'yes' ; then
7884 WIN32_NATIVE_BUILD_TRUE=
7885 WIN32_NATIVE_BUILD_FALSE='#'
7887 WIN32_NATIVE_BUILD_TRUE='#'
7888 WIN32_NATIVE_BUILD_FALSE=
7891 if test "${cygwin_build}" = 'yes' ; then
7893 CYGWIN_BUILD_FALSE='#'
7895 CYGWIN_BUILD_TRUE='#'
7899 if test "x${CC}" = 'xcl.exe' ; then
7908 WinPathScript="${srcdirfull}/winpath.sh"
7912 # Compiler flags tweaks
7914 if test "${GCC}" != "yes"; then
7917 # aCC: HP ANSI C++ B3910B A.03.34
7918 CFLAGS="${CFLAGS} -Wp,-H30000"
7919 if test -n "${CXXFLAGS}"; then
7922 CXXFLAGS="${CXXFLAGS} -AA"
7926 # Compaq alphaev68-dec-osf5.1 compiler
7927 if test -n "${CXXFLAGS}"; then
7928 CXXFLAGS='-std strict_ansi -noimplicit_include'
7930 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7935 # Check for lazy-loading.
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
7937 $as_echo_n "checking for linker lazyload option... " >&6; }
7938 if test "${im_cv_ld_lazyload+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7942 im_cv_ld_lazyload='none'
7944 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7945 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7946 im_cv_ld_lazyload='-Wl,-zlazyload'
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
7953 $as_echo "$im_cv_ld_lazyload" >&6; }
7954 if test "${im_cv_ld_lazyload}" != 'none' ; then
7955 if test -z "${LDFLAGS}" ; then
7956 LDFLAGS="${im_cv_ld_lazyload}"
7958 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7963 *darwin* | *-macos10*)
7964 if test -d /opt/local ; then
7965 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7966 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7967 elif test -d /sw ; then
7968 CPPFLAGS="$CPPFLAGS -I/sw/include"
7969 LDFLAGS="$LDFLAGS -L/sw/lib"
7971 # Check whether --enable-osx-universal-binary was given.
7972 if test "${enable_osx_universal_binary+set}" = set; then :
7973 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7975 build_osxuniversal=no
7979 if test "${build_osxuniversal}" != no ; then
7980 if test "$enable_dependency_tracking" != no ; then
7981 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
7982 Please re-run configure with these options:
7983 --disable-dependency-tracking --enable-osx-universal-binary
7986 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7987 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7988 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7993 # Enable support for threads
7995 # Check whether --with-threads was given.
7996 if test "${with_threads+set}" = set; then :
7997 withval=$with_threads; with_threads=$withval
8004 if test "$with_threads" != 'no'; then
8009 ac_cpp='$CPP $CPPFLAGS'
8010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016 # We used to check for pthread.h first, but this fails if pthread.h
8017 # requires special compiler flags (e.g. on True64 or Sequent).
8018 # It gets checked for in the link test anyway.
8020 # First of all, check if the user has set any of the PTHREAD_LIBS,
8021 # etcetera environment variables, and if threads linking works using
8023 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8024 save_CFLAGS="$CFLAGS"
8025 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8027 LIBS="$PTHREAD_LIBS $LIBS"
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8029 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8033 /* Override any GCC internal prototype to avoid an error.
8034 Use char because int might match the return type of a GCC
8035 builtin and then its argument prototype would still apply. */
8039 char pthread_join ();
8043 return pthread_join ();
8048 if ac_fn_c_try_link "$LINENO"; then :
8051 rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
8054 $as_echo "$acx_pthread_ok" >&6; }
8055 if test x"$acx_pthread_ok" = xno; then
8060 CFLAGS="$save_CFLAGS"
8063 # We must check for the threads library under a number of different
8064 # names; the ordering is very important because some systems
8065 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8066 # libraries is broken (non-POSIX).
8068 # Create a list of thread flags to try. Items starting with a "-" are
8069 # C compiler flags, and other items are library names, except for "none"
8070 # which indicates that we try without any flags at all, and "pthread-config"
8071 # which is a program returning the flags for the Pth emulation library.
8073 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8075 # The ordering *is* (sometimes) important. Some notes on the
8076 # individual items follow:
8078 # pthreads: AIX (must check this before -lpthread)
8079 # none: in case threads are in libc; should be tried before -Kthread and
8080 # other compiler flags to prevent continual compiler warnings
8081 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8082 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8083 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8084 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8085 # -pthreads: Solaris/gcc
8086 # -mthreads: Mingw32/gcc, Lynx/gcc
8087 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8088 # doesn't hurt to check since this sometimes defines pthreads too;
8089 # also defines -D_REENTRANT)
8090 # ... -mt is also the pthreads flag for HP/aCC
8091 # pthread: Linux, etcetera
8092 # --thread-safe: KAI C++
8093 # pthread-config: use pthread-config program (for GNU Pth library)
8095 case "${host_cpu}-${host_os}" in
8098 # On Solaris (at least, for some versions), libc contains stubbed
8099 # (non-functional) versions of the pthreads routines, so link-based
8100 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8101 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8102 # a function called by this macro, so we could check for that, but
8103 # who knows whether they'll stub that too in a future libc.) So,
8104 # we'll just look for -pthreads and -lpthread first:
8106 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
8110 if test x"$acx_pthread_ok" = xno; then
8111 for flag in $acx_pthread_flags; do
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8116 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8121 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8122 PTHREAD_CFLAGS="$flag"
8126 # Extract the first word of "pthread-config", so it can be a program name with args.
8127 set dummy pthread-config; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8133 if test -n "$acx_pthread_config"; then
8134 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143 ac_cv_prog_acx_pthread_config="yes"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
8154 acx_pthread_config=$ac_cv_prog_acx_pthread_config
8155 if test -n "$acx_pthread_config"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
8157 $as_echo "$acx_pthread_config" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8164 if test x"$acx_pthread_config" = xno; then continue; fi
8165 PTHREAD_CFLAGS="`pthread-config --cflags`"
8166 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8171 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8172 PTHREAD_LIBS="-l$flag"
8177 save_CFLAGS="$CFLAGS"
8178 LIBS="$PTHREAD_LIBS $LIBS"
8179 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8181 # Check for various functions. We must include pthread.h,
8182 # since some functions may be macros. (On the Sequent, we
8183 # need a special flag -Kthread to make this header compile.)
8184 # We check for pthread_join because it is in -lpthread on IRIX
8185 # while pthread_create is in libc. We check for pthread_attr_init
8186 # due to DEC craziness with -lpthreads. We check for
8187 # pthread_cleanup_push because it is one of the few pthread
8188 # functions on Solaris that doesn't have a non-functional libc stub.
8189 # We try pthread_create on general principles.
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #include <pthread.h>
8196 pthread_t th; pthread_join(th, 0);
8197 pthread_attr_init(0); pthread_cleanup_push(0, 0);
8198 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8203 if ac_fn_c_try_link "$LINENO"; then :
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8210 CFLAGS="$save_CFLAGS"
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
8213 $as_echo "$acx_pthread_ok" >&6; }
8214 if test "x$acx_pthread_ok" = xyes; then
8223 # Various other checks:
8224 if test "x$acx_pthread_ok" = xyes; then
8226 LIBS="$PTHREAD_LIBS $LIBS"
8227 save_CFLAGS="$CFLAGS"
8228 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8230 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8232 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8234 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #include <pthread.h>
8241 int attr=$attr; return attr;
8246 if ac_fn_c_try_link "$LINENO"; then :
8247 attr_name=$attr; break
8249 rm -f core conftest.err conftest.$ac_objext \
8250 conftest$ac_exeext conftest.$ac_ext
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8253 $as_echo "$attr_name" >&6; }
8254 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8256 cat >>confdefs.h <<_ACEOF
8257 #define PTHREAD_CREATE_JOINABLE $attr_name
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8263 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8265 case "${host_cpu}-${host_os}" in
8266 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8267 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8270 $as_echo "${flag}" >&6; }
8271 if test "x$flag" != xno; then
8272 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8276 CFLAGS="$save_CFLAGS"
8278 # More AIX lossage: must compile with xlc_r or cc_r
8279 if test x"$GCC" != xyes; then
8280 for ac_prog in xlc_r cc_r
8282 # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy $ac_prog; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8289 if test -n "$PTHREAD_CC"; then
8290 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_prog_PTHREAD_CC="$ac_prog"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8310 if test -n "$PTHREAD_CC"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8312 $as_echo "$PTHREAD_CC" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8319 test -n "$PTHREAD_CC" && break
8321 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8334 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8335 if test x"$acx_pthread_ok" = xyes; then
8337 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8345 ac_cpp='$CPP $CPPFLAGS'
8346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8351 if test "$acx_pthread_ok" = yes; then
8353 DEF_THREAD="$PTHREAD_CFLAGS"
8354 CFLAGS="$CFLAGS $DEF_THREAD"
8355 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8356 if test "$CC" != "$PTHREAD_CC"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8358 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8364 # Enable support for OpenMP
8365 if test "$have_threads" != 'yes'; then
8366 ac_cv_prog_c_openmp=unsupported
8370 # Check whether --enable-openmp was given.
8371 if test "${enable_openmp+set}" = set; then :
8372 enableval=$enable_openmp;
8375 if test "$enable_openmp" != no; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8377 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8378 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8388 int main () { return omp_get_num_threads (); }
8391 if ac_fn_c_try_link "$LINENO"; then :
8392 ac_cv_prog_c_openmp='none needed'
8394 ac_cv_prog_c_openmp='unsupported'
8395 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8396 ac_save_CFLAGS=$CFLAGS
8397 CFLAGS="$CFLAGS $ac_option"
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8405 int main () { return omp_get_num_threads (); }
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 ac_cv_prog_c_openmp=$ac_option
8411 rm -f core conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 CFLAGS=$ac_save_CFLAGS
8414 if test "$ac_cv_prog_c_openmp" != unsupported; then
8419 rm -f core conftest.err conftest.$ac_objext \
8420 conftest$ac_exeext conftest.$ac_ext
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8423 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8424 case $ac_cv_prog_c_openmp in #(
8425 "none needed" | unsupported)
8428 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8433 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8434 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8437 # Enable support for OpenCL
8439 # Check whether --enable-opencl was given.
8440 if test "${enable_opencl+set}" = set; then :
8441 enableval=$enable_opencl; disable_opencl=$enableval
8443 disable_opencl='yes'
8447 if test "$disable_opencl" = 'yes'; then
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8455 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8456 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8473 if ac_fn_c_try_compile "$LINENO"; then :
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ax_cv_c_compiler_ms=$ax_compiler_ms
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8483 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8484 if test X$ax_compiler_ms = Xno; then :
8485 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8488 ax_save_CPPFLAGS=$CPPFLAGS
8489 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8490 for ac_header in CL/cl.h OpenCL/cl.h
8492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8494 eval as_val=\$$as_ac_Header
8495 if test "x$as_val" = x""yes; then :
8496 cat >>confdefs.h <<_ACEOF
8497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504 CPPFLAGS=$ax_save_CPPFLAGS
8506 for ac_header in windows.h
8508 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8509 if test "x$ac_cv_header_windows_h" = x""yes; then :
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_WINDOWS_H 1
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8522 $as_echo_n "checking for OpenCL library... " >&6; }
8523 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8526 ax_cv_check_cl_libcl=no
8528 x86_64) ax_check_cl_libdir=lib64 ;;
8529 *) ax_check_cl_libdir=lib ;;
8531 ax_save_CPPFLAGS=$CPPFLAGS
8532 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8535 ax_check_libs="-lOpenCL -lCL -lclparser"
8536 for ax_lib in $ax_check_libs; do
8537 if test X$ax_compiler_ms = Xyes; then :
8538 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8542 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8546 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8547 # include <windows.h>
8549 # ifdef HAVE_CL_CL_H
8551 # elif defined(HAVE_OPENCL_CL_H)
8552 # include <OpenCL/cl.h>
8559 clCreateContextFromType(0,0,0,0,0)
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 ax_cv_check_cl_libcl=$ax_try_lib; break
8567 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"
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8571 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8572 # include <windows.h>
8574 # ifdef HAVE_CL_CL_H
8576 # elif defined(HAVE_OPENCL_CL_H)
8577 # include <OpenCL/cl.h>
8584 clCreateContextFromType(0,0,0,0,0)
8589 if ac_fn_c_try_link "$LINENO"; then :
8590 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8592 ax_check_cl_dylib_flag='-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"
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8596 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8597 # include <windows.h>
8599 # ifdef HAVE_CL_CL_H
8601 # elif defined(HAVE_OPENCL_CL_H)
8602 # include <OpenCL/cl.h>
8609 clCreateContextFromType(0,0,0,0,0)
8614 if ac_fn_c_try_link "$LINENO"; then :
8615 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
8617 rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8627 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
8628 LIBS='-framework OpenCL'
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8632 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8633 # include <windows.h>
8635 # ifdef HAVE_CL_CL_H
8637 # elif defined(HAVE_OPENCL_CL_H)
8638 # include <OpenCL/cl.h>
8645 clCreateContextFromType(0,0,0,0,0)
8650 if ac_fn_c_try_link "$LINENO"; then :
8651 ax_cv_check_cl_libcl=$LIBS
8653 rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8658 CPPFLAGS=$ax_save_CPPFLAGS
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
8661 $as_echo "$ax_cv_check_cl_libcl" >&6; }
8663 if test "X$ax_cv_check_cl_libcl" = Xno; then :
8664 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8666 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8667 $as_echo "#define _OPENCL 1" >>confdefs.h
8671 ac_cpp='$CPP $CPPFLAGS'
8672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8681 CFLAGS="$CL_CFLAGS $CFLAGS"
8682 LIBS="$CL_LIBS $LIBS"
8687 # Check for large file support
8690 # Check whether --enable-largefile was given.
8691 if test "${enable_largefile+set}" = set; then :
8692 enableval=$enable_largefile;
8695 if test "$enable_largefile" != no; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8698 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8699 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8702 ac_cv_sys_largefile_CC=no
8703 if test "$GCC" != yes; then
8706 # IRIX 6.2 and later do not support large files by default,
8707 # so use the C compiler's -n32 option if that helps.
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 #include <sys/types.h>
8711 /* Check that off_t can represent 2**63 - 1 correctly.
8712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8713 since some C++ compilers masquerading as C compilers
8714 incorrectly reject 9223372036854775807. */
8715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8717 && LARGE_OFF_T % 2147483647 == 1)
8727 if ac_fn_c_try_compile "$LINENO"; then :
8730 rm -f core conftest.err conftest.$ac_objext
8732 if ac_fn_c_try_compile "$LINENO"; then :
8733 ac_cv_sys_largefile_CC=' -n32'; break
8735 rm -f core conftest.err conftest.$ac_objext
8739 rm -f conftest.$ac_ext
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8743 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8744 if test "$ac_cv_sys_largefile_CC" != no; then
8745 CC=$CC$ac_cv_sys_largefile_CC
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8749 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8750 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8751 $as_echo_n "(cached) " >&6
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8756 #include <sys/types.h>
8757 /* Check that off_t can represent 2**63 - 1 correctly.
8758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8759 since some C++ compilers masquerading as C compilers
8760 incorrectly reject 9223372036854775807. */
8761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8763 && LARGE_OFF_T % 2147483647 == 1)
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774 ac_cv_sys_file_offset_bits=no; break
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 #define _FILE_OFFSET_BITS 64
8780 #include <sys/types.h>
8781 /* Check that off_t can represent 2**63 - 1 correctly.
8782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8783 since some C++ compilers masquerading as C compilers
8784 incorrectly reject 9223372036854775807. */
8785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8787 && LARGE_OFF_T % 2147483647 == 1)
8797 if ac_fn_c_try_compile "$LINENO"; then :
8798 ac_cv_sys_file_offset_bits=64; break
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 ac_cv_sys_file_offset_bits=unknown
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8806 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8807 case $ac_cv_sys_file_offset_bits in #(
8810 cat >>confdefs.h <<_ACEOF
8811 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8816 if test $ac_cv_sys_file_offset_bits = unknown; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8818 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8819 if test "${ac_cv_sys_large_files+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <sys/types.h>
8826 /* Check that off_t can represent 2**63 - 1 correctly.
8827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8828 since some C++ compilers masquerading as C compilers
8829 incorrectly reject 9223372036854775807. */
8830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8832 && LARGE_OFF_T % 2147483647 == 1)
8842 if ac_fn_c_try_compile "$LINENO"; then :
8843 ac_cv_sys_large_files=no; break
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8848 #define _LARGE_FILES 1
8849 #include <sys/types.h>
8850 /* Check that off_t can represent 2**63 - 1 correctly.
8851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8852 since some C++ compilers masquerading as C compilers
8853 incorrectly reject 9223372036854775807. */
8854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8856 && LARGE_OFF_T % 2147483647 == 1)
8866 if ac_fn_c_try_compile "$LINENO"; then :
8867 ac_cv_sys_large_files=1; break
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870 ac_cv_sys_large_files=unknown
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8875 $as_echo "$ac_cv_sys_large_files" >&6; }
8876 case $ac_cv_sys_large_files in #(
8879 cat >>confdefs.h <<_ACEOF
8880 #define _LARGE_FILES $ac_cv_sys_large_files
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8889 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8890 if test "${ac_cv_sys_largefile_source+set}" = set; then :
8891 $as_echo_n "(cached) " >&6
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8896 #include <sys/types.h> /* for off_t */
8901 int (*fp) (FILE *, off_t, int) = fseeko;
8902 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8907 if ac_fn_c_try_link "$LINENO"; then :
8908 ac_cv_sys_largefile_source=no; break
8910 rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #define _LARGEFILE_SOURCE 1
8915 #include <sys/types.h> /* for off_t */
8920 int (*fp) (FILE *, off_t, int) = fseeko;
8921 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 ac_cv_sys_largefile_source=1; break
8929 rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 ac_cv_sys_largefile_source=unknown
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8936 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8937 case $ac_cv_sys_largefile_source in #(
8940 cat >>confdefs.h <<_ACEOF
8941 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8947 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8948 # in glibc 2.1.3, but that breaks too many other things.
8949 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8950 if test $ac_cv_sys_largefile_source != unknown; then
8952 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8957 if test "$enable_largefile" != no; then
8958 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8959 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
8962 $as_echo_n "checking for native large file support... " >&6; }
8963 if test "$cross_compiling" = yes; then :
8964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8966 as_fn_error "cannot run test program while cross compiling
8967 See \`config.log' for more details." "$LINENO" 5; }
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8973 exit(!(sizeof(off_t) == 8));
8976 if ac_fn_c_try_run "$LINENO"; then :
8977 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8980 $as_echo "yes" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8986 conftest.$ac_objext conftest.beam conftest.$ac_ext
8990 if test "$ac_cv_sys_large_files" != 'no'; then
8991 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8993 if test "$ac_cv_sys_largefile_source" != 'no'; then
8994 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9000 # Configure libtool & libltdl
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9010 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9015 macro_version='2.2.6b'
9016 macro_revision='1.3017'
9030 ltmain="$ac_aux_dir/ltmain.sh"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9033 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9034 if test "${lt_cv_path_NM+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9037 if test -n "$NM"; then
9038 # Let the user override the test.
9041 lt_nm_to_check="${ac_tool_prefix}nm"
9042 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9043 lt_nm_to_check="$lt_nm_to_check nm"
9045 for lt_tmp_nm in $lt_nm_to_check; do
9046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9047 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9049 test -z "$ac_dir" && ac_dir=.
9050 tmp_nm="$ac_dir/$lt_tmp_nm"
9051 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9052 # Check to see if the nm accepts a BSD-compat flag.
9053 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9054 # nm: unknown option "B" ignored
9055 # Tru64's nm complains that /dev/null is an invalid object file
9056 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9057 */dev/null* | *'Invalid file or object type'*)
9058 lt_cv_path_NM="$tmp_nm -B"
9062 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9064 lt_cv_path_NM="$tmp_nm -p"
9068 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9069 continue # so that we can try to find one that supports BSD flags
9078 : ${lt_cv_path_NM=no}
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9082 $as_echo "$lt_cv_path_NM" >&6; }
9083 if test "$lt_cv_path_NM" != "no"; then
9086 # Didn't find any BSD compatible name lister, look for dumpbin.
9087 if test -n "$ac_tool_prefix"; then
9088 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093 $as_echo_n "checking for $ac_word... " >&6; }
9094 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9095 $as_echo_n "(cached) " >&6
9097 if test -n "$DUMPBIN"; then
9098 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 test -z "$as_dir" && as_dir=.
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117 DUMPBIN=$ac_cv_prog_DUMPBIN
9118 if test -n "$DUMPBIN"; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9120 $as_echo "$DUMPBIN" >&6; }
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9127 test -n "$DUMPBIN" && break
9130 if test -z "$DUMPBIN"; then
9131 ac_ct_DUMPBIN=$DUMPBIN
9132 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9134 # Extract the first word of "$ac_prog", so it can be a program name with args.
9135 set dummy $ac_prog; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9141 if test -n "$ac_ct_DUMPBIN"; then
9142 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9162 if test -n "$ac_ct_DUMPBIN"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9164 $as_echo "$ac_ct_DUMPBIN" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9171 test -n "$ac_ct_DUMPBIN" && break
9174 if test "x$ac_ct_DUMPBIN" = x; then
9177 case $cross_compiling:$ac_tool_warned in
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9181 ac_tool_warned=yes ;;
9183 DUMPBIN=$ac_ct_DUMPBIN
9188 if test "$DUMPBIN" != ":"; then
9192 test -z "$NM" && NM=nm
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9200 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9201 if test "${lt_cv_nm_interface+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9204 lt_cv_nm_interface="BSD nm"
9205 echo "int some_variable = 0;" > conftest.$ac_ext
9206 (eval echo "\"\$as_me:9206: $ac_compile\"" >&5)
9207 (eval "$ac_compile" 2>conftest.err)
9208 cat conftest.err >&5
9209 (eval echo "\"\$as_me:9209: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9210 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9211 cat conftest.err >&5
9212 (eval echo "\"\$as_me:9212: output\"" >&5)
9213 cat conftest.out >&5
9214 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9215 lt_cv_nm_interface="MS dumpbin"
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9220 $as_echo "$lt_cv_nm_interface" >&6; }
9222 # find the maximum length of command line arguments
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9224 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9225 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9226 $as_echo_n "(cached) " >&6
9233 # On DJGPP, this test can blow up pretty badly due to problems in libc
9234 # (any single argument exceeding 2000 bytes causes a buffer overrun
9235 # during glob expansion). Even if it were fixed, the result of this
9236 # check would be larger than it should be.
9237 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9241 # Under GNU Hurd, this test is not required because there is
9242 # no limit to the length of command line arguments.
9243 # Libtool will interpret -1 as no limit whatsoever
9244 lt_cv_sys_max_cmd_len=-1;
9247 cygwin* | mingw* | cegcc*)
9248 # On Win9x/ME, this test blows up -- it succeeds, but takes
9249 # about 5 minutes as the teststring grows exponentially.
9250 # Worse, since 9x/ME are not pre-emptively multitasking,
9251 # you end up with a "frozen" computer, even though with patience
9252 # the test eventually succeeds (with a max line length of 256k).
9253 # Instead, let's just punt: use the minimum linelength reported by
9254 # all of the supported platforms: 8192 (on NT/2K/XP).
9255 lt_cv_sys_max_cmd_len=8192;
9259 # On AmigaOS with pdksh, this test takes hours, literally.
9260 # So we just punt and use a minimum line length of 8192.
9261 lt_cv_sys_max_cmd_len=8192;
9264 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9265 # This has been around since 386BSD, at least. Likely further.
9266 if test -x /sbin/sysctl; then
9267 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9268 elif test -x /usr/sbin/sysctl; then
9269 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9271 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9273 # And add a safety zone
9274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9279 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9280 lt_cv_sys_max_cmd_len=196608
9284 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9285 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9286 # nice to cause kernel panics so lets avoid the loop below.
9287 # First set a reasonable default.
9288 lt_cv_sys_max_cmd_len=16384
9290 if test -x /sbin/sysconfig; then
9291 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9292 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9297 lt_cv_sys_max_cmd_len=102400
9299 sysv5* | sco5v6* | sysv4.2uw2*)
9300 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9301 if test -n "$kargmax"; then
9302 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9304 lt_cv_sys_max_cmd_len=32768
9308 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9309 if test -n "$lt_cv_sys_max_cmd_len"; then
9310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9313 # Make teststring a little bigger before we do anything with it.
9314 # a 1K string should be a reasonable start.
9315 for i in 1 2 3 4 5 6 7 8 ; do
9316 teststring=$teststring$teststring
9318 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9319 # If test is not a shell built-in, we'll probably end up computing a
9320 # maximum length that is only half of the actual maximum length, but
9322 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9323 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9324 test $i != 17 # 1/2 MB should be enough
9327 teststring=$teststring$teststring
9329 # Only check the string length outside the loop.
9330 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9332 # Add a significant safety factor because C++ compilers can tack on
9333 # massive amounts of additional arguments before passing them to the
9334 # linker. It appears as though 1/2 is a usable value.
9335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9342 if test -n $lt_cv_sys_max_cmd_len ; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9344 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9347 $as_echo "none" >&6; }
9349 max_cmd_len=$lt_cv_sys_max_cmd_len
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9361 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9362 # Try some XSI features
9365 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9367 && eval 'test $(( 1 + 1 )) -eq 2 \
9368 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9371 $as_echo "$xsi_shell" >&6; }
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9375 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9377 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9379 && lt_shell_append=yes
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9381 $as_echo "$lt_shell_append" >&6; }
9384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9394 # test EBCDIC or ASCII
9395 case `echo X|tr X '\101'` in
9396 A) # ASCII based system
9397 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9398 lt_SP2NL='tr \040 \012'
9399 lt_NL2SP='tr \015\012 \040\040'
9401 *) # EBCDIC based system
9402 lt_SP2NL='tr \100 \n'
9403 lt_NL2SP='tr \r\n \100\100'
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9416 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9417 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9420 lt_cv_ld_reload_flag='-r'
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9423 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9424 reload_flag=$lt_cv_ld_reload_flag
9425 case $reload_flag in
9427 *) reload_flag=" $reload_flag" ;;
9429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9432 if test "$GCC" = yes; then
9433 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9435 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9448 if test -n "$ac_tool_prefix"; then
9449 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9450 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9456 if test -n "$OBJDUMP"; then
9457 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 test -z "$as_dir" && as_dir=.
9464 for ac_exec_ext in '' $ac_executable_extensions; do
9465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9476 OBJDUMP=$ac_cv_prog_OBJDUMP
9477 if test -n "$OBJDUMP"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9479 $as_echo "$OBJDUMP" >&6; }
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9487 if test -z "$ac_cv_prog_OBJDUMP"; then
9488 ac_ct_OBJDUMP=$OBJDUMP
9489 # Extract the first word of "objdump", so it can be a program name with args.
9490 set dummy objdump; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9496 if test -n "$ac_ct_OBJDUMP"; then
9497 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9517 if test -n "$ac_ct_OBJDUMP"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9519 $as_echo "$ac_ct_OBJDUMP" >&6; }
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9525 if test "x$ac_ct_OBJDUMP" = x; then
9528 case $cross_compiling:$ac_tool_warned in
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9532 ac_tool_warned=yes ;;
9534 OBJDUMP=$ac_ct_OBJDUMP
9537 OBJDUMP="$ac_cv_prog_OBJDUMP"
9540 test -z "$OBJDUMP" && OBJDUMP=objdump
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9548 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9549 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9552 lt_cv_file_magic_cmd='$MAGIC_CMD'
9553 lt_cv_file_magic_test_file=
9554 lt_cv_deplibs_check_method='unknown'
9555 # Need to set the preceding variable on all platforms that support
9556 # interlibrary dependencies.
9557 # 'none' -- dependencies not supported.
9558 # `unknown' -- same as none, but documents that we really don't know.
9559 # 'pass_all' -- all dependencies passed with no checks.
9560 # 'test_compile' -- check by making test program.
9561 # 'file_magic [[regex]]' -- check by looking for files in library path
9562 # which responds to the $file_magic_cmd with a given extended regex.
9563 # If you have `file' or equivalent on your system and you're not sure
9564 # whether `pass_all' will *always* work, you probably want this one.
9568 lt_cv_deplibs_check_method=pass_all
9572 lt_cv_deplibs_check_method=pass_all
9576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9577 lt_cv_file_magic_cmd='/usr/bin/file -L'
9578 lt_cv_file_magic_test_file=/shlib/libc.so
9582 # func_win32_libid is a shell function defined in ltmain.sh
9583 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9584 lt_cv_file_magic_cmd='func_win32_libid'
9588 # Base MSYS/MinGW do not provide the 'file' command needed by
9589 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9590 # unless we find 'file', for example because we are cross-compiling.
9591 if ( file / ) >/dev/null 2>&1; then
9592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9593 lt_cv_file_magic_cmd='func_win32_libid'
9595 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9596 lt_cv_file_magic_cmd='$OBJDUMP -f'
9601 # use the weaker test based on 'objdump'. See mingw*.
9602 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9603 lt_cv_file_magic_cmd='$OBJDUMP -f'
9606 darwin* | rhapsody*)
9607 lt_cv_deplibs_check_method=pass_all
9610 freebsd* | dragonfly*)
9611 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9614 # Not sure whether the presence of OpenBSD here was a mistake.
9615 # Let's accept both of them until this is cleared up.
9616 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9617 lt_cv_file_magic_cmd=/usr/bin/file
9618 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9622 lt_cv_deplibs_check_method=pass_all
9627 lt_cv_deplibs_check_method=pass_all
9630 hpux10.20* | hpux11*)
9631 lt_cv_file_magic_cmd=/usr/bin/file
9634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9638 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9653 irix5* | irix6* | nonstopux*)
9655 *-32|*"-32 ") libmagic=32-bit;;
9656 *-n32|*"-n32 ") libmagic=N32;;
9657 *-64|*"-64 ") libmagic=64-bit;;
9658 *) libmagic=never-match;;
9660 lt_cv_deplibs_check_method=pass_all
9663 # This must be Linux ELF.
9664 linux* | k*bsd*-gnu)
9665 lt_cv_deplibs_check_method=pass_all
9669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9678 lt_cv_file_magic_cmd=/usr/bin/file
9679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9683 lt_cv_deplibs_check_method=pass_all
9687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9694 osf3* | osf4* | osf5*)
9695 lt_cv_deplibs_check_method=pass_all
9699 lt_cv_deplibs_check_method=pass_all
9703 lt_cv_deplibs_check_method=pass_all
9706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9707 lt_cv_deplibs_check_method=pass_all
9711 case $host_vendor in
9713 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]'
9714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9717 lt_cv_deplibs_check_method=pass_all
9720 lt_cv_file_magic_cmd='/bin/file'
9721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9724 lt_cv_file_magic_cmd='/bin/file'
9725 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9726 lt_cv_file_magic_test_file=/lib/libc.so
9729 lt_cv_deplibs_check_method=pass_all
9732 lt_cv_deplibs_check_method=pass_all
9738 lt_cv_deplibs_check_method=pass_all
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9744 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9745 file_magic_cmd=$lt_cv_file_magic_cmd
9746 deplibs_check_method=$lt_cv_deplibs_check_method
9747 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9760 if test -n "$ac_tool_prefix"; then
9761 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9762 set dummy ${ac_tool_prefix}ar; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if test "${ac_cv_prog_AR+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 if test -n "$AR"; then
9769 ac_cv_prog_AR="$AR" # Let the user override the test.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_AR="${ac_tool_prefix}ar"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 if test -n "$AR"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9791 $as_echo "$AR" >&6; }
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9799 if test -z "$ac_cv_prog_AR"; then
9801 # Extract the first word of "ar", so it can be a program name with args.
9802 set dummy ar; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9808 if test -n "$ac_ct_AR"; then
9809 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_ac_ct_AR="ar"
9819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9829 if test -n "$ac_ct_AR"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9831 $as_echo "$ac_ct_AR" >&6; }
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9837 if test "x$ac_ct_AR" = x; then
9840 case $cross_compiling:$ac_tool_warned in
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9844 ac_tool_warned=yes ;;
9852 test -z "$AR" && AR=ar
9853 test -z "$AR_FLAGS" && AR_FLAGS=cru
9865 if test -n "$ac_tool_prefix"; then
9866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9867 set dummy ${ac_tool_prefix}strip; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_STRIP+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9873 if test -n "$STRIP"; then
9874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9893 STRIP=$ac_cv_prog_STRIP
9894 if test -n "$STRIP"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9896 $as_echo "$STRIP" >&6; }
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9904 if test -z "$ac_cv_prog_STRIP"; then
9906 # Extract the first word of "strip", so it can be a program name with args.
9907 set dummy strip; ac_word=$2
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909 $as_echo_n "checking for $ac_word... " >&6; }
9910 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9911 $as_echo_n "(cached) " >&6
9913 if test -n "$ac_ct_STRIP"; then
9914 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_prog_ac_ct_STRIP="strip"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9934 if test -n "$ac_ct_STRIP"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9936 $as_echo "$ac_ct_STRIP" >&6; }
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9942 if test "x$ac_ct_STRIP" = x; then
9945 case $cross_compiling:$ac_tool_warned in
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9949 ac_tool_warned=yes ;;
9954 STRIP="$ac_cv_prog_STRIP"
9957 test -z "$STRIP" && STRIP=:
9964 if test -n "$ac_tool_prefix"; then
9965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9970 $as_echo_n "(cached) " >&6
9972 if test -n "$RANLIB"; then
9973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 RANLIB=$ac_cv_prog_RANLIB
9993 if test -n "$RANLIB"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9995 $as_echo "$RANLIB" >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
10003 if test -z "$ac_cv_prog_RANLIB"; then
10004 ac_ct_RANLIB=$RANLIB
10005 # Extract the first word of "ranlib", so it can be a program name with args.
10006 set dummy ranlib; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10010 $as_echo_n "(cached) " >&6
10012 if test -n "$ac_ct_RANLIB"; then
10013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10019 test -z "$as_dir" && as_dir=.
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10022 ac_cv_prog_ac_ct_RANLIB="ranlib"
10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10033 if test -n "$ac_ct_RANLIB"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10035 $as_echo "$ac_ct_RANLIB" >&6; }
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10041 if test "x$ac_ct_RANLIB" = x; then
10044 case $cross_compiling:$ac_tool_warned in
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10048 ac_tool_warned=yes ;;
10050 RANLIB=$ac_ct_RANLIB
10053 RANLIB="$ac_cv_prog_RANLIB"
10056 test -z "$RANLIB" && RANLIB=:
10063 # Determine commands to create old-style static archives.
10064 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10065 old_postinstall_cmds='chmod 644 $oldlib'
10066 old_postuninstall_cmds=
10068 if test -n "$RANLIB"; then
10071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10074 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10077 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10113 # If no C compiler was specified, use CC.
10116 # If no C compiler flags were specified, use CFLAGS.
10117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10119 # Allow CC to be a program name with arguments.
10123 # Check for command to grab the raw symbol name followed by C symbol from nm.
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10125 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10126 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10130 # These are sane defaults that work on at least a few old systems.
10131 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10133 # Character class describing NM global symbol codes.
10134 symcode='[BCDEGRST]'
10136 # Regexp to match symbols that can be accessed directly from C.
10137 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10139 # Define system-specific variables.
10144 cygwin* | mingw* | pw32* | cegcc*)
10145 symcode='[ABCDGISTW]'
10148 if test "$host_cpu" = ia64; then
10149 symcode='[ABCDEGRST]'
10152 irix* | nonstopux*)
10153 symcode='[BCDEGRST]'
10156 symcode='[BCDEGQRST]'
10167 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10175 # If we're using GNU nm, then use its standard symbol codes.
10176 case `$NM -V 2>&1` in
10177 *GNU* | *'with BFD'*)
10178 symcode='[ABCDGIRSTW]' ;;
10181 # Transform an extracted symbol line into a proper C declaration.
10182 # Some systems (esp. on ia64) link data and code symbols differently,
10183 # so use this general approach.
10184 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10186 # Transform an extracted symbol line into symbol name and symbol address
10187 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10188 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'"
10190 # Handle CRLF in mingw tool chain
10194 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10198 # Try without a prefix underscore, then with it.
10199 for ac_symprfx in "" "_"; do
10201 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10202 symxfrm="\\1 $ac_symprfx\\2 \\2"
10204 # Write the raw and C identifiers.
10205 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10206 # Fake it for dumpbin and say T for any non-static function
10207 # and D for any global variable.
10208 # Also find C++ and __fastcall symbols from MSVC++,
10209 # which start with @ or ?.
10210 lt_cv_sys_global_symbol_pipe="$AWK '"\
10211 " {last_section=section; section=\$ 3};"\
10212 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10213 " \$ 0!~/External *\|/{next};"\
10214 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10215 " {if(hide[section]) next};"\
10216 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10217 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10218 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10219 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10220 " ' prfx=^$ac_symprfx"
10222 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10225 # Check to see that the pipe works correctly.
10229 cat > conftest.$ac_ext <<_LT_EOF
10234 void nm_test_func(void);
10235 void nm_test_func(void){}
10239 int main(){nm_test_var='a';nm_test_func();return(0);}
10242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10243 (eval $ac_compile) 2>&5
10245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; }; then
10247 # Now try to grab the symbols.
10249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253 test $ac_status = 0; } && test -s "$nlist"; then
10254 # Try sorting and uniquifying the output.
10255 if sort "$nlist" | uniq > "$nlist"T; then
10256 mv -f "$nlist"T "$nlist"
10261 # Make sure that we snagged all the symbols we need.
10262 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10263 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10264 cat <<_LT_EOF > conftest.$ac_ext
10270 # Now generate the symbol file.
10271 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10273 cat <<_LT_EOF >> conftest.$ac_ext
10275 /* The mapping between symbol names and symbols. */
10280 lt__PROGRAM__LTX_preloaded_symbols[] =
10282 { "@PROGRAM@", (void *) 0 },
10284 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10285 cat <<\_LT_EOF >> conftest.$ac_ext
10289 /* This works around a problem in FreeBSD linker */
10290 #ifdef FREEBSD_WORKAROUND
10291 static const void *lt_preloaded_setup() {
10292 return lt__PROGRAM__LTX_preloaded_symbols;
10300 # Now try linking the two files.
10301 mv conftest.$ac_objext conftstm.$ac_objext
10302 lt_save_LIBS="$LIBS"
10303 lt_save_CFLAGS="$CFLAGS"
10304 LIBS="conftstm.$ac_objext"
10305 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10307 (eval $ac_link) 2>&5
10309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10313 LIBS="$lt_save_LIBS"
10314 CFLAGS="$lt_save_CFLAGS"
10316 echo "cannot find nm_test_func in $nlist" >&5
10319 echo "cannot find nm_test_var in $nlist" >&5
10322 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10325 echo "$progname: failed program was:" >&5
10326 cat conftest.$ac_ext >&5
10328 rm -rf conftest* conftst*
10330 # Do not use the global_symbol_pipe unless it works.
10331 if test "$pipe_works" = yes; then
10334 lt_cv_sys_global_symbol_pipe=
10340 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10341 lt_cv_sys_global_symbol_to_cdecl=
10343 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10345 $as_echo "failed" >&6; }
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10348 $as_echo "ok" >&6; }
10372 # Check whether --enable-libtool-lock was given.
10373 if test "${enable_libtool_lock+set}" = set; then :
10374 enableval=$enable_libtool_lock;
10377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10379 # Some flags need to be propagated to the compiler or linker for good
10383 # Find out which ABI we are using.
10384 echo 'int i;' > conftest.$ac_ext
10385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10386 (eval $ac_compile) 2>&5
10388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389 test $ac_status = 0; }; then
10390 case `/usr/bin/file conftest.$ac_objext` in
10392 HPUX_IA64_MODE="32"
10395 HPUX_IA64_MODE="64"
10402 # Find out which ABI we are using.
10403 echo '#line 10403 "configure"' > conftest.$ac_ext
10404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10405 (eval $ac_compile) 2>&5
10407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408 test $ac_status = 0; }; then
10409 if test "$lt_cv_prog_gnu_ld" = yes; then
10410 case `/usr/bin/file conftest.$ac_objext` in
10412 LD="${LD-ld} -melf32bsmip"
10415 LD="${LD-ld} -melf32bmipn32"
10418 LD="${LD-ld} -melf64bmip"
10422 case `/usr/bin/file conftest.$ac_objext` in
10438 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10439 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10440 # Find out which ABI we are using.
10441 echo 'int i;' > conftest.$ac_ext
10442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10443 (eval $ac_compile) 2>&5
10445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10446 test $ac_status = 0; }; then
10447 case `/usr/bin/file conftest.o` in
10450 x86_64-*kfreebsd*-gnu)
10451 LD="${LD-ld} -m elf_i386_fbsd"
10454 LD="${LD-ld} -m elf_i386"
10456 ppc64-*linux*|powerpc64-*linux*)
10457 LD="${LD-ld} -m elf32ppclinux"
10460 LD="${LD-ld} -m elf_s390"
10463 LD="${LD-ld} -m elf32_sparc"
10469 x86_64-*kfreebsd*-gnu)
10470 LD="${LD-ld} -m elf_x86_64_fbsd"
10473 LD="${LD-ld} -m elf_x86_64"
10475 ppc*-*linux*|powerpc*-*linux*)
10476 LD="${LD-ld} -m elf64ppc"
10478 s390*-*linux*|s390*-*tpf*)
10479 LD="${LD-ld} -m elf64_s390"
10482 LD="${LD-ld} -m elf64_sparc"
10492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10493 SAVE_CFLAGS="$CFLAGS"
10494 CFLAGS="$CFLAGS -belf"
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10496 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10497 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10498 $as_echo_n "(cached) " >&6
10501 ac_cpp='$CPP $CPPFLAGS'
10502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 lt_cv_cc_needs_belf=yes
10520 lt_cv_cc_needs_belf=no
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10532 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10533 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10534 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10535 CFLAGS="$SAVE_CFLAGS"
10539 # Find out which ABI we are using.
10540 echo 'int i;' > conftest.$ac_ext
10541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10542 (eval $ac_compile) 2>&5
10544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545 test $ac_status = 0; }; then
10546 case `/usr/bin/file conftest.o` in
10548 case $lt_cv_prog_gnu_ld in
10549 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10551 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10563 need_locks="$enable_libtool_lock"
10567 rhapsody* | darwin*)
10568 if test -n "$ac_tool_prefix"; then
10569 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10570 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
10576 if test -n "$DSYMUTIL"; then
10577 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10583 test -z "$as_dir" && as_dir=.
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10597 if test -n "$DSYMUTIL"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10599 $as_echo "$DSYMUTIL" >&6; }
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10607 if test -z "$ac_cv_prog_DSYMUTIL"; then
10608 ac_ct_DSYMUTIL=$DSYMUTIL
10609 # Extract the first word of "dsymutil", so it can be a program name with args.
10610 set dummy dsymutil; ac_word=$2
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10614 $as_echo_n "(cached) " >&6
10616 if test -n "$ac_ct_DSYMUTIL"; then
10617 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620 for as_dir in $PATH
10623 test -z "$as_dir" && as_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10626 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10637 if test -n "$ac_ct_DSYMUTIL"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10639 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10645 if test "x$ac_ct_DSYMUTIL" = x; then
10648 case $cross_compiling:$ac_tool_warned in
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10652 ac_tool_warned=yes ;;
10654 DSYMUTIL=$ac_ct_DSYMUTIL
10657 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10660 if test -n "$ac_tool_prefix"; then
10661 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10662 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10668 if test -n "$NMEDIT"; then
10669 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 NMEDIT=$ac_cv_prog_NMEDIT
10689 if test -n "$NMEDIT"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10691 $as_echo "$NMEDIT" >&6; }
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10699 if test -z "$ac_cv_prog_NMEDIT"; then
10700 ac_ct_NMEDIT=$NMEDIT
10701 # Extract the first word of "nmedit", so it can be a program name with args.
10702 set dummy nmedit; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10708 if test -n "$ac_ct_NMEDIT"; then
10709 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $PATH
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10729 if test -n "$ac_ct_NMEDIT"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10731 $as_echo "$ac_ct_NMEDIT" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10737 if test "x$ac_ct_NMEDIT" = x; then
10740 case $cross_compiling:$ac_tool_warned in
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744 ac_tool_warned=yes ;;
10746 NMEDIT=$ac_ct_NMEDIT
10749 NMEDIT="$ac_cv_prog_NMEDIT"
10752 if test -n "$ac_tool_prefix"; then
10753 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10754 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if test "${ac_cv_prog_LIPO+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10760 if test -n "$LIPO"; then
10761 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 LIPO=$ac_cv_prog_LIPO
10781 if test -n "$LIPO"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10783 $as_echo "$LIPO" >&6; }
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10791 if test -z "$ac_cv_prog_LIPO"; then
10793 # Extract the first word of "lipo", so it can be a program name with args.
10794 set dummy lipo; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10798 $as_echo_n "(cached) " >&6
10800 if test -n "$ac_ct_LIPO"; then
10801 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_prog_ac_ct_LIPO="lipo"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10821 if test -n "$ac_ct_LIPO"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10823 $as_echo "$ac_ct_LIPO" >&6; }
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10829 if test "x$ac_ct_LIPO" = x; then
10832 case $cross_compiling:$ac_tool_warned in
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10836 ac_tool_warned=yes ;;
10841 LIPO="$ac_cv_prog_LIPO"
10844 if test -n "$ac_tool_prefix"; then
10845 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10846 set dummy ${ac_tool_prefix}otool; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if test "${ac_cv_prog_OTOOL+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10852 if test -n "$OTOOL"; then
10853 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 OTOOL=$ac_cv_prog_OTOOL
10873 if test -n "$OTOOL"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10875 $as_echo "$OTOOL" >&6; }
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10883 if test -z "$ac_cv_prog_OTOOL"; then
10885 # Extract the first word of "otool", so it can be a program name with args.
10886 set dummy otool; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
10892 if test -n "$ac_ct_OTOOL"; then
10893 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10899 test -z "$as_dir" && as_dir=.
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10902 ac_cv_prog_ac_ct_OTOOL="otool"
10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10913 if test -n "$ac_ct_OTOOL"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10915 $as_echo "$ac_ct_OTOOL" >&6; }
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10921 if test "x$ac_ct_OTOOL" = x; then
10924 case $cross_compiling:$ac_tool_warned in
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10928 ac_tool_warned=yes ;;
10933 OTOOL="$ac_cv_prog_OTOOL"
10936 if test -n "$ac_tool_prefix"; then
10937 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10938 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10944 if test -n "$OTOOL64"; then
10945 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 OTOOL64=$ac_cv_prog_OTOOL64
10965 if test -n "$OTOOL64"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10967 $as_echo "$OTOOL64" >&6; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10975 if test -z "$ac_cv_prog_OTOOL64"; then
10976 ac_ct_OTOOL64=$OTOOL64
10977 # Extract the first word of "otool64", so it can be a program name with args.
10978 set dummy otool64; ac_word=$2
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980 $as_echo_n "checking for $ac_word... " >&6; }
10981 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10984 if test -n "$ac_ct_OTOOL64"; then
10985 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988 for as_dir in $PATH
10991 test -z "$as_dir" && as_dir=.
10992 for ac_exec_ext in '' $ac_executable_extensions; do
10993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994 ac_cv_prog_ac_ct_OTOOL64="otool64"
10995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11005 if test -n "$ac_ct_OTOOL64"; then
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11007 $as_echo "$ac_ct_OTOOL64" >&6; }
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11013 if test "x$ac_ct_OTOOL64" = x; then
11016 case $cross_compiling:$ac_tool_warned in
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020 ac_tool_warned=yes ;;
11022 OTOOL64=$ac_ct_OTOOL64
11025 OTOOL64="$ac_cv_prog_OTOOL64"
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11055 $as_echo_n "checking for -single_module linker flag... " >&6; }
11056 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11059 lt_cv_apple_cc_single_mod=no
11060 if test -z "${LT_MULTI_MODULE}"; then
11061 # By default we will add the -single_module flag. You can override
11062 # by either setting the environment variable LT_MULTI_MODULE
11063 # non-empty at configure time, or by adding -multi_module to the
11065 rm -rf libconftest.dylib*
11066 echo "int foo(void){return 1;}" > conftest.c
11067 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11068 -dynamiclib -Wl,-single_module conftest.c" >&5
11069 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11070 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11072 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11073 lt_cv_apple_cc_single_mod=yes
11075 cat conftest.err >&5
11077 rm -rf libconftest.dylib*
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11082 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11084 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11085 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11086 $as_echo_n "(cached) " >&6
11088 lt_cv_ld_exported_symbols_list=no
11089 save_LDFLAGS=$LDFLAGS
11090 echo "_main" > conftest.sym
11091 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11103 if ac_fn_c_try_link "$LINENO"; then :
11104 lt_cv_ld_exported_symbols_list=yes
11106 lt_cv_ld_exported_symbols_list=no
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LDFLAGS="$save_LDFLAGS"
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11114 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11116 rhapsody* | darwin1.[012])
11117 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11119 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11120 darwin*) # darwin 5.x on
11121 # if running on 10.5 or later, the deployment target defaults
11122 # to the OS version, if on x86, and 10.4, the deployment
11123 # target defaults to 10.4. Don't you love it?
11124 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11125 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11128 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11130 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11134 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11135 _lt_dar_single_mod='$single_module'
11137 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11138 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11140 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11142 if test "$DSYMUTIL" != ":"; then
11143 _lt_dsymutil='~$DSYMUTIL $lib || :'
11150 for ac_header in dlfcn.h
11152 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11154 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_DLFCN_H 1
11166 ac_cpp='$CXXCPP $CPPFLAGS'
11167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170 if test -z "$CXX"; then
11171 if test -n "$CCC"; then
11174 if test -n "$ac_tool_prefix"; then
11175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if test "${ac_cv_prog_CXX+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
11184 if test -n "$CXX"; then
11185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 CXX=$ac_cv_prog_CXX
11205 if test -n "$CXX"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11207 $as_echo "$CXX" >&6; }
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11214 test -n "$CXX" && break
11217 if test -z "$CXX"; then
11219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11221 # Extract the first word of "$ac_prog", so it can be a program name with args.
11222 set dummy $ac_prog; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11228 if test -n "$ac_ct_CXX"; then
11229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_prog_ac_ct_CXX="$ac_prog"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11249 if test -n "$ac_ct_CXX"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11251 $as_echo "$ac_ct_CXX" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11258 test -n "$ac_ct_CXX" && break
11261 if test "x$ac_ct_CXX" = x; then
11264 case $cross_compiling:$ac_tool_warned in
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11268 ac_tool_warned=yes ;;
11276 # Provide some information about the compiler.
11277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11280 for ac_option in --version -v -V -qversion; do
11281 { { ac_try="$ac_compiler $ac_option >&5"
11282 case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11287 $as_echo "$ac_try_echo"; } >&5
11288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11290 if test -s conftest.err; then
11292 ... rest of stderr output deleted ...
11293 10q' conftest.err >conftest.er1
11294 cat conftest.er1 >&5
11296 rm -f conftest.er1 conftest.err
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; }
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11302 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11303 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11320 if ac_fn_cxx_try_compile "$LINENO"; then :
11321 ac_compiler_gnu=yes
11325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11330 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11331 if test $ac_compiler_gnu = yes; then
11336 ac_test_CXXFLAGS=${CXXFLAGS+set}
11337 ac_save_CXXFLAGS=$CXXFLAGS
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11339 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11340 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11344 ac_cxx_werror_flag=yes
11345 ac_cv_prog_cxx_g=no
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11358 if ac_fn_cxx_try_compile "$LINENO"; then :
11359 ac_cv_prog_cxx_g=yes
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11373 if ac_fn_cxx_try_compile "$LINENO"; then :
11376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11389 if ac_fn_cxx_try_compile "$LINENO"; then :
11390 ac_cv_prog_cxx_g=yes
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11400 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11401 if test "$ac_test_CXXFLAGS" = set; then
11402 CXXFLAGS=$ac_save_CXXFLAGS
11403 elif test $ac_cv_prog_cxx_g = yes; then
11404 if test "$GXX" = yes; then
11410 if test "$GXX" = yes; then
11417 ac_cpp='$CPP $CPPFLAGS'
11418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11422 depcc="$CXX" am_compiler_list=
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11425 $as_echo_n "checking dependency style of $depcc... " >&6; }
11426 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11430 # We make a subdir and do the tests there. Otherwise we can end up
11431 # making bogus files that we don't know about and never remove. For
11432 # instance it was reported that on HP-UX the gcc test will end up
11433 # making a dummy file named `D' -- because `-MD' means `put the output
11436 # Copy depcomp to subdir because otherwise we won't find it if we're
11437 # using a relative directory.
11438 cp "$am_depcomp" conftest.dir
11440 # We will build objects and dependencies in a subdirectory because
11441 # it helps to detect inapplicable dependency modes. For instance
11442 # both Tru64's cc and ICC support -MD to output dependencies as a
11443 # side effect of compilation, but ICC will put the dependencies in
11444 # the current directory while Tru64 will put them in the object
11448 am_cv_CXX_dependencies_compiler_type=none
11449 if test "$am_compiler_list" = ""; then
11450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11452 am__universal=false
11453 case " $depcc " in #(
11454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11457 for depmode in $am_compiler_list; do
11458 # Setup a source with many dependencies, because some compilers
11459 # like to wrap large dependency lists on column 80 (with \), and
11460 # we should not choose a depcomp mode which is confused by this.
11462 # We need to recreate these files for each test, as the compiler may
11463 # overwrite some of them when testing with obscure command lines.
11464 # This happens at least with the AIX C compiler.
11466 for i in 1 2 3 4 5 6; do
11467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11469 # Solaris 8's {/usr,}/bin/sh.
11470 touch sub/conftst$i.h
11472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11475 # mode. It turns out that the SunPro C++ compiler does not properly
11476 # handle `-M -o', and we need to detect this. Also, some Intel
11477 # versions had trouble with output in subdirs
11478 am__obj=sub/conftest.${OBJEXT-o}
11479 am__minus_obj="-o $am__obj"
11482 # This depmode causes a compiler race in universal mode.
11483 test "$am__universal" = false || continue
11486 # after this tag, mechanisms are not by side-effect, so they'll
11487 # only be used when explicitly requested
11488 if test "x$enable_dependency_tracking" = xyes; then
11494 msvisualcpp | msvcmsys)
11495 # This compiler won't grok `-c -o', but also, the minuso test has
11496 # not run yet. These depmodes are late enough in the game, and
11497 # so weak that their functioning should not be impacted.
11498 am__obj=conftest.${OBJEXT-o}
11503 if depmode=$depmode \
11504 source=sub/conftest.c object=$am__obj \
11505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11507 >/dev/null 2>conftest.err &&
11508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11512 # icc doesn't choke on unknown options, it will just issue warnings
11513 # or remarks (even with -Werror). So we grep stderr for any message
11514 # that says an option was ignored or not supported.
11515 # When given -MP, icc 7.0 and 7.1 complain thusly:
11516 # icc: Command line warning: ignoring option '-M'; no argument required
11517 # The diagnosis changed in icc 8.0:
11518 # icc: Command line remark: option '-MP' not supported
11519 if (grep 'ignoring option' conftest.err ||
11520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11521 am_cv_CXX_dependencies_compiler_type=$depmode
11528 rm -rf conftest.dir
11530 am_cv_CXX_dependencies_compiler_type=none
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11535 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11536 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11539 test "x$enable_dependency_tracking" != xno \
11540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11541 am__fastdepCXX_TRUE=
11542 am__fastdepCXX_FALSE='#'
11544 am__fastdepCXX_TRUE='#'
11545 am__fastdepCXX_FALSE=
11549 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11550 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11551 (test "X$CXX" != "Xg++"))) ; then
11553 ac_cpp='$CXXCPP $CPPFLAGS'
11554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11558 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11559 if test -z "$CXXCPP"; then
11560 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
11563 # Double quotes because CXXCPP needs to be expanded
11564 for CXXCPP in "$CXX -E" "/lib/cpp"
11566 ac_preproc_ok=false
11567 for ac_cxx_preproc_warn_flag in '' yes
11569 # Use a header file that comes with gcc, so configuring glibc
11570 # with a fresh cross-compiler works.
11571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11572 # <limits.h> exists even on freestanding compilers.
11573 # On the NeXT, cc -E runs the code through the compiler's parser,
11574 # not just through cpp. "Syntax error" is here to catch this case.
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11578 # include <limits.h>
11580 # include <assert.h>
11584 if ac_fn_cxx_try_cpp "$LINENO"; then :
11587 # Broken: fails on valid input.
11590 rm -f conftest.err conftest.$ac_ext
11592 # OK, works on sane cases. Now check whether nonexistent headers
11593 # can be detected and how.
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 #include <ac_nonexistent.h>
11598 if ac_fn_cxx_try_cpp "$LINENO"; then :
11599 # Broken: success on invalid input.
11602 # Passes both tests.
11606 rm -f conftest.err conftest.$ac_ext
11609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11610 rm -f conftest.err conftest.$ac_ext
11611 if $ac_preproc_ok; then :
11616 ac_cv_prog_CXXCPP=$CXXCPP
11619 CXXCPP=$ac_cv_prog_CXXCPP
11621 ac_cv_prog_CXXCPP=$CXXCPP
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11624 $as_echo "$CXXCPP" >&6; }
11625 ac_preproc_ok=false
11626 for ac_cxx_preproc_warn_flag in '' yes
11628 # Use a header file that comes with gcc, so configuring glibc
11629 # with a fresh cross-compiler works.
11630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11631 # <limits.h> exists even on freestanding compilers.
11632 # On the NeXT, cc -E runs the code through the compiler's parser,
11633 # not just through cpp. "Syntax error" is here to catch this case.
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11637 # include <limits.h>
11639 # include <assert.h>
11643 if ac_fn_cxx_try_cpp "$LINENO"; then :
11646 # Broken: fails on valid input.
11649 rm -f conftest.err conftest.$ac_ext
11651 # OK, works on sane cases. Now check whether nonexistent headers
11652 # can be detected and how.
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11655 #include <ac_nonexistent.h>
11657 if ac_fn_cxx_try_cpp "$LINENO"; then :
11658 # Broken: success on invalid input.
11661 # Passes both tests.
11665 rm -f conftest.err conftest.$ac_ext
11668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11669 rm -f conftest.err conftest.$ac_ext
11670 if $ac_preproc_ok; then :
11673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11675 _lt_caught_CXX_error=yes; }
11679 ac_cpp='$CPP $CPPFLAGS'
11680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11685 _lt_caught_CXX_error=yes
11693 enable_win32_dll=yes
11696 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11697 if test -n "$ac_tool_prefix"; then
11698 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11699 set dummy ${ac_tool_prefix}as; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_AS+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11705 if test -n "$AS"; then
11706 ac_cv_prog_AS="$AS" # Let the user override the test.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_AS="${ac_tool_prefix}as"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 if test -n "$AS"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11728 $as_echo "$AS" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11736 if test -z "$ac_cv_prog_AS"; then
11738 # Extract the first word of "as", so it can be a program name with args.
11739 set dummy as; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11745 if test -n "$ac_ct_AS"; then
11746 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_prog_ac_ct_AS="as"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11766 if test -n "$ac_ct_AS"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11768 $as_echo "$ac_ct_AS" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11774 if test "x$ac_ct_AS" = x; then
11777 case $cross_compiling:$ac_tool_warned in
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11781 ac_tool_warned=yes ;;
11786 AS="$ac_cv_prog_AS"
11789 if test -n "$ac_tool_prefix"; then
11790 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11791 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11797 if test -n "$DLLTOOL"; then
11798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11817 DLLTOOL=$ac_cv_prog_DLLTOOL
11818 if test -n "$DLLTOOL"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11820 $as_echo "$DLLTOOL" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test -z "$ac_cv_prog_DLLTOOL"; then
11829 ac_ct_DLLTOOL=$DLLTOOL
11830 # Extract the first word of "dlltool", so it can be a program name with args.
11831 set dummy dlltool; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11837 if test -n "$ac_ct_DLLTOOL"; then
11838 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11858 if test -n "$ac_ct_DLLTOOL"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11860 $as_echo "$ac_ct_DLLTOOL" >&6; }
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11866 if test "x$ac_ct_DLLTOOL" = x; then
11869 case $cross_compiling:$ac_tool_warned in
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873 ac_tool_warned=yes ;;
11875 DLLTOOL=$ac_ct_DLLTOOL
11878 DLLTOOL="$ac_cv_prog_DLLTOOL"
11881 if test -n "$ac_tool_prefix"; then
11882 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11883 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11889 if test -n "$OBJDUMP"; then
11890 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 OBJDUMP=$ac_cv_prog_OBJDUMP
11910 if test -n "$OBJDUMP"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11912 $as_echo "$OBJDUMP" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11920 if test -z "$ac_cv_prog_OBJDUMP"; then
11921 ac_ct_OBJDUMP=$OBJDUMP
11922 # Extract the first word of "objdump", so it can be a program name with args.
11923 set dummy objdump; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11929 if test -n "$ac_ct_OBJDUMP"; then
11930 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11950 if test -n "$ac_ct_OBJDUMP"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11952 $as_echo "$ac_ct_OBJDUMP" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11958 if test "x$ac_ct_OBJDUMP" = x; then
11961 case $cross_compiling:$ac_tool_warned in
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965 ac_tool_warned=yes ;;
11967 OBJDUMP=$ac_ct_OBJDUMP
11970 OBJDUMP="$ac_cv_prog_OBJDUMP"
11976 test -z "$AS" && AS=as
11982 test -z "$DLLTOOL" && DLLTOOL=dlltool
11988 test -z "$OBJDUMP" && OBJDUMP=objdump
11998 # Check whether --enable-shared was given.
11999 if test "${enable_shared+set}" = set; then :
12000 enableval=$enable_shared; p=${PACKAGE-default}
12002 yes) enable_shared=yes ;;
12003 no) enable_shared=no ;;
12006 # Look at the argument we got. We use all the common list separators.
12007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12008 for pkg in $enableval; do
12010 if test "X$pkg" = "X$p"; then
12029 # Check whether --enable-static was given.
12030 if test "${enable_static+set}" = set; then :
12031 enableval=$enable_static; p=${PACKAGE-default}
12033 yes) enable_static=yes ;;
12034 no) enable_static=no ;;
12037 # Look at the argument we got. We use all the common list separators.
12038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039 for pkg in $enableval; do
12041 if test "X$pkg" = "X$p"; then
12061 # Check whether --with-pic was given.
12062 if test "${with_pic+set}" = set; then :
12063 withval=$with_pic; pic_mode="$withval"
12069 test -z "$pic_mode" && pic_mode=default
12077 # Check whether --enable-fast-install was given.
12078 if test "${enable_fast_install+set}" = set; then :
12079 enableval=$enable_fast_install; p=${PACKAGE-default}
12081 yes) enable_fast_install=yes ;;
12082 no) enable_fast_install=no ;;
12084 enable_fast_install=no
12085 # Look at the argument we got. We use all the common list separators.
12086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12087 for pkg in $enableval; do
12089 if test "X$pkg" = "X$p"; then
12090 enable_fast_install=yes
12097 enable_fast_install=yes
12110 # This can be used to rebuild libtool when needed
12111 LIBTOOL_DEPS="$ltmain"
12113 # Always use our own libtool.
12114 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12140 test -z "$LN_S" && LN_S="ln -s"
12155 if test -n "${ZSH_VERSION+set}" ; then
12156 setopt NO_GLOB_SUBST
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12160 $as_echo_n "checking for objdir... " >&6; }
12161 if test "${lt_cv_objdir+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
12164 rm -f .libs 2>/dev/null
12165 mkdir .libs 2>/dev/null
12166 if test -d .libs; then
12169 # MS-DOS does not allow filenames that begin with a dot.
12172 rmdir .libs 2>/dev/null
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12175 $as_echo "$lt_cv_objdir" >&6; }
12176 objdir=$lt_cv_objdir
12182 cat >>confdefs.h <<_ACEOF
12183 #define LT_OBJDIR "$lt_cv_objdir/"
12204 # AIX sometimes has problems with the GCC collect2 program. For some
12205 # reason, if we set the COLLECT_NAMES environment variable, the problems
12206 # vanish in a puff of smoke.
12207 if test "X${COLLECT_NAMES+set}" != Xset; then
12209 export COLLECT_NAMES
12214 # Sed substitution that helps us do robust quoting. It backslashifies
12215 # metacharacters that are still active within double-quoted strings.
12216 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12218 # Same as above, but do not quote variable references.
12219 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12221 # Sed substitution to delay expansion of an escaped shell variable in a
12222 # double_quote_subst'ed string.
12223 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12225 # Sed substitution to delay expansion of an escaped single quote.
12226 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12228 # Sed substitution to avoid accidental globbing in evaled expressions
12229 no_glob_subst='s/\*/\\\*/g'
12231 # Global variables:
12233 can_build_shared=yes
12235 # All known linkers require a `.a' archive for static linking (except MSVC,
12236 # which needs '.lib').
12239 with_gnu_ld="$lt_cv_prog_gnu_ld"
12242 old_CFLAGS="$CFLAGS"
12244 # Set sane defaults for various variables
12245 test -z "$CC" && CC=cc
12246 test -z "$LTCC" && LTCC=$CC
12247 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12248 test -z "$LD" && LD=ld
12249 test -z "$ac_objext" && ac_objext=o
12251 for cc_temp in $compiler""; do
12253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12259 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12262 # Only perform the check for file, if the check method requires it
12263 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12264 case $deplibs_check_method in
12266 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12268 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12269 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
12274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12277 lt_save_MAGIC_CMD="$MAGIC_CMD"
12278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12280 for ac_dir in $ac_dummy; do
12282 test -z "$ac_dir" && ac_dir=.
12283 if test -f $ac_dir/${ac_tool_prefix}file; then
12284 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12285 if test -n "$file_magic_test_file"; then
12286 case $deplibs_check_method in
12288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12291 $EGREP "$file_magic_regex" > /dev/null; then
12296 *** Warning: the command libtool uses to detect shared libraries,
12297 *** $file_magic_cmd, produces output that libtool cannot recognize.
12298 *** The result is that libtool may fail to recognize shared libraries
12299 *** as such. This will affect the creation of libtool libraries that
12300 *** depend on shared libraries, but programs linked with such libtool
12301 *** libraries will work regardless of this problem. Nevertheless, you
12302 *** may want to report the problem to your system manager and/or to
12303 *** bug-libtool@gnu.org
12313 MAGIC_CMD="$lt_save_MAGIC_CMD"
12318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12319 if test -n "$MAGIC_CMD"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12321 $as_echo "$MAGIC_CMD" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12331 if test -z "$lt_cv_path_MAGIC_CMD"; then
12332 if test -n "$ac_tool_prefix"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12334 $as_echo_n "checking for file... " >&6; }
12335 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12336 $as_echo_n "(cached) " >&6
12340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12343 lt_save_MAGIC_CMD="$MAGIC_CMD"
12344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12346 for ac_dir in $ac_dummy; do
12348 test -z "$ac_dir" && ac_dir=.
12349 if test -f $ac_dir/file; then
12350 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12351 if test -n "$file_magic_test_file"; then
12352 case $deplibs_check_method in
12354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12357 $EGREP "$file_magic_regex" > /dev/null; then
12362 *** Warning: the command libtool uses to detect shared libraries,
12363 *** $file_magic_cmd, produces output that libtool cannot recognize.
12364 *** The result is that libtool may fail to recognize shared libraries
12365 *** as such. This will affect the creation of libtool libraries that
12366 *** depend on shared libraries, but programs linked with such libtool
12367 *** libraries will work regardless of this problem. Nevertheless, you
12368 *** may want to report the problem to your system manager and/or to
12369 *** bug-libtool@gnu.org
12379 MAGIC_CMD="$lt_save_MAGIC_CMD"
12384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12385 if test -n "$MAGIC_CMD"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12387 $as_echo "$MAGIC_CMD" >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12403 # Use C for the default configuration in the libtool script
12407 ac_cpp='$CPP $CPPFLAGS'
12408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12413 # Source file extension for C test sources.
12416 # Object file extension for compiled C test sources.
12420 # Code to be used in simple compile tests
12421 lt_simple_compile_test_code="int some_variable = 0;"
12423 # Code to be used in simple link tests
12424 lt_simple_link_test_code='int main(){return(0);}'
12432 # If no C compiler was specified, use CC.
12435 # If no C compiler flags were specified, use CFLAGS.
12436 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12438 # Allow CC to be a program name with arguments.
12441 # Save the default compiler, since it gets overwritten when the other
12442 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12443 compiler_DEFAULT=$CC
12445 # save warnings/boilerplate of simple test code
12446 ac_outfile=conftest.$ac_objext
12447 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12448 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12449 _lt_compiler_boilerplate=`cat conftest.err`
12452 ac_outfile=conftest.$ac_objext
12453 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12454 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12455 _lt_linker_boilerplate=`cat conftest.err`
12460 ## There is no encapsulation within the following macros, do not change
12461 ## the running order or otherwise move them around unless you know exactly
12462 ## what you are doing...
12463 if test -n "$compiler"; then
12465 lt_prog_compiler_no_builtin_flag=
12467 if test "$GCC" = yes; then
12468 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12471 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12472 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12475 lt_cv_prog_compiler_rtti_exceptions=no
12476 ac_outfile=conftest.$ac_objext
12477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12478 lt_compiler_flag="-fno-rtti -fno-exceptions"
12479 # Insert the option either (1) after the last *FLAGS variable, or
12480 # (2) before a word containing "conftest.", or (3) at the end.
12481 # Note that $ac_compile itself does not contain backslashes and begins
12482 # with a dollar sign (not a hyphen), so the echo should work correctly.
12483 # The option is referenced via a variable to avoid confusing sed.
12484 lt_compile=`echo "$ac_compile" | $SED \
12485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12487 -e 's:$: $lt_compiler_flag:'`
12488 (eval echo "\"\$as_me:12488: $lt_compile\"" >&5)
12489 (eval "$lt_compile" 2>conftest.err)
12491 cat conftest.err >&5
12492 echo "$as_me:12492: \$? = $ac_status" >&5
12493 if (exit $ac_status) && test -s "$ac_outfile"; then
12494 # The compiler can only warn and ignore the option if not recognized
12495 # So say no if there are warnings other than the usual output.
12496 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12499 lt_cv_prog_compiler_rtti_exceptions=yes
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12506 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12509 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12521 lt_prog_compiler_wl=
12522 lt_prog_compiler_pic=
12523 lt_prog_compiler_static=
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12526 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12528 if test "$GCC" = yes; then
12529 lt_prog_compiler_wl='-Wl,'
12530 lt_prog_compiler_static='-static'
12534 # All AIX code is PIC.
12535 if test "$host_cpu" = ia64; then
12536 # AIX 5 now supports IA64 processor
12537 lt_prog_compiler_static='-Bstatic'
12544 # see comment about AmigaOS4 .so support
12545 lt_prog_compiler_pic='-fPIC'
12548 # FIXME: we need at least 68020 code to build shared libraries, but
12549 # adding the `-m68020' flag to GCC prevents building anything better,
12551 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12556 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12557 # PIC is the default for these OSes.
12560 mingw* | cygwin* | pw32* | os2* | cegcc*)
12561 # This hack is so that the source file can tell whether it is being
12562 # built for inclusion in a dll (and should export symbols for example).
12563 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12564 # (--disable-auto-import) libraries
12565 lt_prog_compiler_pic='-DDLL_EXPORT'
12568 darwin* | rhapsody*)
12569 # PIC is the default on this platform
12570 # Common symbols not allowed in MH_DYLIB files
12571 lt_prog_compiler_pic='-fno-common'
12575 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12576 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12577 # sets the default TLS model and affects inlining.
12583 lt_prog_compiler_pic='-fPIC'
12589 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12590 # Instead, we relocate shared libraries at runtime.
12594 # Just because we use GCC doesn't mean we suddenly get shared libraries
12595 # on systems that don't support them.
12596 lt_prog_compiler_can_build_shared=no
12601 # QNX uses GNU C++, but need to define -shared option too, otherwise
12602 # it will coredump.
12603 lt_prog_compiler_pic='-fPIC -shared'
12607 if test -d /usr/nec; then
12608 lt_prog_compiler_pic=-Kconform_pic
12613 lt_prog_compiler_pic='-fPIC'
12617 # PORTME Check for flag to pass linker flags through the system compiler.
12620 lt_prog_compiler_wl='-Wl,'
12621 if test "$host_cpu" = ia64; then
12622 # AIX 5 now supports IA64 processor
12623 lt_prog_compiler_static='-Bstatic'
12625 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12629 mingw* | cygwin* | pw32* | os2* | cegcc*)
12630 # This hack is so that the source file can tell whether it is being
12631 # built for inclusion in a dll (and should export symbols for example).
12632 lt_prog_compiler_pic='-DDLL_EXPORT'
12635 hpux9* | hpux10* | hpux11*)
12636 lt_prog_compiler_wl='-Wl,'
12637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12638 # not for PA HP-UX.
12644 lt_prog_compiler_pic='+Z'
12647 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12648 lt_prog_compiler_static='${wl}-a ${wl}archive'
12651 irix5* | irix6* | nonstopux*)
12652 lt_prog_compiler_wl='-Wl,'
12653 # PIC (with -KPIC) is the default.
12654 lt_prog_compiler_static='-non_shared'
12657 linux* | k*bsd*-gnu)
12658 case $cc_basename in
12659 # old Intel for x86_64 which still supported -KPIC.
12661 lt_prog_compiler_wl='-Wl,'
12662 lt_prog_compiler_pic='-KPIC'
12663 lt_prog_compiler_static='-static'
12665 # icc used to be incompatible with GCC.
12666 # ICC 10 doesn't accept -KPIC any more.
12668 lt_prog_compiler_wl='-Wl,'
12669 lt_prog_compiler_pic='-fPIC'
12670 lt_prog_compiler_static='-static'
12672 # Lahey Fortran 8.1.
12674 lt_prog_compiler_wl='-Wl,'
12675 lt_prog_compiler_pic='--shared'
12676 lt_prog_compiler_static='--static'
12678 pgcc* | pgf77* | pgf90* | pgf95*)
12679 # Portland Group compilers (*not* the Pentium gcc compiler,
12680 # which looks to be a dead project)
12681 lt_prog_compiler_wl='-Wl,'
12682 lt_prog_compiler_pic='-fpic'
12683 lt_prog_compiler_static='-Bstatic'
12686 lt_prog_compiler_wl='-Wl,'
12687 # All Alpha code is PIC.
12688 lt_prog_compiler_static='-non_shared'
12691 # IBM XL C 8.0/Fortran 10.1 on PPC
12692 lt_prog_compiler_wl='-Wl,'
12693 lt_prog_compiler_pic='-qpic'
12694 lt_prog_compiler_static='-qstaticlink'
12697 case `$CC -V 2>&1 | sed 5q` in
12700 lt_prog_compiler_pic='-KPIC'
12701 lt_prog_compiler_static='-Bstatic'
12702 lt_prog_compiler_wl='-Wl,'
12705 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12706 lt_prog_compiler_pic='-KPIC'
12707 lt_prog_compiler_static='-Bstatic'
12708 lt_prog_compiler_wl=''
12716 lt_prog_compiler_pic='-KPIC'
12717 lt_prog_compiler_static='-Bstatic'
12721 # QNX uses GNU C++, but need to define -shared option too, otherwise
12722 # it will coredump.
12723 lt_prog_compiler_pic='-fPIC -shared'
12726 osf3* | osf4* | osf5*)
12727 lt_prog_compiler_wl='-Wl,'
12728 # All OSF/1 code is PIC.
12729 lt_prog_compiler_static='-non_shared'
12733 lt_prog_compiler_static='-non_shared'
12737 lt_prog_compiler_pic='-KPIC'
12738 lt_prog_compiler_static='-Bstatic'
12739 case $cc_basename in
12740 f77* | f90* | f95*)
12741 lt_prog_compiler_wl='-Qoption ld ';;
12743 lt_prog_compiler_wl='-Wl,';;
12748 lt_prog_compiler_wl='-Qoption ld '
12749 lt_prog_compiler_pic='-PIC'
12750 lt_prog_compiler_static='-Bstatic'
12753 sysv4 | sysv4.2uw2* | sysv4.3*)
12754 lt_prog_compiler_wl='-Wl,'
12755 lt_prog_compiler_pic='-KPIC'
12756 lt_prog_compiler_static='-Bstatic'
12760 if test -d /usr/nec ;then
12761 lt_prog_compiler_pic='-Kconform_pic'
12762 lt_prog_compiler_static='-Bstatic'
12766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12767 lt_prog_compiler_wl='-Wl,'
12768 lt_prog_compiler_pic='-KPIC'
12769 lt_prog_compiler_static='-Bstatic'
12773 lt_prog_compiler_wl='-Wl,'
12774 lt_prog_compiler_can_build_shared=no
12778 lt_prog_compiler_pic='-pic'
12779 lt_prog_compiler_static='-Bstatic'
12783 lt_prog_compiler_can_build_shared=no
12789 # For platforms which do not support PIC, -DPIC is meaningless:
12791 lt_prog_compiler_pic=
12794 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12798 $as_echo "$lt_prog_compiler_pic" >&6; }
12806 # Check to make sure the PIC flag actually works.
12808 if test -n "$lt_prog_compiler_pic"; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12810 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12811 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
12814 lt_cv_prog_compiler_pic_works=no
12815 ac_outfile=conftest.$ac_objext
12816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12817 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12818 # Insert the option either (1) after the last *FLAGS variable, or
12819 # (2) before a word containing "conftest.", or (3) at the end.
12820 # Note that $ac_compile itself does not contain backslashes and begins
12821 # with a dollar sign (not a hyphen), so the echo should work correctly.
12822 # The option is referenced via a variable to avoid confusing sed.
12823 lt_compile=`echo "$ac_compile" | $SED \
12824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12826 -e 's:$: $lt_compiler_flag:'`
12827 (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
12828 (eval "$lt_compile" 2>conftest.err)
12830 cat conftest.err >&5
12831 echo "$as_me:12831: \$? = $ac_status" >&5
12832 if (exit $ac_status) && test -s "$ac_outfile"; then
12833 # The compiler can only warn and ignore the option if not recognized
12834 # So say no if there are warnings other than the usual output.
12835 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12838 lt_cv_prog_compiler_pic_works=yes
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12845 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12847 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12848 case $lt_prog_compiler_pic in
12850 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12853 lt_prog_compiler_pic=
12854 lt_prog_compiler_can_build_shared=no
12865 # Check to make sure the static flag actually works.
12867 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12869 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12870 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12873 lt_cv_prog_compiler_static_works=no
12874 save_LDFLAGS="$LDFLAGS"
12875 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12876 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12877 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12878 # The linker can only warn and ignore the option if not recognized
12879 # So say no if there are warnings
12880 if test -s conftest.err; then
12881 # Append any errors to the config.log.
12882 cat conftest.err 1>&5
12883 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12885 if diff conftest.exp conftest.er2 >/dev/null; then
12886 lt_cv_prog_compiler_static_works=yes
12889 lt_cv_prog_compiler_static_works=yes
12893 LDFLAGS="$save_LDFLAGS"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12897 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12899 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12902 lt_prog_compiler_static=
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12912 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12916 lt_cv_prog_compiler_c_o=no
12917 $RM -r conftest 2>/dev/null
12921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12923 lt_compiler_flag="-o out/conftest2.$ac_objext"
12924 # Insert the option either (1) after the last *FLAGS variable, or
12925 # (2) before a word containing "conftest.", or (3) at the end.
12926 # Note that $ac_compile itself does not contain backslashes and begins
12927 # with a dollar sign (not a hyphen), so the echo should work correctly.
12928 lt_compile=`echo "$ac_compile" | $SED \
12929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12931 -e 's:$: $lt_compiler_flag:'`
12932 (eval echo "\"\$as_me:12932: $lt_compile\"" >&5)
12933 (eval "$lt_compile" 2>out/conftest.err)
12935 cat out/conftest.err >&5
12936 echo "$as_me:12936: \$? = $ac_status" >&5
12937 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12939 # The compiler can only warn and ignore the option if not recognized
12940 # So say no if there are warnings
12941 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12942 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12943 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12944 lt_cv_prog_compiler_c_o=yes
12949 # SGI C++ compiler will create directory out/ii_files/ for
12950 # template instantiation
12951 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12952 $RM out/* && rmdir out
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12959 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12968 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12971 lt_cv_prog_compiler_c_o=no
12972 $RM -r conftest 2>/dev/null
12976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12978 lt_compiler_flag="-o out/conftest2.$ac_objext"
12979 # Insert the option either (1) after the last *FLAGS variable, or
12980 # (2) before a word containing "conftest.", or (3) at the end.
12981 # Note that $ac_compile itself does not contain backslashes and begins
12982 # with a dollar sign (not a hyphen), so the echo should work correctly.
12983 lt_compile=`echo "$ac_compile" | $SED \
12984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12986 -e 's:$: $lt_compiler_flag:'`
12987 (eval echo "\"\$as_me:12987: $lt_compile\"" >&5)
12988 (eval "$lt_compile" 2>out/conftest.err)
12990 cat out/conftest.err >&5
12991 echo "$as_me:12991: \$? = $ac_status" >&5
12992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12994 # The compiler can only warn and ignore the option if not recognized
12995 # So say no if there are warnings
12996 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12999 lt_cv_prog_compiler_c_o=yes
13004 # SGI C++ compiler will create directory out/ii_files/ for
13005 # template instantiation
13006 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13007 $RM out/* && rmdir out
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13019 hard_links="nottested"
13020 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13021 # do not overwrite the value of need_locks provided by the user
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13023 $as_echo_n "checking if we can lock with hard links... " >&6; }
13026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13028 ln conftest.a conftest.b 2>&5 || hard_links=no
13029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13031 $as_echo "$hard_links" >&6; }
13032 if test "$hard_links" = no; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13034 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13047 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13050 allow_undefined_flag=
13051 always_export_symbols=no
13053 archive_expsym_cmds=
13054 compiler_needs_object=no
13055 enable_shared_with_static_runtimes=no
13056 export_dynamic_flag_spec=
13057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13058 hardcode_automatic=no
13060 hardcode_direct_absolute=no
13061 hardcode_libdir_flag_spec=
13062 hardcode_libdir_flag_spec_ld=
13063 hardcode_libdir_separator=
13064 hardcode_minus_L=no
13065 hardcode_shlibpath_var=unsupported
13067 link_all_deplibs=unknown
13069 module_expsym_cmds=
13070 old_archive_from_new_cmds=
13071 old_archive_from_expsyms_cmds=
13072 thread_safe_flag_spec=
13073 whole_archive_flag_spec=
13074 # include_expsyms should be a list of space-separated symbols to be *always*
13075 # included in the symbol list
13077 # exclude_expsyms can be an extended regexp of symbols to exclude
13078 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13079 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13080 # as well as any symbol that contains `d'.
13081 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13082 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13083 # platforms (ab)use it in PIC code, but their linkers get confused if
13084 # the symbol is explicitly referenced. Since portable code cannot
13085 # rely on this symbol name, it's probably fine to never include it in
13086 # preloaded symbol tables.
13087 # Exclude shared library initialization/finalization symbols.
13088 extract_expsyms_cmds=
13091 cygwin* | mingw* | pw32* | cegcc*)
13092 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13093 # When not using gcc, we currently assume that we are using
13094 # Microsoft Visual C++.
13095 if test "$GCC" != yes; then
13100 # we just hope/assume this is gcc and not c89 (= MSVC++)
13109 if test "$with_gnu_ld" = yes; then
13110 # If archive_cmds runs LD, not CC, wlarc should be empty
13113 # Set some defaults for GNU ld with shared library support. These
13114 # are reset later if shared libraries are not supported. Putting them
13115 # here allows them to be overridden if necessary.
13116 runpath_var=LD_RUN_PATH
13117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13118 export_dynamic_flag_spec='${wl}--export-dynamic'
13119 # ancient GNU ld didn't support --whole-archive et. al.
13120 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13121 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13123 whole_archive_flag_spec=
13125 supports_anon_versioning=no
13126 case `$LD -v 2>&1` in
13127 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13128 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13129 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13130 *\ 2.11.*) ;; # other 2.11 versions
13131 *) supports_anon_versioning=yes ;;
13134 # See if GNU ld supports shared libraries.
13137 # On AIX/PPC, the GNU linker is very broken
13138 if test "$host_cpu" != ia64; then
13142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13143 *** to be unable to reliably create shared libraries on AIX.
13144 *** Therefore, libtool is disabling shared libraries support. If you
13145 *** really care for shared libraries, you may want to modify your PATH
13146 *** so that a non-GNU linker is found, and then restart.
13155 # see comment about AmigaOS4 .so support
13156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13157 archive_expsym_cmds=''
13160 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)'
13161 hardcode_libdir_flag_spec='-L$libdir'
13162 hardcode_minus_L=yes
13168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13169 allow_undefined_flag=unsupported
13170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13171 # support --undefined. This deserves some investigation. FIXME
13172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13178 cygwin* | mingw* | pw32* | cegcc*)
13179 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13180 # as there is no search path for DLLs.
13181 hardcode_libdir_flag_spec='-L$libdir'
13182 allow_undefined_flag=unsupported
13183 always_export_symbols=no
13184 enable_shared_with_static_runtimes=yes
13185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13187 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13189 # If the export-symbols file already is a .def file (1st line
13190 # is EXPORTS), use it as is; otherwise, prepend...
13191 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13192 cp $export_symbols $output_objdir/$soname.def;
13194 echo EXPORTS > $output_objdir/$soname.def;
13195 cat $export_symbols >> $output_objdir/$soname.def;
13197 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13205 hardcode_shlibpath_var=no
13206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13207 export_dynamic_flag_spec='${wl}-E'
13208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13209 # Instead, shared libraries are loaded at an image base (0x10000000 by
13210 # default) and relocated if they conflict, which is a slow very memory
13211 # consuming and fragmenting process. To avoid this, we pick a random,
13212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13215 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'
13218 gnu* | linux* | tpf* | k*bsd*-gnu)
13220 if test "$host_os" = linux-dietlibc; then
13221 case $cc_basename in
13222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13226 && test "$tmp_diet" = no
13229 tmp_sharedflag='-shared'
13230 case $cc_basename,$host_cpu in
13231 pgcc*) # Portland Group C compiler
13232 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13233 tmp_addflag=' $pic_flag'
13235 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13236 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13237 tmp_addflag=' $pic_flag -Mnomain' ;;
13238 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13239 tmp_addflag=' -i_dynamic' ;;
13240 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13241 tmp_addflag=' -i_dynamic -nofor_main' ;;
13242 ifc* | ifort*) # Intel Fortran compiler
13243 tmp_addflag=' -nofor_main' ;;
13244 lf95*) # Lahey Fortran 8.1
13245 whole_archive_flag_spec=
13246 tmp_sharedflag='--shared' ;;
13247 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13248 tmp_sharedflag='-qmkshrobj'
13251 case `$CC -V 2>&1 | sed 5q` in
13252 *Sun\ C*) # Sun C 5.9
13253 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13254 compiler_needs_object=yes
13255 tmp_sharedflag='-G' ;;
13256 *Sun\ F*) # Sun Fortran 8.3
13257 tmp_sharedflag='-G' ;;
13259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 if test "x$supports_anon_versioning" = xyes; then
13262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264 echo "local: *; };" >> $output_objdir/$libname.ver~
13265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13268 case $cc_basename in
13270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13272 hardcode_libdir_flag_spec=
13273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13274 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13275 if test "x$supports_anon_versioning" = xyes; then
13276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13278 echo "local: *; };" >> $output_objdir/$libname.ver~
13279 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13304 *** create shared libraries on Solaris systems. Therefore, libtool
13305 *** is disabling shared libraries support. We urge you to upgrade GNU
13306 *** binutils to release 2.9.1 or newer. Another option is to modify
13307 *** your PATH or compiler configuration so that the native linker is
13308 *** used, and then restart.
13311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13320 case `$LD -v 2>&1` in
13321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13326 *** reliably create shared libraries on SCO systems. Therefore, libtool
13327 *** is disabling shared libraries support. We urge you to upgrade GNU
13328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13329 *** your PATH or compiler configuration so that the native linker is
13330 *** used, and then restart.
13335 # For security reasons, it is highly recommended that you always
13336 # use absolute paths for naming shared libraries, and exclude the
13337 # DT_RUNPATH tag from executables and libraries. But doing so
13338 # requires that you compile everything twice, which is a pain.
13339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13353 hardcode_direct=yes
13354 hardcode_shlibpath_var=no
13358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13367 if test "$ld_shlibs" = no; then
13369 hardcode_libdir_flag_spec=
13370 export_dynamic_flag_spec=
13371 whole_archive_flag_spec=
13374 # PORTME fill in a description of your system's linker (not GNU ld)
13377 allow_undefined_flag=unsupported
13378 always_export_symbols=yes
13379 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'
13380 # Note: this linker hardcodes the directories in LIBPATH if there
13381 # are no directories specified by -L.
13382 hardcode_minus_L=yes
13383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13384 # Neither direct hardcoding nor static linking is supported with a
13386 hardcode_direct=unsupported
13391 if test "$host_cpu" = ia64; then
13392 # On IA64, the linker does run time linking by default, so we don't
13393 # have to do anything special.
13394 aix_use_runtimelinking=no
13395 exp_sym_flag='-Bexport'
13398 # If we're using GNU nm, then we don't want the "-C" option.
13399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13400 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13401 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13403 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'
13405 aix_use_runtimelinking=no
13407 # Test if we are trying to use run time linking or normal
13408 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13409 # need to do runtime linking.
13410 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13411 for ld_flag in $LDFLAGS; do
13412 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13413 aix_use_runtimelinking=yes
13420 exp_sym_flag='-bexport'
13421 no_entry_flag='-bnoentry'
13424 # When large executables or shared objects are built, AIX ld can
13425 # have problems creating the table of contents. If linking a library
13426 # or program results in "error TOC overflow" add -mminimal-toc to
13427 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13428 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13431 hardcode_direct=yes
13432 hardcode_direct_absolute=yes
13433 hardcode_libdir_separator=':'
13434 link_all_deplibs=yes
13435 file_list_spec='${wl}-f,'
13437 if test "$GCC" = yes; then
13438 case $host_os in aix4.[012]|aix4.[012].*)
13439 # We only want to do this on AIX 4.2 and lower, the check
13440 # below for broken collect2 doesn't work under 4.3+
13441 collect2name=`${CC} -print-prog-name=collect2`
13442 if test -f "$collect2name" &&
13443 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13445 # We have reworked collect2
13448 # We have old collect2
13449 hardcode_direct=unsupported
13450 # It fails to find uninstalled libraries when the uninstalled
13451 # path is not listed in the libpath. Setting hardcode_minus_L
13452 # to unsupported forces relinking
13453 hardcode_minus_L=yes
13454 hardcode_libdir_flag_spec='-L$libdir'
13455 hardcode_libdir_separator=
13459 shared_flag='-shared'
13460 if test "$aix_use_runtimelinking" = yes; then
13461 shared_flag="$shared_flag "'${wl}-G'
13465 if test "$host_cpu" = ia64; then
13466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13467 # chokes on -Wl,-G. The following line is correct:
13470 if test "$aix_use_runtimelinking" = yes; then
13471 shared_flag='${wl}-G'
13473 shared_flag='${wl}-bM:SRE'
13478 export_dynamic_flag_spec='${wl}-bexpall'
13479 # It seems that -bexpall does not export symbols beginning with
13480 # underscore (_), so it is better to generate a list of symbols to export.
13481 always_export_symbols=yes
13482 if test "$aix_use_runtimelinking" = yes; then
13483 # Warning - without using the other runtime loading flags (-brtl),
13484 # -berok will link without error, but may produce a broken library.
13485 allow_undefined_flag='-berok'
13486 # Determine the default libpath from the value encoded in an
13487 # empty executable.
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13499 if ac_fn_c_try_link "$LINENO"; then :
13501 lt_aix_libpath_sed='
13502 /Import File Strings/,/^$/ {
13508 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13509 # Check for a 64-bit object if we didn't find anything.
13510 if test -z "$aix_libpath"; then
13511 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13518 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13519 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13521 if test "$host_cpu" = ia64; then
13522 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13523 allow_undefined_flag="-z nodefs"
13524 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"
13526 # Determine the default libpath from the value encoded in an
13527 # empty executable.
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13539 if ac_fn_c_try_link "$LINENO"; then :
13541 lt_aix_libpath_sed='
13542 /Import File Strings/,/^$/ {
13548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13549 # Check for a 64-bit object if we didn't find anything.
13550 if test -z "$aix_libpath"; then
13551 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13559 # Warning - without using the other run time loading flags,
13560 # -berok will link without error, but may produce a broken library.
13561 no_undefined_flag=' ${wl}-bernotok'
13562 allow_undefined_flag=' ${wl}-berok'
13563 # Exported symbols can be pulled into shared objects from archives
13564 whole_archive_flag_spec='$convenience'
13565 archive_cmds_need_lc=yes
13566 # This is similar to how AIX traditionally builds its shared libraries.
13567 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'
13575 # see comment about AmigaOS4 .so support
13576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13577 archive_expsym_cmds=''
13580 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)'
13581 hardcode_libdir_flag_spec='-L$libdir'
13582 hardcode_minus_L=yes
13588 export_dynamic_flag_spec=-rdynamic
13591 cygwin* | mingw* | pw32* | cegcc*)
13592 # When not using gcc, we currently assume that we are using
13593 # Microsoft Visual C++.
13594 # hardcode_libdir_flag_spec is actually meaningless, as there is
13595 # no search path for DLLs.
13596 hardcode_libdir_flag_spec=' '
13597 allow_undefined_flag=unsupported
13598 # Tell ltmain to make .lib files, not .a files.
13600 # Tell ltmain to make .dll files, not .so files.
13602 # FIXME: Setting linknames here is a bad hack.
13603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13604 # The linker will automatically build a .lib file if we build a DLL.
13605 old_archive_from_new_cmds='true'
13606 # FIXME: Should let the user specify the lib program.
13607 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13608 fix_srcfile_path='`cygpath -w "$srcfile"`'
13609 enable_shared_with_static_runtimes=yes
13612 darwin* | rhapsody*)
13615 archive_cmds_need_lc=no
13617 hardcode_automatic=yes
13618 hardcode_shlibpath_var=unsupported
13619 whole_archive_flag_spec=''
13620 link_all_deplibs=yes
13621 allow_undefined_flag="$_lt_dar_allow_undefined"
13622 case $cc_basename in
13623 ifort*) _lt_dar_can_shared=yes ;;
13624 *) _lt_dar_can_shared=$GCC ;;
13626 if test "$_lt_dar_can_shared" = "yes"; then
13627 output_verbose_link_cmd=echo
13628 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13629 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13630 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}"
13631 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}"
13640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641 hardcode_libdir_flag_spec='-L$libdir'
13642 hardcode_shlibpath_var=no
13649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13650 # support. Future versions do this automatically, but an explicit c++rt0.o
13651 # does not break anything, and helps significantly (at the cost of a little
13654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13655 hardcode_libdir_flag_spec='-R$libdir'
13656 hardcode_direct=yes
13657 hardcode_shlibpath_var=no
13660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13663 hardcode_direct=yes
13664 hardcode_minus_L=yes
13665 hardcode_shlibpath_var=no
13668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13669 freebsd* | dragonfly*)
13670 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13671 hardcode_libdir_flag_spec='-R$libdir'
13672 hardcode_direct=yes
13673 hardcode_shlibpath_var=no
13677 if test "$GCC" = yes; then
13678 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'
13680 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'
13682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13683 hardcode_libdir_separator=:
13684 hardcode_direct=yes
13686 # hardcode_minus_L: Not really in the search PATH,
13687 # but as the default location of the library.
13688 hardcode_minus_L=yes
13689 export_dynamic_flag_spec='${wl}-E'
13693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13696 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13698 if test "$with_gnu_ld" = no; then
13699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13700 hardcode_libdir_flag_spec_ld='+b $libdir'
13701 hardcode_libdir_separator=:
13702 hardcode_direct=yes
13703 hardcode_direct_absolute=yes
13704 export_dynamic_flag_spec='${wl}-E'
13705 # hardcode_minus_L: Not really in the search PATH,
13706 # but as the default location of the library.
13707 hardcode_minus_L=yes
13712 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13715 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13721 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13727 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13737 if test "$with_gnu_ld" = no; then
13738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13739 hardcode_libdir_separator=:
13744 hardcode_shlibpath_var=no
13747 hardcode_direct=yes
13748 hardcode_direct_absolute=yes
13749 export_dynamic_flag_spec='${wl}-E'
13751 # hardcode_minus_L: Not really in the search PATH,
13752 # but as the default location of the library.
13753 hardcode_minus_L=yes
13759 irix5* | irix6* | nonstopux*)
13760 if test "$GCC" = yes; then
13761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13762 # Try to use the -exported_symbol ld option, if it does not
13763 # work, assume that -exports_file does not work either and
13764 # implicitly export all symbols.
13765 save_LDFLAGS="$LDFLAGS"
13766 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13771 if ac_fn_c_try_link "$LINENO"; then :
13772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13775 rm -f core conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 LDFLAGS="$save_LDFLAGS"
13779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13782 archive_cmds_need_lc='no'
13783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13784 hardcode_libdir_separator=:
13786 link_all_deplibs=yes
13790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13793 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13795 hardcode_libdir_flag_spec='-R$libdir'
13796 hardcode_direct=yes
13797 hardcode_shlibpath_var=no
13801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13802 hardcode_direct=yes
13803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13804 hardcode_libdir_separator=:
13805 hardcode_shlibpath_var=no
13812 if test -f /usr/libexec/ld.so; then
13813 hardcode_direct=yes
13814 hardcode_shlibpath_var=no
13815 hardcode_direct_absolute=yes
13816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13818 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13820 export_dynamic_flag_spec='${wl}-E'
13823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_libdir_flag_spec='-R$libdir'
13828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13839 hardcode_libdir_flag_spec='-L$libdir'
13840 hardcode_minus_L=yes
13841 allow_undefined_flag=unsupported
13842 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'
13843 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13847 if test "$GCC" = yes; then
13848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13849 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13851 allow_undefined_flag=' -expect_unresolved \*'
13852 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13854 archive_cmds_need_lc='no'
13855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13856 hardcode_libdir_separator=:
13859 osf4* | osf5*) # as osf3* with the addition of -msym flag
13860 if test "$GCC" = yes; then
13861 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13862 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13865 allow_undefined_flag=' -expect_unresolved \*'
13866 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13867 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~
13868 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13870 # Both c and cxx compiler support -rpath directly
13871 hardcode_libdir_flag_spec='-rpath $libdir'
13873 archive_cmds_need_lc='no'
13874 hardcode_libdir_separator=:
13878 no_undefined_flag=' -z defs'
13879 if test "$GCC" = yes; then
13881 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13885 case `$CC -V 2>&1` in
13888 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13890 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13894 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13896 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13900 hardcode_libdir_flag_spec='-R$libdir'
13901 hardcode_shlibpath_var=no
13903 solaris2.[0-5] | solaris2.[0-5].*) ;;
13905 # The compiler driver will combine and reorder linker options,
13906 # but understands `-z linker_flag'. GCC discards it without `$wl',
13907 # but is careful enough not to reorder.
13908 # Supported since Solaris 2.6 (maybe 2.5.1?)
13909 if test "$GCC" = yes; then
13910 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13912 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13916 link_all_deplibs=yes
13920 if test "x$host_vendor" = xsequent; then
13921 # Use $CC to link under sequent, because it throws in some extra .o
13922 # files that make .init and .fini sections work.
13923 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13927 hardcode_libdir_flag_spec='-L$libdir'
13928 hardcode_direct=yes
13929 hardcode_minus_L=yes
13930 hardcode_shlibpath_var=no
13934 case $host_vendor in
13936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13937 hardcode_direct=yes # is this really true???
13940 ## LD is ld it makes a PLAMLIB
13941 ## CC just makes a GrossModule.
13942 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13943 reload_cmds='$CC -r -o $output$reload_objs'
13947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13948 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13951 runpath_var='LD_RUN_PATH'
13952 hardcode_shlibpath_var=no
13956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957 hardcode_shlibpath_var=no
13958 export_dynamic_flag_spec='-Bexport'
13962 if test -d /usr/nec; then
13963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964 hardcode_shlibpath_var=no
13965 runpath_var=LD_RUN_PATH
13966 hardcode_runpath_var=yes
13971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13972 no_undefined_flag='${wl}-z,text'
13973 archive_cmds_need_lc=no
13974 hardcode_shlibpath_var=no
13975 runpath_var='LD_RUN_PATH'
13977 if test "$GCC" = yes; then
13978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13986 sysv5* | sco3.2v5* | sco5v6*)
13987 # Note: We can NOT use -z defs as we might desire, because we do not
13988 # link with -lc, and that would cause any symbols used from libc to
13989 # always be unresolved, which means just about no library would
13990 # ever link correctly. If we're not using GNU ld we use -z text
13991 # though, which does catch some bad symbols but isn't as heavy-handed
13993 no_undefined_flag='${wl}-z,text'
13994 allow_undefined_flag='${wl}-z,nodefs'
13995 archive_cmds_need_lc=no
13996 hardcode_shlibpath_var=no
13997 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13998 hardcode_libdir_separator=':'
13999 link_all_deplibs=yes
14000 export_dynamic_flag_spec='${wl}-Bexport'
14001 runpath_var='LD_RUN_PATH'
14003 if test "$GCC" = yes; then
14004 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14005 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14007 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14008 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014 hardcode_libdir_flag_spec='-L$libdir'
14015 hardcode_shlibpath_var=no
14023 if test x$host_vendor = xsni; then
14025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14026 export_dynamic_flag_spec='${wl}-Blargedynsym'
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14033 $as_echo "$ld_shlibs" >&6; }
14034 test "$ld_shlibs" = no && can_build_shared=no
14036 with_gnu_ld=$with_gnu_ld
14053 # Do we need to explicitly link libc?
14055 case "x$archive_cmds_need_lc" in
14057 # Assume -lc should be added
14058 archive_cmds_need_lc=yes
14060 if test "$enable_shared" = yes && test "$GCC" = yes; then
14061 case $archive_cmds in
14063 # FIXME: we may have to deal with multi-command sequences.
14066 # Test whether the compiler implicitly links with -lc since on some
14067 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14068 # to ld, don't add -lc before -lgcc.
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14070 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14075 (eval $ac_compile) 2>&5
14077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14078 test $ac_status = 0; } 2>conftest.err; then
14081 libobjs=conftest.$ac_objext
14083 wl=$lt_prog_compiler_wl
14084 pic_flag=$lt_prog_compiler_pic
14090 lt_save_allow_undefined_flag=$allow_undefined_flag
14091 allow_undefined_flag=
14092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14093 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }
14098 archive_cmds_need_lc=no
14100 archive_cmds_need_lc=yes
14102 allow_undefined_flag=$lt_save_allow_undefined_flag
14104 cat conftest.err 1>&5
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14108 $as_echo "$archive_cmds_need_lc" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14272 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14274 if test "$GCC" = yes; then
14276 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14277 *) lt_awk_arg="/^libraries:/" ;;
14279 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14280 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14281 # if the path contains ";" then we assume it to be the separator
14282 # otherwise default to the standard path separator (i.e. ":") - it is
14283 # assumed that no part of a normal pathname contains ";" but that should
14284 # okay in the real world where ";" in dirpaths is itself problematic.
14285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14287 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14289 # Ok, now we have the path, separated by spaces, we can step through it
14290 # and add multilib dir if necessary.
14291 lt_tmp_lt_search_path_spec=
14292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14293 for lt_sys_path in $lt_search_path_spec; do
14294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14297 test -d "$lt_sys_path" && \
14298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14301 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14302 BEGIN {RS=" "; FS="/|\n";} {
14305 for (lt_i = NF; lt_i > 0; lt_i--) {
14306 if ($lt_i != "" && $lt_i != ".") {
14307 if ($lt_i == "..") {
14310 if (lt_count == 0) {
14311 lt_foo="/" $lt_i lt_foo;
14318 if (lt_foo != "") { lt_freq[lt_foo]++; }
14319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14321 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14325 library_names_spec=
14326 libname_spec='lib$name'
14330 postuninstall_cmds=
14334 shlibpath_overrides_runpath=unknown
14336 dynamic_linker="$host_os ld.so"
14337 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14338 need_lib_prefix=unknown
14339 hardcode_into_libs=no
14341 # when you set need_version to no, make sure it does not cause -set_version
14342 # flags to be left without arguments
14343 need_version=unknown
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14349 shlibpath_var=LIBPATH
14351 # AIX 3 has no versioning support, so we append a major version to the name.
14352 soname_spec='${libname}${release}${shared_ext}$major'
14359 hardcode_into_libs=yes
14360 if test "$host_cpu" = ia64; then
14361 # AIX 5 supports IA64
14362 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14363 shlibpath_var=LD_LIBRARY_PATH
14365 # With GCC up to 2.95.x, collect2 would create an import file
14366 # for dependence libraries. The import file would start with
14367 # the line `#! .'. This would cause the generated library to
14368 # depend on `.', always an invalid library. This was fixed in
14369 # development snapshots of GCC prior to 3.0.
14371 aix4 | aix4.[01] | aix4.[01].*)
14372 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14374 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14377 can_build_shared=no
14381 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14382 # soname into executable. Probably we can add versioning support to
14383 # collect2, so additional links can be useful in future.
14384 if test "$aix_use_runtimelinking" = yes; then
14385 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14386 # instead of lib<name>.a to let people know that these are not
14387 # typical AIX shared libraries.
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 # We preserve .a as extension for shared libraries through AIX4.2
14391 # and later when we are not doing run time linking.
14392 library_names_spec='${libname}${release}.a $libname.a'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14395 shlibpath_var=LIBPATH
14402 # Since July 2007 AmigaOS4 officially supports .so libraries.
14403 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14407 library_names_spec='$libname.ixlibrary $libname.a'
14408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14409 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14415 library_names_spec='${libname}${shared_ext}'
14416 dynamic_linker="$host_os ld.so"
14417 shlibpath_var=LIBRARY_PATH
14423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424 soname_spec='${libname}${release}${shared_ext}$major'
14425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14429 # the default ld.so.conf also contains /usr/contrib/lib and
14430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14431 # libtool to hard-code these into programs
14434 cygwin* | mingw* | pw32* | cegcc*)
14435 version_type=windows
14440 case $GCC,$host_os in
14441 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14442 library_names_spec='$libname.dll.a'
14443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14444 postinstall_cmds='base_file=`basename \${file}`~
14445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14446 dldir=$destdir/`dirname \$dlpath`~
14447 test -d \$dldir || mkdir -p \$dldir~
14448 $install_prog $dir/$dlname \$dldir/$dlname~
14449 chmod a+x \$dldir/$dlname~
14450 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14451 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14454 dlpath=$dir/\$dldll~
14456 shlibpath_overrides_runpath=yes
14460 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14461 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14462 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14465 # MinGW DLLs use traditional 'lib' prefix
14466 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14467 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14468 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14469 # It is most probably a Windows format PATH printed by
14470 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14471 # path with ; separators, and with drive letters. We can handle the
14472 # drive letters (cygwin fileutils understands them), so leave them,
14473 # especially as we might pass files found there to a mingw objdump,
14474 # which wouldn't understand a cygwinified path. Ahh.
14475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14481 # pw32 DLLs use 'pw' prefix rather than 'lib'
14482 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14491 dynamic_linker='Win32 ld.exe'
14492 # FIXME: first we should search . and the directory the executable is in
14496 darwin* | rhapsody*)
14497 dynamic_linker="$host_os dyld"
14498 version_type=darwin
14501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14502 soname_spec='${libname}${release}${major}$shared_ext'
14503 shlibpath_overrides_runpath=yes
14504 shlibpath_var=DYLD_LIBRARY_PATH
14505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14507 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14524 freebsd* | dragonfly*)
14525 # DragonFly does not have aout. When/if they implement a new
14526 # versioning mechanism, adjust this.
14527 if test -x /usr/bin/objformat; then
14528 objformat=`/usr/bin/objformat`
14531 freebsd[123]*) objformat=aout ;;
14532 *) objformat=elf ;;
14535 version_type=freebsd-$objformat
14536 case $version_type in
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14547 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14552 freebsd3.[01]* | freebsdelf3.[01]*)
14553 shlibpath_overrides_runpath=yes
14554 hardcode_into_libs=yes
14556 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14557 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14561 *) # from 4.6 on, and DragonFly
14562 shlibpath_overrides_runpath=yes
14563 hardcode_into_libs=yes
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14573 soname_spec='${libname}${release}${shared_ext}$major'
14574 shlibpath_var=LD_LIBRARY_PATH
14575 hardcode_into_libs=yes
14578 hpux9* | hpux10* | hpux11*)
14579 # Give a soname corresponding to the major version so that dld.sl refuses to
14580 # link against other versions.
14587 hardcode_into_libs=yes
14588 dynamic_linker="$host_os dld.so"
14589 shlibpath_var=LD_LIBRARY_PATH
14590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 if test "X$HPUX_IA64_MODE" = X32; then
14594 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14596 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14602 hardcode_into_libs=yes
14603 dynamic_linker="$host_os dld.sl"
14604 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14613 dynamic_linker="$host_os dld.sl"
14614 shlibpath_var=SHLIB_PATH
14615 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14620 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14621 postinstall_cmds='chmod 555 $lib'
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath=no
14633 hardcode_into_libs=yes
14636 irix5* | irix6* | nonstopux*)
14638 nonstopux*) version_type=nonstopux ;;
14640 if test "$lt_cv_prog_gnu_ld" = yes; then
14648 soname_spec='${libname}${release}${shared_ext}$major'
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14651 irix5* | nonstopux*)
14652 libsuff= shlibsuff=
14655 case $LD in # libtool.m4 will add one of these switches to LD
14656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14657 libsuff= shlibsuff= libmagic=32-bit;;
14658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14659 libsuff=32 shlibsuff=N32 libmagic=N32;;
14660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14662 *) libsuff= shlibsuff= libmagic=never-match;;
14666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14667 shlibpath_overrides_runpath=no
14668 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14669 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14670 hardcode_into_libs=yes
14673 # No shared lib support for Linux oldld, aout, or coff.
14674 linux*oldld* | linux*aout* | linux*coff*)
14678 # This must be Linux ELF.
14679 linux* | k*bsd*-gnu)
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=no
14688 # Some binutils ld are patched to set DT_RUNPATH
14689 save_LDFLAGS=$LDFLAGS
14690 save_libdir=$libdir
14691 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14692 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14704 if ac_fn_c_try_link "$LINENO"; then :
14705 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14706 shlibpath_overrides_runpath=yes
14709 rm -f core conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
14711 LDFLAGS=$save_LDFLAGS
14712 libdir=$save_libdir
14714 # This implies no fast_install, which is unacceptable.
14715 # Some rework will be needed to allow for fast_install
14716 # before this can be enabled.
14717 hardcode_into_libs=yes
14719 # Add ABI-specific directories to the system library path.
14720 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14722 # Append ld.so.conf contents to the search path
14723 if test -f /etc/ld.so.conf; then
14724 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;/^$/d' | tr '\n' ' '`
14725 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14728 # We used to test for /lib/ld.so.1 and disable shared libraries on
14729 # powerpc, because MkLinux only supported shared libraries with the
14730 # GNU dynamic linker. Since this was broken with cross compilers,
14731 # most powerpc-linux boxes support dynamic linking these days and
14732 # people can always --disable-shared, the test was removed, and we
14733 # assume the GNU/Linux dynamic linker is in use.
14734 dynamic_linker='GNU/Linux ld.so'
14741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14744 dynamic_linker='NetBSD (a.out) ld.so'
14746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14747 soname_spec='${libname}${release}${shared_ext}$major'
14748 dynamic_linker='NetBSD ld.elf_so'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes
14752 hardcode_into_libs=yes
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 shlibpath_overrides_runpath=yes
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=no
14770 hardcode_into_libs=yes
14771 dynamic_linker='ldqnx.so'
14776 sys_lib_dlsearch_path_spec="/usr/lib"
14778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14780 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14781 *) need_version=no ;;
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14788 openbsd2.[89] | openbsd2.[89].*)
14789 shlibpath_overrides_runpath=no
14792 shlibpath_overrides_runpath=yes
14796 shlibpath_overrides_runpath=yes
14801 libname_spec='$name'
14804 library_names_spec='$libname${shared_ext} $libname.a'
14805 dynamic_linker='OS/2 ld.exe'
14806 shlibpath_var=LIBPATH
14809 osf3* | osf4* | osf5*)
14813 soname_spec='${libname}${release}${shared_ext}$major'
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 soname_spec='${libname}${release}${shared_ext}$major'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=yes
14832 hardcode_into_libs=yes
14833 # ldd complains unless libraries are executable
14834 postinstall_cmds='chmod +x $lib'
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 shlibpath_overrides_runpath=yes
14843 if test "$with_gnu_ld" = yes; then
14851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 case $host_vendor in
14856 shlibpath_overrides_runpath=no
14858 runpath_var=LD_RUN_PATH
14866 shlibpath_overrides_runpath=no
14867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14873 if test -d /usr/nec ;then
14875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14876 soname_spec='$libname${shared_ext}.$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14882 version_type=freebsd-elf
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14886 soname_spec='${libname}${release}${shared_ext}$major'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath=yes
14889 hardcode_into_libs=yes
14890 if test "$with_gnu_ld" = yes; then
14891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14900 sys_lib_dlsearch_path_spec='/usr/lib'
14904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909 shlibpath_var=LD_LIBRARY_PATH
14910 shlibpath_overrides_runpath=no
14911 hardcode_into_libs=yes
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 soname_spec='${libname}${release}${shared_ext}$major'
14918 shlibpath_var=LD_LIBRARY_PATH
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14926 $as_echo "$dynamic_linker" >&6; }
14927 test "$dynamic_linker" = no && can_build_shared=no
14929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14930 if test "$GCC" = yes; then
14931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14934 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14935 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14937 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14938 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15028 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15030 if test -n "$hardcode_libdir_flag_spec" ||
15031 test -n "$runpath_var" ||
15032 test "X$hardcode_automatic" = "Xyes" ; then
15034 # We can hardcode non-existent directories.
15035 if test "$hardcode_direct" != no &&
15036 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15037 # have to relink, otherwise we might link with an installed library
15038 # when we should be linking with a yet-to-be-installed one
15039 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15040 test "$hardcode_minus_L" != no; then
15041 # Linking always hardcodes the temporary library directory.
15042 hardcode_action=relink
15044 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15045 hardcode_action=immediate
15048 # We cannot hardcode anything, or else we can only hardcode existing
15050 hardcode_action=unsupported
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15053 $as_echo "$hardcode_action" >&6; }
15055 if test "$hardcode_action" = relink ||
15056 test "$inherit_rpath" = yes; then
15057 # Fast installation is not supported
15058 enable_fast_install=no
15059 elif test "$shlibpath_overrides_runpath" = yes ||
15060 test "$enable_shared" = no; then
15061 # Fast installation is not necessary
15062 enable_fast_install=needless
15070 if test "x$enable_dlopen" != xyes; then
15071 enable_dlopen=unknown
15072 enable_dlopen_self=unknown
15073 enable_dlopen_self_static=unknown
15080 lt_cv_dlopen="load_add_on"
15082 lt_cv_dlopen_self=yes
15085 mingw* | pw32* | cegcc*)
15086 lt_cv_dlopen="LoadLibrary"
15091 lt_cv_dlopen="dlopen"
15096 # if libdl is installed we need to link against it
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15100 $as_echo_n "(cached) " >&6
15102 ac_check_lib_save_LIBS=$LIBS
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15122 if ac_fn_c_try_link "$LINENO"; then :
15123 ac_cv_lib_dl_dlopen=yes
15125 ac_cv_lib_dl_dlopen=no
15127 rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15132 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15133 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15137 lt_cv_dlopen="dyld"
15139 lt_cv_dlopen_self=yes
15146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15147 if test "x$ac_cv_func_shl_load" = x""yes; then :
15148 lt_cv_dlopen="shl_load"
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15151 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15152 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15153 $as_echo_n "(cached) " >&6
15155 ac_check_lib_save_LIBS=$LIBS
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15160 /* Override any GCC internal prototype to avoid an error.
15161 Use char because int might match the return type of a GCC
15162 builtin and then its argument prototype would still apply. */
15170 return shl_load ();
15175 if ac_fn_c_try_link "$LINENO"; then :
15176 ac_cv_lib_dld_shl_load=yes
15178 ac_cv_lib_dld_shl_load=no
15180 rm -f core conftest.err conftest.$ac_objext \
15181 conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15185 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15186 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15187 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15189 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15190 if test "x$ac_cv_func_dlopen" = x""yes; then :
15191 lt_cv_dlopen="dlopen"
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15196 $as_echo_n "(cached) " >&6
15198 ac_check_lib_save_LIBS=$LIBS
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15203 /* Override any GCC internal prototype to avoid an error.
15204 Use char because int might match the return type of a GCC
15205 builtin and then its argument prototype would still apply. */
15218 if ac_fn_c_try_link "$LINENO"; then :
15219 ac_cv_lib_dl_dlopen=yes
15221 ac_cv_lib_dl_dlopen=no
15223 rm -f core conftest.err conftest.$ac_objext \
15224 conftest$ac_exeext conftest.$ac_ext
15225 LIBS=$ac_check_lib_save_LIBS
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15229 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15233 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15235 $as_echo_n "(cached) " >&6
15237 ac_check_lib_save_LIBS=$LIBS
15238 LIBS="-lsvld $LIBS"
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15242 /* Override any GCC internal prototype to avoid an error.
15243 Use char because int might match the return type of a GCC
15244 builtin and then its argument prototype would still apply. */
15257 if ac_fn_c_try_link "$LINENO"; then :
15258 ac_cv_lib_svld_dlopen=yes
15260 ac_cv_lib_svld_dlopen=no
15262 rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15264 LIBS=$ac_check_lib_save_LIBS
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15267 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15268 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15272 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15273 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15274 $as_echo_n "(cached) " >&6
15276 ac_check_lib_save_LIBS=$LIBS
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15281 /* Override any GCC internal prototype to avoid an error.
15282 Use char because int might match the return type of a GCC
15283 builtin and then its argument prototype would still apply. */
15291 return dld_link ();
15296 if ac_fn_c_try_link "$LINENO"; then :
15297 ac_cv_lib_dld_dld_link=yes
15299 ac_cv_lib_dld_dld_link=no
15301 rm -f core conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
15303 LIBS=$ac_check_lib_save_LIBS
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15306 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15307 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15329 if test "x$lt_cv_dlopen" != xno; then
15335 case $lt_cv_dlopen in
15337 save_CPPFLAGS="$CPPFLAGS"
15338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15340 save_LDFLAGS="$LDFLAGS"
15341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15344 LIBS="$lt_cv_dlopen_libs $LIBS"
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15347 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15348 if test "${lt_cv_dlopen_self+set}" = set; then :
15349 $as_echo_n "(cached) " >&6
15351 if test "$cross_compiling" = yes; then :
15352 lt_cv_dlopen_self=cross
15354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15355 lt_status=$lt_dlunknown
15356 cat > conftest.$ac_ext <<_LT_EOF
15357 #line 15357 "configure"
15358 #include "confdefs.h"
15367 # define LT_DLGLOBAL RTLD_GLOBAL
15370 # define LT_DLGLOBAL DL_GLOBAL
15372 # define LT_DLGLOBAL 0
15376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15377 find out it does not work in some platform. */
15378 #ifndef LT_DLLAZY_OR_NOW
15380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15383 # define LT_DLLAZY_OR_NOW DL_LAZY
15386 # define LT_DLLAZY_OR_NOW RTLD_NOW
15389 # define LT_DLLAZY_OR_NOW DL_NOW
15391 # define LT_DLLAZY_OR_NOW 0
15398 void fnord() { int i=42;}
15401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15402 int status = $lt_dlunknown;
15406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15407 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15408 /* dlclose (self); */
15416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15417 (eval $ac_link) 2>&5
15419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15421 (./conftest; exit; ) >&5 2>/dev/null
15423 case x$lt_status in
15424 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15425 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15426 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15429 # compilation failed
15430 lt_cv_dlopen_self=no
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15438 $as_echo "$lt_cv_dlopen_self" >&6; }
15440 if test "x$lt_cv_dlopen_self" = xyes; then
15441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15443 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15444 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15447 if test "$cross_compiling" = yes; then :
15448 lt_cv_dlopen_self_static=cross
15450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15451 lt_status=$lt_dlunknown
15452 cat > conftest.$ac_ext <<_LT_EOF
15453 #line 15453 "configure"
15454 #include "confdefs.h"
15463 # define LT_DLGLOBAL RTLD_GLOBAL
15466 # define LT_DLGLOBAL DL_GLOBAL
15468 # define LT_DLGLOBAL 0
15472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15473 find out it does not work in some platform. */
15474 #ifndef LT_DLLAZY_OR_NOW
15476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15479 # define LT_DLLAZY_OR_NOW DL_LAZY
15482 # define LT_DLLAZY_OR_NOW RTLD_NOW
15485 # define LT_DLLAZY_OR_NOW DL_NOW
15487 # define LT_DLLAZY_OR_NOW 0
15494 void fnord() { int i=42;}
15497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15498 int status = $lt_dlunknown;
15502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15504 /* dlclose (self); */
15512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15513 (eval $ac_link) 2>&5
15515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15517 (./conftest; exit; ) >&5 2>/dev/null
15519 case x$lt_status in
15520 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15521 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15522 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15525 # compilation failed
15526 lt_cv_dlopen_self_static=no
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15534 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15537 CPPFLAGS="$save_CPPFLAGS"
15538 LDFLAGS="$save_LDFLAGS"
15543 case $lt_cv_dlopen_self in
15544 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15545 *) enable_dlopen_self=unknown ;;
15548 case $lt_cv_dlopen_self_static in
15549 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15550 *) enable_dlopen_self_static=unknown ;;
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15573 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15574 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15578 $as_echo "yes" >&6; }
15580 # FIXME - insert some real tests, host_os isn't really good enough
15583 if test -n "$STRIP" ; then
15584 striplib="$STRIP -x"
15585 old_striplib="$STRIP -S"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15587 $as_echo "yes" >&6; }
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15595 $as_echo "no" >&6; }
15611 # Report which library types will actually be built
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15613 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15615 $as_echo "$can_build_shared" >&6; }
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15618 $as_echo_n "checking whether to build shared libraries... " >&6; }
15619 test "$can_build_shared" = "no" && enable_shared=no
15621 # On AIX, shared libraries and static libraries use the same namespace, and
15622 # are all built from PIC.
15625 test "$enable_shared" = yes && enable_static=no
15626 if test -n "$RANLIB"; then
15627 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15628 postinstall_cmds='$RANLIB $lib'
15633 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15634 test "$enable_shared" = yes && enable_static=no
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15639 $as_echo "$enable_shared" >&6; }
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15642 $as_echo_n "checking whether to build static libraries... " >&6; }
15643 # Make sure either enable_shared or enable_static is yes.
15644 test "$enable_shared" = yes || enable_static=yes
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15646 $as_echo "$enable_static" >&6; }
15653 ac_cpp='$CPP $CPPFLAGS'
15654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15662 ac_cpp='$CXXCPP $CPPFLAGS'
15663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15667 archive_cmds_need_lc_CXX=no
15668 allow_undefined_flag_CXX=
15669 always_export_symbols_CXX=no
15670 archive_expsym_cmds_CXX=
15671 compiler_needs_object_CXX=no
15672 export_dynamic_flag_spec_CXX=
15673 hardcode_direct_CXX=no
15674 hardcode_direct_absolute_CXX=no
15675 hardcode_libdir_flag_spec_CXX=
15676 hardcode_libdir_flag_spec_ld_CXX=
15677 hardcode_libdir_separator_CXX=
15678 hardcode_minus_L_CXX=no
15679 hardcode_shlibpath_var_CXX=unsupported
15680 hardcode_automatic_CXX=no
15681 inherit_rpath_CXX=no
15683 module_expsym_cmds_CXX=
15684 link_all_deplibs_CXX=unknown
15685 old_archive_cmds_CXX=$old_archive_cmds
15686 no_undefined_flag_CXX=
15687 whole_archive_flag_spec_CXX=
15688 enable_shared_with_static_runtimes_CXX=no
15690 # Source file extension for C++ test sources.
15693 # Object file extension for compiled C++ test sources.
15697 # No sense in running all these tests if we already determined that
15698 # the CXX compiler isn't working. Some variables (like enable_shared)
15699 # are currently assumed to apply to all compilers on this platform,
15700 # and will be corrupted by setting them based on a non-working compiler.
15701 if test "$_lt_caught_CXX_error" != yes; then
15702 # Code to be used in simple compile tests
15703 lt_simple_compile_test_code="int some_variable = 0;"
15705 # Code to be used in simple link tests
15706 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15715 # If no C compiler was specified, use CC.
15718 # If no C compiler flags were specified, use CFLAGS.
15719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15721 # Allow CC to be a program name with arguments.
15725 # save warnings/boilerplate of simple test code
15726 ac_outfile=conftest.$ac_objext
15727 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15728 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15729 _lt_compiler_boilerplate=`cat conftest.err`
15732 ac_outfile=conftest.$ac_objext
15733 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15734 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15735 _lt_linker_boilerplate=`cat conftest.err`
15739 # Allow CC to be a program name with arguments.
15744 lt_save_with_gnu_ld=$with_gnu_ld
15745 lt_save_path_LD=$lt_cv_path_LD
15746 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15747 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15749 $as_unset lt_cv_prog_gnu_ld
15751 if test -n "${lt_cv_path_LDCXX+set}"; then
15752 lt_cv_path_LD=$lt_cv_path_LDCXX
15754 $as_unset lt_cv_path_LD
15756 test -z "${LDCXX+set}" || LD=$LDCXX
15760 for cc_temp in $compiler""; do
15762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15768 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15771 if test -n "$compiler"; then
15772 # We don't want -fno-exception when compiling C++ code, so set the
15773 # no_builtin_flag separately
15774 if test "$GXX" = yes; then
15775 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15777 lt_prog_compiler_no_builtin_flag_CXX=
15780 if test "$GXX" = yes; then
15781 # Set up default GNU C++ configuration
15785 # Check whether --with-gnu-ld was given.
15786 if test "${with_gnu_ld+set}" = set; then :
15787 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15793 if test "$GCC" = yes; then
15794 # Check if gcc -print-prog-name=ld gives a path.
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15796 $as_echo_n "checking for ld used by $CC... " >&6; }
15799 # gcc leaves a trailing carriage return which upsets mingw
15800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15805 # Accept absolute paths.
15807 re_direlt='/[^/][^/]*/\.\./'
15808 # Canonicalize the pathname of ld
15809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15813 test -z "$LD" && LD="$ac_prog"
15816 # If it fails, then pretend we aren't using GCC.
15820 # If it is relative, then search for the first ld in PATH.
15821 with_gnu_ld=unknown
15824 elif test "$with_gnu_ld" = yes; then
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15826 $as_echo_n "checking for GNU ld... " >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15829 $as_echo_n "checking for non-GNU ld... " >&6; }
15831 if test "${lt_cv_path_LD+set}" = set; then :
15832 $as_echo_n "(cached) " >&6
15834 if test -z "$LD"; then
15835 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15836 for ac_dir in $PATH; do
15838 test -z "$ac_dir" && ac_dir=.
15839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15840 lt_cv_path_LD="$ac_dir/$ac_prog"
15841 # Check to see if the program is GNU ld. I'd rather use --version,
15842 # but apparently some variants of GNU ld only accept -v.
15843 # Break only if it was the GNU/non-GNU ld that we prefer.
15844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15845 *GNU* | *'with BFD'*)
15846 test "$with_gnu_ld" != no && break
15849 test "$with_gnu_ld" != yes && break
15856 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15860 LD="$lt_cv_path_LD"
15861 if test -n "$LD"; then
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15863 $as_echo "$LD" >&6; }
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866 $as_echo "no" >&6; }
15868 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15871 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15874 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15875 case `$LD -v 2>&1 </dev/null` in
15876 *GNU* | *'with BFD'*)
15877 lt_cv_prog_gnu_ld=yes
15880 lt_cv_prog_gnu_ld=no
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15885 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15886 with_gnu_ld=$lt_cv_prog_gnu_ld
15894 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15895 # archiving commands below assume that GNU ld is being used.
15896 if test "$with_gnu_ld" = yes; then
15897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898 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'
15900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15901 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15903 # If archive_cmds runs LD, not CC, wlarc should be empty
15904 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15905 # investigate it a little bit more. (MM)
15908 # ancient GNU ld didn't support --whole-archive et. al.
15909 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15910 $GREP 'no-whole-archive' > /dev/null; then
15911 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15913 whole_archive_flag_spec_CXX=
15919 # A generic and very simple default shared library creation
15920 # command for GNU C++ for the case where it uses the native
15921 # linker, instead of GNU ld. If possible, this setting should
15922 # overridden to take advantage of the native linker features on
15923 # the platform it is being used on.
15924 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15927 # Commands to make compiler produce verbose output that lists
15928 # what "hidden" libraries, object files and flags are used when
15929 # linking a shared library.
15930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15938 # PORTME: fill in a description of your system's C++ link characteristics
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15944 # FIXME: insert proper C++ library support
15948 if test "$host_cpu" = ia64; then
15949 # On IA64, the linker does run time linking by default, so we don't
15950 # have to do anything special.
15951 aix_use_runtimelinking=no
15952 exp_sym_flag='-Bexport'
15955 aix_use_runtimelinking=no
15957 # Test if we are trying to use run time linking or normal
15958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15959 # need to do runtime linking.
15960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15961 for ld_flag in $LDFLAGS; do
15964 aix_use_runtimelinking=yes
15972 exp_sym_flag='-bexport'
15973 no_entry_flag='-bnoentry'
15976 # When large executables or shared objects are built, AIX ld can
15977 # have problems creating the table of contents. If linking a library
15978 # or program results in "error TOC overflow" add -mminimal-toc to
15979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15982 archive_cmds_CXX=''
15983 hardcode_direct_CXX=yes
15984 hardcode_direct_absolute_CXX=yes
15985 hardcode_libdir_separator_CXX=':'
15986 link_all_deplibs_CXX=yes
15987 file_list_spec_CXX='${wl}-f,'
15989 if test "$GXX" = yes; then
15990 case $host_os in aix4.[012]|aix4.[012].*)
15991 # We only want to do this on AIX 4.2 and lower, the check
15992 # below for broken collect2 doesn't work under 4.3+
15993 collect2name=`${CC} -print-prog-name=collect2`
15994 if test -f "$collect2name" &&
15995 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15997 # We have reworked collect2
16000 # We have old collect2
16001 hardcode_direct_CXX=unsupported
16002 # It fails to find uninstalled libraries when the uninstalled
16003 # path is not listed in the libpath. Setting hardcode_minus_L
16004 # to unsupported forces relinking
16005 hardcode_minus_L_CXX=yes
16006 hardcode_libdir_flag_spec_CXX='-L$libdir'
16007 hardcode_libdir_separator_CXX=
16010 shared_flag='-shared'
16011 if test "$aix_use_runtimelinking" = yes; then
16012 shared_flag="$shared_flag "'${wl}-G'
16016 if test "$host_cpu" = ia64; then
16017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16018 # chokes on -Wl,-G. The following line is correct:
16021 if test "$aix_use_runtimelinking" = yes; then
16022 shared_flag='${wl}-G'
16024 shared_flag='${wl}-bM:SRE'
16029 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16030 # It seems that -bexpall does not export symbols beginning with
16031 # underscore (_), so it is better to generate a list of symbols to
16033 always_export_symbols_CXX=yes
16034 if test "$aix_use_runtimelinking" = yes; then
16035 # Warning - without using the other runtime loading flags (-brtl),
16036 # -berok will link without error, but may produce a broken library.
16037 allow_undefined_flag_CXX='-berok'
16038 # Determine the default libpath from the value encoded in an empty
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16051 if ac_fn_cxx_try_link "$LINENO"; then :
16053 lt_aix_libpath_sed='
16054 /Import File Strings/,/^$/ {
16060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16061 # Check for a 64-bit object if we didn't find anything.
16062 if test -z "$aix_libpath"; then
16063 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16066 rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16070 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16072 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16074 if test "$host_cpu" = ia64; then
16075 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16076 allow_undefined_flag_CXX="-z nodefs"
16077 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"
16079 # Determine the default libpath from the value encoded in an
16080 # empty executable.
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16092 if ac_fn_cxx_try_link "$LINENO"; then :
16094 lt_aix_libpath_sed='
16095 /Import File Strings/,/^$/ {
16101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16102 # Check for a 64-bit object if we didn't find anything.
16103 if test -z "$aix_libpath"; then
16104 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16107 rm -f core conftest.err conftest.$ac_objext \
16108 conftest$ac_exeext conftest.$ac_ext
16109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16111 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16112 # Warning - without using the other run time loading flags,
16113 # -berok will link without error, but may produce a broken library.
16114 no_undefined_flag_CXX=' ${wl}-bernotok'
16115 allow_undefined_flag_CXX=' ${wl}-berok'
16116 # Exported symbols can be pulled into shared objects from archives
16117 whole_archive_flag_spec_CXX='$convenience'
16118 archive_cmds_need_lc_CXX=yes
16119 # This is similar to how AIX traditionally builds its shared
16121 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'
16127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16128 allow_undefined_flag_CXX=unsupported
16129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16130 # support --undefined. This deserves some investigation. FIXME
16131 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16138 case $cc_basename in
16140 # FIXME: insert proper C++ library support
16146 cygwin* | mingw* | pw32* | cegcc*)
16147 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16148 # as there is no search path for DLLs.
16149 hardcode_libdir_flag_spec_CXX='-L$libdir'
16150 allow_undefined_flag_CXX=unsupported
16151 always_export_symbols_CXX=no
16152 enable_shared_with_static_runtimes_CXX=yes
16154 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16155 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'
16156 # If the export-symbols file already is a .def file (1st line
16157 # is EXPORTS), use it as is; otherwise, prepend...
16158 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16159 cp $export_symbols $output_objdir/$soname.def;
16161 echo EXPORTS > $output_objdir/$soname.def;
16162 cat $export_symbols >> $output_objdir/$soname.def;
16164 $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'
16169 darwin* | rhapsody*)
16172 archive_cmds_need_lc_CXX=no
16173 hardcode_direct_CXX=no
16174 hardcode_automatic_CXX=yes
16175 hardcode_shlibpath_var_CXX=unsupported
16176 whole_archive_flag_spec_CXX=''
16177 link_all_deplibs_CXX=yes
16178 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16179 case $cc_basename in
16180 ifort*) _lt_dar_can_shared=yes ;;
16181 *) _lt_dar_can_shared=$GCC ;;
16183 if test "$_lt_dar_can_shared" = "yes"; then
16184 output_verbose_link_cmd=echo
16185 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}"
16186 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16187 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}"
16188 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}"
16189 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16190 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}"
16191 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}"
16201 case $cc_basename in
16203 # FIXME: insert proper C++ library support
16207 # Green Hills C++ Compiler
16208 # FIXME: insert proper C++ library support
16212 # FIXME: insert proper C++ library support
16219 # C++ shared libraries reported to be fairly broken before
16225 archive_cmds_need_lc_CXX=no
16228 freebsd* | dragonfly*)
16229 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16238 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16239 hardcode_libdir_separator_CXX=:
16240 export_dynamic_flag_spec_CXX='${wl}-E'
16241 hardcode_direct_CXX=yes
16242 hardcode_minus_L_CXX=yes # Not in the search PATH,
16243 # but as the default
16244 # location of the library.
16246 case $cc_basename in
16248 # FIXME: insert proper C++ library support
16252 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'
16253 # Commands to make compiler produce verbose output that lists
16254 # what "hidden" libraries, object files and flags are used when
16255 # linking a shared library.
16257 # There doesn't appear to be a way to prevent this compiler from
16258 # explicitly linking system object files so we need to strip them
16259 # from the output so that they don't get included in the library
16261 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; $ECHO "X$list" | $Xsed'
16264 if test "$GXX" = yes; then
16265 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'
16267 # FIXME: insert proper C++ library support
16275 if test $with_gnu_ld = no; then
16276 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16277 hardcode_libdir_separator_CXX=:
16283 export_dynamic_flag_spec_CXX='${wl}-E'
16289 hardcode_direct_CXX=no
16290 hardcode_shlibpath_var_CXX=no
16293 hardcode_direct_CXX=yes
16294 hardcode_direct_absolute_CXX=yes
16295 hardcode_minus_L_CXX=yes # Not in the search PATH,
16296 # but as the default
16297 # location of the library.
16301 case $cc_basename in
16303 # FIXME: insert proper C++ library support
16309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16315 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16318 # Commands to make compiler produce verbose output that lists
16319 # what "hidden" libraries, object files and flags are used when
16320 # linking a shared library.
16322 # There doesn't appear to be a way to prevent this compiler from
16323 # explicitly linking system object files so we need to strip them
16324 # from the output so that they don't get included in the library
16326 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; $ECHO "X$list" | $Xsed'
16329 if test "$GXX" = yes; then
16330 if test $with_gnu_ld = no; then
16333 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16336 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16339 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'
16344 # FIXME: insert proper C++ library support
16352 hardcode_direct_CXX=no
16353 hardcode_shlibpath_var_CXX=no
16354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16355 export_dynamic_flag_spec_CXX='${wl}-E'
16356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16357 # Instead, shared libraries are loaded at an image base (0x10000000 by
16358 # default) and relocated if they conflict, which is a slow very memory
16359 # consuming and fragmenting process. To avoid this, we pick a random,
16360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16362 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'
16363 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'
16366 case $cc_basename in
16369 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16371 # Archives containing C++ object files must be created using
16372 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16373 # necessary to make sure instantiated templates are included
16375 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16378 if test "$GXX" = yes; then
16379 if test "$with_gnu_ld" = no; then
16380 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16382 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16385 link_all_deplibs_CXX=yes
16388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16389 hardcode_libdir_separator_CXX=:
16390 inherit_rpath_CXX=yes
16393 linux* | k*bsd*-gnu)
16394 case $cc_basename in
16396 # Kuck and Associates, Inc. (KAI) C++ Compiler
16398 # KCC will only create a shared library if the output file
16399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16400 # to its proper name (with version) after linking.
16401 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'
16402 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'
16403 # Commands to make compiler produce verbose output that lists
16404 # what "hidden" libraries, object files and flags are used when
16405 # linking a shared library.
16407 # There doesn't appear to be a way to prevent this compiler from
16408 # explicitly linking system object files so we need to strip them
16409 # from the output so that they don't get included in the library
16411 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; $ECHO "X$list" | $Xsed'
16413 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16416 # Archives containing C++ object files must be created using
16417 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16418 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16423 # version 8.0 and above of icpc choke on multiply defined symbols
16424 # if we add $predep_objects and $postdep_objects, however 7.1 and
16425 # earlier do not add the objects themselves.
16426 case `$CC -V 2>&1` in
16428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16429 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'
16431 *) # Version 8.0 or newer
16434 ia64*) tmp_idyn=' -i_dynamic';;
16436 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437 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'
16440 archive_cmds_need_lc_CXX=no
16441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16443 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16446 # Portland Group C++ compiler
16448 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16449 prelink_cmds_CXX='tpldir=Template.dir~
16451 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16452 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16453 old_archive_cmds_CXX='tpldir=Template.dir~
16455 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16456 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16458 archive_cmds_CXX='tpldir=Template.dir~
16460 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16461 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16462 archive_expsym_cmds_CXX='tpldir=Template.dir~
16464 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16465 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16467 *) # Version 6 will use weak symbols
16468 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16469 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'
16473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16475 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16479 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16480 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'
16482 runpath_var=LD_RUN_PATH
16483 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16484 hardcode_libdir_separator_CXX=:
16486 # Commands to make compiler produce verbose output that lists
16487 # what "hidden" libraries, object files and flags are used when
16488 # linking a shared library.
16490 # There doesn't appear to be a way to prevent this compiler from
16491 # explicitly linking system object files so we need to strip them
16492 # from the output so that they don't get included in the library
16494 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16497 # IBM XL 8.0 on PPC, with GNU ld
16498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16500 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 if test "x$supports_anon_versioning" = xyes; then
16502 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16504 echo "local: *; };" >> $output_objdir/$libname.ver~
16505 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16509 case `$CC -V 2>&1 | sed 5q` in
16512 no_undefined_flag_CXX=' -zdefs'
16513 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16514 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'
16515 hardcode_libdir_flag_spec_CXX='-R$libdir'
16516 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16517 compiler_needs_object_CXX=yes
16519 # Not sure whether something based on
16520 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16522 output_verbose_link_cmd='echo'
16524 # Archives containing C++ object files must be created using
16525 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16526 # necessary to make sure instantiated templates are included
16528 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16536 # FIXME: insert proper C++ library support
16541 # FIXME: insert proper C++ library support
16546 case $cc_basename in
16548 # FIXME: insert proper C++ library support
16552 # FIXME: insert proper C++ library support
16559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16560 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16562 hardcode_libdir_flag_spec_CXX='-R$libdir'
16563 hardcode_direct_CXX=yes
16564 hardcode_shlibpath_var_CXX=no
16566 # Workaround some broken pre-1.5 toolchains
16567 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16575 # C++ shared libraries are fairly broken
16580 if test -f /usr/libexec/ld.so; then
16581 hardcode_direct_CXX=yes
16582 hardcode_shlibpath_var_CXX=no
16583 hardcode_direct_absolute_CXX=yes
16584 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16587 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16588 export_dynamic_flag_spec_CXX='${wl}-E'
16589 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16591 output_verbose_link_cmd=echo
16597 osf3* | osf4* | osf5*)
16598 case $cc_basename in
16600 # Kuck and Associates, Inc. (KAI) C++ Compiler
16602 # KCC will only create a shared library if the output file
16603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16604 # to its proper name (with version) after linking.
16605 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'
16607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16608 hardcode_libdir_separator_CXX=:
16610 # Archives containing C++ object files must be created using
16611 # the KAI C++ compiler.
16613 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16614 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16618 # Rational C++ 2.4.1
16619 # FIXME: insert proper C++ library support
16625 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16626 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16627 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16630 allow_undefined_flag_CXX=' -expect_unresolved \*'
16631 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16632 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16633 echo "-hidden">> $lib.exp~
16634 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16636 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16640 hardcode_libdir_separator_CXX=:
16642 # Commands to make compiler produce verbose output that lists
16643 # what "hidden" libraries, object files and flags are used when
16644 # linking a shared library.
16646 # There doesn't appear to be a way to prevent this compiler from
16647 # explicitly linking system object files so we need to strip them
16648 # from the output so that they don't get included in the library
16650 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16653 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16654 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16657 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16660 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16665 hardcode_libdir_separator_CXX=:
16667 # Commands to make compiler produce verbose output that lists
16668 # what "hidden" libraries, object files and flags are used when
16669 # linking a shared library.
16670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16673 # FIXME: insert proper C++ library support
16681 # FIXME: insert proper C++ library support
16686 case $cc_basename in
16689 # FIXME: insert proper C++ library support
16694 # FIXME: insert proper C++ library support
16698 # FIXME: insert proper C++ library support
16705 case $cc_basename in
16707 # Sun C++ 4.2, 5.x and Centerline C++
16708 archive_cmds_need_lc_CXX=yes
16709 no_undefined_flag_CXX=' -zdefs'
16710 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16712 $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'
16714 hardcode_libdir_flag_spec_CXX='-R$libdir'
16715 hardcode_shlibpath_var_CXX=no
16717 solaris2.[0-5] | solaris2.[0-5].*) ;;
16719 # The compiler driver will combine and reorder linker options,
16720 # but understands `-z linker_flag'.
16721 # Supported since Solaris 2.6 (maybe 2.5.1?)
16722 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16725 link_all_deplibs_CXX=yes
16727 output_verbose_link_cmd='echo'
16729 # Archives containing C++ object files must be created using
16730 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16731 # necessary to make sure instantiated templates are included
16733 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16736 # Green Hills C++ Compiler
16737 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16739 # The C++ compiler must be used to create the archive.
16740 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16743 # GNU C++ compiler with Solaris linker
16744 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16745 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16746 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16747 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16748 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16749 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16751 # Commands to make compiler produce verbose output that lists
16752 # what "hidden" libraries, object files and flags are used when
16753 # linking a shared library.
16754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16756 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16758 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16759 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16760 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16762 # Commands to make compiler produce verbose output that lists
16763 # what "hidden" libraries, object files and flags are used when
16764 # linking a shared library.
16765 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16768 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16770 solaris2.[0-5] | solaris2.[0-5].*) ;;
16772 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16781 no_undefined_flag_CXX='${wl}-z,text'
16782 archive_cmds_need_lc_CXX=no
16783 hardcode_shlibpath_var_CXX=no
16784 runpath_var='LD_RUN_PATH'
16786 case $cc_basename in
16788 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16789 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16792 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16793 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16798 sysv5* | sco3.2v5* | sco5v6*)
16799 # Note: We can NOT use -z defs as we might desire, because we do not
16800 # link with -lc, and that would cause any symbols used from libc to
16801 # always be unresolved, which means just about no library would
16802 # ever link correctly. If we're not using GNU ld we use -z text
16803 # though, which does catch some bad symbols but isn't as heavy-handed
16805 no_undefined_flag_CXX='${wl}-z,text'
16806 allow_undefined_flag_CXX='${wl}-z,nodefs'
16807 archive_cmds_need_lc_CXX=no
16808 hardcode_shlibpath_var_CXX=no
16809 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16810 hardcode_libdir_separator_CXX=':'
16811 link_all_deplibs_CXX=yes
16812 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16813 runpath_var='LD_RUN_PATH'
16815 case $cc_basename in
16817 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16818 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16821 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16822 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16828 case $cc_basename in
16830 # NonStop-UX NCC 3.20
16831 # FIXME: insert proper C++ library support
16835 # FIXME: insert proper C++ library support
16842 # FIXME: insert proper C++ library support
16847 # FIXME: insert proper C++ library support
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16853 $as_echo "$ld_shlibs_CXX" >&6; }
16854 test "$ld_shlibs_CXX" = no && can_build_shared=no
16860 ## There is no encapsulation within the following macros, do not change
16861 ## the running order or otherwise move them around unless you know exactly
16862 ## what you are doing...
16863 # Dependencies to place before and after the object being linked:
16864 predep_objects_CXX=
16865 postdep_objects_CXX=
16868 compiler_lib_search_path_CXX=
16870 cat > conftest.$ac_ext <<_LT_EOF
16874 Foo (void) { a = 0; }
16880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16881 (eval $ac_compile) 2>&5
16883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16884 test $ac_status = 0; }; then
16885 # Parse the compiler output and extract the necessary
16886 # objects, libraries and library flags.
16888 # Sentinel used to keep track of whether or not we are before
16889 # the conftest object file.
16890 pre_test_object_deps_done=no
16892 for p in `eval "$output_verbose_link_cmd"`; do
16896 # Some compilers place space between "-{L,R}" and the path.
16897 # Remove the space.
16898 if test $p = "-L" ||
16899 test $p = "-R"; then
16906 if test "$pre_test_object_deps_done" = no; then
16909 # Internal compiler library paths should come after those
16910 # provided the user. The postdeps already come after the
16911 # user supplied libs so there is no need to process them.
16912 if test -z "$compiler_lib_search_path_CXX"; then
16913 compiler_lib_search_path_CXX="${prev}${p}"
16915 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16918 # The "-l" case would never come before the object being
16919 # linked, so don't bother handling this case.
16922 if test -z "$postdeps_CXX"; then
16923 postdeps_CXX="${prev}${p}"
16925 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16931 # This assumes that the test object file only shows up
16932 # once in the compiler output.
16933 if test "$p" = "conftest.$objext"; then
16934 pre_test_object_deps_done=yes
16938 if test "$pre_test_object_deps_done" = no; then
16939 if test -z "$predep_objects_CXX"; then
16940 predep_objects_CXX="$p"
16942 predep_objects_CXX="$predep_objects_CXX $p"
16945 if test -z "$postdep_objects_CXX"; then
16946 postdep_objects_CXX="$p"
16948 postdep_objects_CXX="$postdep_objects_CXX $p"
16953 *) ;; # Ignore the rest.
16961 echo "libtool.m4: error: problem compiling CXX test program"
16964 $RM -f confest.$objext
16966 # PORTME: override above test on systems where it is broken
16969 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16970 # hack all around it, let's just trust "g++" to DTRT.
16971 predep_objects_CXX=
16972 postdep_objects_CXX=
16977 case `$CC -V 2>&1 | sed 5q` in
16981 # The more standards-conforming stlport4 library is
16982 # incompatible with the Cstd library. Avoid specifying
16983 # it if it's in CXXFLAGS. Ignore libCrun as
16984 # -library=stlport4 depends on it.
16985 case " $CXX $CXXFLAGS " in
16986 *" -library=stlport4 "*)
16987 solaris_use_stlport4=yes
16991 if test "$solaris_use_stlport4" != yes; then
16992 postdeps_CXX='-library=Cstd -library=Crun'
16999 case $cc_basename in
17001 # The more standards-conforming stlport4 library is
17002 # incompatible with the Cstd library. Avoid specifying
17003 # it if it's in CXXFLAGS. Ignore libCrun as
17004 # -library=stlport4 depends on it.
17005 case " $CXX $CXXFLAGS " in
17006 *" -library=stlport4 "*)
17007 solaris_use_stlport4=yes
17011 # Adding this requires a known-good setup of shared libraries for
17012 # Sun compiler versions before 5.6, else PIC objects from an old
17013 # archive will be linked into the output, leading to subtle bugs.
17014 if test "$solaris_use_stlport4" != yes; then
17015 postdeps_CXX='-library=Cstd -library=Crun'
17023 case " $postdeps_CXX " in
17024 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17026 compiler_lib_search_dirs_CXX=
17027 if test -n "${compiler_lib_search_path_CXX}"; then
17028 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17061 lt_prog_compiler_wl_CXX=
17062 lt_prog_compiler_pic_CXX=
17063 lt_prog_compiler_static_CXX=
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17068 # C++ specific cases for pic, static, wl, etc.
17069 if test "$GXX" = yes; then
17070 lt_prog_compiler_wl_CXX='-Wl,'
17071 lt_prog_compiler_static_CXX='-static'
17075 # All AIX code is PIC.
17076 if test "$host_cpu" = ia64; then
17077 # AIX 5 now supports IA64 processor
17078 lt_prog_compiler_static_CXX='-Bstatic'
17085 # see comment about AmigaOS4 .so support
17086 lt_prog_compiler_pic_CXX='-fPIC'
17089 # FIXME: we need at least 68020 code to build shared libraries, but
17090 # adding the `-m68020' flag to GCC prevents building anything better,
17092 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17097 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17098 # PIC is the default for these OSes.
17100 mingw* | cygwin* | os2* | pw32* | cegcc*)
17101 # This hack is so that the source file can tell whether it is being
17102 # built for inclusion in a dll (and should export symbols for example).
17103 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17104 # (--disable-auto-import) libraries
17105 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17107 darwin* | rhapsody*)
17108 # PIC is the default on this platform
17109 # Common symbols not allowed in MH_DYLIB files
17110 lt_prog_compiler_pic_CXX='-fno-common'
17113 # DJGPP does not support shared libraries at all
17114 lt_prog_compiler_pic_CXX=
17117 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17118 # Instead, we relocate shared libraries at runtime.
17121 if test -d /usr/nec; then
17122 lt_prog_compiler_pic_CXX=-Kconform_pic
17126 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17127 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17128 # sets the default TLS model and affects inlining.
17133 lt_prog_compiler_pic_CXX='-fPIC'
17138 # QNX uses GNU C++, but need to define -shared option too, otherwise
17139 # it will coredump.
17140 lt_prog_compiler_pic_CXX='-fPIC -shared'
17143 lt_prog_compiler_pic_CXX='-fPIC'
17149 # All AIX code is PIC.
17150 if test "$host_cpu" = ia64; then
17151 # AIX 5 now supports IA64 processor
17152 lt_prog_compiler_static_CXX='-Bstatic'
17154 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17158 case $cc_basename in
17160 # Green Hills C++ Compiler
17161 # _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"
17166 case $cc_basename in
17168 lt_prog_compiler_pic_CXX='-KPIC'
17171 # Green Hills C++ Compiler
17172 lt_prog_compiler_pic_CXX='-pic'
17178 freebsd* | dragonfly*)
17179 # FreeBSD uses GNU C++
17181 hpux9* | hpux10* | hpux11*)
17182 case $cc_basename in
17184 lt_prog_compiler_wl_CXX='-Wl,'
17185 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17186 if test "$host_cpu" != ia64; then
17187 lt_prog_compiler_pic_CXX='+Z'
17191 lt_prog_compiler_wl_CXX='-Wl,'
17192 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17198 lt_prog_compiler_pic_CXX='+Z'
17207 # This is c89, which is MS Visual C++ (no shared libs)
17208 # Anyone wants to do a port?
17210 irix5* | irix6* | nonstopux*)
17211 case $cc_basename in
17213 lt_prog_compiler_wl_CXX='-Wl,'
17214 lt_prog_compiler_static_CXX='-non_shared'
17215 # CC pic flag -KPIC is the default.
17221 linux* | k*bsd*-gnu)
17222 case $cc_basename in
17225 lt_prog_compiler_wl_CXX='--backend -Wl,'
17226 lt_prog_compiler_pic_CXX='-fPIC'
17229 # old Intel C++ for x86_64 which still supported -KPIC.
17230 lt_prog_compiler_wl_CXX='-Wl,'
17231 lt_prog_compiler_pic_CXX='-KPIC'
17232 lt_prog_compiler_static_CXX='-static'
17235 # Intel C++, used to be incompatible with GCC.
17236 # ICC 10 doesn't accept -KPIC any more.
17237 lt_prog_compiler_wl_CXX='-Wl,'
17238 lt_prog_compiler_pic_CXX='-fPIC'
17239 lt_prog_compiler_static_CXX='-static'
17242 # Portland Group C++ compiler
17243 lt_prog_compiler_wl_CXX='-Wl,'
17244 lt_prog_compiler_pic_CXX='-fpic'
17245 lt_prog_compiler_static_CXX='-Bstatic'
17249 # Make sure the PIC flag is empty. It appears that all Alpha
17250 # Linux and Compaq Tru64 Unix objects are PIC.
17251 lt_prog_compiler_pic_CXX=
17252 lt_prog_compiler_static_CXX='-non_shared'
17255 # IBM XL 8.0 on PPC
17256 lt_prog_compiler_wl_CXX='-Wl,'
17257 lt_prog_compiler_pic_CXX='-qpic'
17258 lt_prog_compiler_static_CXX='-qstaticlink'
17261 case `$CC -V 2>&1 | sed 5q` in
17264 lt_prog_compiler_pic_CXX='-KPIC'
17265 lt_prog_compiler_static_CXX='-Bstatic'
17266 lt_prog_compiler_wl_CXX='-Qoption ld '
17277 case $cc_basename in
17279 lt_prog_compiler_pic_CXX='-W c,exportall'
17288 # QNX uses GNU C++, but need to define -shared option too, otherwise
17289 # it will coredump.
17290 lt_prog_compiler_pic_CXX='-fPIC -shared'
17292 osf3* | osf4* | osf5*)
17293 case $cc_basename in
17295 lt_prog_compiler_wl_CXX='--backend -Wl,'
17298 # Rational C++ 2.4.1
17299 lt_prog_compiler_pic_CXX='-pic'
17302 # Digital/Compaq C++
17303 lt_prog_compiler_wl_CXX='-Wl,'
17304 # Make sure the PIC flag is empty. It appears that all Alpha
17305 # Linux and Compaq Tru64 Unix objects are PIC.
17306 lt_prog_compiler_pic_CXX=
17307 lt_prog_compiler_static_CXX='-non_shared'
17316 case $cc_basename in
17318 # Sun C++ 4.2, 5.x and Centerline C++
17319 lt_prog_compiler_pic_CXX='-KPIC'
17320 lt_prog_compiler_static_CXX='-Bstatic'
17321 lt_prog_compiler_wl_CXX='-Qoption ld '
17324 # Green Hills C++ Compiler
17325 lt_prog_compiler_pic_CXX='-PIC'
17332 case $cc_basename in
17335 lt_prog_compiler_pic_CXX='-pic'
17336 lt_prog_compiler_static_CXX='-Bstatic'
17340 lt_prog_compiler_pic_CXX='-pic'
17346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17347 case $cc_basename in
17349 lt_prog_compiler_wl_CXX='-Wl,'
17350 lt_prog_compiler_pic_CXX='-KPIC'
17351 lt_prog_compiler_static_CXX='-Bstatic'
17356 case $cc_basename in
17358 # NonStop-UX NCC 3.20
17359 lt_prog_compiler_pic_CXX='-KPIC'
17368 lt_prog_compiler_can_build_shared_CXX=no
17374 # For platforms which do not support PIC, -DPIC is meaningless:
17376 lt_prog_compiler_pic_CXX=
17379 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17383 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17388 # Check to make sure the PIC flag actually works.
17390 if test -n "$lt_prog_compiler_pic_CXX"; then
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17392 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17393 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17396 lt_cv_prog_compiler_pic_works_CXX=no
17397 ac_outfile=conftest.$ac_objext
17398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17399 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17400 # Insert the option either (1) after the last *FLAGS variable, or
17401 # (2) before a word containing "conftest.", or (3) at the end.
17402 # Note that $ac_compile itself does not contain backslashes and begins
17403 # with a dollar sign (not a hyphen), so the echo should work correctly.
17404 # The option is referenced via a variable to avoid confusing sed.
17405 lt_compile=`echo "$ac_compile" | $SED \
17406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17408 -e 's:$: $lt_compiler_flag:'`
17409 (eval echo "\"\$as_me:17409: $lt_compile\"" >&5)
17410 (eval "$lt_compile" 2>conftest.err)
17412 cat conftest.err >&5
17413 echo "$as_me:17413: \$? = $ac_status" >&5
17414 if (exit $ac_status) && test -s "$ac_outfile"; then
17415 # The compiler can only warn and ignore the option if not recognized
17416 # So say no if there are warnings other than the usual output.
17417 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17420 lt_cv_prog_compiler_pic_works_CXX=yes
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17427 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17429 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17430 case $lt_prog_compiler_pic_CXX in
17432 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17435 lt_prog_compiler_pic_CXX=
17436 lt_prog_compiler_can_build_shared_CXX=no
17444 # Check to make sure the static flag actually works.
17446 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17448 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17449 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17450 $as_echo_n "(cached) " >&6
17452 lt_cv_prog_compiler_static_works_CXX=no
17453 save_LDFLAGS="$LDFLAGS"
17454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17457 # The linker can only warn and ignore the option if not recognized
17458 # So say no if there are warnings
17459 if test -s conftest.err; then
17460 # Append any errors to the config.log.
17461 cat conftest.err 1>&5
17462 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17464 if diff conftest.exp conftest.er2 >/dev/null; then
17465 lt_cv_prog_compiler_static_works_CXX=yes
17468 lt_cv_prog_compiler_static_works_CXX=yes
17472 LDFLAGS="$save_LDFLAGS"
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17476 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17478 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17481 lt_prog_compiler_static_CXX=
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17489 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17490 $as_echo_n "(cached) " >&6
17492 lt_cv_prog_compiler_c_o_CXX=no
17493 $RM -r conftest 2>/dev/null
17497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17499 lt_compiler_flag="-o out/conftest2.$ac_objext"
17500 # Insert the option either (1) after the last *FLAGS variable, or
17501 # (2) before a word containing "conftest.", or (3) at the end.
17502 # Note that $ac_compile itself does not contain backslashes and begins
17503 # with a dollar sign (not a hyphen), so the echo should work correctly.
17504 lt_compile=`echo "$ac_compile" | $SED \
17505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17507 -e 's:$: $lt_compiler_flag:'`
17508 (eval echo "\"\$as_me:17508: $lt_compile\"" >&5)
17509 (eval "$lt_compile" 2>out/conftest.err)
17511 cat out/conftest.err >&5
17512 echo "$as_me:17512: \$? = $ac_status" >&5
17513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17515 # The compiler can only warn and ignore the option if not recognized
17516 # So say no if there are warnings
17517 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17520 lt_cv_prog_compiler_c_o_CXX=yes
17525 # SGI C++ compiler will create directory out/ii_files/ for
17526 # template instantiation
17527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17528 $RM out/* && rmdir out
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17535 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17542 $as_echo_n "(cached) " >&6
17544 lt_cv_prog_compiler_c_o_CXX=no
17545 $RM -r conftest 2>/dev/null
17549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17551 lt_compiler_flag="-o out/conftest2.$ac_objext"
17552 # Insert the option either (1) after the last *FLAGS variable, or
17553 # (2) before a word containing "conftest.", or (3) at the end.
17554 # Note that $ac_compile itself does not contain backslashes and begins
17555 # with a dollar sign (not a hyphen), so the echo should work correctly.
17556 lt_compile=`echo "$ac_compile" | $SED \
17557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17559 -e 's:$: $lt_compiler_flag:'`
17560 (eval echo "\"\$as_me:17560: $lt_compile\"" >&5)
17561 (eval "$lt_compile" 2>out/conftest.err)
17563 cat out/conftest.err >&5
17564 echo "$as_me:17564: \$? = $ac_status" >&5
17565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17567 # The compiler can only warn and ignore the option if not recognized
17568 # So say no if there are warnings
17569 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17572 lt_cv_prog_compiler_c_o_CXX=yes
17577 # SGI C++ compiler will create directory out/ii_files/ for
17578 # template instantiation
17579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17580 $RM out/* && rmdir out
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17587 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17592 hard_links="nottested"
17593 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17594 # do not overwrite the value of need_locks provided by the user
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17596 $as_echo_n "checking if we can lock with hard links... " >&6; }
17599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17601 ln conftest.a conftest.b 2>&5 || hard_links=no
17602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17604 $as_echo "$hard_links" >&6; }
17605 if test "$hard_links" = no; then
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17607 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17619 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17622 # If we're using GNU nm, then we don't want the "-C" option.
17623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17624 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17625 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17627 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'
17631 export_symbols_cmds_CXX="$ltdll_cmds"
17633 cygwin* | mingw* | cegcc*)
17634 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'
17637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17640 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17643 $as_echo "$ld_shlibs_CXX" >&6; }
17644 test "$ld_shlibs_CXX" = no && can_build_shared=no
17646 with_gnu_ld_CXX=$with_gnu_ld
17654 # Do we need to explicitly link libc?
17656 case "x$archive_cmds_need_lc_CXX" in
17658 # Assume -lc should be added
17659 archive_cmds_need_lc_CXX=yes
17661 if test "$enable_shared" = yes && test "$GCC" = yes; then
17662 case $archive_cmds_CXX in
17664 # FIXME: we may have to deal with multi-command sequences.
17667 # Test whether the compiler implicitly links with -lc since on some
17668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17669 # to ld, don't add -lc before -lgcc.
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17676 (eval $ac_compile) 2>&5
17678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17679 test $ac_status = 0; } 2>conftest.err; then
17682 libobjs=conftest.$ac_objext
17684 wl=$lt_prog_compiler_wl_CXX
17685 pic_flag=$lt_prog_compiler_pic_CXX
17691 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17692 allow_undefined_flag_CXX=
17693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17694 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17697 test $ac_status = 0; }
17699 archive_cmds_need_lc_CXX=no
17701 archive_cmds_need_lc_CXX=yes
17703 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17705 cat conftest.err 1>&5
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17709 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17780 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17782 library_names_spec=
17783 libname_spec='lib$name'
17787 postuninstall_cmds=
17791 shlibpath_overrides_runpath=unknown
17793 dynamic_linker="$host_os ld.so"
17794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17795 need_lib_prefix=unknown
17796 hardcode_into_libs=no
17798 # when you set need_version to no, make sure it does not cause -set_version
17799 # flags to be left without arguments
17800 need_version=unknown
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17806 shlibpath_var=LIBPATH
17808 # AIX 3 has no versioning support, so we append a major version to the name.
17809 soname_spec='${libname}${release}${shared_ext}$major'
17816 hardcode_into_libs=yes
17817 if test "$host_cpu" = ia64; then
17818 # AIX 5 supports IA64
17819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17820 shlibpath_var=LD_LIBRARY_PATH
17822 # With GCC up to 2.95.x, collect2 would create an import file
17823 # for dependence libraries. The import file would start with
17824 # the line `#! .'. This would cause the generated library to
17825 # depend on `.', always an invalid library. This was fixed in
17826 # development snapshots of GCC prior to 3.0.
17828 aix4 | aix4.[01] | aix4.[01].*)
17829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17831 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17834 can_build_shared=no
17838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17839 # soname into executable. Probably we can add versioning support to
17840 # collect2, so additional links can be useful in future.
17841 if test "$aix_use_runtimelinking" = yes; then
17842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17843 # instead of lib<name>.a to let people know that these are not
17844 # typical AIX shared libraries.
17845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17847 # We preserve .a as extension for shared libraries through AIX4.2
17848 # and later when we are not doing run time linking.
17849 library_names_spec='${libname}${release}.a $libname.a'
17850 soname_spec='${libname}${release}${shared_ext}$major'
17852 shlibpath_var=LIBPATH
17859 # Since July 2007 AmigaOS4 officially supports .so libraries.
17860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 library_names_spec='$libname.ixlibrary $libname.a'
17865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17866 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
17872 library_names_spec='${libname}${shared_ext}'
17873 dynamic_linker="$host_os ld.so"
17874 shlibpath_var=LIBRARY_PATH
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881 soname_spec='${libname}${release}${shared_ext}$major'
17882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17886 # the default ld.so.conf also contains /usr/contrib/lib and
17887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17888 # libtool to hard-code these into programs
17891 cygwin* | mingw* | pw32* | cegcc*)
17892 version_type=windows
17897 case $GCC,$host_os in
17898 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17899 library_names_spec='$libname.dll.a'
17900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17901 postinstall_cmds='base_file=`basename \${file}`~
17902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17903 dldir=$destdir/`dirname \$dlpath`~
17904 test -d \$dldir || mkdir -p \$dldir~
17905 $install_prog $dir/$dlname \$dldir/$dlname~
17906 chmod a+x \$dldir/$dlname~
17907 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17908 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17911 dlpath=$dir/\$dldll~
17913 shlibpath_overrides_runpath=yes
17917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17919 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17922 # MinGW DLLs use traditional 'lib' prefix
17923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17924 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17925 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17926 # It is most probably a Windows format PATH printed by
17927 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17928 # path with ; separators, and with drive letters. We can handle the
17929 # drive letters (cygwin fileutils understands them), so leave them,
17930 # especially as we might pass files found there to a mingw objdump,
17931 # which wouldn't understand a cygwinified path. Ahh.
17932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17934 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17938 # pw32 DLLs use 'pw' prefix rather than 'lib'
17939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17945 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17948 dynamic_linker='Win32 ld.exe'
17949 # FIXME: first we should search . and the directory the executable is in
17953 darwin* | rhapsody*)
17954 dynamic_linker="$host_os dyld"
17955 version_type=darwin
17958 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17959 soname_spec='${libname}${release}${major}$shared_ext'
17960 shlibpath_overrides_runpath=yes
17961 shlibpath_var=DYLD_LIBRARY_PATH
17962 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17972 soname_spec='${libname}${release}${shared_ext}$major'
17973 shlibpath_var=LD_LIBRARY_PATH
17980 freebsd* | dragonfly*)
17981 # DragonFly does not have aout. When/if they implement a new
17982 # versioning mechanism, adjust this.
17983 if test -x /usr/bin/objformat; then
17984 objformat=`/usr/bin/objformat`
17987 freebsd[123]*) objformat=aout ;;
17988 *) objformat=elf ;;
17991 version_type=freebsd-$objformat
17992 case $version_type in
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18003 shlibpath_var=LD_LIBRARY_PATH
18006 shlibpath_overrides_runpath=yes
18008 freebsd3.[01]* | freebsdelf3.[01]*)
18009 shlibpath_overrides_runpath=yes
18010 hardcode_into_libs=yes
18012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18014 shlibpath_overrides_runpath=no
18015 hardcode_into_libs=yes
18017 *) # from 4.6 on, and DragonFly
18018 shlibpath_overrides_runpath=yes
18019 hardcode_into_libs=yes
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18029 soname_spec='${libname}${release}${shared_ext}$major'
18030 shlibpath_var=LD_LIBRARY_PATH
18031 hardcode_into_libs=yes
18034 hpux9* | hpux10* | hpux11*)
18035 # Give a soname corresponding to the major version so that dld.sl refuses to
18036 # link against other versions.
18043 hardcode_into_libs=yes
18044 dynamic_linker="$host_os dld.so"
18045 shlibpath_var=LD_LIBRARY_PATH
18046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 soname_spec='${libname}${release}${shared_ext}$major'
18049 if test "X$HPUX_IA64_MODE" = X32; then
18050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18058 hardcode_into_libs=yes
18059 dynamic_linker="$host_os dld.sl"
18060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18069 dynamic_linker="$host_os dld.sl"
18070 shlibpath_var=SHLIB_PATH
18071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18073 soname_spec='${libname}${release}${shared_ext}$major'
18076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18077 postinstall_cmds='chmod 555 $lib'
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18087 shlibpath_var=LD_LIBRARY_PATH
18088 shlibpath_overrides_runpath=no
18089 hardcode_into_libs=yes
18092 irix5* | irix6* | nonstopux*)
18094 nonstopux*) version_type=nonstopux ;;
18096 if test "$lt_cv_prog_gnu_ld" = yes; then
18104 soname_spec='${libname}${release}${shared_ext}$major'
18105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18107 irix5* | nonstopux*)
18108 libsuff= shlibsuff=
18111 case $LD in # libtool.m4 will add one of these switches to LD
18112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18113 libsuff= shlibsuff= libmagic=32-bit;;
18114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18115 libsuff=32 shlibsuff=N32 libmagic=N32;;
18116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18118 *) libsuff= shlibsuff= libmagic=never-match;;
18122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18123 shlibpath_overrides_runpath=no
18124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18126 hardcode_into_libs=yes
18129 # No shared lib support for Linux oldld, aout, or coff.
18130 linux*oldld* | linux*aout* | linux*coff*)
18134 # This must be Linux ELF.
18135 linux* | k*bsd*-gnu)
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18142 shlibpath_var=LD_LIBRARY_PATH
18143 shlibpath_overrides_runpath=no
18144 # Some binutils ld are patched to set DT_RUNPATH
18145 save_LDFLAGS=$LDFLAGS
18146 save_libdir=$libdir
18147 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18148 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18160 if ac_fn_cxx_try_link "$LINENO"; then :
18161 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18162 shlibpath_overrides_runpath=yes
18165 rm -f core conftest.err conftest.$ac_objext \
18166 conftest$ac_exeext conftest.$ac_ext
18167 LDFLAGS=$save_LDFLAGS
18168 libdir=$save_libdir
18170 # This implies no fast_install, which is unacceptable.
18171 # Some rework will be needed to allow for fast_install
18172 # before this can be enabled.
18173 hardcode_into_libs=yes
18175 # Add ABI-specific directories to the system library path.
18176 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18178 # Append ld.so.conf contents to the search path
18179 if test -f /etc/ld.so.conf; then
18180 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;/^$/d' | tr '\n' ' '`
18181 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18184 # We used to test for /lib/ld.so.1 and disable shared libraries on
18185 # powerpc, because MkLinux only supported shared libraries with the
18186 # GNU dynamic linker. Since this was broken with cross compilers,
18187 # most powerpc-linux boxes support dynamic linking these days and
18188 # people can always --disable-shared, the test was removed, and we
18189 # assume the GNU/Linux dynamic linker is in use.
18190 dynamic_linker='GNU/Linux ld.so'
18197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18200 dynamic_linker='NetBSD (a.out) ld.so'
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18203 soname_spec='${libname}${release}${shared_ext}$major'
18204 dynamic_linker='NetBSD ld.elf_so'
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=yes
18208 hardcode_into_libs=yes
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214 shlibpath_var=LD_LIBRARY_PATH
18215 shlibpath_overrides_runpath=yes
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 shlibpath_overrides_runpath=no
18226 hardcode_into_libs=yes
18227 dynamic_linker='ldqnx.so'
18232 sys_lib_dlsearch_path_spec="/usr/lib"
18234 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18236 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18237 *) need_version=no ;;
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18241 shlibpath_var=LD_LIBRARY_PATH
18242 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18244 openbsd2.[89] | openbsd2.[89].*)
18245 shlibpath_overrides_runpath=no
18248 shlibpath_overrides_runpath=yes
18252 shlibpath_overrides_runpath=yes
18257 libname_spec='$name'
18260 library_names_spec='$libname${shared_ext} $libname.a'
18261 dynamic_linker='OS/2 ld.exe'
18262 shlibpath_var=LIBPATH
18265 osf3* | osf4* | osf5*)
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271 shlibpath_var=LD_LIBRARY_PATH
18272 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18273 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 shlibpath_var=LD_LIBRARY_PATH
18287 shlibpath_overrides_runpath=yes
18288 hardcode_into_libs=yes
18289 # ldd complains unless libraries are executable
18290 postinstall_cmds='chmod +x $lib'
18295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18296 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18299 if test "$with_gnu_ld" = yes; then
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 soname_spec='${libname}${release}${shared_ext}$major'
18309 shlibpath_var=LD_LIBRARY_PATH
18310 case $host_vendor in
18312 shlibpath_overrides_runpath=no
18314 runpath_var=LD_RUN_PATH
18322 shlibpath_overrides_runpath=no
18323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18329 if test -d /usr/nec ;then
18331 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18332 soname_spec='$libname${shared_ext}.$major'
18333 shlibpath_var=LD_LIBRARY_PATH
18337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18338 version_type=freebsd-elf
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 shlibpath_var=LD_LIBRARY_PATH
18344 shlibpath_overrides_runpath=yes
18345 hardcode_into_libs=yes
18346 if test "$with_gnu_ld" = yes; then
18347 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18349 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18352 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18356 sys_lib_dlsearch_path_spec='/usr/lib'
18360 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365 shlibpath_var=LD_LIBRARY_PATH
18366 shlibpath_overrides_runpath=no
18367 hardcode_into_libs=yes
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 shlibpath_var=LD_LIBRARY_PATH
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18382 $as_echo "$dynamic_linker" >&6; }
18383 test "$dynamic_linker" = no && can_build_shared=no
18385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18386 if test "$GCC" = yes; then
18387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18390 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18391 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18393 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18394 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18434 hardcode_action_CXX=
18435 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18436 test -n "$runpath_var_CXX" ||
18437 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18439 # We can hardcode non-existent directories.
18440 if test "$hardcode_direct_CXX" != no &&
18441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18442 # have to relink, otherwise we might link with an installed library
18443 # when we should be linking with a yet-to-be-installed one
18444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18445 test "$hardcode_minus_L_CXX" != no; then
18446 # Linking always hardcodes the temporary library directory.
18447 hardcode_action_CXX=relink
18449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18450 hardcode_action_CXX=immediate
18453 # We cannot hardcode anything, or else we can only hardcode existing
18455 hardcode_action_CXX=unsupported
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18458 $as_echo "$hardcode_action_CXX" >&6; }
18460 if test "$hardcode_action_CXX" = relink ||
18461 test "$inherit_rpath_CXX" = yes; then
18462 # Fast installation is not supported
18463 enable_fast_install=no
18464 elif test "$shlibpath_overrides_runpath" = yes ||
18465 test "$enable_shared" = no; then
18466 # Fast installation is not necessary
18467 enable_fast_install=needless
18476 fi # test -n "$compiler"
18482 with_gnu_ld=$lt_save_with_gnu_ld
18483 lt_cv_path_LDCXX=$lt_cv_path_LD
18484 lt_cv_path_LD=$lt_save_path_LD
18485 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18486 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18487 fi # test "$_lt_caught_CXX_error" != yes
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18507 ac_config_commands="$ac_config_commands libtool"
18512 # Only expand once:
18518 # Configure libltdl
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18528 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18529 if test "${libltdl_cv_shlibext+set}" = set; then :
18530 $as_echo_n "(cached) " >&6
18534 eval libltdl_cv_shlibext=$shrext_cmds
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18538 $as_echo "$libltdl_cv_shlibext" >&6; }
18539 if test -n "$libltdl_cv_shlibext"; then
18541 cat >>confdefs.h <<_ACEOF
18542 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18548 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18549 if test "${lt_cv_module_path_var+set}" = set; then :
18550 $as_echo_n "(cached) " >&6
18552 lt_cv_module_path_var="$shlibpath_var"
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18555 $as_echo "$lt_cv_module_path_var" >&6; }
18556 if test -n "$lt_cv_module_path_var"; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18565 $as_echo_n "checking for the default library search path... " >&6; }
18566 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18567 $as_echo_n "(cached) " >&6
18569 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18572 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18573 if test -n "$lt_cv_sys_dlsearch_path"; then
18575 for dir in $lt_cv_sys_dlsearch_path; do
18576 if test -z "$sys_dlsearch_path"; then
18577 sys_dlsearch_path="$dir"
18579 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18583 cat >>confdefs.h <<_ACEOF
18584 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18594 ac_cpp='$CPP $CPPFLAGS'
18595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18602 $as_echo_n "checking for library containing dlopen... " >&6; }
18603 if test "${ac_cv_search_dlopen+set}" = set; then :
18604 $as_echo_n "(cached) " >&6
18606 ac_func_search_save_LIBS=$LIBS
18607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h. */
18610 /* Override any GCC internal prototype to avoid an error.
18611 Use char because int might match the return type of a GCC
18612 builtin and then its argument prototype would still apply. */
18625 for ac_lib in '' dl; do
18626 if test -z "$ac_lib"; then
18627 ac_res="none required"
18630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18632 if ac_fn_c_try_link "$LINENO"; then :
18633 ac_cv_search_dlopen=$ac_res
18635 rm -f core conftest.err conftest.$ac_objext \
18637 if test "${ac_cv_search_dlopen+set}" = set; then :
18641 if test "${ac_cv_search_dlopen+set}" = set; then :
18644 ac_cv_search_dlopen=no
18646 rm conftest.$ac_ext
18647 LIBS=$ac_func_search_save_LIBS
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18650 $as_echo "$ac_cv_search_dlopen" >&6; }
18651 ac_res=$ac_cv_search_dlopen
18652 if test "$ac_res" != no; then :
18653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18655 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18657 if test "$ac_cv_search_dlopen" != "none required" ; then
18658 LIBADD_DLOPEN="-ldl"
18660 libltdl_cv_lib_dl_dlopen="yes"
18661 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18666 # include <dlfcn.h>
18677 if ac_fn_c_try_link "$LINENO"; then :
18679 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18681 libltdl_cv_func_dlopen="yes"
18682 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18685 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18686 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18687 $as_echo_n "(cached) " >&6
18689 ac_check_lib_save_LIBS=$LIBS
18690 LIBS="-lsvld $LIBS"
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18694 /* Override any GCC internal prototype to avoid an error.
18695 Use char because int might match the return type of a GCC
18696 builtin and then its argument prototype would still apply. */
18709 if ac_fn_c_try_link "$LINENO"; then :
18710 ac_cv_lib_svld_dlopen=yes
18712 ac_cv_lib_svld_dlopen=no
18714 rm -f core conftest.err conftest.$ac_objext \
18715 conftest$ac_exeext conftest.$ac_ext
18716 LIBS=$ac_check_lib_save_LIBS
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18719 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18720 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18722 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18724 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18725 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18729 rm -f core conftest.err conftest.$ac_objext \
18730 conftest$ac_exeext conftest.$ac_ext
18733 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18735 lt_save_LIBS="$LIBS"
18736 LIBS="$LIBS $LIBADD_DLOPEN"
18737 for ac_func in dlerror
18739 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18740 if test "x$ac_cv_func_dlerror" = x""yes; then :
18741 cat >>confdefs.h <<_ACEOF
18742 #define HAVE_DLERROR 1
18748 LIBS="$lt_save_LIBS"
18753 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18754 if test "x$ac_cv_func_shl_load" = x""yes; then :
18756 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
18758 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18761 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18763 $as_echo_n "(cached) " >&6
18765 ac_check_lib_save_LIBS=$LIBS
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768 /* end confdefs.h. */
18770 /* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18780 return shl_load ();
18785 if ac_fn_c_try_link "$LINENO"; then :
18786 ac_cv_lib_dld_shl_load=yes
18788 ac_cv_lib_dld_shl_load=no
18790 rm -f core conftest.err conftest.$ac_objext \
18791 conftest$ac_exeext conftest.$ac_ext
18792 LIBS=$ac_check_lib_save_LIBS
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18795 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18796 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18798 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
18800 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18801 LIBADD_SHL_LOAD="-ldld"
18810 # We only want this for pre-Mac OS X 10.4.
18811 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18812 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
18814 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
18816 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18821 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18823 cygwin* | mingw* | os2* | pw32*)
18824 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18826 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18832 cat >>confdefs.h <<_ACEOF
18833 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
18836 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18842 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18843 $as_echo_n "(cached) " >&6
18845 ac_check_lib_save_LIBS=$LIBS
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18850 /* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18860 return dld_link ();
18865 if ac_fn_c_try_link "$LINENO"; then :
18866 ac_cv_lib_dld_dld_link=yes
18868 ac_cv_lib_dld_dld_link=no
18870 rm -f core conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
18872 LIBS=$ac_check_lib_save_LIBS
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18876 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18878 $as_echo "#define HAVE_DLD 1" >>confdefs.h
18880 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18887 if test -n "$LT_DLLOADERS"
18889 for lt_loader in $LT_DLLOADERS; do
18890 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18893 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
18898 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18902 ac_cpp='$CPP $CPPFLAGS'
18903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18909 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
18910 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
18911 $as_echo_n "(cached) " >&6
18913 lt_cv_sys_symbol_underscore=no
18914 cat > conftest.$ac_ext <<_LT_EOF
18915 void nm_test_func(){}
18916 int main(){nm_test_func;return 0;}
18918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18919 (eval $ac_compile) 2>&5
18921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18922 test $ac_status = 0; }; then
18923 # Now try to grab the symbols.
18924 ac_nlist=conftest.nm
18925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18926 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929 test $ac_status = 0; } && test -s "$ac_nlist"; then
18930 # See whether the symbols have a leading underscore.
18931 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18932 lt_cv_sys_symbol_underscore=yes
18934 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18937 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18941 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18944 echo "configure: failed program was:" >&5
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18951 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18952 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18955 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18956 if test x"$libltdl_cv_func_dlopen" = xyes ||
18957 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
18959 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
18960 if test "${libltdl_cv_need_uscore+set}" = set; then :
18961 $as_echo_n "(cached) " >&6
18963 libltdl_cv_need_uscore=unknown
18965 LIBS="$LIBS $LIBADD_DLOPEN"
18966 if test "$cross_compiling" = yes; then :
18967 libltdl_cv_need_uscore=cross
18969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18970 lt_status=$lt_dlunknown
18971 cat > conftest.$ac_ext <<_LT_EOF
18972 #line 18972 "configure"
18973 #include "confdefs.h"
18982 # define LT_DLGLOBAL RTLD_GLOBAL
18985 # define LT_DLGLOBAL DL_GLOBAL
18987 # define LT_DLGLOBAL 0
18991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18992 find out it does not work in some platform. */
18993 #ifndef LT_DLLAZY_OR_NOW
18995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18998 # define LT_DLLAZY_OR_NOW DL_LAZY
19001 # define LT_DLLAZY_OR_NOW RTLD_NOW
19004 # define LT_DLLAZY_OR_NOW DL_NOW
19006 # define LT_DLLAZY_OR_NOW 0
19013 void fnord() { int i=42;}
19016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19017 int status = $lt_dlunknown;
19021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19023 /* dlclose (self); */
19031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19032 (eval $ac_link) 2>&5
19034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19035 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19036 (./conftest; exit; ) >&5 2>/dev/null
19038 case x$lt_status in
19039 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19040 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19041 x$lt_dlunknown|x*) ;;
19044 # compilation failed
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19054 $as_echo "$libltdl_cv_need_uscore" >&6; }
19058 if test x"$libltdl_cv_need_uscore" = xyes; then
19060 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19065 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19066 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19067 $as_echo_n "(cached) " >&6
19069 # PORTME does your system automatically load deplibs for dlopen?
19070 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19071 # For now, we just catch OSes we know something about -- in the
19072 # future, we'll try test this programmatically.
19073 lt_cv_sys_dlopen_deplibs=unknown
19075 aix3*|aix4.1.*|aix4.2.*)
19076 # Unknown whether this is true for these versions of AIX, but
19077 # we want this `case' here to explicitly catch those versions.
19078 lt_cv_sys_dlopen_deplibs=unknown
19081 lt_cv_sys_dlopen_deplibs=yes
19086 lt_cv_sys_dlopen_deplibs=no
19091 # Assuming the user has installed a libdl from somewhere, this is true
19092 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19093 lt_cv_sys_dlopen_deplibs=yes
19095 freebsd* | dragonfly*)
19096 lt_cv_sys_dlopen_deplibs=yes
19098 gnu* | linux* | k*bsd*-gnu)
19099 # GNU and its variants, using gnu ld.so (Glibc)
19100 lt_cv_sys_dlopen_deplibs=yes
19103 lt_cv_sys_dlopen_deplibs=yes
19106 lt_cv_sys_dlopen_deplibs=yes
19108 irix[12345]*|irix6.[01]*)
19109 # Catch all versions of IRIX before 6.2, and indicate that we don't
19110 # know how it worked for any of those versions.
19111 lt_cv_sys_dlopen_deplibs=unknown
19114 # The case above catches anything before 6.2, and it's known that
19115 # at 6.2 and later dlopen does load deplibs.
19116 lt_cv_sys_dlopen_deplibs=yes
19119 lt_cv_sys_dlopen_deplibs=yes
19122 lt_cv_sys_dlopen_deplibs=yes
19125 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19126 # it did *not* use an RPATH in a shared library to find objects the
19127 # library depends on, so we explicitly say `no'.
19128 lt_cv_sys_dlopen_deplibs=no
19130 osf5.0|osf5.0a|osf5.1)
19131 # dlopen *does* load deplibs and with the right loader patch applied
19132 # it even uses RPATH in a shared library to search for shared objects
19133 # that the library depends on, but there's no easy way to know if that
19134 # patch is installed. Since this is the case, all we can really
19135 # say is unknown -- it depends on the patch being installed. If
19136 # it is, this changes to `yes'. Without it, it would be `no'.
19137 lt_cv_sys_dlopen_deplibs=unknown
19140 # the two cases above should catch all versions of osf <= 5.1. Read
19141 # the comments above for what we know about them.
19142 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19143 # is used to find them so we can finally say `yes'.
19144 lt_cv_sys_dlopen_deplibs=yes
19147 lt_cv_sys_dlopen_deplibs=yes
19150 lt_cv_sys_dlopen_deplibs=yes
19152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19153 libltdl_cv_sys_dlopen_deplibs=yes
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19159 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19160 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19162 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19168 for ac_header in argz.h
19170 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19172 if test "x$ac_cv_header_argz_h" = x""yes; then :
19173 cat >>confdefs.h <<_ACEOF
19174 #define HAVE_ARGZ_H 1
19182 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19186 if test "x$ac_cv_type_error_t" = x""yes; then :
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE_ERROR_T 1
19195 $as_echo "#define error_t int" >>confdefs.h
19198 $as_echo "#define __error_t_defined 1" >>confdefs.h
19204 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19205 argz_next argz_stringify
19207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19209 eval as_val=\$$as_ac_var
19210 if test "x$as_val" = x""yes; then :
19211 cat >>confdefs.h <<_ACEOF
19212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19218 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19224 if test -z "$ARGZ_H"; then :
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19226 $as_echo_n "checking if argz actually works... " >&6; }
19227 if test "${lt_cv_sys_argz_works+set}" = set; then :
19228 $as_echo_n "(cached) " >&6
19230 case $host_os in #(
19232 lt_cv_sys_argz_works=no
19233 if test "$cross_compiling" != no; then
19234 lt_cv_sys_argz_works="guessing no"
19236 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19239 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19244 if test "$lt_os_major" -gt 1 \
19245 || { test "$lt_os_major" -eq 1 \
19246 && { test "$lt_os_minor" -gt 5 \
19247 || { test "$lt_os_minor" -eq 5 \
19248 && test "$lt_os_micro" -gt 24; }; }; }; then
19249 lt_cv_sys_argz_works=yes
19253 *) lt_cv_sys_argz_works=yes ;;
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19257 $as_echo "$lt_cv_sys_argz_works" >&6; }
19258 if test $lt_cv_sys_argz_works = yes; then :
19260 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19266 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19274 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19275 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19276 $as_echo_n "(cached) " >&6
19278 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19279 libltdl_cv_preloaded_symbols=yes
19281 libltdl_cv_preloaded_symbols=no
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19286 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19287 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19289 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19305 # Check whether --with-included_ltdl was given.
19306 if test "${with_included_ltdl+set}" = set; then :
19307 withval=$with_included_ltdl;
19311 if test "x$with_included_ltdl" != xyes; then
19312 # We are not being forced to use the included libltdl sources, so
19313 # decide whether there is a useful installed version we can use.
19314 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19317 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19318 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19321 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19323 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19324 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19325 $as_echo_n "(cached) " >&6
19327 ac_check_lib_save_LIBS=$LIBS
19328 LIBS="-lltdl $LIBS"
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19338 char lt_dladvise_preload ();
19342 return lt_dladvise_preload ();
19347 if ac_fn_c_try_link "$LINENO"; then :
19348 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19350 ac_cv_lib_ltdl_lt_dladvise_preload=no
19352 rm -f core conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext conftest.$ac_ext
19354 LIBS=$ac_check_lib_save_LIBS
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19357 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19358 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19359 with_included_ltdl=no
19361 with_included_ltdl=yes
19365 with_included_ltdl=yes
19369 with_included_ltdl=yes
19378 # Check whether --with-ltdl_include was given.
19379 if test "${with_ltdl_include+set}" = set; then :
19380 withval=$with_ltdl_include;
19384 if test -n "$with_ltdl_include"; then
19385 if test -f "$with_ltdl_include/ltdl.h"; then :
19387 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19390 with_ltdl_include=no
19394 # Check whether --with-ltdl_lib was given.
19395 if test "${with_ltdl_lib+set}" = set; then :
19396 withval=$with_ltdl_lib;
19400 if test -n "$with_ltdl_lib"; then
19401 if test -f "$with_ltdl_lib/libltdl.la"; then :
19403 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19409 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19411 case $enable_ltdl_convenience in
19412 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19413 "") enable_ltdl_convenience=yes
19414 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19416 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19418 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19424 # For backwards non-gettext consistent compatibility...
19425 INCLTDL="$LTDLINCL"
19430 # If the included ltdl is not to be used, then use the
19431 # preinstalled libltdl we found.
19433 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19440 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19442 *) with_included_ltdl=no
19443 LIBLTDL="-L$with_ltdl_lib -lltdl"
19445 LTDLINCL="-I$with_ltdl_include"
19448 INCLTDL="$LTDLINCL"
19450 # Report our decision...
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19452 $as_echo_n "checking where to find libltdl headers... " >&6; }
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19454 $as_echo "$LTDLINCL" >&6; }
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19456 $as_echo_n "checking where to find libltdl library... " >&6; }
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19458 $as_echo "$LIBLTDL" >&6; }
19462 # Check whether --enable-ltdl-install was given.
19463 if test "${enable_ltdl_install+set}" = set; then :
19464 enableval=$enable_ltdl_install;
19468 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19470 *) enable_ltdl_convenience=yes ;;
19473 if test x"${enable_ltdl_install-no}" != xno; then
19475 INSTALL_LTDL_FALSE='#'
19477 INSTALL_LTDL_TRUE='#'
19478 INSTALL_LTDL_FALSE=
19481 if test x"${enable_ltdl_convenience-no}" != xno; then
19482 CONVENIENCE_LTDL_TRUE=
19483 CONVENIENCE_LTDL_FALSE='#'
19485 CONVENIENCE_LTDL_TRUE='#'
19486 CONVENIENCE_LTDL_FALSE=
19495 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19496 # the user used. This is so that ltdl.h can pick up the parent projects
19497 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19498 # definitions required by ltdl.c.
19499 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19503 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19506 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19508 eval as_val=\$$as_ac_Header
19509 if test "x$as_val" = x""yes; then :
19510 cat >>confdefs.h <<_ACEOF
19511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19519 for ac_func in closedir opendir readdir
19521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19523 eval as_val=\$$as_ac_var
19524 if test "x$as_val" = x""yes; then :
19525 cat >>confdefs.h <<_ACEOF
19526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19532 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19537 for ac_func in strlcat strlcpy
19539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19541 eval as_val=\$$as_ac_var
19542 if test "x$as_val" = x""yes; then :
19543 cat >>confdefs.h <<_ACEOF
19544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19550 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19557 cat >>confdefs.h <<_ACEOF
19558 #define LT_LIBEXT "$libext"
19563 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19572 # Only expand once:
19576 # Check to see if building shared libraries
19577 libtool_build_shared_libs='no'
19578 if test "$enable_shared" = 'yes'; then
19579 libtool_build_shared_libs='yes'
19582 # Check to see if building static libraries
19583 libtool_build_static_libs='no'
19584 if test "$enable_static" = 'yes'; then
19585 libtool_build_static_libs='yes'
19588 if test "${libtool_build_shared_libs}" = 'yes'; then
19589 WITH_SHARED_LIBS_TRUE=
19590 WITH_SHARED_LIBS_FALSE='#'
19592 WITH_SHARED_LIBS_TRUE='#'
19593 WITH_SHARED_LIBS_FALSE=
19597 # Enable support for building loadable modules
19600 # Check whether --with-modules was given.
19601 if test "${with_modules+set}" = set; then :
19602 withval=$with_modules; with_modules=$withval
19608 # Only allow building loadable modules if we are building shared libraries
19609 if test "$with_modules" != 'no' ; then
19610 if test "$libtool_build_shared_libs" = 'no'; then
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19612 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19616 if test "$with_modules" != 'no'; then
19618 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19621 if test "$with_modules" != 'no'; then
19623 WITH_MODULES_FALSE='#'
19625 WITH_MODULES_TRUE='#'
19626 WITH_MODULES_FALSE=
19630 # Enable building/use of libltdl if we are building shared libraries regardless
19631 # of whether modules are built or not.
19633 if test "$libtool_build_shared_libs" != 'no'; then
19637 if test "$with_ltdl" != 'no'; then
19639 WITH_LTDL_FALSE='#'
19645 if test "$with_ltdl" != 'no'; then
19647 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19651 if test X"$enable_shared" = Xyes; then
19652 DLLDFLAGS=-export-dynamic
19657 # Enable build using delegate libraries built in subdirectories rather than installed
19658 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
19659 # Check whether --enable-delegate-build was given.
19660 if test "${enable_delegate_build+set}" = set; then :
19661 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19663 enable_delegate_build='no'
19667 # Check whether --enable-deprecated was given.
19668 if test "${enable_deprecated+set}" = set; then :
19669 enableval=$enable_deprecated; enable_deprecated=$enableval
19671 enable_deprecated='no'
19675 if test "$enable_deprecated" = 'yes'; then
19677 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
19680 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19683 # Build a version of ImageMagick which operates uninstalled.
19684 # Used to build distributions located via MAGICK_HOME / executable path
19685 # Check whether --enable-installed was given.
19686 if test "${enable_installed+set}" = set; then :
19687 enableval=$enable_installed; enable_installed=$enableval
19689 enable_installed='yes'
19693 if test "$enable_installed" = 'yes'; then
19695 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
19698 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19701 # Permit enciphering and deciphering image pixels.
19702 # Check whether --enable-cipher was given.
19703 if test "${enable_cipher+set}" = set; then :
19704 enableval=$enable_cipher; enable_cipher=$enableval
19706 enable_cipher='yes'
19710 if test "$enable_cipher" = 'yes'; then
19712 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
19716 # Build an embeddable version of ImageMagick.
19717 # Check whether --enable-embeddable was given.
19718 if test "${enable_embeddable+set}" = set; then :
19719 enableval=$enable_embeddable; enable_embeddable=$enableval
19721 enable_embeddable='no'
19725 if test "$enable_embeddable" = 'yes'; then
19727 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
19731 # Build a high dynamic range version of ImageMagick.
19732 # Check whether --enable-hdri was given.
19733 if test "${enable_hdri+set}" = set; then :
19734 enableval=$enable_hdri; enable_hdri=$enableval
19741 if test "$enable_hdri" = 'yes'; then
19744 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
19748 # Build a version of ImageMagick with assert statements.
19749 # Check whether --enable-assert was given.
19750 if test "${enable_assert+set}" = set; then :
19751 enableval=$enable_assert; enable_assert=$enableval
19753 enable_assert='yes'
19757 if test "$enable_assert" = 'no'; then
19759 $as_echo "#define NDEBUG 1" >>confdefs.h
19763 # Add configure option --enable-maintainer-mode which enables dependency
19764 # checking and generation useful to package maintainers. This is made an
19765 # option to avoid confusing end users.
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19768 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19769 # Check whether --enable-maintainer-mode was given.
19770 if test "${enable_maintainer_mode+set}" = set; then :
19771 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19773 USE_MAINTAINER_MODE=no
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19777 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19778 if test $USE_MAINTAINER_MODE = yes; then
19779 MAINTAINER_MODE_TRUE=
19780 MAINTAINER_MODE_FALSE='#'
19782 MAINTAINER_MODE_TRUE='#'
19783 MAINTAINER_MODE_FALSE=
19786 MAINT=$MAINTAINER_MODE_TRUE
19791 # Enable ccmalloc memory debugging support
19792 # Check whether --enable-ccmalloc was given.
19793 if test "${enable_ccmalloc+set}" = set; then :
19794 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19796 enable_ccmalloc='no'
19800 # Enable Electric Fence memory debugging support
19801 # Check whether --enable-efence was given.
19802 if test "${enable_efence+set}" = set; then :
19803 enableval=$enable_efence; enable_efence=$enableval
19809 # Enable prof-based profiling support
19810 # Check whether --enable-prof was given.
19811 if test "${enable_prof+set}" = set; then :
19812 enableval=$enable_prof; enable_prof=$enableval
19818 # Enable gprof-based profiling support
19819 # Check whether --enable-gprof was given.
19820 if test "${enable_gprof+set}" = set; then :
19821 enableval=$enable_gprof; enable_gprof=$enableval
19827 # Enable gcov-based profiling support
19828 # Check whether --enable-gcov was given.
19829 if test "${enable_gcov+set}" = set; then :
19830 enableval=$enable_gcov; enable_gcov=$enableval
19836 enable_profiling='no'
19837 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19838 enable_profiling='yes'
19839 if test "$libtool_build_shared_libs" = 'yes'; then
19840 echo "Warning: Can not profile code using shared libraries"
19844 # Magick API method prefix
19846 # Check whether --with-method-prefix was given.
19847 if test "${with_method_prefix+set}" = set; then :
19848 withval=$with_method_prefix; with_method_prefix=$enableval
19850 with_method_prefix=''
19854 if test "$with_method_prefix" != ''; then
19856 cat >>confdefs.h <<_ACEOF
19857 #define NAMESPACE_PREFIX $with_method_prefix
19862 # Number of bits in a Quantum
19864 # Check whether --with-quantum-depth was given.
19865 if test "${with_quantum_depth+set}" = set; then :
19866 withval=$with_quantum_depth; with_quantum_depth=$withval
19868 with_quantum_depth=16
19872 if test "$with_quantum_depth" != '8'; then
19873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19876 case "${with_quantum_depth}" in
19881 * ) { as_fn_set_status 16
19882 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
19884 QUANTUM_DEPTH="$with_quantum_depth"
19886 cat >>confdefs.h <<_ACEOF
19887 #define QUANTUM_DEPTH $QUANTUM_DEPTH
19891 # Set pixel cache threshold
19893 # Check whether --with-cache was given.
19894 if test "${with_cache+set}" = set; then :
19895 withval=$with_cache; with_cache=$withval
19901 if test "$with_cache" != ''; then
19903 cat >>confdefs.h <<_ACEOF
19904 #define PixelCacheThreshold $with_cache
19907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19910 # Disable/Enable support for full delegate paths
19912 # Check whether --with-frozenpaths was given.
19913 if test "${with_frozenpaths+set}" = set; then :
19914 withval=$with_frozenpaths; with_frozenpaths=$withval
19916 with_frozenpaths='no'
19920 # Enable build/install of Magick++
19922 # Check whether --with-magick-plus-plus was given.
19923 if test "${with_magick_plus_plus+set}" = set; then :
19924 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19926 with_magick_plus_plus='yes'
19930 # Disable build/install of PerlMagick.
19932 # Check whether --with-perl was given.
19933 if test "${with_perl+set}" = set; then :
19934 withval=$with_perl; with_perl=$withval
19936 with_perl=$libtool_build_shared_libs
19940 # Options to pass when configuring PerlMagick
19942 # Check whether --with-perl-options was given.
19943 if test "${with_perl_options+set}" = set; then :
19944 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
19949 # Enable umem, object-caching memory allocation library.
19951 # Check whether --with-umem was given.
19952 if test "${with_umem+set}" = set; then :
19953 withval=$with_umem; with_umem=$withval
19958 if test "$with_umem" != 'yes' ; then
19959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19963 # Specify path to shared libstdc++ if not in normal location
19966 # Check whether --with-libstdc was given.
19967 if test "${with_libstdc+set}" = set; then :
19968 withval=$with_libstdc; with_libstdc=$withval
19974 if test "$with_libstdc" != ''; then
19975 if test -d "$with_libstdc"; then
19976 LIBSTDCLDFLAGS="-L$with_libstdc"
19981 # Does gcc required -traditional?
19982 if test $ac_cv_c_compiler_gnu = yes; then
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19984 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19985 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19986 $as_echo_n "(cached) " >&6
19988 ac_pattern="Autoconf.*'x'"
19989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990 /* end confdefs.h. */
19994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19995 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19996 ac_cv_prog_gcc_traditional=yes
19998 ac_cv_prog_gcc_traditional=no
20003 if test $ac_cv_prog_gcc_traditional = no; then
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h. */
20006 #include <termio.h>
20009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20010 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20011 ac_cv_prog_gcc_traditional=yes
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20018 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20019 if test $ac_cv_prog_gcc_traditional = yes; then
20020 CC="$CC -traditional"
20027 # Set defines required to build DLLs and modules using MinGW
20030 # These options are set for multi-thread DLL module build
20031 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20033 # executable/Magick++: _DLL _MAGICKMOD_
20034 MODULE_EXTRA_CPPFLAGS=''
20035 LIBRARY_EXTRA_CPPFLAGS=''
20036 if test "${native_win32_build}" = 'yes'; then
20037 if test "${libtool_build_shared_libs}" = 'yes'; then
20038 CPPFLAGS="$CPPFLAGS -D_DLL"
20039 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20040 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20041 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20042 if test "$with_modules" = 'yes'; then
20043 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20045 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20048 CPPFLAGS="$CPPFLAGS -D_LIB"
20049 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20050 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20052 if test "$with_threads" = 'yes'; then
20053 CPPFLAGS="$CPPFLAGS -D_MT"
20054 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20055 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20061 # Check standard headers
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20063 $as_echo_n "checking for ANSI C header files... " >&6; }
20064 if test "${ac_cv_header_stdc+set}" = set; then :
20065 $as_echo_n "(cached) " >&6
20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h. */
20069 #include <stdlib.h>
20070 #include <stdarg.h>
20071 #include <string.h>
20082 if ac_fn_c_try_compile "$LINENO"; then :
20083 ac_cv_header_stdc=yes
20085 ac_cv_header_stdc=no
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089 if test $ac_cv_header_stdc = yes; then
20090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h. */
20093 #include <string.h>
20096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20097 $EGREP "memchr" >/dev/null 2>&1; then :
20100 ac_cv_header_stdc=no
20106 if test $ac_cv_header_stdc = yes; then
20107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20110 #include <stdlib.h>
20113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20114 $EGREP "free" >/dev/null 2>&1; then :
20117 ac_cv_header_stdc=no
20123 if test $ac_cv_header_stdc = yes; then
20124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20125 if test "$cross_compiling" = yes; then :
20128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h. */
20131 #include <stdlib.h>
20132 #if ((' ' & 0x0FF) == 0x020)
20133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20136 # define ISLOWER(c) \
20137 (('a' <= (c) && (c) <= 'i') \
20138 || ('j' <= (c) && (c) <= 'r') \
20139 || ('s' <= (c) && (c) <= 'z'))
20140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20148 for (i = 0; i < 256; i++)
20149 if (XOR (islower (i), ISLOWER (i))
20150 || toupper (i) != TOUPPER (i))
20155 if ac_fn_c_try_run "$LINENO"; then :
20158 ac_cv_header_stdc=no
20160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20161 conftest.$ac_objext conftest.beam conftest.$ac_ext
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20167 $as_echo "$ac_cv_header_stdc" >&6; }
20168 if test $ac_cv_header_stdc = yes; then
20170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20174 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20176 header files. Compilation cannot proceed. Please install the ANSI C
20177 headers and rerun this script." >&5
20178 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20179 header files. Compilation cannot proceed. Please install the ANSI C
20180 headers and rerun this script." >&2;};
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20184 $as_echo_n "checking whether to enable assertions... " >&6; }
20185 # Check whether --enable-assert was given.
20186 if test "${enable_assert+set}" = set; then :
20187 enableval=$enable_assert; ac_enable_assert=$enableval
20188 if test "x$enableval" = xno; then :
20190 $as_echo "#define NDEBUG 1" >>confdefs.h
20192 elif test "x$enableval" != xyes; then :
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20194 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20195 ac_enable_assert=yes
20198 ac_enable_assert=yes
20201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20202 $as_echo "$ac_enable_assert" >&6; }
20204 ac_header_dirent=no
20205 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20206 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20208 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
20210 $as_echo_n "(cached) " >&6
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20214 #include <sys/types.h>
20226 if ac_fn_c_try_compile "$LINENO"; then :
20227 eval "$as_ac_Header=yes"
20229 eval "$as_ac_Header=no"
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 eval ac_res=\$$as_ac_Header
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20235 $as_echo "$ac_res" >&6; }
20236 eval as_val=\$$as_ac_Header
20237 if test "x$as_val" = x""yes; then :
20238 cat >>confdefs.h <<_ACEOF
20239 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20242 ac_header_dirent=$ac_hdr; break
20246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20247 if test $ac_header_dirent = dirent.h; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20249 $as_echo_n "checking for library containing opendir... " >&6; }
20250 if test "${ac_cv_search_opendir+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20253 ac_func_search_save_LIBS=$LIBS
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20272 for ac_lib in '' dir; do
20273 if test -z "$ac_lib"; then
20274 ac_res="none required"
20277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20279 if ac_fn_c_try_link "$LINENO"; then :
20280 ac_cv_search_opendir=$ac_res
20282 rm -f core conftest.err conftest.$ac_objext \
20284 if test "${ac_cv_search_opendir+set}" = set; then :
20288 if test "${ac_cv_search_opendir+set}" = set; then :
20291 ac_cv_search_opendir=no
20293 rm conftest.$ac_ext
20294 LIBS=$ac_func_search_save_LIBS
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20297 $as_echo "$ac_cv_search_opendir" >&6; }
20298 ac_res=$ac_cv_search_opendir
20299 if test "$ac_res" != no; then :
20300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20306 $as_echo_n "checking for library containing opendir... " >&6; }
20307 if test "${ac_cv_search_opendir+set}" = set; then :
20308 $as_echo_n "(cached) " >&6
20310 ac_func_search_save_LIBS=$LIBS
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20314 /* Override any GCC internal prototype to avoid an error.
20315 Use char because int might match the return type of a GCC
20316 builtin and then its argument prototype would still apply. */
20329 for ac_lib in '' x; do
20330 if test -z "$ac_lib"; then
20331 ac_res="none required"
20334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20336 if ac_fn_c_try_link "$LINENO"; then :
20337 ac_cv_search_opendir=$ac_res
20339 rm -f core conftest.err conftest.$ac_objext \
20341 if test "${ac_cv_search_opendir+set}" = set; then :
20345 if test "${ac_cv_search_opendir+set}" = set; then :
20348 ac_cv_search_opendir=no
20350 rm conftest.$ac_ext
20351 LIBS=$ac_func_search_save_LIBS
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20354 $as_echo "$ac_cv_search_opendir" >&6; }
20355 ac_res=$ac_cv_search_opendir
20356 if test "$ac_res" != no; then :
20357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20364 # Check additional headers
20365 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
20367 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20368 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20369 eval as_val=\$$as_ac_Header
20370 if test "x$as_val" = x""yes; then :
20371 cat >>confdefs.h <<_ACEOF
20372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20382 # Checks for typedefs, structures, and compiler characteristics.
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20387 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20388 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20389 $as_echo_n "(cached) " >&6
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20394 #include <stdbool.h>
20396 "error: bool is not defined"
20399 "error: false is not defined"
20402 "error: false is not 0"
20405 "error: true is not defined"
20408 "error: true is not 1"
20410 #ifndef __bool_true_false_are_defined
20411 "error: __bool_true_false_are_defined is not defined"
20414 struct s { _Bool s: 1; _Bool t; } s;
20416 char a[true == 1 ? 1 : -1];
20417 char b[false == 0 ? 1 : -1];
20418 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20419 char d[(bool) 0.5 == true ? 1 : -1];
20421 char f[(_Bool) 0.0 == false ? 1 : -1];
20423 char h[sizeof (_Bool)];
20424 char i[sizeof s.t];
20425 enum { j = false, k = true, l = false * true, m = true * 256 };
20426 /* The following fails for
20427 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20429 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20430 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20431 # if defined __xlc__ || defined __GNUC__
20432 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20433 reported by James Lemley on 2005-10-05; see
20434 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20435 This test is not quite right, since xlc is allowed to
20436 reject this program, as the initializer for xlcbug is
20437 not one of the forms that C requires support for.
20438 However, doing the test right would require a runtime
20439 test, and that would make cross-compilation harder.
20440 Let us hope that IBM fixes the xlc bug, and also adds
20441 support for this kind of constant expression. In the
20442 meantime, this test will reject xlc, which is OK, since
20443 our stdbool.h substitute should suffice. We also test
20444 this with GCC, where it should work, to detect more
20445 quickly whether someone messes up the test in the
20447 char digs[] = "0123456789";
20448 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20450 /* Catch a bug in an HP-UX C compiler. See
20451 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20452 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20463 /* Refer to every declared value, to avoid compiler optimizations. */
20464 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20465 + !m + !n + !o + !p + !q + !pq);
20471 if ac_fn_c_try_compile "$LINENO"; then :
20472 ac_cv_header_stdbool_h=yes
20474 ac_cv_header_stdbool_h=no
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20479 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20480 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20481 if test "x$ac_cv_type__Bool" = x""yes; then :
20483 cat >>confdefs.h <<_ACEOF
20484 #define HAVE__BOOL 1
20490 if test $ac_cv_header_stdbool_h = yes; then
20492 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20497 $as_echo_n "checking for working volatile... " >&6; }
20498 if test "${ac_cv_c_volatile+set}" = set; then :
20499 $as_echo_n "(cached) " >&6
20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h. */
20509 int * volatile y = (int *) 0;
20515 if ac_fn_c_try_compile "$LINENO"; then :
20516 ac_cv_c_volatile=yes
20518 ac_cv_c_volatile=no
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20523 $as_echo "$ac_cv_c_volatile" >&6; }
20524 if test $ac_cv_c_volatile = no; then
20526 $as_echo "#define volatile /**/" >>confdefs.h
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20531 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20532 if test "${ac_cv_c_stringize+set}" = set; then :
20533 $as_echo_n "(cached) " >&6
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20539 char *s = x(teststring);
20541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20542 $EGREP "#teststring" >/dev/null 2>&1; then :
20543 ac_cv_c_stringize=no
20545 ac_cv_c_stringize=yes
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20551 $as_echo "$ac_cv_c_stringize" >&6; }
20552 if test $ac_cv_c_stringize = yes; then
20554 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20559 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20560 if test "${ac_cv_header_stat_broken+set}" = set; then :
20561 $as_echo_n "(cached) " >&6
20563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h. */
20565 #include <sys/types.h>
20566 #include <sys/stat.h>
20568 #if defined S_ISBLK && defined S_IFDIR
20569 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20572 #if defined S_ISBLK && defined S_IFCHR
20573 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20576 #if defined S_ISLNK && defined S_IFREG
20577 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20580 #if defined S_ISSOCK && defined S_IFREG
20581 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20585 if ac_fn_c_try_compile "$LINENO"; then :
20586 ac_cv_header_stat_broken=no
20588 ac_cv_header_stat_broken=yes
20590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20593 $as_echo "$ac_cv_header_stat_broken" >&6; }
20594 if test $ac_cv_header_stat_broken = yes; then
20596 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20601 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20602 if test "${ac_cv_header_time+set}" = set; then :
20603 $as_echo_n "(cached) " >&6
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607 #include <sys/types.h>
20608 #include <sys/time.h>
20614 if ((struct tm *) 0)
20620 if ac_fn_c_try_compile "$LINENO"; then :
20621 ac_cv_header_time=yes
20623 ac_cv_header_time=no
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20628 $as_echo "$ac_cv_header_time" >&6; }
20629 if test $ac_cv_header_time = yes; then
20631 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20636 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20637 if test "${ac_cv_struct_tm+set}" = set; then :
20638 $as_echo_n "(cached) " >&6
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20642 #include <sys/types.h>
20649 int *p = &tm.tm_sec;
20655 if ac_fn_c_try_compile "$LINENO"; then :
20656 ac_cv_struct_tm=time.h
20658 ac_cv_struct_tm=sys/time.h
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20663 $as_echo "$ac_cv_struct_tm" >&6; }
20664 if test $ac_cv_struct_tm = sys/time.h; then
20666 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
20671 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
20672 if test "${ac_cv_sys_interpreter+set}" = set; then :
20673 $as_echo_n "(cached) " >&6
20679 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20680 if test $? -ne 69; then
20681 ac_cv_sys_interpreter=yes
20683 ac_cv_sys_interpreter=no
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
20688 $as_echo "$ac_cv_sys_interpreter" >&6; }
20689 interpval=$ac_cv_sys_interpreter
20692 # If the C compiler supports the keyword inline, do nothing. Otherwise
20693 # define inline to __inline__ or __inline if it accepts one of those,
20694 # otherwise define inline to be empty.
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20696 $as_echo_n "checking for inline... " >&6; }
20697 if test "${ac_cv_c_inline+set}" = set; then :
20698 $as_echo_n "(cached) " >&6
20701 for ac_kw in inline __inline__ __inline; do
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h. */
20704 #ifndef __cplusplus
20706 static $ac_kw foo_t static_foo () {return 0; }
20707 $ac_kw foo_t foo () {return 0; }
20711 if ac_fn_c_try_compile "$LINENO"; then :
20712 ac_cv_c_inline=$ac_kw
20714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715 test "$ac_cv_c_inline" != no && break
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20720 $as_echo "$ac_cv_c_inline" >&6; }
20722 case $ac_cv_c_inline in
20725 case $ac_cv_c_inline in
20727 *) ac_val=$ac_cv_c_inline;;
20729 cat >>confdefs.h <<_ACEOF
20730 #ifndef __cplusplus
20731 #define inline $ac_val
20738 # If the C compiler supports the keyword restrict, do nothing. Otherwise
20739 # define restrict to __restrict__ or __restrict if it accepts one of those,
20740 # otherwise define restrict to be empty.
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
20742 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
20743 if test "${ac_cv_c_restrict+set}" = set; then :
20744 $as_echo_n "(cached) " >&6
20746 ac_cv_c_restrict=no
20747 # The order here caters to the fact that C++ does not require restrict.
20748 for ac_kw in __restrict __restrict__ _Restrict restrict; do
20749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h. */
20751 typedef int * int_ptr;
20752 int foo (int_ptr $ac_kw ip) {
20759 int * $ac_kw t = s;
20766 if ac_fn_c_try_compile "$LINENO"; then :
20767 ac_cv_c_restrict=$ac_kw
20769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770 test "$ac_cv_c_restrict" != no && break
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
20775 $as_echo "$ac_cv_c_restrict" >&6; }
20777 case $ac_cv_c_restrict in
20779 no) $as_echo "#define restrict /**/" >>confdefs.h
20781 *) cat >>confdefs.h <<_ACEOF
20782 #define restrict $ac_cv_c_restrict
20788 # If words are stored with the most significant byte first (like
20789 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20791 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20792 if test "${ac_cv_c_bigendian+set}" = set; then :
20793 $as_echo_n "(cached) " >&6
20795 ac_cv_c_bigendian=unknown
20796 # See if we're dealing with a universal compiler.
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20799 #ifndef __APPLE_CC__
20800 not a universal capable compiler
20805 if ac_fn_c_try_compile "$LINENO"; then :
20807 # Check for potential -arch flags. It is not universal unless
20808 # there are at least two -arch flags with different values.
20811 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20812 if test -n "$ac_prev"; then
20814 i?86 | x86_64 | ppc | ppc64)
20815 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20818 ac_cv_c_bigendian=universal
20824 elif test "x$ac_word" = "x-arch"; then
20829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830 if test $ac_cv_c_bigendian = unknown; then
20831 # See if sys/param.h defines the BYTE_ORDER macro.
20832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h. */
20834 #include <sys/types.h>
20835 #include <sys/param.h>
20840 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20841 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20843 bogus endian macros
20850 if ac_fn_c_try_compile "$LINENO"; then :
20851 # It does; now see whether it defined to BIG_ENDIAN or not.
20852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20853 /* end confdefs.h. */
20854 #include <sys/types.h>
20855 #include <sys/param.h>
20860 #if BYTE_ORDER != BIG_ENDIAN
20868 if ac_fn_c_try_compile "$LINENO"; then :
20869 ac_cv_c_bigendian=yes
20871 ac_cv_c_bigendian=no
20873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 if test $ac_cv_c_bigendian = unknown; then
20878 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20881 #include <limits.h>
20886 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20887 bogus endian macros
20894 if ac_fn_c_try_compile "$LINENO"; then :
20895 # It does; now see whether it defined to _BIG_ENDIAN or not.
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20898 #include <limits.h>
20903 #ifndef _BIG_ENDIAN
20911 if ac_fn_c_try_compile "$LINENO"; then :
20912 ac_cv_c_bigendian=yes
20914 ac_cv_c_bigendian=no
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 if test $ac_cv_c_bigendian = unknown; then
20921 # Compile a test program.
20922 if test "$cross_compiling" = yes; then :
20923 # Try to guess by grepping values from an object file.
20924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20925 /* end confdefs.h. */
20926 short int ascii_mm[] =
20927 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20928 short int ascii_ii[] =
20929 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20930 int use_ascii (int i) {
20931 return ascii_mm[i] + ascii_ii[i];
20933 short int ebcdic_ii[] =
20934 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20935 short int ebcdic_mm[] =
20936 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20937 int use_ebcdic (int i) {
20938 return ebcdic_mm[i] + ebcdic_ii[i];
20945 return use_ascii (foo) == use_ebcdic (foo);
20950 if ac_fn_c_try_compile "$LINENO"; then :
20951 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20952 ac_cv_c_bigendian=yes
20954 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20955 if test "$ac_cv_c_bigendian" = unknown; then
20956 ac_cv_c_bigendian=no
20958 # finding both strings is unlikely to happen, but who knows?
20959 ac_cv_c_bigendian=unknown
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h. */
20967 $ac_includes_default
20972 /* Are we little or big endian? From Harbison&Steele. */
20976 char c[sizeof (long int)];
20979 return u.c[sizeof (long int) - 1] == 1;
20985 if ac_fn_c_try_run "$LINENO"; then :
20986 ac_cv_c_bigendian=no
20988 ac_cv_c_bigendian=yes
20990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20991 conftest.$ac_objext conftest.beam conftest.$ac_ext
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20997 $as_echo "$ac_cv_c_bigendian" >&6; }
20998 case $ac_cv_c_bigendian in #(
21000 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21006 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21010 as_fn_error "unknown endianness
21011 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21015 # Define mode_t to a suitable type, if standard headers do not define it.
21016 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21017 if test "x$ac_cv_type_mode_t" = x""yes; then :
21021 cat >>confdefs.h <<_ACEOF
21029 # Define off_t to a suitable type, if standard headers do not define it.
21030 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21031 if test "x$ac_cv_type_off_t" = x""yes; then :
21035 cat >>confdefs.h <<_ACEOF
21036 #define off_t long int
21042 # Define pid_t to a suitable type, if standard headers do not define it.
21043 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21044 if test "x$ac_cv_type_pid_t" = x""yes; then :
21048 cat >>confdefs.h <<_ACEOF
21055 # Define size_t to a suitable type, if standard headers do not define it.
21056 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21057 if test "x$ac_cv_type_size_t" = x""yes; then :
21061 cat >>confdefs.h <<_ACEOF
21062 #define size_t unsigned int
21068 # Define ssize_t to a suitable type, if standard headers do not define it.
21069 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21070 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21074 cat >>confdefs.h <<_ACEOF
21075 #define ssize_t int
21081 # If the C compiler supports a working long double type with more range
21082 # or precision than the double type, define HAVE_LONG_DOUBLE.
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21085 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21086 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21087 $as_echo_n "(cached) " >&6
21089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h. */
21092 long double const a[] =
21094 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21095 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21100 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21101 + (x ? f (x) : 'c'));
21107 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21108 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21109 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21110 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21111 && (int) LDBL_EPSILON == 0
21119 if ac_fn_c_try_compile "$LINENO"; then :
21120 ac_cv_type_long_double_wider=yes
21122 ac_cv_type_long_double_wider=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21127 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21128 if test $ac_cv_type_long_double_wider = yes; then
21130 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21135 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21136 # C compiler predefines it.
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21138 $as_echo_n "checking whether char is unsigned... " >&6; }
21139 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21143 /* end confdefs.h. */
21144 $ac_includes_default
21148 static int test_array [1 - 2 * !(((char) -1) < 0)];
21155 if ac_fn_c_try_compile "$LINENO"; then :
21156 ac_cv_c_char_unsigned=no
21158 ac_cv_c_char_unsigned=yes
21160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21163 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21164 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21165 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21170 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21171 # The cast to long int works around a bug in the HP C Compiler
21172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21174 # This bug is HP SR number 8606223364.
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21176 $as_echo_n "checking size of signed short... " >&6; }
21177 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21178 $as_echo_n "(cached) " >&6
21180 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
21183 if test "$ac_cv_type_signed_short" = yes; then
21184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21186 { as_fn_set_status 77
21187 as_fn_error "cannot compute sizeof (signed short)
21188 See \`config.log' for more details." "$LINENO" 5; }; }
21190 ac_cv_sizeof_signed_short=0
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21196 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21200 cat >>confdefs.h <<_ACEOF
21201 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21206 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21207 # The cast to long int works around a bug in the HP C Compiler
21208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21210 # This bug is HP SR number 8606223364.
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21212 $as_echo_n "checking size of unsigned short... " >&6; }
21213 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21214 $as_echo_n "(cached) " >&6
21216 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21219 if test "$ac_cv_type_unsigned_short" = yes; then
21220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21222 { as_fn_set_status 77
21223 as_fn_error "cannot compute sizeof (unsigned short)
21224 See \`config.log' for more details." "$LINENO" 5; }; }
21226 ac_cv_sizeof_unsigned_short=0
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21232 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21236 cat >>confdefs.h <<_ACEOF
21237 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21242 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21243 # The cast to long int works around a bug in the HP C Compiler
21244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21246 # This bug is HP SR number 8606223364.
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21248 $as_echo_n "checking size of signed int... " >&6; }
21249 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21250 $as_echo_n "(cached) " >&6
21252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
21255 if test "$ac_cv_type_signed_int" = yes; then
21256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21258 { as_fn_set_status 77
21259 as_fn_error "cannot compute sizeof (signed int)
21260 See \`config.log' for more details." "$LINENO" 5; }; }
21262 ac_cv_sizeof_signed_int=0
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21268 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21272 cat >>confdefs.h <<_ACEOF
21273 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21278 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21279 # The cast to long int works around a bug in the HP C Compiler
21280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21282 # This bug is HP SR number 8606223364.
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21284 $as_echo_n "checking size of unsigned int... " >&6; }
21285 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21286 $as_echo_n "(cached) " >&6
21288 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21291 if test "$ac_cv_type_unsigned_int" = yes; then
21292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21294 { as_fn_set_status 77
21295 as_fn_error "cannot compute sizeof (unsigned int)
21296 See \`config.log' for more details." "$LINENO" 5; }; }
21298 ac_cv_sizeof_unsigned_int=0
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21304 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21308 cat >>confdefs.h <<_ACEOF
21309 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21314 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21315 # The cast to long int works around a bug in the HP C Compiler
21316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21318 # This bug is HP SR number 8606223364.
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21320 $as_echo_n "checking size of signed long... " >&6; }
21321 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21322 $as_echo_n "(cached) " >&6
21324 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
21327 if test "$ac_cv_type_signed_long" = yes; then
21328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21330 { as_fn_set_status 77
21331 as_fn_error "cannot compute sizeof (signed long)
21332 See \`config.log' for more details." "$LINENO" 5; }; }
21334 ac_cv_sizeof_signed_long=0
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21340 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21344 cat >>confdefs.h <<_ACEOF
21345 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21350 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21351 # The cast to long int works around a bug in the HP C Compiler
21352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21354 # This bug is HP SR number 8606223364.
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21356 $as_echo_n "checking size of unsigned long... " >&6; }
21357 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21358 $as_echo_n "(cached) " >&6
21360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21363 if test "$ac_cv_type_unsigned_long" = yes; then
21364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21366 { as_fn_set_status 77
21367 as_fn_error "cannot compute sizeof (unsigned long)
21368 See \`config.log' for more details." "$LINENO" 5; }; }
21370 ac_cv_sizeof_unsigned_long=0
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21376 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21380 cat >>confdefs.h <<_ACEOF
21381 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21386 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21387 # 'signed long long' is not supported then the value defined is zero.
21388 # The cast to long int works around a bug in the HP C Compiler
21389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21391 # This bug is HP SR number 8606223364.
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21393 $as_echo_n "checking size of signed long long... " >&6; }
21394 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21395 $as_echo_n "(cached) " >&6
21397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
21400 if test "$ac_cv_type_signed_long_long" = yes; then
21401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21403 { as_fn_set_status 77
21404 as_fn_error "cannot compute sizeof (signed long long)
21405 See \`config.log' for more details." "$LINENO" 5; }; }
21407 ac_cv_sizeof_signed_long_long=0
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21413 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21417 cat >>confdefs.h <<_ACEOF
21418 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21423 # Obtain size of a 'unsigned long long' and define as
21424 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21425 # supported then the value defined is zero.
21426 # The cast to long int works around a bug in the HP C Compiler
21427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21429 # This bug is HP SR number 8606223364.
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21431 $as_echo_n "checking size of unsigned long long... " >&6; }
21432 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21433 $as_echo_n "(cached) " >&6
21435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
21438 if test "$ac_cv_type_unsigned_long_long" = yes; then
21439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21441 { as_fn_set_status 77
21442 as_fn_error "cannot compute sizeof (unsigned long long)
21443 See \`config.log' for more details." "$LINENO" 5; }; }
21445 ac_cv_sizeof_unsigned_long_long=0
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21451 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21455 cat >>confdefs.h <<_ACEOF
21456 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21461 # Obtain size of off_t and define as SIZEOF_OFF_T
21462 # The cast to long int works around a bug in the HP C Compiler
21463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21465 # This bug is HP SR number 8606223364.
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21467 $as_echo_n "checking size of off_t... " >&6; }
21468 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21469 $as_echo_n "(cached) " >&6
21471 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
21474 if test "$ac_cv_type_off_t" = yes; then
21475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21477 { as_fn_set_status 77
21478 as_fn_error "cannot compute sizeof (off_t)
21479 See \`config.log' for more details." "$LINENO" 5; }; }
21481 ac_cv_sizeof_off_t=0
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21487 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21491 cat >>confdefs.h <<_ACEOF
21492 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21497 # Obtain size of size_t and define as SIZEOF_SIZE_T
21498 # The cast to long int works around a bug in the HP C Compiler
21499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21501 # This bug is HP SR number 8606223364.
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21503 $as_echo_n "checking size of size_t... " >&6; }
21504 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21505 $as_echo_n "(cached) " >&6
21507 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
21510 if test "$ac_cv_type_size_t" = yes; then
21511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21513 { as_fn_set_status 77
21514 as_fn_error "cannot compute sizeof (size_t)
21515 See \`config.log' for more details." "$LINENO" 5; }; }
21517 ac_cv_sizeof_size_t=0
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21523 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21527 cat >>confdefs.h <<_ACEOF
21528 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21533 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21534 # The cast to long int works around a bug in the HP C Compiler
21535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21537 # This bug is HP SR number 8606223364.
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21539 $as_echo_n "checking size of unsigned int*... " >&6; }
21540 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21541 $as_echo_n "(cached) " >&6
21543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
21546 if test "$ac_cv_type_unsigned_intp" = yes; then
21547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21549 { as_fn_set_status 77
21550 as_fn_error "cannot compute sizeof (unsigned int*)
21551 See \`config.log' for more details." "$LINENO" 5; }; }
21553 ac_cv_sizeof_unsigned_intp=0
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21559 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21563 cat >>confdefs.h <<_ACEOF
21564 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21570 # Compute sized types for current CPU and compiler options.
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21574 $as_echo_n "checking for signed 8-bit type... " >&6; }
21575 INT8_T='signed char'
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
21577 $as_echo "$INT8_T" >&6; }
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
21581 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
21582 UINT8_T='unsigned char'
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
21584 $as_echo "$UINT8_T" >&6; }
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
21588 $as_echo_n "checking for signed 16-bit type... " >&6; }
21589 INT16_T='signed short'
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
21591 $as_echo "$INT16_T" >&6; }
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
21595 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
21596 UINT16_T='unsigned short'
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
21598 $as_echo "$UINT16_T" >&6; }
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
21602 $as_echo_n "checking for signed 32-bit type... " >&6; }
21604 if test $ac_cv_sizeof_signed_int -eq 4; then
21605 INT32_T='signed int'
21606 elif test $ac_cv_sizeof_signed_long -eq 4; then
21607 INT32_T='signed long'
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
21610 $as_echo "$INT32_T" >&6; }
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
21614 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
21616 if test $ac_cv_sizeof_unsigned_int -eq 4; then
21617 UINT32_T='unsigned int'
21618 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21619 UINT32_T='unsigned long'
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
21622 $as_echo "$UINT32_T" >&6; }
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
21626 $as_echo_n "checking for signed 64-bit type... " >&6; }
21628 if test $ac_cv_sizeof_signed_long -eq 8; then
21629 INT64_T='signed long'
21630 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21631 INT64_T='signed long long'
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
21634 $as_echo "$INT64_T" >&6; }
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
21638 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
21640 if test $ac_cv_sizeof_unsigned_long -eq 8; then
21641 UINT64_T='unsigned long'
21642 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21643 UINT64_T='unsigned long long'
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
21646 $as_echo "$UINT64_T" >&6; }
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
21650 $as_echo_n "checking for unsigned maximum type... " >&6; }
21652 if test "$UINT64_T" != 'none'; then
21653 UINTMAX_T=$UINT64_T
21654 elif test "$UINT32_T" != 'none'; then
21655 UINTMAX_T=$UINT32_T
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
21658 $as_echo "$UINTMAX_T" >&6; }
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
21662 $as_echo_n "checking for pointer difference type... " >&6; }
21664 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21665 UINTPTR_T='unsigned long'
21666 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21667 UINTPTR_T='unsigned long long'
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
21670 $as_echo "$UINTPTR_T" >&6; }
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
21674 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
21675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h. */
21681 { const char *func = __func__; return(func != 0 ? 0 : 1); }
21686 if ac_fn_c_try_compile "$LINENO"; then :
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21688 $as_echo "yes" >&6; }
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691 $as_echo "no" >&6; }
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
21693 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695 /* end confdefs.h. */
21700 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21705 if ac_fn_c_try_compile "$LINENO"; then :
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21707 $as_echo "yes" >&6; }
21709 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713 $as_echo "no" >&6; }
21715 $as_echo "#define __func__ __FILE__" >>confdefs.h
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 # Check for functions
21727 for ac_header in stdlib.h unistd.h
21729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21730 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21731 eval as_val=\$$as_ac_Header
21732 if test "x$as_val" = x""yes; then :
21733 cat >>confdefs.h <<_ACEOF
21734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21741 for ac_func in getpagesize
21743 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21744 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21745 cat >>confdefs.h <<_ACEOF
21746 #define HAVE_GETPAGESIZE 1
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
21753 $as_echo_n "checking for working mmap file i/o... " >&6; }
21754 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
21755 $as_echo_n "(cached) " >&6
21757 if test "$cross_compiling" = yes; then :
21758 magick_cv_func_mmap_fileio=no
21760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21761 /* end confdefs.h. */
21762 $ac_includes_default
21763 /* malloc might have been renamed as rpl_malloc. */
21767 This test is derived from GNU Autoconf's similar macro.
21768 The purpose of this test is to verify that files may be memory
21769 mapped, and that memory mapping and file I/O are coherent.
21771 The test creates a test file, memory maps the file, updates
21772 the file using the memory map, and then reads the file using
21773 file I/O to verify that the file contains the updates.
21777 #include <sys/mman.h>
21779 #if !STDC_HEADERS && !HAVE_STDLIB_H
21783 /* This mess was copied from the GNU getpagesize.h. */
21784 #if !HAVE_GETPAGESIZE
21785 /* Assume that all systems that can run configure have sys/param.h. */
21786 # if !HAVE_SYS_PARAM_H
21787 # define HAVE_SYS_PARAM_H 1
21790 # ifdef _SC_PAGESIZE
21791 # define getpagesize() sysconf(_SC_PAGESIZE)
21792 # else /* no _SC_PAGESIZE */
21793 # if HAVE_SYS_PARAM_H
21794 # include <sys/param.h>
21795 # ifdef EXEC_PAGESIZE
21796 # define getpagesize() EXEC_PAGESIZE
21797 # else /* no EXEC_PAGESIZE */
21799 # define getpagesize() NBPG * CLSIZE
21802 # endif /* no CLSIZE */
21803 # else /* no NBPG */
21805 # define getpagesize() NBPC
21806 # else /* no NBPC */
21808 # define getpagesize() PAGESIZE
21809 # endif /* PAGESIZE */
21810 # endif /* no NBPC */
21811 # endif /* no NBPG */
21812 # endif /* no EXEC_PAGESIZE */
21813 # else /* no HAVE_SYS_PARAM_H */
21814 # define getpagesize() 8192 /* punt totally */
21815 # endif /* no HAVE_SYS_PARAM_H */
21816 # endif /* no _SC_PAGESIZE */
21818 #endif /* no HAVE_GETPAGESIZE */
21823 char *data, *data2, *data3;
21827 pagesize = getpagesize ();
21829 /* First, make a file with some known garbage in it. */
21830 data = (char *) malloc (pagesize);
21833 for (i = 0; i < pagesize; ++i)
21834 *(data + i) = rand ();
21836 fd = creat ("conftest.mmap", 0600);
21839 if (write (fd, data, pagesize) != pagesize)
21843 /* Mmap the file as read/write/shared and verify that we see the
21845 fd = open ("conftest.mmap", O_RDWR);
21848 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21851 for (i = 0; i < pagesize; ++i)
21852 if (*(data + i) != *(data2 + i))
21855 /* Finally, make sure that changes to the mapped area
21856 percolate back to the file as seen by read(). */
21857 for (i = 0; i < pagesize; ++i)
21858 *(data2 + i) = *(data2 + i) + 1;
21859 data3 = (char *) malloc (pagesize);
21862 if (read (fd, data3, pagesize) != pagesize)
21864 for (i = 0; i < pagesize; ++i)
21865 if (*(data2 + i) != *(data3 + i))
21871 if ac_fn_c_try_run "$LINENO"; then :
21872 magick_cv_func_mmap_fileio=yes
21874 magick_cv_func_mmap_fileio=no
21876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21877 conftest.$ac_objext conftest.beam conftest.$ac_ext
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
21882 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
21883 if test $magick_cv_func_mmap_fileio = yes; then
21885 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
21888 rm -f conftest.mmap
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
21891 $as_echo_n "checking whether closedir returns void... " >&6; }
21892 if test "${ac_cv_func_closedir_void+set}" = set; then :
21893 $as_echo_n "(cached) " >&6
21895 if test "$cross_compiling" = yes; then :
21896 ac_cv_func_closedir_void=yes
21898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21899 /* end confdefs.h. */
21900 $ac_includes_default
21901 #include <$ac_header_dirent>
21902 #ifndef __cplusplus
21909 return closedir (opendir (".")) != 0;
21914 if ac_fn_c_try_run "$LINENO"; then :
21915 ac_cv_func_closedir_void=no
21917 ac_cv_func_closedir_void=yes
21919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21920 conftest.$ac_objext conftest.beam conftest.$ac_ext
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
21925 $as_echo "$ac_cv_func_closedir_void" >&6; }
21926 if test $ac_cv_func_closedir_void = yes; then
21928 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
21935 for ac_header in $ac_header_list
21937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21940 eval as_val=\$$as_ac_Header
21941 if test "x$as_val" = x""yes; then :
21942 cat >>confdefs.h <<_ACEOF
21943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21957 for ac_func in getpagesize
21959 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21960 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21961 cat >>confdefs.h <<_ACEOF
21962 #define HAVE_GETPAGESIZE 1
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21969 $as_echo_n "checking for working mmap... " >&6; }
21970 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
21971 $as_echo_n "(cached) " >&6
21973 if test "$cross_compiling" = yes; then :
21974 ac_cv_func_mmap_fixed_mapped=no
21976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h. */
21978 $ac_includes_default
21979 /* malloc might have been renamed as rpl_malloc. */
21982 /* Thanks to Mike Haertel and Jim Avera for this test.
21983 Here is a matrix of mmap possibilities:
21984 mmap private not fixed
21985 mmap private fixed at somewhere currently unmapped
21986 mmap private fixed at somewhere already mapped
21987 mmap shared not fixed
21988 mmap shared fixed at somewhere currently unmapped
21989 mmap shared fixed at somewhere already mapped
21990 For private mappings, we should verify that changes cannot be read()
21991 back from the file, nor mmap's back from the file at a different
21992 address. (There have been systems where private was not correctly
21993 implemented like the infamous i386 svr4.0, and systems where the
21994 VM page cache was not coherent with the file system buffer cache
21995 like early versions of FreeBSD and possibly contemporary NetBSD.)
21996 For shared mappings, we should conversely verify that changes get
21997 propagated back to all the places they're supposed to be.
21999 Grep wants private fixed already mapped.
22000 The main things grep needs to know about mmap are:
22001 * does it exist and is it safe to write into the mmap'd area
22002 * how to use it (BSD variants) */
22005 #include <sys/mman.h>
22007 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22011 /* This mess was copied from the GNU getpagesize.h. */
22012 #ifndef HAVE_GETPAGESIZE
22013 # ifdef _SC_PAGESIZE
22014 # define getpagesize() sysconf(_SC_PAGESIZE)
22015 # else /* no _SC_PAGESIZE */
22016 # ifdef HAVE_SYS_PARAM_H
22017 # include <sys/param.h>
22018 # ifdef EXEC_PAGESIZE
22019 # define getpagesize() EXEC_PAGESIZE
22020 # else /* no EXEC_PAGESIZE */
22022 # define getpagesize() NBPG * CLSIZE
22025 # endif /* no CLSIZE */
22026 # else /* no NBPG */
22028 # define getpagesize() NBPC
22029 # else /* no NBPC */
22031 # define getpagesize() PAGESIZE
22032 # endif /* PAGESIZE */
22033 # endif /* no NBPC */
22034 # endif /* no NBPG */
22035 # endif /* no EXEC_PAGESIZE */
22036 # else /* no HAVE_SYS_PARAM_H */
22037 # define getpagesize() 8192 /* punt totally */
22038 # endif /* no HAVE_SYS_PARAM_H */
22039 # endif /* no _SC_PAGESIZE */
22041 #endif /* no HAVE_GETPAGESIZE */
22046 char *data, *data2, *data3;
22047 const char *cdata2;
22051 pagesize = getpagesize ();
22053 /* First, make a file with some known garbage in it. */
22054 data = (char *) malloc (pagesize);
22057 for (i = 0; i < pagesize; ++i)
22058 *(data + i) = rand ();
22060 fd = creat ("conftest.mmap", 0600);
22063 if (write (fd, data, pagesize) != pagesize)
22067 /* Next, check that the tail of a page is zero-filled. File must have
22068 non-zero length, otherwise we risk SIGBUS for entire page. */
22069 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22073 if (write (fd2, cdata2, 1) != 1)
22075 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22076 if (data2 == MAP_FAILED)
22078 for (i = 0; i < pagesize; ++i)
22082 if (munmap (data2, pagesize))
22085 /* Next, try to mmap the file at a fixed address which already has
22086 something else allocated at it. If we can, also make sure that
22087 we see the same garbage. */
22088 fd = open ("conftest.mmap", O_RDWR);
22091 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22092 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22094 for (i = 0; i < pagesize; ++i)
22095 if (*(data + i) != *(data2 + i))
22098 /* Finally, make sure that changes to the mapped area do not
22099 percolate back to the file as seen by read(). (This is a bug on
22100 some variants of i386 svr4.0.) */
22101 for (i = 0; i < pagesize; ++i)
22102 *(data2 + i) = *(data2 + i) + 1;
22103 data3 = (char *) malloc (pagesize);
22106 if (read (fd, data3, pagesize) != pagesize)
22108 for (i = 0; i < pagesize; ++i)
22109 if (*(data + i) != *(data3 + i))
22115 if ac_fn_c_try_run "$LINENO"; then :
22116 ac_cv_func_mmap_fixed_mapped=yes
22118 ac_cv_func_mmap_fixed_mapped=no
22120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22121 conftest.$ac_objext conftest.beam conftest.$ac_ext
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22126 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22127 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22129 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22132 rm -f conftest.mmap conftest.txt
22134 for ac_header in vfork.h
22136 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22137 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22138 cat >>confdefs.h <<_ACEOF
22139 #define HAVE_VFORK_H 1
22146 for ac_func in fork vfork
22148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22150 eval as_val=\$$as_ac_var
22151 if test "x$as_val" = x""yes; then :
22152 cat >>confdefs.h <<_ACEOF
22153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22159 if test "x$ac_cv_func_fork" = xyes; then
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22161 $as_echo_n "checking for working fork... " >&6; }
22162 if test "${ac_cv_func_fork_works+set}" = set; then :
22163 $as_echo_n "(cached) " >&6
22165 if test "$cross_compiling" = yes; then :
22166 ac_cv_func_fork_works=cross
22168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22169 /* end confdefs.h. */
22170 $ac_includes_default
22175 /* By Ruediger Kuhlmann. */
22176 return fork () < 0;
22182 if ac_fn_c_try_run "$LINENO"; then :
22183 ac_cv_func_fork_works=yes
22185 ac_cv_func_fork_works=no
22187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22188 conftest.$ac_objext conftest.beam conftest.$ac_ext
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22193 $as_echo "$ac_cv_func_fork_works" >&6; }
22196 ac_cv_func_fork_works=$ac_cv_func_fork
22198 if test "x$ac_cv_func_fork_works" = xcross; then
22200 *-*-amigaos* | *-*-msdosdjgpp*)
22201 # Override, as these systems have only a dummy fork() stub
22202 ac_cv_func_fork_works=no
22205 ac_cv_func_fork_works=yes
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22209 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22211 ac_cv_func_vfork_works=$ac_cv_func_vfork
22212 if test "x$ac_cv_func_vfork" = xyes; then
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22214 $as_echo_n "checking for working vfork... " >&6; }
22215 if test "${ac_cv_func_vfork_works+set}" = set; then :
22216 $as_echo_n "(cached) " >&6
22218 if test "$cross_compiling" = yes; then :
22219 ac_cv_func_vfork_works=cross
22221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h. */
22223 /* Thanks to Paul Eggert for this test. */
22224 $ac_includes_default
22225 #include <sys/wait.h>
22226 #ifdef HAVE_VFORK_H
22227 # include <vfork.h>
22229 /* On some sparc systems, changes by the child to local and incoming
22230 argument registers are propagated back to the parent. The compiler
22231 is told about this with #include <vfork.h>, but some compilers
22232 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22233 static variable whose address is put into a register that is
22234 clobbered by the vfork. */
22237 sparc_address_test (int arg)
22239 sparc_address_test (arg) int arg;
22242 static pid_t child;
22260 pid_t parent = getpid ();
22263 sparc_address_test (0);
22268 /* Here is another test for sparc vfork register problems. This
22269 test uses lots of local variables, at least as many local
22270 variables as main has allocated so far including compiler
22271 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22272 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22273 reuse the register of parent for one of the local variables,
22274 since it will think that parent can't possibly be used any more
22275 in this routine. Assigning to the local variable will thus
22276 munge parent in the parent process. */
22278 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22279 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22280 /* Convince the compiler that p..p7 are live; otherwise, it might
22281 use the same hardware register for all 8 local variables. */
22282 if (p != p1 || p != p2 || p != p3 || p != p4
22283 || p != p5 || p != p6 || p != p7)
22286 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22287 from child file descriptors. If the child closes a descriptor
22288 before it execs or exits, this munges the parent's descriptor
22289 as well. Test for this by closing stdout in the child. */
22290 _exit(close(fileno(stdout)) != 0);
22295 while (wait(&status) != child)
22298 /* Was there some problem with vforking? */
22301 /* Did the child fail? (This shouldn't happen.) */
22304 /* Did the vfork/compiler bug occur? */
22305 || parent != getpid()
22307 /* Did the file descriptor bug occur? */
22308 || fstat(fileno(stdout), &st) != 0
22313 if ac_fn_c_try_run "$LINENO"; then :
22314 ac_cv_func_vfork_works=yes
22316 ac_cv_func_vfork_works=no
22318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22319 conftest.$ac_objext conftest.beam conftest.$ac_ext
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22324 $as_echo "$ac_cv_func_vfork_works" >&6; }
22327 if test "x$ac_cv_func_fork_works" = xcross; then
22328 ac_cv_func_vfork_works=$ac_cv_func_vfork
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22330 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22333 if test "x$ac_cv_func_vfork_works" = xyes; then
22335 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22339 $as_echo "#define vfork fork" >>confdefs.h
22342 if test "x$ac_cv_func_fork_works" = xyes; then
22344 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22349 $as_echo_n "checking for working memcmp... " >&6; }
22350 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22351 $as_echo_n "(cached) " >&6
22353 if test "$cross_compiling" = yes; then :
22354 ac_cv_func_memcmp_working=no
22356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22357 /* end confdefs.h. */
22358 $ac_includes_default
22363 /* Some versions of memcmp are not 8-bit clean. */
22364 char c0 = '\100', c1 = '\200', c2 = '\201';
22365 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22368 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22369 or more and with at least one buffer not starting on a 4-byte boundary.
22370 William Lewis provided this test program. */
22375 for (i = 0; i < 4; i++)
22379 strcpy (a, "--------01111111");
22380 strcpy (b, "--------10000000");
22381 if (memcmp (a, b, 16) >= 0)
22391 if ac_fn_c_try_run "$LINENO"; then :
22392 ac_cv_func_memcmp_working=yes
22394 ac_cv_func_memcmp_working=no
22396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22397 conftest.$ac_objext conftest.beam conftest.$ac_ext
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22402 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22403 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22404 *" memcmp.$ac_objext "* ) ;;
22405 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22410 for ac_header in sys/select.h sys/socket.h
22412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22414 eval as_val=\$$as_ac_Header
22415 if test "x$as_val" = x""yes; then :
22416 cat >>confdefs.h <<_ACEOF
22417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22425 $as_echo_n "checking types of arguments for select... " >&6; }
22426 if test "${ac_cv_func_select_args+set}" = set; then :
22427 $as_echo_n "(cached) " >&6
22429 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22430 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22431 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22434 $ac_includes_default
22435 #ifdef HAVE_SYS_SELECT_H
22436 # include <sys/select.h>
22438 #ifdef HAVE_SYS_SOCKET_H
22439 # include <sys/socket.h>
22445 extern int select ($ac_arg1,
22446 $ac_arg234, $ac_arg234, $ac_arg234,
22452 if ac_fn_c_try_compile "$LINENO"; then :
22453 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22459 # Provide a safe default value.
22460 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22464 $as_echo "$ac_cv_func_select_args" >&6; }
22465 ac_save_IFS=$IFS; IFS=','
22466 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22470 cat >>confdefs.h <<_ACEOF
22471 #define SELECT_TYPE_ARG1 $1
22475 cat >>confdefs.h <<_ACEOF
22476 #define SELECT_TYPE_ARG234 ($2)
22480 cat >>confdefs.h <<_ACEOF
22481 #define SELECT_TYPE_ARG5 ($3)
22486 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22487 $as_echo_n "(cached) " >&6
22489 ac_cv_func_setvbuf_reversed=no
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22494 $as_echo_n "checking return type of signal handlers... " >&6; }
22495 if test "${ac_cv_type_signal+set}" = set; then :
22496 $as_echo_n "(cached) " >&6
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h. */
22500 #include <sys/types.h>
22501 #include <signal.h>
22506 return *(signal (0, 0)) (0) == 1;
22511 if ac_fn_c_try_compile "$LINENO"; then :
22512 ac_cv_type_signal=int
22514 ac_cv_type_signal=void
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22519 $as_echo "$ac_cv_type_signal" >&6; }
22521 cat >>confdefs.h <<_ACEOF
22522 #define RETSIGTYPE $ac_cv_type_signal
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22527 $as_echo_n "checking for working strtod... " >&6; }
22528 if test "${ac_cv_func_strtod+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22531 if test "$cross_compiling" = yes; then :
22532 ac_cv_func_strtod=no
22534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22537 $ac_includes_default
22545 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22546 char *string = " +69";
22549 value = strtod (string, &term);
22550 if (value != 69 || term != (string + 4))
22555 /* Under Solaris 2.4, strtod returns the wrong value for the
22556 terminating character under some conditions. */
22557 char *string = "NaN";
22559 strtod (string, &term);
22560 if (term != string && *(term - 1) == 0)
22567 if ac_fn_c_try_run "$LINENO"; then :
22568 ac_cv_func_strtod=yes
22570 ac_cv_func_strtod=no
22572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22573 conftest.$ac_objext conftest.beam conftest.$ac_ext
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22578 $as_echo "$ac_cv_func_strtod" >&6; }
22579 if test $ac_cv_func_strtod = no; then
22580 case " $LIBOBJS " in
22581 *" strtod.$ac_objext "* ) ;;
22582 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22586 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22587 if test "x$ac_cv_func_pow" = x""yes; then :
22591 if test $ac_cv_func_pow = no; then
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
22593 $as_echo_n "checking for pow in -lm... " >&6; }
22594 if test "${ac_cv_lib_m_pow+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22597 ac_check_lib_save_LIBS=$LIBS
22599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h. */
22602 /* Override any GCC internal prototype to avoid an error.
22603 Use char because int might match the return type of a GCC
22604 builtin and then its argument prototype would still apply. */
22617 if ac_fn_c_try_link "$LINENO"; then :
22618 ac_cv_lib_m_pow=yes
22622 rm -f core conftest.err conftest.$ac_objext \
22623 conftest$ac_exeext conftest.$ac_ext
22624 LIBS=$ac_check_lib_save_LIBS
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
22627 $as_echo "$ac_cv_lib_m_pow" >&6; }
22628 if test "x$ac_cv_lib_m_pow" = x""yes; then :
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
22632 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22639 for ac_func in vprintf
22641 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22642 if test "x$ac_cv_func_vprintf" = x""yes; then :
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_VPRINTF 1
22647 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22648 if test "x$ac_cv_func__doprnt" = x""yes; then :
22650 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
22660 # Find math library
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22664 $as_echo_n "checking for sqrt in -lm... " >&6; }
22665 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
22666 $as_echo_n "(cached) " >&6
22668 ac_check_lib_save_LIBS=$LIBS
22670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22671 /* end confdefs.h. */
22673 /* Override any GCC internal prototype to avoid an error.
22674 Use char because int might match the return type of a GCC
22675 builtin and then its argument prototype would still apply. */
22688 if ac_fn_c_try_link "$LINENO"; then :
22689 ac_cv_lib_m_sqrt=yes
22691 ac_cv_lib_m_sqrt=no
22693 rm -f core conftest.err conftest.$ac_objext \
22694 conftest$ac_exeext conftest.$ac_ext
22695 LIBS=$ac_check_lib_save_LIBS
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22698 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
22699 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
22703 LIBS="$MATH_LIBS $LIBS"
22706 for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite 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 usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
22708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22709 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22710 eval as_val=\$$as_ac_var
22711 if test "x$as_val" = x""yes; then :
22712 cat >>confdefs.h <<_ACEOF
22713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22721 # Check for clock_gettime().
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22724 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22725 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22726 $as_echo_n "(cached) " >&6
22728 ac_func_search_save_LIBS=$LIBS
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h. */
22732 /* Override any GCC internal prototype to avoid an error.
22733 Use char because int might match the return type of a GCC
22734 builtin and then its argument prototype would still apply. */
22738 char clock_gettime ();
22742 return clock_gettime ();
22747 for ac_lib in '' rt; do
22748 if test -z "$ac_lib"; then
22749 ac_res="none required"
22752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22754 if ac_fn_c_try_link "$LINENO"; then :
22755 ac_cv_search_clock_gettime=$ac_res
22757 rm -f core conftest.err conftest.$ac_objext \
22759 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22763 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22766 ac_cv_search_clock_gettime=no
22768 rm conftest.$ac_ext
22769 LIBS=$ac_func_search_save_LIBS
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22772 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22773 ac_res=$ac_cv_search_clock_gettime
22774 if test "$ac_res" != no; then :
22775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22778 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
22781 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
22782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22783 /* end confdefs.h. */
22788 clockid_t clockType = CLOCK_REALTIME;
22793 if ac_fn_c_try_compile "$LINENO"; then :
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22796 $as_echo "yes" >&6; }
22798 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22803 $as_echo "no" >&6; }
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 for ac_func in gettimeofday ftime
22812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22814 eval as_val=\$$as_ac_var
22815 if test "x$as_val" = x""yes; then :
22816 cat >>confdefs.h <<_ACEOF
22817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22830 # Check for function prototypes
22834 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
22835 #include <unistd.h>
22837 if test "x$ac_cv_have_decl_pread" = x""yes; then :
22843 cat >>confdefs.h <<_ACEOF
22844 #define HAVE_DECL_PREAD $ac_have_decl
22846 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
22847 #include <unistd.h>
22849 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22855 cat >>confdefs.h <<_ACEOF
22856 #define HAVE_DECL_PWRITE $ac_have_decl
22860 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
22861 #include <strings.h>
22863 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22869 cat >>confdefs.h <<_ACEOF
22870 #define HAVE_DECL_STRLCPY $ac_have_decl
22874 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
22876 #include <stdarg.h>
22878 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22884 cat >>confdefs.h <<_ACEOF
22885 #define HAVE_DECL_VSNPRINTF $ac_have_decl
22891 # C++ Support Tests (For Magick++)
22894 have_magick_plus_plus='no'
22895 if test "$with_magick_plus_plus" = 'yes'; then
22899 ac_cpp='$CXXCPP $CPPFLAGS'
22900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22905 # Full set of headers used...
22906 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22907 # functional iomanip iosfwd iostream iterator list string strstream utility
22909 ac_cpp='$CXXCPP $CPPFLAGS'
22910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22915 ac_cpp='$CXXCPP $CPPFLAGS'
22916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22919 if test -z "$CXX"; then
22920 if test -n "$CCC"; then
22923 if test -n "$ac_tool_prefix"; then
22924 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22929 $as_echo_n "checking for $ac_word... " >&6; }
22930 if test "${ac_cv_prog_CXX+set}" = set; then :
22931 $as_echo_n "(cached) " >&6
22933 if test -n "$CXX"; then
22934 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22937 for as_dir in $PATH
22940 test -z "$as_dir" && as_dir=.
22941 for ac_exec_ext in '' $ac_executable_extensions; do
22942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22943 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22953 CXX=$ac_cv_prog_CXX
22954 if test -n "$CXX"; then
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
22956 $as_echo "$CXX" >&6; }
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22963 test -n "$CXX" && break
22966 if test -z "$CXX"; then
22968 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22970 # Extract the first word of "$ac_prog", so it can be a program name with args.
22971 set dummy $ac_prog; ac_word=$2
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22973 $as_echo_n "checking for $ac_word... " >&6; }
22974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
22975 $as_echo_n "(cached) " >&6
22977 if test -n "$ac_ct_CXX"; then
22978 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981 for as_dir in $PATH
22984 test -z "$as_dir" && as_dir=.
22985 for ac_exec_ext in '' $ac_executable_extensions; do
22986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22987 ac_cv_prog_ac_ct_CXX="$ac_prog"
22988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22997 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22998 if test -n "$ac_ct_CXX"; then
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23000 $as_echo "$ac_ct_CXX" >&6; }
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23003 $as_echo "no" >&6; }
23007 test -n "$ac_ct_CXX" && break
23010 if test "x$ac_ct_CXX" = x; then
23013 case $cross_compiling:$ac_tool_warned in
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23017 ac_tool_warned=yes ;;
23025 # Provide some information about the compiler.
23026 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23029 for ac_option in --version -v -V -qversion; do
23030 { { ac_try="$ac_compiler $ac_option >&5"
23031 case "(($ac_try" in
23032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033 *) ac_try_echo=$ac_try;;
23035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23036 $as_echo "$ac_try_echo"; } >&5
23037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23039 if test -s conftest.err; then
23041 ... rest of stderr output deleted ...
23042 10q' conftest.err >conftest.er1
23043 cat conftest.er1 >&5
23045 rm -f conftest.er1 conftest.err
23046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23047 test $ac_status = 0; }
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23051 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23052 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23053 $as_echo_n "(cached) " >&6
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23069 if ac_fn_cxx_try_compile "$LINENO"; then :
23070 ac_compiler_gnu=yes
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23079 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23080 if test $ac_compiler_gnu = yes; then
23085 ac_test_CXXFLAGS=${CXXFLAGS+set}
23086 ac_save_CXXFLAGS=$CXXFLAGS
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23088 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23089 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23090 $as_echo_n "(cached) " >&6
23092 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23093 ac_cxx_werror_flag=yes
23094 ac_cv_prog_cxx_g=no
23096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23097 /* end confdefs.h. */
23107 if ac_fn_cxx_try_compile "$LINENO"; then :
23108 ac_cv_prog_cxx_g=yes
23111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23112 /* end confdefs.h. */
23122 if ac_fn_cxx_try_compile "$LINENO"; then :
23125 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23128 /* end confdefs.h. */
23138 if ac_fn_cxx_try_compile "$LINENO"; then :
23139 ac_cv_prog_cxx_g=yes
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23149 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23150 if test "$ac_test_CXXFLAGS" = set; then
23151 CXXFLAGS=$ac_save_CXXFLAGS
23152 elif test $ac_cv_prog_cxx_g = yes; then
23153 if test "$GXX" = yes; then
23159 if test "$GXX" = yes; then
23166 ac_cpp='$CXXCPP $CPPFLAGS'
23167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23171 depcc="$CXX" am_compiler_list=
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23174 $as_echo_n "checking dependency style of $depcc... " >&6; }
23175 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23176 $as_echo_n "(cached) " >&6
23178 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23179 # We make a subdir and do the tests there. Otherwise we can end up
23180 # making bogus files that we don't know about and never remove. For
23181 # instance it was reported that on HP-UX the gcc test will end up
23182 # making a dummy file named `D' -- because `-MD' means `put the output
23185 # Copy depcomp to subdir because otherwise we won't find it if we're
23186 # using a relative directory.
23187 cp "$am_depcomp" conftest.dir
23189 # We will build objects and dependencies in a subdirectory because
23190 # it helps to detect inapplicable dependency modes. For instance
23191 # both Tru64's cc and ICC support -MD to output dependencies as a
23192 # side effect of compilation, but ICC will put the dependencies in
23193 # the current directory while Tru64 will put them in the object
23197 am_cv_CXX_dependencies_compiler_type=none
23198 if test "$am_compiler_list" = ""; then
23199 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23201 am__universal=false
23202 case " $depcc " in #(
23203 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23206 for depmode in $am_compiler_list; do
23207 # Setup a source with many dependencies, because some compilers
23208 # like to wrap large dependency lists on column 80 (with \), and
23209 # we should not choose a depcomp mode which is confused by this.
23211 # We need to recreate these files for each test, as the compiler may
23212 # overwrite some of them when testing with obscure command lines.
23213 # This happens at least with the AIX C compiler.
23215 for i in 1 2 3 4 5 6; do
23216 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23217 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23218 # Solaris 8's {/usr,}/bin/sh.
23219 touch sub/conftst$i.h
23221 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23223 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23224 # mode. It turns out that the SunPro C++ compiler does not properly
23225 # handle `-M -o', and we need to detect this. Also, some Intel
23226 # versions had trouble with output in subdirs
23227 am__obj=sub/conftest.${OBJEXT-o}
23228 am__minus_obj="-o $am__obj"
23231 # This depmode causes a compiler race in universal mode.
23232 test "$am__universal" = false || continue
23235 # after this tag, mechanisms are not by side-effect, so they'll
23236 # only be used when explicitly requested
23237 if test "x$enable_dependency_tracking" = xyes; then
23243 msvisualcpp | msvcmsys)
23244 # This compiler won't grok `-c -o', but also, the minuso test has
23245 # not run yet. These depmodes are late enough in the game, and
23246 # so weak that their functioning should not be impacted.
23247 am__obj=conftest.${OBJEXT-o}
23252 if depmode=$depmode \
23253 source=sub/conftest.c object=$am__obj \
23254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23255 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23256 >/dev/null 2>conftest.err &&
23257 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23258 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23259 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23260 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23261 # icc doesn't choke on unknown options, it will just issue warnings
23262 # or remarks (even with -Werror). So we grep stderr for any message
23263 # that says an option was ignored or not supported.
23264 # When given -MP, icc 7.0 and 7.1 complain thusly:
23265 # icc: Command line warning: ignoring option '-M'; no argument required
23266 # The diagnosis changed in icc 8.0:
23267 # icc: Command line remark: option '-MP' not supported
23268 if (grep 'ignoring option' conftest.err ||
23269 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23270 am_cv_CXX_dependencies_compiler_type=$depmode
23277 rm -rf conftest.dir
23279 am_cv_CXX_dependencies_compiler_type=none
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23284 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23285 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23288 test "x$enable_dependency_tracking" != xno \
23289 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23290 am__fastdepCXX_TRUE=
23291 am__fastdepCXX_FALSE='#'
23293 am__fastdepCXX_TRUE='#'
23294 am__fastdepCXX_FALSE=
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23299 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23300 if test "${ac_cv_cxx_have_bool+set}" = set; then :
23301 $as_echo_n "(cached) " >&6
23305 ac_cpp='$CXXCPP $CPPFLAGS'
23306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23311 /* end confdefs.h. */
23313 int f(int x){return 1;}
23314 int f(char x){return 1;}
23315 int f(bool x){return 1;}
23320 bool b = true; return f(b);
23325 if ac_fn_cxx_try_compile "$LINENO"; then :
23326 ac_cv_cxx_have_bool=yes
23328 ac_cv_cxx_have_bool=no
23330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
23340 $as_echo "$ac_cv_cxx_have_bool" >&6; }
23341 if test "$ac_cv_cxx_have_bool" = yes; then
23343 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23348 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23349 if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
23350 $as_echo_n "(cached) " >&6
23354 ac_cpp='$CXXCPP $CPPFLAGS'
23355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23360 /* end confdefs.h. */
23361 namespace Outer { namespace Inner { int i = 0; }}
23365 using namespace Outer::Inner; return i;
23370 if ac_fn_cxx_try_compile "$LINENO"; then :
23371 ac_cv_cxx_have_namespaces=yes
23373 ac_cv_cxx_have_namespaces=no
23375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377 ac_cpp='$CXXCPP $CPPFLAGS'
23378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
23385 $as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23386 if test "$ac_cv_cxx_have_namespaces" = yes; then
23388 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
23393 $as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
23394 if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
23395 $as_echo_n "(cached) " >&6
23399 ac_cpp='$CXXCPP $CPPFLAGS'
23400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23405 /* end confdefs.h. */
23406 #include <iostream>
23407 std::istream& is = std::cin;
23417 if ac_fn_cxx_try_compile "$LINENO"; then :
23418 ac_cv_cxx_have_std_namespace=yes
23420 ac_cv_cxx_have_std_namespace=no
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23424 ac_cpp='$CXXCPP $CPPFLAGS'
23425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
23432 $as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23433 if test "$ac_cv_cxx_have_std_namespace" = yes; then
23435 $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23440 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23441 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23442 $as_echo_n "(cached) " >&6
23447 ac_cpp='$CXXCPP $CPPFLAGS'
23448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23453 /* end confdefs.h. */
23454 #include <iostream>
23458 #ifdef HAVE_NAMESPACES
23459 using namespace std;
23469 if ac_fn_cxx_try_compile "$LINENO"; then :
23470 ac_cv_cxx_have_std_libs=yes
23472 ac_cv_cxx_have_std_libs=no
23474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 ac_cpp='$CXXCPP $CPPFLAGS'
23477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23484 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23485 if test "$ac_cv_cxx_have_std_libs" = yes; then
23487 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23492 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23493 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23494 $as_echo_n "(cached) " >&6
23498 ac_cpp='$CXXCPP $CPPFLAGS'
23499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23505 const wchar_t* s=L"wide string";
23507 if ac_fn_cxx_try_compile "$LINENO"; then :
23508 ac_cv_cxx_have_lstring=yes
23510 ac_cv_cxx_have_lstring=no
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23514 ac_cpp='$CXXCPP $CPPFLAGS'
23515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23522 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23523 if test "$ac_cv_cxx_have_lstring" = yes; then
23525 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23531 # Check whether --enable-openmp was given.
23532 if test "${enable_openmp+set}" = set; then :
23533 enableval=$enable_openmp;
23536 if test "$enable_openmp" != no; then
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23538 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23539 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23540 $as_echo_n "(cached) " >&6
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h. */
23549 int main () { return omp_get_num_threads (); }
23552 if ac_fn_cxx_try_link "$LINENO"; then :
23553 ac_cv_prog_cxx_openmp='none needed'
23555 ac_cv_prog_cxx_openmp='unsupported'
23556 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23557 ac_save_CXXFLAGS=$CXXFLAGS
23558 CXXFLAGS="$CXXFLAGS $ac_option"
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23566 int main () { return omp_get_num_threads (); }
23569 if ac_fn_cxx_try_link "$LINENO"; then :
23570 ac_cv_prog_cxx_openmp=$ac_option
23572 rm -f core conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23574 CXXFLAGS=$ac_save_CXXFLAGS
23575 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23580 rm -f core conftest.err conftest.$ac_objext \
23581 conftest$ac_exeext conftest.$ac_ext
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
23584 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23585 case $ac_cv_prog_cxx_openmp in #(
23586 "none needed" | unsupported)
23589 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
23595 ac_cpp='$CPP $CPPFLAGS'
23596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
23602 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23604 test $ac_cv_cxx_have_bool = 'yes' && \
23605 test $ac_cv_cxx_have_lstring = 'yes' && \
23606 test $ac_cv_cxx_have_namespaces = 'yes' && \
23607 test $ac_cv_cxx_have_std_libs = 'yes' && \
23608 test $ac_cv_cxx_have_std_namespace = 'yes'; then
23609 have_magick_plus_plus='yes'
23611 have_magick_plus_plus='no (failed tests)'
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
23614 $as_echo "$have_magick_plus_plus" >&6; }
23617 if test "$have_magick_plus_plus" = 'yes'; then
23618 WITH_MAGICK_PLUS_PLUS_TRUE=
23619 WITH_MAGICK_PLUS_PLUS_FALSE='#'
23621 WITH_MAGICK_PLUS_PLUS_TRUE='#'
23622 WITH_MAGICK_PLUS_PLUS_FALSE=
23626 # Only check for delegate libraries in subdirectories if requested.
23627 if test "$enable_delegate_build" != 'no'; then
23628 # Check for delegate sub-directories and add -I & -L options as required.
23629 # This presumes that delegates are installed as detailed in the ImageMagick
23630 # README. If delegates are installed in a standard location where the
23631 # compiler will automatically find them then these options should not be
23635 # Most delegates have includes in the same directory as the library, but not all...
23638 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
23639 if test -d "$builddir/$dir"; then
23640 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23642 if test -d "$srcdirfull/$dir"; then
23643 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23649 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
23650 if test -d "$builddir/$dir/.libs"; then
23651 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23653 if test -d "$srcdirfull/$dir/.libs"; then
23654 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23657 if test -d "$builddir/$dir"; then
23658 LDFLAGS="$LDFLAGS -L$builddir/$dir"
23660 if test -d "$srcdirfull/$dir"; then
23661 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23667 # Assume that delegate headers reside under same directory as ImageMagick
23668 # installation prefix.
23669 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23672 # Find the X11 RGB database
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
23675 $as_echo_n "checking for X11 configure files... " >&6; }
23676 if test "${im_cv_x_configure+set}" = set; then :
23677 $as_echo_n "(cached) " >&6
23679 # Look for the header file in a standard set of common directories.
23680 # Check X11 before X11Rn because it is often a symlink to the current release.
23689 /usr/XFree86/lib/X11 \
23697 /usr/local/X11/lib \
23698 /usr/local/X11R4/lib \
23699 /usr/local/X11R5/lib \
23700 /usr/local/X11R6/lib \
23702 /usr/local/lib/X11 \
23703 /usr/local/lib/X11R4 \
23704 /usr/local/lib/X11R5 \
23705 /usr/local/lib/X11R6 \
23706 /usr/local/lib/X11R7 \
23707 /usr/local/x11r5/lib \
23708 /usr/lpp/Xamples/lib \
23710 /usr/openwin/share/lib \
23711 /usr/unsupported/lib \
23714 if test -f "$ac_dir/X11/rgb.txt"; then
23715 im_cv_x_configure="$ac_dir/X11/"
23717 elif test -f "$ac_dir/rgb.txt"; then
23718 im_cv_x_configure="$ac_dir/"
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
23725 $as_echo "$im_cv_x_configure" >&6; }
23726 X11_CONFIGURE_PATH="$im_cv_x_configure"
23727 case "${build_os}" in
23729 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23733 cat >>confdefs.h <<_ACEOF
23734 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
23739 # Find OpenMP library
23742 if test "$enable_openmp" != 'no'; then
23743 if test "${GCC}" = "yes"; then
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
23745 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
23746 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
23747 $as_echo_n "(cached) " >&6
23749 ac_check_lib_save_LIBS=$LIBS
23750 LIBS="-lgomp $LIBS"
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23754 /* Override any GCC internal prototype to avoid an error.
23755 Use char because int might match the return type of a GCC
23756 builtin and then its argument prototype would still apply. */
23760 char GOMP_parallel_start ();
23764 return GOMP_parallel_start ();
23769 if ac_fn_c_try_link "$LINENO"; then :
23770 ac_cv_lib_gomp_GOMP_parallel_start=yes
23772 ac_cv_lib_gomp_GOMP_parallel_start=no
23774 rm -f core conftest.err conftest.$ac_objext \
23775 conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
23779 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
23780 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
23786 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
23787 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
23788 $as_echo_n "(cached) " >&6
23790 ac_check_lib_save_LIBS=$LIBS
23791 LIBS="-lmtsk $LIBS"
23792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23793 /* end confdefs.h. */
23795 /* Override any GCC internal prototype to avoid an error.
23796 Use char because int might match the return type of a GCC
23797 builtin and then its argument prototype would still apply. */
23801 char sunw_mp_register_warn ();
23805 return sunw_mp_register_warn ();
23810 if ac_fn_c_try_link "$LINENO"; then :
23811 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23813 ac_cv_lib_mtsk_sunw_mp_register_warn=no
23815 rm -f core conftest.err conftest.$ac_objext \
23816 conftest$ac_exeext conftest.$ac_ext
23817 LIBS=$ac_check_lib_save_LIBS
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
23820 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
23821 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
23826 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
23827 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
23828 $as_echo_n "(cached) " >&6
23830 ac_check_lib_save_LIBS=$LIBS
23831 LIBS="-lxlsmp $LIBS"
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h. */
23835 /* Override any GCC internal prototype to avoid an error.
23836 Use char because int might match the return type of a GCC
23837 builtin and then its argument prototype would still apply. */
23841 char _xlsmpFlush ();
23845 return _xlsmpFlush ();
23850 if ac_fn_c_try_link "$LINENO"; then :
23851 ac_cv_lib_xlsmp__xlsmpFlush=yes
23853 ac_cv_lib_xlsmp__xlsmpFlush=no
23855 rm -f core conftest.err conftest.$ac_objext \
23856 conftest$ac_exeext conftest.$ac_ext
23857 LIBS=$ac_check_lib_save_LIBS
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
23860 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
23861 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
23862 GOMP_LIBS="-lxlsmp"
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
23866 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
23867 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
23868 $as_echo_n "(cached) " >&6
23870 ac_check_lib_save_LIBS=$LIBS
23872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23873 /* end confdefs.h. */
23875 /* Override any GCC internal prototype to avoid an error.
23876 Use char because int might match the return type of a GCC
23877 builtin and then its argument prototype would still apply. */
23881 char mp_destroy ();
23885 return mp_destroy ();
23890 if ac_fn_c_try_link "$LINENO"; then :
23891 ac_cv_lib_mp_mp_destroy=yes
23893 ac_cv_lib_mp_mp_destroy=no
23895 rm -f core conftest.err conftest.$ac_objext \
23896 conftest$ac_exeext conftest.$ac_ext
23897 LIBS=$ac_check_lib_save_LIBS
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
23900 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
23901 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
23904 # SGI IRIX 6.5 MIPSpro C/C++
23906 LIBS="$GOMP_LIBS $LIBS"
23911 # Find Posix threads library
23914 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23916 if test "x$PTHREAD_LIBS" = "x"; then
23917 case "${host_cpu}-${host_os}" in
23923 ac_cpp='$CPP $CPPFLAGS'
23924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23928 magick_pthread_lib_ok=no
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23935 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h. */
23938 #include <pthread.h>
23943 pthread_join(th, 0);
23944 pthread_attr_init(0);
23945 pthread_cleanup_push(0, 0);
23946 pthread_create(0,0,0,0);
23947 pthread_cleanup_pop(0);
23952 if ac_fn_c_try_link "$LINENO"; then :
23953 magick_pthread_lib_ok=yes
23955 rm -f core conftest.err conftest.$ac_objext \
23956 conftest$ac_exeext conftest.$ac_ext
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23959 $as_echo "${magick_pthread_lib_ok}" >&6; }
23960 if test "$magick_pthread_lib_ok" = yes
23972 ac_cpp='$CPP $CPPFLAGS'
23973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23981 for lib in pthread pthreads; do
23982 if test "x$PTHREAD_LIBS" = "x"; then
23987 ac_cpp='$CPP $CPPFLAGS'
23988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23992 magick_pthread_lib_ok=no
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23999 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h. */
24002 #include <pthread.h>
24007 pthread_join(th, 0);
24008 pthread_attr_init(0);
24009 pthread_cleanup_push(0, 0);
24010 pthread_create(0,0,0,0);
24011 pthread_cleanup_pop(0);
24016 if ac_fn_c_try_link "$LINENO"; then :
24017 magick_pthread_lib_ok=yes
24019 rm -f core conftest.err conftest.$ac_objext \
24020 conftest$ac_exeext conftest.$ac_ext
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24023 $as_echo "${magick_pthread_lib_ok}" >&6; }
24024 if test "$magick_pthread_lib_ok" = yes
24026 PTHREAD_LIBS=-l$lib
24036 ac_cpp='$CPP $CPPFLAGS'
24037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24045 THREAD_LIBS="$PTHREAD_LIBS"
24046 LIBS="$LIBS $THREAD_LIBS"
24055 if test "$with_umem" != 'no'; then
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24057 $as_echo_n "checking for UMEM support ... " >&6; }
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24062 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24063 if test "x$ac_cv_header_umem_h" = x""yes; then :
24064 passed=`expr $passed + 1`
24066 failed=`expr $failed + 1`
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24071 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24072 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24073 $as_echo_n "(cached) " >&6
24075 ac_check_lib_save_LIBS=$LIBS
24076 LIBS="-lumem $LIBS"
24077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24078 /* end confdefs.h. */
24080 /* Override any GCC internal prototype to avoid an error.
24081 Use char because int might match the return type of a GCC
24082 builtin and then its argument prototype would still apply. */
24086 char umem_alloc ();
24090 return umem_alloc ();
24095 if ac_fn_c_try_link "$LINENO"; then :
24096 ac_cv_lib_umem_umem_alloc=yes
24098 ac_cv_lib_umem_umem_alloc=no
24100 rm -f core conftest.err conftest.$ac_objext \
24101 conftest$ac_exeext conftest.$ac_ext
24102 LIBS=$ac_check_lib_save_LIBS
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24105 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24106 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24107 passed=`expr $passed + 1`
24109 failed=`expr $failed + 1`
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24113 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24114 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24115 $as_echo_n "(cached) " >&6
24117 ac_check_lib_save_LIBS=$LIBS
24118 LIBS="-lumem $LIBS"
24119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24120 /* end confdefs.h. */
24122 /* Override any GCC internal prototype to avoid an error.
24123 Use char because int might match the return type of a GCC
24124 builtin and then its argument prototype would still apply. */
24132 return umem_free ();
24137 if ac_fn_c_try_link "$LINENO"; then :
24138 ac_cv_lib_umem_umem_free=yes
24140 ac_cv_lib_umem_umem_free=no
24142 rm -f core conftest.err conftest.$ac_objext \
24143 conftest$ac_exeext conftest.$ac_ext
24144 LIBS=$ac_check_lib_save_LIBS
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24147 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24148 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24149 passed=`expr $passed + 1`
24151 failed=`expr $failed + 1`
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24155 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24156 if test $passed -gt 0; then
24157 if test $failed -gt 0; then
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24159 $as_echo "no -- some components failed test" >&6; }
24160 have_umem='no (failed tests)'
24163 LIBS="$UMEM_LIBS $LIBS"
24165 $as_echo "#define HasUMEM 1" >>confdefs.h
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24168 $as_echo "yes" >&6; }
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24173 $as_echo "no" >&6; }
24176 if test "$have_umem" = 'yes'; then
24187 # Add support for ccmalloc memory debugging library if requested
24191 if test "$enable_ccmalloc" = 'yes'; then
24192 # Extract the first word of "ccmalloc", so it can be a program name with args.
24193 set dummy ccmalloc; ac_word=$2
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24195 $as_echo_n "checking for $ac_word... " >&6; }
24196 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24199 case $CCMALLOCDelegate in
24201 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24205 for as_dir in $PATH
24208 test -z "$as_dir" && as_dir=.
24209 for ac_exec_ext in '' $ac_executable_extensions; do
24210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24211 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24222 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24223 if test -n "$CCMALLOCDelegate"; then
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24225 $as_echo "$CCMALLOCDelegate" >&6; }
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24228 $as_echo "no" >&6; }
24232 if test -n "$CCMALLOCDelegate"; then
24233 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24235 # Assume that gcc is used with ccmalloc.
24236 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24238 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24239 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24240 $as_echo_n "(cached) " >&6
24242 ac_check_lib_save_LIBS=$LIBS
24243 LIBS="-lccmalloc -ldl $LIBS"
24244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245 /* end confdefs.h. */
24247 /* Override any GCC internal prototype to avoid an error.
24248 Use char because int might match the return type of a GCC
24249 builtin and then its argument prototype would still apply. */
24253 char ccmalloc_malloc ();
24257 return ccmalloc_malloc ();
24262 if ac_fn_c_try_link "$LINENO"; then :
24263 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24265 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24267 rm -f core conftest.err conftest.$ac_objext \
24268 conftest$ac_exeext conftest.$ac_ext
24269 LIBS=$ac_check_lib_save_LIBS
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24272 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24273 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24274 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24277 if test -n "$CCMALLOC_LIBS"; then
24279 LIBS="$LIBS $CCMALLOC_LIBS"
24280 have_ccmalloc='yes'
24288 # Add support for efence memory debugging library if requested
24290 if test "$enable_efence" = 'yes'; then
24291 EFENCE_LIBS='-lefence'
24292 LIBS="$EFENCE_LIBS $LIBS"
24301 # Check whether --with-bzlib was given.
24302 if test "${with_bzlib+set}" = set; then :
24303 withval=$with_bzlib; with_bzlib=$withval
24309 if test "$with_bzlib" != 'yes'; then
24310 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24314 if test "$with_bzlib" != 'no'; then
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24317 $as_echo "-------------------------------------------------------------" >&6; }
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24319 $as_echo_n "checking for BZLIB... " >&6; }
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24325 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24326 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24327 passed=`expr $passed + 1`
24329 failed=`expr $failed + 1`
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24334 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24335 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24336 $as_echo_n "(cached) " >&6
24338 ac_check_lib_save_LIBS=$LIBS
24340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341 /* end confdefs.h. */
24343 /* Override any GCC internal prototype to avoid an error.
24344 Use char because int might match the return type of a GCC
24345 builtin and then its argument prototype would still apply. */
24349 char BZ2_bzDecompress ();
24353 return BZ2_bzDecompress ();
24358 if ac_fn_c_try_link "$LINENO"; then :
24359 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24361 ac_cv_lib_bz2_BZ2_bzDecompress=no
24363 rm -f core conftest.err conftest.$ac_objext \
24364 conftest$ac_exeext conftest.$ac_ext
24365 LIBS=$ac_check_lib_save_LIBS
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24368 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24369 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24370 found_libbz=`expr $found_libbz + 1`
24373 if test "$native_win32_build" = 'yes'; then
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24375 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24376 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24377 $as_echo_n "(cached) " >&6
24379 ac_check_lib_save_LIBS=$LIBS
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h. */
24384 /* Override any GCC internal prototype to avoid an error.
24385 Use char because int might match the return type of a GCC
24386 builtin and then its argument prototype would still apply. */
24390 char _imp__BZ2_decompress ();
24394 return _imp__BZ2_decompress ();
24399 if ac_fn_c_try_link "$LINENO"; then :
24400 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24402 ac_cv_lib_bz2__imp__BZ2_decompress=no
24404 rm -f core conftest.err conftest.$ac_objext \
24405 conftest$ac_exeext conftest.$ac_ext
24406 LIBS=$ac_check_lib_save_LIBS
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24409 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24410 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24411 found_libbz=`expr $found_libbz + 1`
24415 if test $found_libbz -gt 0; then
24416 passed=`expr $passed + 1`
24418 failed=`expr $failed + 1`
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24421 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24422 if test $passed -gt 0; then
24423 if test $failed -gt 0; then
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24425 $as_echo "no -- some components failed test" >&6; }
24426 have_bzlib='no (failed tests)'
24429 LIBS="$BZLIB_LIBS $LIBS"
24431 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24434 $as_echo "yes" >&6; }
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24439 $as_echo "no" >&6; }
24442 if test "$have_bzlib" = 'yes'; then
24443 BZLIB_DELEGATE_TRUE=
24444 BZLIB_DELEGATE_FALSE='#'
24446 BZLIB_DELEGATE_TRUE='#'
24447 BZLIB_DELEGATE_FALSE=
24453 # Find the X11 include and library directories.
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24460 $as_echo_n "checking for X... " >&6; }
24463 # Check whether --with-x was given.
24464 if test "${with_x+set}" = set; then :
24468 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24469 if test "x$with_x" = xno; then
24470 # The user explicitly disabled X.
24473 case $x_includes,$x_libraries in #(
24474 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24475 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24478 # One or both of the vars are not set, and there is no cached value.
24479 ac_x_includes=no ac_x_libraries=no
24480 rm -f -r conftest.dir
24481 if mkdir conftest.dir; then
24483 cat >Imakefile <<'_ACEOF'
24485 @echo incroot='${INCROOT}'
24487 @echo usrlibdir='${USRLIBDIR}'
24489 @echo libdir='${LIBDIR}'
24491 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24493 for ac_var in incroot usrlibdir libdir; do
24494 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24496 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24497 for ac_extension in a so sl dylib la dll; do
24498 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24499 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24500 ac_im_usrlibdir=$ac_im_libdir; break
24503 # Screen out bogus values from the imake configuration. They are
24504 # bogus both because they are the default anyway, and because
24505 # using them would break gcc on systems where it needs fixed includes.
24506 case $ac_im_incroot in
24507 /usr/include) ac_x_includes= ;;
24508 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24510 case $ac_im_usrlibdir in
24511 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24512 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24516 rm -f -r conftest.dir
24519 # Standard set of common directories for X headers.
24520 # Check X11 before X11Rn because it is often a symlink to the current release.
24534 /usr/local/X11/include
24535 /usr/local/X11R7/include
24536 /usr/local/X11R6/include
24537 /usr/local/X11R5/include
24538 /usr/local/X11R4/include
24540 /usr/local/include/X11
24541 /usr/local/include/X11R7
24542 /usr/local/include/X11R6
24543 /usr/local/include/X11R5
24544 /usr/local/include/X11R4
24548 /usr/XFree86/include/X11
24552 /usr/unsupported/include
24553 /usr/athena/include
24554 /usr/local/x11r5/include
24555 /usr/lpp/Xamples/include
24557 /usr/openwin/include
24558 /usr/openwin/share/include'
24560 if test "$ac_x_includes" = no; then
24561 # Guess where to find include files, by looking for Xlib.h.
24562 # First, try using that file with no special directory specified.
24563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564 /* end confdefs.h. */
24565 #include <X11/Xlib.h>
24567 if ac_fn_c_try_cpp "$LINENO"; then :
24568 # We can compile using X headers with no special include directory.
24571 for ac_dir in $ac_x_header_dirs; do
24572 if test -r "$ac_dir/X11/Xlib.h"; then
24573 ac_x_includes=$ac_dir
24578 rm -f conftest.err conftest.$ac_ext
24579 fi # $ac_x_includes = no
24581 if test "$ac_x_libraries" = no; then
24582 # Check for the libraries.
24583 # See if we find them without any special options.
24584 # Don't add to $LIBS permanently.
24587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24588 /* end confdefs.h. */
24589 #include <X11/Xlib.h>
24598 if ac_fn_c_try_link "$LINENO"; then :
24600 # We can link X programs with no special library path.
24604 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24606 # Don't even attempt the hair of trying to link an X program!
24607 for ac_extension in a so sl dylib la dll; do
24608 if test -r "$ac_dir/libX11.$ac_extension"; then
24609 ac_x_libraries=$ac_dir
24615 rm -f core conftest.err conftest.$ac_objext \
24616 conftest$ac_exeext conftest.$ac_ext
24617 fi # $ac_x_libraries = no
24619 case $ac_x_includes,$ac_x_libraries in #(
24620 no,* | *,no | *\'*)
24621 # Didn't find X, or a directory has "'" in its name.
24622 ac_cv_have_x="have_x=no";; #(
24624 # Record where we found X for the cache.
24625 ac_cv_have_x="have_x=yes\
24626 ac_x_includes='$ac_x_includes'\
24627 ac_x_libraries='$ac_x_libraries'"
24633 eval "$ac_cv_have_x"
24636 if test "$have_x" != yes; then
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24638 $as_echo "$have_x" >&6; }
24641 # If each of the values was on the command line, it overrides each guess.
24642 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24643 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24644 # Update the cache value to reflect the command line values.
24645 ac_cv_have_x="have_x=yes\
24646 ac_x_includes='$x_includes'\
24647 ac_x_libraries='$x_libraries'"
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24649 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24652 if test "$no_x" = yes; then
24653 # Not all programs may use this symbol, but it does not hurt to define it.
24655 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24657 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24659 if test -n "$x_includes"; then
24660 X_CFLAGS="$X_CFLAGS -I$x_includes"
24663 # It would also be nice to do this for all -L options, not just this one.
24664 if test -n "$x_libraries"; then
24665 X_LIBS="$X_LIBS -L$x_libraries"
24666 # For Solaris; some versions of Sun CC require a space after -R and
24667 # others require no space. Words are not sufficient . . . .
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24669 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24670 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24671 ac_xsave_c_werror_flag=$ac_c_werror_flag
24672 ac_c_werror_flag=yes
24673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24674 /* end confdefs.h. */
24684 if ac_fn_c_try_link "$LINENO"; then :
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24686 $as_echo "no" >&6; }
24687 X_LIBS="$X_LIBS -R$x_libraries"
24689 LIBS="$ac_xsave_LIBS -R $x_libraries"
24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h. */
24701 if ac_fn_c_try_link "$LINENO"; then :
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24703 $as_echo "yes" >&6; }
24704 X_LIBS="$X_LIBS -R $x_libraries"
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24707 $as_echo "neither works" >&6; }
24709 rm -f core conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
24712 rm -f core conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
24714 ac_c_werror_flag=$ac_xsave_c_werror_flag
24715 LIBS=$ac_xsave_LIBS
24718 # Check for system-dependent libraries X programs must link with.
24719 # Do this before checking for the system-independent R6 libraries
24720 # (-lICE), since we may need -lsocket or whatever for X linking.
24722 if test "$ISC" = yes; then
24723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24725 # Martyn Johnson says this is needed for Ultrix, if the X
24726 # libraries were built with DECnet support. And Karl Berry says
24727 # the Alpha needs dnet_stub (dnet does not exist).
24728 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730 /* end confdefs.h. */
24732 /* Override any GCC internal prototype to avoid an error.
24733 Use char because int might match the return type of a GCC
24734 builtin and then its argument prototype would still apply. */
24738 char XOpenDisplay ();
24742 return XOpenDisplay ();
24747 if ac_fn_c_try_link "$LINENO"; then :
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24751 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24752 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24753 $as_echo_n "(cached) " >&6
24755 ac_check_lib_save_LIBS=$LIBS
24756 LIBS="-ldnet $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. */
24770 return dnet_ntoa ();
24775 if ac_fn_c_try_link "$LINENO"; then :
24776 ac_cv_lib_dnet_dnet_ntoa=yes
24778 ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5
24785 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24786 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24787 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24790 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24792 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24793 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24794 $as_echo_n "(cached) " >&6
24796 ac_check_lib_save_LIBS=$LIBS
24797 LIBS="-ldnet_stub $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. */
24811 return dnet_ntoa ();
24816 if ac_fn_c_try_link "$LINENO"; then :
24817 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24819 ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5
24826 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24827 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24828 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24833 rm -f core conftest.err conftest.$ac_objext \
24834 conftest$ac_exeext conftest.$ac_ext
24835 LIBS="$ac_xsave_LIBS"
24837 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24838 # to get the SysV transport functions.
24839 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24841 # The nsl library prevents programs from opening the X display
24842 # on Irix 5.2, according to T.E. Dickey.
24843 # The functions gethostbyname, getservbyname, and inet_addr are
24844 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24845 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24846 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24850 if test $ac_cv_func_gethostbyname = no; then
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24852 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24853 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24854 $as_echo_n "(cached) " >&6
24856 ac_check_lib_save_LIBS=$LIBS
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h. */
24861 /* Override any GCC internal prototype to avoid an error.
24862 Use char because int might match the return type of a GCC
24863 builtin and then its argument prototype would still apply. */
24867 char gethostbyname ();
24871 return gethostbyname ();
24876 if ac_fn_c_try_link "$LINENO"; then :
24877 ac_cv_lib_nsl_gethostbyname=yes
24879 ac_cv_lib_nsl_gethostbyname=no
24881 rm -f core conftest.err conftest.$ac_objext \
24882 conftest$ac_exeext conftest.$ac_ext
24883 LIBS=$ac_check_lib_save_LIBS
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24886 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24887 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24891 if test $ac_cv_lib_nsl_gethostbyname = no; then
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24893 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24894 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24897 ac_check_lib_save_LIBS=$LIBS
24899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24900 /* end confdefs.h. */
24902 /* Override any GCC internal prototype to avoid an error.
24903 Use char because int might match the return type of a GCC
24904 builtin and then its argument prototype would still apply. */
24908 char gethostbyname ();
24912 return gethostbyname ();
24917 if ac_fn_c_try_link "$LINENO"; then :
24918 ac_cv_lib_bsd_gethostbyname=yes
24920 ac_cv_lib_bsd_gethostbyname=no
24922 rm -f core conftest.err conftest.$ac_objext \
24923 conftest$ac_exeext conftest.$ac_ext
24924 LIBS=$ac_check_lib_save_LIBS
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24927 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24928 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24935 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24936 # socket/setsockopt and other routines are undefined under SCO ODT
24937 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24938 # on later versions), says Simon Leinen: it contains gethostby*
24939 # variants that don't use the name server (or something). -lsocket
24940 # must be given before -lnsl if both are needed. We assume that
24941 # if connect needs -lnsl, so does gethostbyname.
24942 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24943 if test "x$ac_cv_func_connect" = x""yes; then :
24947 if test $ac_cv_func_connect = no; then
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24949 $as_echo_n "checking for connect in -lsocket... " >&6; }
24950 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24951 $as_echo_n "(cached) " >&6
24953 ac_check_lib_save_LIBS=$LIBS
24954 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h. */
24958 /* Override any GCC internal prototype to avoid an error.
24959 Use char because int might match the return type of a GCC
24960 builtin and then its argument prototype would still apply. */
24973 if ac_fn_c_try_link "$LINENO"; then :
24974 ac_cv_lib_socket_connect=yes
24976 ac_cv_lib_socket_connect=no
24978 rm -f core conftest.err conftest.$ac_objext \
24979 conftest$ac_exeext conftest.$ac_ext
24980 LIBS=$ac_check_lib_save_LIBS
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24983 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24984 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24985 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24990 # Guillermo Gomez says -lposix is necessary on A/UX.
24991 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24992 if test "x$ac_cv_func_remove" = x""yes; then :
24996 if test $ac_cv_func_remove = no; then
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24998 $as_echo_n "checking for remove in -lposix... " >&6; }
24999 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25000 $as_echo_n "(cached) " >&6
25002 ac_check_lib_save_LIBS=$LIBS
25003 LIBS="-lposix $LIBS"
25004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005 /* end confdefs.h. */
25007 /* Override any GCC internal prototype to avoid an error.
25008 Use char because int might match the return type of a GCC
25009 builtin and then its argument prototype would still apply. */
25022 if ac_fn_c_try_link "$LINENO"; then :
25023 ac_cv_lib_posix_remove=yes
25025 ac_cv_lib_posix_remove=no
25027 rm -f core conftest.err conftest.$ac_objext \
25028 conftest$ac_exeext conftest.$ac_ext
25029 LIBS=$ac_check_lib_save_LIBS
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25032 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25033 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25039 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25040 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25041 if test "x$ac_cv_func_shmat" = x""yes; then :
25045 if test $ac_cv_func_shmat = no; then
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25047 $as_echo_n "checking for shmat in -lipc... " >&6; }
25048 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25049 $as_echo_n "(cached) " >&6
25051 ac_check_lib_save_LIBS=$LIBS
25053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25054 /* end confdefs.h. */
25056 /* Override any GCC internal prototype to avoid an error.
25057 Use char because int might match the return type of a GCC
25058 builtin and then its argument prototype would still apply. */
25071 if ac_fn_c_try_link "$LINENO"; then :
25072 ac_cv_lib_ipc_shmat=yes
25074 ac_cv_lib_ipc_shmat=no
25076 rm -f core conftest.err conftest.$ac_objext \
25077 conftest$ac_exeext conftest.$ac_ext
25078 LIBS=$ac_check_lib_save_LIBS
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25081 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25082 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25083 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25089 # Check for libraries that X11R6 Xt/Xaw programs need.
25090 ac_save_LDFLAGS=$LDFLAGS
25091 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25092 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25093 # check for ICE first), but we must link in the order -lSM -lICE or
25094 # we get undefined symbols. So assume we have SM if we have ICE.
25095 # These have to be linked with before -lX11, unlike the other
25096 # libraries we check for below, so use a different variable.
25097 # John Interrante, Karl Berry
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25099 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25100 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25101 $as_echo_n "(cached) " >&6
25103 ac_check_lib_save_LIBS=$LIBS
25104 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25106 /* end confdefs.h. */
25108 /* Override any GCC internal prototype to avoid an error.
25109 Use char because int might match the return type of a GCC
25110 builtin and then its argument prototype would still apply. */
25114 char IceConnectionNumber ();
25118 return IceConnectionNumber ();
25123 if ac_fn_c_try_link "$LINENO"; then :
25124 ac_cv_lib_ICE_IceConnectionNumber=yes
25126 ac_cv_lib_ICE_IceConnectionNumber=no
25128 rm -f core conftest.err conftest.$ac_objext \
25129 conftest$ac_exeext conftest.$ac_ext
25130 LIBS=$ac_check_lib_save_LIBS
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25133 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25134 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25135 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25138 LDFLAGS=$ac_save_LDFLAGS
25142 if test "$no_x" != 'yes'; then
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25144 $as_echo "-------------------------------------------------------------" >&6; }
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25146 $as_echo_n "checking for X11... " >&6; }
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25149 LDFLAGS="$LDFLAGS $X_LIBS"
25150 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25151 LIBS="$X11_LIBS $LIBS"
25152 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25155 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25158 # Check for X11 shared memory extension
25160 # shmctl is required to support the shared memory extension
25161 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25162 if test "x$ac_cv_func_shmctl" = x""yes; then :
25166 if test "$have_shmctl" != 'yes'; then
25168 LIBS="$LIBS -lcygipc"
25169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25170 /* end confdefs.h. */
25172 /* Override any GCC internal prototype to avoid an error.
25173 Use char because int might match the return type of a GCC
25174 builtin and then its argument prototype would still apply. */
25187 if ac_fn_c_try_link "$LINENO"; then :
25188 have_shmctl='yes'; IPC_LIBS='-lcygipc'
25190 rm -f core conftest.err conftest.$ac_objext \
25191 conftest$ac_exeext conftest.$ac_ext
25195 if test "$have_shmctl" = 'yes'; then
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25197 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25198 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25201 ac_check_lib_save_LIBS=$LIBS
25202 LIBS="-lXext $LIBS"
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h. */
25206 /* Override any GCC internal prototype to avoid an error.
25207 Use char because int might match the return type of a GCC
25208 builtin and then its argument prototype would still apply. */
25212 char XShmAttach ();
25216 return XShmAttach ();
25221 if ac_fn_c_try_link "$LINENO"; then :
25222 ac_cv_lib_Xext_XShmAttach=yes
25224 ac_cv_lib_Xext_XShmAttach=no
25226 rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
25228 LIBS=$ac_check_lib_save_LIBS
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25231 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25232 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25233 XEXT_LIBS='-lXext' ;
25234 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25241 # Check for X11 shape extension
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25244 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25245 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25246 $as_echo_n "(cached) " >&6
25248 ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-lXext $LIBS"
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25253 /* Override any GCC internal prototype to avoid an error.
25254 Use char because int might match the return type of a GCC
25255 builtin and then its argument prototype would still apply. */
25259 char XShapeCombineMask ();
25263 return XShapeCombineMask ();
25268 if ac_fn_c_try_link "$LINENO"; then :
25269 ac_cv_lib_Xext_XShapeCombineMask=yes
25271 ac_cv_lib_Xext_XShapeCombineMask=no
25273 rm -f core conftest.err conftest.$ac_objext \
25274 conftest$ac_exeext conftest.$ac_ext
25275 LIBS=$ac_check_lib_save_LIBS
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25278 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25279 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25280 XEXT_LIBS='-lXext' ;
25281 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25286 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25287 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25290 ac_check_lib_save_LIBS=$LIBS
25292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25293 /* end confdefs.h. */
25295 /* Override any GCC internal prototype to avoid an error.
25296 Use char because int might match the return type of a GCC
25297 builtin and then its argument prototype would still apply. */
25301 char XtSetEventDispatcher ();
25305 return XtSetEventDispatcher ();
25310 if ac_fn_c_try_link "$LINENO"; then :
25311 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25313 ac_cv_lib_Xt_XtSetEventDispatcher=no
25315 rm -f core conftest.err conftest.$ac_objext \
25316 conftest$ac_exeext conftest.$ac_ext
25317 LIBS=$ac_check_lib_save_LIBS
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25320 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25321 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25325 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25327 if test "$no_x" != 'yes'; then
25332 if test "$have_x" = 'yes'; then
25334 X11_DELEGATE_FALSE='#'
25336 X11_DELEGATE_TRUE='#'
25337 X11_DELEGATE_FALSE=
25348 # Check whether --with-zlib was given.
25349 if test "${with_zlib+set}" = set; then :
25350 withval=$with_zlib; with_zlib=$withval
25356 if test "$with_zlib" != 'yes'; then
25357 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25362 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25364 $as_echo "-------------------------------------------------------------" >&6; }
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25366 $as_echo_n "checking for ZLIB... " >&6; }
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25372 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25373 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25374 passed=`expr $passed + 1`
25376 failed=`expr $failed + 1`
25380 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25381 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25382 passed=`expr $passed + 1`
25384 failed=`expr $failed + 1`
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25389 $as_echo_n "checking for compress in -lz... " >&6; }
25390 if test "${ac_cv_lib_z_compress+set}" = set; then :
25391 $as_echo_n "(cached) " >&6
25393 ac_check_lib_save_LIBS=$LIBS
25395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25396 /* end confdefs.h. */
25398 /* Override any GCC internal prototype to avoid an error.
25399 Use char because int might match the return type of a GCC
25400 builtin and then its argument prototype would still apply. */
25408 return compress ();
25413 if ac_fn_c_try_link "$LINENO"; then :
25414 ac_cv_lib_z_compress=yes
25416 ac_cv_lib_z_compress=no
25418 rm -f core conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
25420 LIBS=$ac_check_lib_save_LIBS
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25423 $as_echo "$ac_cv_lib_z_compress" >&6; }
25424 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25425 passed=`expr $passed + 1`
25427 failed=`expr $failed + 1`
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25431 $as_echo_n "checking for uncompress in -lz... " >&6; }
25432 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25435 ac_check_lib_save_LIBS=$LIBS
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h. */
25440 /* Override any GCC internal prototype to avoid an error.
25441 Use char because int might match the return type of a GCC
25442 builtin and then its argument prototype would still apply. */
25446 char uncompress ();
25450 return uncompress ();
25455 if ac_fn_c_try_link "$LINENO"; then :
25456 ac_cv_lib_z_uncompress=yes
25458 ac_cv_lib_z_uncompress=no
25460 rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
25462 LIBS=$ac_check_lib_save_LIBS
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25465 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25466 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25467 passed=`expr $passed + 1`
25469 failed=`expr $failed + 1`
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25473 $as_echo_n "checking for deflate in -lz... " >&6; }
25474 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25475 $as_echo_n "(cached) " >&6
25477 ac_check_lib_save_LIBS=$LIBS
25479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25480 /* end confdefs.h. */
25482 /* Override any GCC internal prototype to avoid an error.
25483 Use char because int might match the return type of a GCC
25484 builtin and then its argument prototype would still apply. */
25497 if ac_fn_c_try_link "$LINENO"; then :
25498 ac_cv_lib_z_deflate=yes
25500 ac_cv_lib_z_deflate=no
25502 rm -f core conftest.err conftest.$ac_objext \
25503 conftest$ac_exeext conftest.$ac_ext
25504 LIBS=$ac_check_lib_save_LIBS
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25507 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25508 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25509 passed=`expr $passed + 1`
25511 failed=`expr $failed + 1`
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25515 $as_echo_n "checking for inflate in -lz... " >&6; }
25516 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25519 ac_check_lib_save_LIBS=$LIBS
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25524 /* Override any GCC internal prototype to avoid an error.
25525 Use char because int might match the return type of a GCC
25526 builtin and then its argument prototype would still apply. */
25539 if ac_fn_c_try_link "$LINENO"; then :
25540 ac_cv_lib_z_inflate=yes
25542 ac_cv_lib_z_inflate=no
25544 rm -f core conftest.err conftest.$ac_objext \
25545 conftest$ac_exeext conftest.$ac_ext
25546 LIBS=$ac_check_lib_save_LIBS
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25549 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25550 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25551 passed=`expr $passed + 1`
25553 failed=`expr $failed + 1`
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25557 $as_echo_n "checking for gzseek in -lz... " >&6; }
25558 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25559 $as_echo_n "(cached) " >&6
25561 ac_check_lib_save_LIBS=$LIBS
25563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25564 /* end confdefs.h. */
25566 /* Override any GCC internal prototype to avoid an error.
25567 Use char because int might match the return type of a GCC
25568 builtin and then its argument prototype would still apply. */
25581 if ac_fn_c_try_link "$LINENO"; then :
25582 ac_cv_lib_z_gzseek=yes
25584 ac_cv_lib_z_gzseek=no
25586 rm -f core conftest.err conftest.$ac_objext \
25587 conftest$ac_exeext conftest.$ac_ext
25588 LIBS=$ac_check_lib_save_LIBS
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
25591 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
25592 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
25593 passed=`expr $passed + 1`
25595 failed=`expr $failed + 1`
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
25599 $as_echo_n "checking for gztell in -lz... " >&6; }
25600 if test "${ac_cv_lib_z_gztell+set}" = set; then :
25601 $as_echo_n "(cached) " >&6
25603 ac_check_lib_save_LIBS=$LIBS
25605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25606 /* end confdefs.h. */
25608 /* Override any GCC internal prototype to avoid an error.
25609 Use char because int might match the return type of a GCC
25610 builtin and then its argument prototype would still apply. */
25623 if ac_fn_c_try_link "$LINENO"; then :
25624 ac_cv_lib_z_gztell=yes
25626 ac_cv_lib_z_gztell=no
25628 rm -f core conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
25630 LIBS=$ac_check_lib_save_LIBS
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
25633 $as_echo "$ac_cv_lib_z_gztell" >&6; }
25634 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
25635 passed=`expr $passed + 1`
25637 failed=`expr $failed + 1`
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
25641 $as_echo_n "checking if ZLIB package is complete... " >&6; }
25642 if test $passed -gt 0; then
25643 if test $failed -gt 0; then
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25645 $as_echo "no -- some components failed test" >&6; }
25646 have_zlib='no (failed tests)'
25649 LIBS="$ZLIB_LIBS $LIBS"
25651 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25654 $as_echo "yes" >&6; }
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25659 $as_echo "no" >&6; }
25662 if test "$have_zlib" = 'yes'; then
25663 ZLIB_DELEGATE_TRUE=
25664 ZLIB_DELEGATE_FALSE='#'
25666 ZLIB_DELEGATE_TRUE='#'
25667 ZLIB_DELEGATE_FALSE=
25673 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25676 if test "$enable_profiling" = 'yes'; then
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
25679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
25680 $as_echo_n "(cached) " >&6
25682 ac_check_lib_save_LIBS=$LIBS
25684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25685 /* end confdefs.h. */
25687 /* Override any GCC internal prototype to avoid an error.
25688 Use char because int might match the return type of a GCC
25689 builtin and then its argument prototype would still apply. */
25702 if ac_fn_c_try_link "$LINENO"; then :
25703 ac_cv_lib_dl_dlopen=yes
25705 ac_cv_lib_dl_dlopen=no
25707 rm -f core conftest.err conftest.$ac_objext \
25708 conftest$ac_exeext conftest.$ac_ext
25709 LIBS=$ac_check_lib_save_LIBS
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25712 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25713 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
25717 LIBS="$LIB_DL $LIBS"
25723 # Check for Autotrace delegate library.
25726 # Check whether --with-autotrace was given.
25727 if test "${with_autotrace+set}" = set; then :
25728 withval=$with_autotrace; with_autotrace=$withval
25730 with_autotrace='no'
25734 if test "$with_autotrace" != 'yes'; then
25735 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25738 have_autotrace='no'
25739 AUTOTRACE_CFLAGS=""
25742 if test "x$with_autotrace" = "xyes"; then
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25744 $as_echo "-------------------------------------------------------------" >&6; }
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
25748 $as_echo_n "checking for AUTOTRACE... " >&6; }
25750 if test -n "$AUTOTRACE_CFLAGS"; then
25751 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25752 elif test -n "$PKG_CONFIG"; then
25753 if test -n "$PKG_CONFIG" && \
25754 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
25755 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25758 test $ac_status = 0; }; then
25759 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25766 if test -n "$AUTOTRACE_LIBS"; then
25767 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25768 elif test -n "$PKG_CONFIG"; then
25769 if test -n "$PKG_CONFIG" && \
25770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
25771 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25774 test $ac_status = 0; }; then
25775 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25785 if test $pkg_failed = yes; then
25787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25788 _pkg_short_errors_supported=yes
25790 _pkg_short_errors_supported=no
25792 if test $_pkg_short_errors_supported = yes; then
25793 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25795 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25797 # Put the nasty error message in config.log where it belongs
25798 echo "$AUTOTRACE_PKG_ERRORS" >&5
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25801 $as_echo "no" >&6; }
25803 elif test $pkg_failed = untried; then
25806 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25807 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25809 $as_echo "yes" >&6; }
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25816 if test "$have_autotrace" = 'yes'; then
25819 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
25821 if test "$with_modules" = 'no'; then
25822 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25826 if test "$have_autotrace" = 'yes'; then
25827 AUTOTRACE_DELEGATE_TRUE=
25828 AUTOTRACE_DELEGATE_FALSE='#'
25830 AUTOTRACE_DELEGATE_TRUE='#'
25831 AUTOTRACE_DELEGATE_FALSE=
25839 # Check for Display Postscript delegate library.
25842 # Check whether --with-dps was given.
25843 if test "${with_dps+set}" = set; then :
25844 withval=$with_dps; with_dps=$withval
25850 if test "$with_dps" != 'yes'; then
25851 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25856 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25858 $as_echo "-------------------------------------------------------------" >&6; }
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
25860 $as_echo_n "checking for DPS... " >&6; }
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25865 PERSIST_CPPFLAGS="$CPPFLAGS"
25866 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
25867 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25868 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
25869 passed=`expr $passed + 1`
25871 failed=`expr $failed + 1`
25876 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25877 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25878 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25879 # ImageMagick itself doesn't use -lXt.
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25883 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25884 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25885 $as_echo_n "(cached) " >&6
25887 ac_check_lib_save_LIBS=$LIBS
25889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h. */
25892 /* Override any GCC internal prototype to avoid an error.
25893 Use char because int might match the return type of a GCC
25894 builtin and then its argument prototype would still apply. */
25898 char DPSInitialize ();
25902 return DPSInitialize ();
25907 if ac_fn_c_try_link "$LINENO"; then :
25908 ac_cv_lib_dps_DPSInitialize=yes
25910 ac_cv_lib_dps_DPSInitialize=no
25912 rm -f core conftest.err conftest.$ac_objext \
25913 conftest$ac_exeext conftest.$ac_ext
25914 LIBS=$ac_check_lib_save_LIBS
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25917 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25918 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25924 if test "$have_libdps" != 'yes'; then
25925 # Unset cache variable so we can try again.
25926 unset ac_cv_lib_dps_DPSInitialize
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25928 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25929 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25930 $as_echo_n "(cached) " >&6
25932 ac_check_lib_save_LIBS=$LIBS
25933 LIBS="-ldps -lXt $LIBS"
25934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935 /* end confdefs.h. */
25937 /* Override any GCC internal prototype to avoid an error.
25938 Use char because int might match the return type of a GCC
25939 builtin and then its argument prototype would still apply. */
25943 char DPSInitialize ();
25947 return DPSInitialize ();
25952 if ac_fn_c_try_link "$LINENO"; then :
25953 ac_cv_lib_dps_DPSInitialize=yes
25955 ac_cv_lib_dps_DPSInitialize=no
25957 rm -f core conftest.err conftest.$ac_objext \
25958 conftest$ac_exeext conftest.$ac_ext
25959 LIBS=$ac_check_lib_save_LIBS
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25962 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25963 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25969 if test "$have_libdps" = 'yes'; then
25973 if test "$have_libdps" = 'yes'; then
25974 passed=`expr $passed + 1`
25976 failed=`expr $failed + 1`
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
25979 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
25980 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
25981 $as_echo_n "(cached) " >&6
25983 ac_check_lib_save_LIBS=$LIBS
25984 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
25985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h. */
25988 /* Override any GCC internal prototype to avoid an error.
25989 Use char because int might match the return type of a GCC
25990 builtin and then its argument prototype would still apply. */
25994 char XDPSPixelsPerPoint ();
25998 return XDPSPixelsPerPoint ();
26003 if ac_fn_c_try_link "$LINENO"; then :
26004 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26006 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26008 rm -f core conftest.err conftest.$ac_objext \
26009 conftest$ac_exeext conftest.$ac_ext
26010 LIBS=$ac_check_lib_save_LIBS
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26013 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26014 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26015 passed=`expr $passed + 1`
26017 failed=`expr $failed + 1`
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26021 $as_echo_n "checking if DPS package is complete... " >&6; }
26022 if test $passed -gt 0; then
26023 if test $failed -gt 0; then
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26025 $as_echo "no -- some components failed test" >&6; }
26026 have_dps='no (failed tests)'
26027 CPPFLAGS="$PERSIST_CPPFLAGS"
26029 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26030 LIBS="$DPS_LIBS $LIBS"
26032 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26035 $as_echo "yes" >&6; }
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26040 $as_echo "no" >&6; }
26041 CPPFLAGS=$PERSIST_CPPFLAGS
26044 if test "$have_dps" = 'yes'; then
26046 DPS_DELEGATE_FALSE='#'
26048 DPS_DELEGATE_TRUE='#'
26049 DPS_DELEGATE_FALSE=
26056 # Check for DJVU delegate library.
26059 # Check whether --with-djvu was given.
26060 if test "${with_djvu+set}" = set; then :
26061 withval=$with_djvu; with_djvu=$withval
26067 if test "$with_djvu" != 'yes'; then
26068 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26073 if test "$with_djvu" != 'no'; then
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26075 $as_echo "-------------------------------------------------------------" >&6; }
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26077 $as_echo_n "checking for DJVU... " >&6; }
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26082 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26083 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26084 passed=`expr $passed + 1`
26086 failed=`expr $failed + 1`
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26091 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26092 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26093 $as_echo_n "(cached) " >&6
26095 ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-ldjvulibre $LIBS"
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26100 /* Override any GCC internal prototype to avoid an error.
26101 Use char because int might match the return type of a GCC
26102 builtin and then its argument prototype would still apply. */
26106 char ddjvu_context_create ();
26110 return ddjvu_context_create ();
26115 if ac_fn_c_try_link "$LINENO"; then :
26116 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26118 ac_cv_lib_djvulibre_ddjvu_context_create=no
26120 rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26122 LIBS=$ac_check_lib_save_LIBS
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26125 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26126 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26127 passed=`expr $passed + 1`
26129 failed=`expr $failed + 1`
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26133 $as_echo_n "checking if DJVU package is complete... " >&6; }
26134 if test $passed -gt 0; then
26135 if test $failed -gt 0; then
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26137 $as_echo "no -- some components failed test" >&6; }
26138 have_djvu='no (failed tests)'
26140 DJVU_LIBS='-ldjvulibre'
26141 LIBS="$DJVU_LIBS $LIBS"
26143 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26146 $as_echo "yes" >&6; }
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26151 $as_echo "no" >&6; }
26154 if test "$have_djvu" = 'yes'; then
26155 DJVU_DELEGATE_TRUE=
26156 DJVU_DELEGATE_FALSE='#'
26158 DJVU_DELEGATE_TRUE='#'
26159 DJVU_DELEGATE_FALSE=
26166 # Set DejaVu font directory.
26169 # Check whether --with-dejavu-font-dir was given.
26170 if test "${with_dejavu_font_dir+set}" = set; then :
26171 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26173 with_dejavu_font_dir='default'
26177 if test "$with_dejavu_font_dir" != 'default'; then
26178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26183 # Check for FFTW delegate library.
26186 # Check whether --with-fftw was given.
26187 if test "${with_fftw+set}" = set; then :
26188 withval=$with_fftw; with_fftw=$withval
26194 if test "$with_fftw" != 'yes'; then
26195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26200 if test "$with_fftw" != 'no'; then
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26202 $as_echo "-------------------------------------------------------------" >&6; }
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26204 $as_echo_n "checking for FFTW... " >&6; }
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26209 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26210 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26211 passed=`expr $passed + 1`
26213 failed=`expr $failed + 1`
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26218 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26219 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26220 $as_echo_n "(cached) " >&6
26222 ac_check_lib_save_LIBS=$LIBS
26223 LIBS="-lfftw3 $LIBS"
26224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225 /* end confdefs.h. */
26227 /* Override any GCC internal prototype to avoid an error.
26228 Use char because int might match the return type of a GCC
26229 builtin and then its argument prototype would still apply. */
26233 char fftw_execute ();
26237 return fftw_execute ();
26242 if ac_fn_c_try_link "$LINENO"; then :
26243 ac_cv_lib_fftw3_fftw_execute=yes
26245 ac_cv_lib_fftw3_fftw_execute=no
26247 rm -f core conftest.err conftest.$ac_objext \
26248 conftest$ac_exeext conftest.$ac_ext
26249 LIBS=$ac_check_lib_save_LIBS
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26252 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26253 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26254 passed=`expr $passed + 1`
26256 failed=`expr $failed + 1`
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26260 $as_echo_n "checking if FFTW package is complete... " >&6; }
26261 if test $passed -gt 0; then
26262 if test $failed -gt 0; then
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26264 $as_echo "no -- some components failed test" >&6; }
26265 have_fftw='no (failed tests)'
26267 FFTW_LIBS='-lfftw3'
26268 LIBS="$FFTW_LIBS $LIBS"
26270 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26273 $as_echo "yes" >&6; }
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26278 $as_echo "no" >&6; }
26281 if test "$have_fftw" = 'yes'; then
26282 FFTW_DELEGATE_TRUE=
26283 FFTW_DELEGATE_FALSE='#'
26285 FFTW_DELEGATE_TRUE='#'
26286 FFTW_DELEGATE_FALSE=
26293 # Check for FlashPIX delegate library.
26296 # Check whether --with-fpx was given.
26297 if test "${with_fpx+set}" = set; then :
26298 withval=$with_fpx; with_fpx=$withval
26304 if test "$with_fpx" != 'yes'; then
26305 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26310 if test "$with_fpx" != 'no'; then
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26312 $as_echo "-------------------------------------------------------------" >&6; }
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26314 $as_echo_n "checking for FlashPIX... " >&6; }
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26320 ac_cpp='$CXXCPP $CPPFLAGS'
26321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26326 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26327 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26328 passed=`expr $passed + 1`
26330 failed=`expr $failed + 1`
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26335 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26336 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26337 $as_echo_n "(cached) " >&6
26339 ac_check_lib_save_LIBS=$LIBS
26341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h. */
26344 /* Override any GCC internal prototype to avoid an error.
26345 Use char because int might match the return type of a GCC
26346 builtin and then its argument prototype would still apply. */
26350 char FPX_OpenImageByFilename ();
26354 return FPX_OpenImageByFilename ();
26359 if ac_fn_cxx_try_link "$LINENO"; then :
26360 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26362 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26364 rm -f core conftest.err conftest.$ac_objext \
26365 conftest$ac_exeext conftest.$ac_ext
26366 LIBS=$ac_check_lib_save_LIBS
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26369 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26370 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26371 passed=`expr $passed + 1`
26373 failed=`expr $failed + 1`
26377 ac_cpp='$CPP $CPPFLAGS'
26378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26383 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26384 if test $passed -gt 0; then
26385 if test $failed -gt 0; then
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26387 $as_echo "no -- some components failed test" >&6; }
26388 have_fpx='no (failed tests)'
26392 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26395 $as_echo "yes" >&6; }
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26401 $as_echo "no" >&6; }
26404 if test "$have_fpx" = 'yes'; then
26406 FPX_DELEGATE_FALSE='#'
26408 FPX_DELEGATE_TRUE='#'
26409 FPX_DELEGATE_FALSE=
26416 # Check for fontconfig delegate library.
26419 # Check whether --with-fontconfig was given.
26420 if test "${with_fontconfig+set}" = set; then :
26421 withval=$with_fontconfig; with_fontconfig=$withval
26423 with_fontconfig=$have_x
26427 if test "$with_fontconfig" != 'yes'; then
26428 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26431 have_fontconfig='no'
26432 FONTCONFIG_CFLAGS=""
26435 if test "x$with_fontconfig" = "xyes"; then
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26437 $as_echo "-------------------------------------------------------------" >&6; }
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26441 $as_echo_n "checking for FONTCONFIG... " >&6; }
26443 if test -n "$FONTCONFIG_CFLAGS"; then
26444 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26445 elif test -n "$PKG_CONFIG"; then
26446 if test -n "$PKG_CONFIG" && \
26447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26448 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26451 test $ac_status = 0; }; then
26452 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26459 if test -n "$FONTCONFIG_LIBS"; then
26460 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26461 elif test -n "$PKG_CONFIG"; then
26462 if test -n "$PKG_CONFIG" && \
26463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26464 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; then
26468 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26478 if test $pkg_failed = yes; then
26480 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26481 _pkg_short_errors_supported=yes
26483 _pkg_short_errors_supported=no
26485 if test $_pkg_short_errors_supported = yes; then
26486 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26488 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26490 # Put the nasty error message in config.log where it belongs
26491 echo "$FONTCONFIG_PKG_ERRORS" >&5
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26494 $as_echo "no" >&6; }
26496 elif test $pkg_failed = untried; then
26499 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26500 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26502 $as_echo "yes" >&6; }
26503 have_fontconfig=yes
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26509 if test "$have_fontconfig" = 'yes'; then
26511 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26513 if test "$with_modules" = 'no'; then
26514 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26518 if test "$have_fontconfig" = 'yes'; then
26519 FONTCONFIG_DELEGATE_TRUE=
26520 FONTCONFIG_DELEGATE_FALSE='#'
26522 FONTCONFIG_DELEGATE_TRUE='#'
26523 FONTCONFIG_DELEGATE_FALSE=
26531 # Check for freetype delegate library.
26534 # Check whether --with-freetype was given.
26535 if test "${with_freetype+set}" = set; then :
26536 withval=$with_freetype; with_freetype=$withval
26538 with_freetype='yes'
26543 if test "$with_freetype" != 'yes'; then
26544 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26549 if test "$with_freetype" != 'no'; then
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26551 $as_echo "-------------------------------------------------------------" >&6; }
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26553 $as_echo_n "checking for FreeType 2.0... " >&6; }
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26558 PERSIST_LIBS="$LIBS"
26559 PERSIST_CPPFLAGS="$CPPFLAGS"
26560 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26564 for ac_prog in freetype-config
26566 # Extract the first word of "$ac_prog", so it can be a program name with args.
26567 set dummy $ac_prog; ac_word=$2
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26569 $as_echo_n "checking for $ac_word... " >&6; }
26570 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26571 $as_echo_n "(cached) " >&6
26573 if test -n "$freetype_config"; then
26574 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26577 for as_dir in $PATH
26580 test -z "$as_dir" && as_dir=.
26581 for ac_exec_ext in '' $ac_executable_extensions; do
26582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26583 ac_cv_prog_freetype_config="$ac_prog"
26584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26593 freetype_config=$ac_cv_prog_freetype_config
26594 if test -n "$freetype_config"; then
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
26596 $as_echo "$freetype_config" >&6; }
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26599 $as_echo "no" >&6; }
26603 test -n "$freetype_config" && break
26605 if test -n "$freetype_config"; then
26606 freetype_cflags=`$freetype_config --cflags`
26607 freetype_libs=`$freetype_config --libs`
26608 LIBS="$LIBS $freetype_libs"
26609 CPPFLAGS="$freetype_cflags $CPPFLAGS"
26613 if test "$FREETYPE_LIBS" = ''; then
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
26615 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
26616 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
26617 $as_echo_n "(cached) " >&6
26619 ac_check_lib_save_LIBS=$LIBS
26620 LIBS="-lfreetype $LIBS"
26621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26622 /* end confdefs.h. */
26624 /* Override any GCC internal prototype to avoid an error.
26625 Use char because int might match the return type of a GCC
26626 builtin and then its argument prototype would still apply. */
26630 char FT_Init_FreeType ();
26634 return FT_Init_FreeType ();
26639 if ac_fn_c_try_link "$LINENO"; then :
26640 ac_cv_lib_freetype_FT_Init_FreeType=yes
26642 ac_cv_lib_freetype_FT_Init_FreeType=no
26644 rm -f core conftest.err conftest.$ac_objext \
26645 conftest$ac_exeext conftest.$ac_ext
26646 LIBS=$ac_check_lib_save_LIBS
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
26649 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
26650 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
26651 FREETYPE_LIBS='-lfreetype'
26654 if test "$FREETYPE_LIBS" != ''; then
26655 passed=`expr $passed + 1`
26657 failed=`expr $failed + 1`
26658 LIBS="$PERSIST_LIBS"
26662 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26663 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
26664 FT2BUILD_H='#include <ft2build.h>'
26670 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26672 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
26673 have_freetype_h='yes'
26675 have_freetype_h='no'
26679 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26680 passed=`expr $passed + 1`
26682 failed=`expr $failed + 1`
26683 CPPFLAGS="$PERSIST_CPPFLAGS"
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
26687 $as_echo_n "checking if FreeType package is complete... " >&6; }
26688 if test $passed -gt 0; then
26689 if test $failed -gt 0; then
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26692 $as_echo "no -- some components failed test" >&6; }
26693 have_freetype='no (failed tests)'
26695 LIBS="$FREETYPE_LIBS $LIBS"
26697 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
26699 if test "$ac_cv_header_ft2build_h" = 'yes'; then
26701 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26705 $as_echo "yes" >&6; }
26706 have_freetype='yes'
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26710 $as_echo "no" >&6; }
26713 if test "$have_freetype" = 'yes'; then
26714 FREETYPE_DELEGATE_TRUE=
26715 FREETYPE_DELEGATE_FALSE='#'
26717 FREETYPE_DELEGATE_TRUE='#'
26718 FREETYPE_DELEGATE_FALSE=
26726 # Check for Ghostscript library or framework.
26728 # Test for iapi.h & test for gsapi_new_instance in -lgs
26729 # or -framework Ghostscript
26732 # Check whether --with-gslib was given.
26733 if test "${with_gslib+set}" = set; then :
26734 withval=$with_gslib; with_gslib=$withval
26740 gslib_framework='no'
26741 if test "$with_gslib" != 'yes'; then
26742 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26747 if test "$with_gslib" != 'no'; then
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26749 $as_echo "-------------------------------------------------------------" >&6; }
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
26751 $as_echo_n "checking for Ghostscript... " >&6; }
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26757 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26758 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
26759 passed=`expr $passed + 1`
26761 failed=`expr $failed + 1`
26765 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26766 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
26767 passed=`expr $passed + 1`
26769 failed=`expr $failed + 1`
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
26774 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
26775 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
26776 $as_echo_n "(cached) " >&6
26778 ac_check_framework_save_LIBS=$LIBS
26779 LIBS="-framework Ghostscript $LIBS"
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h. */
26783 /* Override any GCC internal prototype to avoid an error.
26784 Use char because int might match the return type of a GCC
26785 builtin and then its argument prototype would still apply. */
26789 char gsapi_new_instance ();
26793 return gsapi_new_instance ();
26798 if ac_fn_c_try_link "$LINENO"; then :
26799 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26801 ac_cv_framework_Ghostscript_gsapi_new_instance=no
26803 rm -f core conftest.err conftest.$ac_objext \
26804 conftest$ac_exeext conftest.$ac_ext
26805 LIBS=$ac_check_framework_save_LIBS
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
26808 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
26809 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
26810 framework=`expr $framework + 1`
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
26813 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
26814 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
26815 $as_echo_n "(cached) " >&6
26817 ac_check_lib_save_LIBS=$LIBS
26819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h. */
26822 /* Override any GCC internal prototype to avoid an error.
26823 Use char because int might match the return type of a GCC
26824 builtin and then its argument prototype would still apply. */
26828 char gsapi_new_instance ();
26832 return gsapi_new_instance ();
26837 if ac_fn_c_try_link "$LINENO"; then :
26838 ac_cv_lib_gs_gsapi_new_instance=yes
26840 ac_cv_lib_gs_gsapi_new_instance=no
26842 rm -f core conftest.err conftest.$ac_objext \
26843 conftest$ac_exeext conftest.$ac_ext
26844 LIBS=$ac_check_lib_save_LIBS
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
26847 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
26848 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
26849 passed=`expr $passed + 1`
26851 failed=`expr $failed + 1`
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
26856 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
26857 if test $passed -gt 0; then
26858 if test $failed -gt 0; then
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26860 $as_echo "no -- some components failed test" >&6; }
26861 have_gslib='no (failed tests)'
26863 if test $framework -gt 0; then
26864 GS_LIBS='-framework Ghostscript'
26865 gslib_framework='yes'
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
26867 $as_echo "yes, using framework." >&6; }
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
26870 $as_echo "yes, using library." >&6; }
26873 LIBS="$GS_LIBS $LIBS"
26875 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26881 $as_echo "no" >&6; }
26884 if test "$have_gslib" = 'yes'; then
26886 GS_DELEGATE_FALSE='#'
26888 GS_DELEGATE_TRUE='#'
26894 # Set default font search path
26896 # Check whether --with-fontpath was given.
26897 if test "${with_fontpath+set}" = set; then :
26898 withval=$with_fontpath; with_fontpath=$withval
26904 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26908 cat >>confdefs.h <<_ACEOF
26909 #define MAGICK_FONT_PATH "$with_fontpath"
26913 if test "$with_fontpath=" != ''; then
26914 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26917 # Set Ghostscript font directory
26919 # Check whether --with-gs-font-dir was given.
26920 if test "${with_gs_font_dir+set}" = set; then :
26921 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26923 with_gs_font_dir='default'
26927 if test "$with_gs_font_dir" != 'default'; then
26928 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26933 # Check for GVC delegate library.
26936 # Check whether --with-gvc was given.
26937 if test "${with_gvc+set}" = set; then :
26938 withval=$with_gvc; with_gvc=$withval
26944 if test "$with_gvc" != 'yes'; then
26945 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26949 if test "x$with_gvc" = "xyes"; then
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26951 $as_echo "-------------------------------------------------------------" >&6; }
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
26955 $as_echo_n "checking for GVC... " >&6; }
26957 if test -n "$GVC_CFLAGS"; then
26958 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26959 elif test -n "$PKG_CONFIG"; then
26960 if test -n "$PKG_CONFIG" && \
26961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26962 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26965 test $ac_status = 0; }; then
26966 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26973 if test -n "$GVC_LIBS"; then
26974 pkg_cv_GVC_LIBS="$GVC_LIBS"
26975 elif test -n "$PKG_CONFIG"; then
26976 if test -n "$PKG_CONFIG" && \
26977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26978 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981 test $ac_status = 0; }; then
26982 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26992 if test $pkg_failed = yes; then
26994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26995 _pkg_short_errors_supported=yes
26997 _pkg_short_errors_supported=no
26999 if test $_pkg_short_errors_supported = yes; then
27000 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27002 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27004 # Put the nasty error message in config.log where it belongs
27005 echo "$GVC_PKG_ERRORS" >&5
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27008 $as_echo "no" >&6; }
27010 elif test $pkg_failed = untried; then
27013 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27014 GVC_LIBS=$pkg_cv_GVC_LIBS
27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27016 $as_echo "yes" >&6; }
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27023 if test "$have_gvc" = 'yes'; then
27025 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27027 if test "$with_modules" = 'no'; then
27028 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27032 if test "$have_gvc" = 'yes'; then
27034 GVC_DELEGATE_FALSE='#'
27036 GVC_DELEGATE_TRUE='#'
27037 GVC_DELEGATE_FALSE=
27045 # Check for JBIG delegate library.
27049 # Check whether --with-jbig was given.
27050 if test "${with_jbig+set}" = set; then :
27051 withval=$with_jbig; with_jbig=$withval
27059 if test "$with_jbig" != 'no'; then
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27061 $as_echo "-------------------------------------------------------------" >&6; }
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27063 $as_echo_n "checking for JBIG... " >&6; }
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27068 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27069 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27070 passed=`expr $passed + 1`
27072 failed=`expr $failed + 1`
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27077 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27078 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27079 $as_echo_n "(cached) " >&6
27081 ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-ljbig $LIBS"
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27086 /* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
27092 char jbg_dec_init ();
27096 return jbg_dec_init ();
27101 if ac_fn_c_try_link "$LINENO"; then :
27102 ac_cv_lib_jbig_jbg_dec_init=yes
27104 ac_cv_lib_jbig_jbg_dec_init=no
27106 rm -f core conftest.err conftest.$ac_objext \
27107 conftest$ac_exeext conftest.$ac_ext
27108 LIBS=$ac_check_lib_save_LIBS
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27111 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27112 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27113 passed=`expr $passed + 1`
27115 failed=`expr $failed + 1`
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27119 $as_echo_n "checking if JBIG package is complete... " >&6; }
27120 if test $passed -gt 0; then
27121 if test $failed -gt 0; then
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27123 $as_echo "no -- some components failed test" >&6; }
27124 have_jbig='no (failed tests)'
27127 LIBS="$JBIG_LIBS $LIBS"
27129 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27132 $as_echo "yes" >&6; }
27136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27137 $as_echo "no" >&6; }
27140 if test "$have_jbig" = 'yes'; then
27141 JBIG_DELEGATE_TRUE=
27142 JBIG_DELEGATE_FALSE='#'
27144 JBIG_DELEGATE_TRUE='#'
27145 JBIG_DELEGATE_FALSE=
27152 # Check for JPEG delegate library.
27155 # Check whether --with-jpeg was given.
27156 if test "${with_jpeg+set}" = set; then :
27157 withval=$with_jpeg; with_jpeg=$withval
27163 if test "$with_jpeg" != 'yes'; then
27164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27169 if test "$with_jpeg" != 'no'; then
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27171 $as_echo "-------------------------------------------------------------" >&6; }
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27173 $as_echo_n "checking for JPEG... " >&6; }
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27178 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27179 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27180 passed=`expr $passed + 1`
27182 failed=`expr $failed + 1`
27186 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27187 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27188 passed=`expr $passed + 1`
27190 failed=`expr $failed + 1`
27194 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27195 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27196 passed=`expr $passed + 1`
27198 failed=`expr $failed + 1`
27202 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27203 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27204 passed=`expr $passed + 1`
27206 failed=`expr $failed + 1`
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27211 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27212 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27213 $as_echo_n "(cached) " >&6
27215 ac_check_lib_save_LIBS=$LIBS
27216 LIBS="-ljpeg $LIBS"
27217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27218 /* end confdefs.h. */
27220 /* Override any GCC internal prototype to avoid an error.
27221 Use char because int might match the return type of a GCC
27222 builtin and then its argument prototype would still apply. */
27226 char jpeg_read_header ();
27230 return jpeg_read_header ();
27235 if ac_fn_c_try_link "$LINENO"; then :
27236 ac_cv_lib_jpeg_jpeg_read_header=yes
27238 ac_cv_lib_jpeg_jpeg_read_header=no
27240 rm -f core conftest.err conftest.$ac_objext \
27241 conftest$ac_exeext conftest.$ac_ext
27242 LIBS=$ac_check_lib_save_LIBS
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27245 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27246 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27247 passed=`expr $passed + 1`
27249 failed=`expr $failed + 1`
27253 # Test for compatible JPEG library
27254 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27256 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27257 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27258 $as_echo_n "(cached) " >&6
27260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h. */
27263 #include <stdlib.h>
27264 #include <jpeglib.h>
27270 #if JPEG_LIB_VERSION < 62
27271 #error IJG JPEG library must be version 6b or newer!
27279 if ac_fn_c_try_compile "$LINENO"; then :
27280 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27282 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27287 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27290 $as_echo_n "checking if JPEG package is complete... " >&6; }
27291 if test $passed -gt 0; then
27292 if test $failed -gt 0; then
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27294 $as_echo "no -- some components failed test" >&6; }
27295 have_jpeg='no (failed tests)'
27298 LIBS="$JPEG_LIBS $LIBS"
27300 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27303 $as_echo "yes" >&6; }
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27308 $as_echo "no" >&6; }
27311 if test "$have_jpeg" = 'yes'; then
27312 JPEG_DELEGATE_TRUE=
27313 JPEG_DELEGATE_FALSE='#'
27315 JPEG_DELEGATE_TRUE='#'
27316 JPEG_DELEGATE_FALSE=
27323 # Check for JPEG Version 2 delegate library.
27326 # Check whether --with-jp2 was given.
27327 if test "${with_jp2+set}" = set; then :
27328 withval=$with_jp2; with_jp2=$withval
27334 if test "$with_jp2" != 'yes'; then
27335 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27340 if test "$with_jp2" != 'no'; then
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27342 $as_echo "-------------------------------------------------------------" >&6; }
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27344 $as_echo_n "checking for JPEG Version 2... " >&6; }
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27349 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27350 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27351 passed=`expr $passed + 1`
27353 failed=`expr $failed + 1`
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27358 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27359 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27360 $as_echo_n "(cached) " >&6
27362 ac_check_lib_save_LIBS=$LIBS
27363 LIBS="-ljasper $LIBS"
27364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27365 /* end confdefs.h. */
27367 /* Override any GCC internal prototype to avoid an error.
27368 Use char because int might match the return type of a GCC
27369 builtin and then its argument prototype would still apply. */
27373 char jas_stream_fopen ();
27377 return jas_stream_fopen ();
27382 if ac_fn_c_try_link "$LINENO"; then :
27383 ac_cv_lib_jasper_jas_stream_fopen=yes
27385 ac_cv_lib_jasper_jas_stream_fopen=no
27387 rm -f core conftest.err conftest.$ac_objext \
27388 conftest$ac_exeext conftest.$ac_ext
27389 LIBS=$ac_check_lib_save_LIBS
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27392 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27393 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27394 passed=`expr $passed + 1`
27396 failed=`expr $failed + 1`
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27400 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27401 if test $passed -gt 0; then
27402 if test $failed -gt 0; then
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27404 $as_echo "no -- some components failed test" >&6; }
27405 have_jp2='no (failed tests)'
27407 JP2_LIBS='-ljasper'
27408 LIBS="$JP2_LIBS $LIBS"
27410 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27413 $as_echo "yes" >&6; }
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27418 $as_echo "no" >&6; }
27421 if test "$have_jp2" = 'yes'; then
27423 JP2_DELEGATE_FALSE='#'
27425 JP2_DELEGATE_TRUE='#'
27426 JP2_DELEGATE_FALSE=
27433 # Check for LCMS delegate library.
27436 # Check whether --with-lcms was given.
27437 if test "${with_lcms+set}" = set; then :
27438 withval=$with_lcms; with_lcms=$withval
27444 if test "$with_lcms" != 'yes'; then
27445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27450 if test "$with_lcms" != 'no'; then
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27452 $as_echo "-------------------------------------------------------------" >&6; }
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27454 $as_echo_n "checking for LCMS... " >&6; }
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27459 have_lcms_header='no'
27460 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27461 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27462 have_lcms_header='yes'
27466 if test "$have_lcms_header" = 'yes'; then
27467 passed=`expr $passed + 1`
27469 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27472 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
27473 if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
27474 have_lcms_header='yes'
27478 if test "$have_lcms_header" = 'yes'; then
27479 passed=`expr $passed + 1`
27481 $as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
27484 failed=`expr $failed + 1`
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
27488 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
27489 if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
27490 $as_echo_n "(cached) " >&6
27492 ac_check_lib_save_LIBS=$LIBS
27493 LIBS="-llcms2 $LIBS"
27494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27495 /* end confdefs.h. */
27497 /* Override any GCC internal prototype to avoid an error.
27498 Use char because int might match the return type of a GCC
27499 builtin and then its argument prototype would still apply. */
27503 char cmsOpenProfileFromMem ();
27507 return cmsOpenProfileFromMem ();
27512 if ac_fn_c_try_link "$LINENO"; then :
27513 ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
27515 ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
27517 rm -f core conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
27519 LIBS=$ac_check_lib_save_LIBS
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
27522 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
27523 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
27524 passed=`expr $passed + 1`
27526 failed=`expr $failed + 1`
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
27530 $as_echo_n "checking if LCMS2 package is complete... " >&6; }
27531 if test $passed -gt 0; then
27532 if test $failed -gt 0; then
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27534 $as_echo "no -- some components failed test" >&6; }
27535 have_lcms='no (failed tests)'
27537 LCMS_LIBS='-llcms2'
27538 LIBS="$LCMS_LIBS $LIBS"
27540 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27543 $as_echo "yes" >&6; }
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27548 $as_echo "no" >&6; }
27552 if test "$with_lcms" != 'no'; then
27553 if test "$have_lcms" == 'no'; then
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27555 $as_echo "-------------------------------------------------------------" >&6; }
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27557 $as_echo_n "checking for LCMS... " >&6; }
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27562 have_lcms_header='no'
27563 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27564 if test "x$ac_cv_header_lcms_h" = x""yes; then :
27565 have_lcms_header='yes'
27569 if test "$have_lcms_header" = 'yes'; then
27570 passed=`expr $passed + 1`
27572 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
27575 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27576 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
27577 have_lcms_header='yes'
27581 if test "$have_lcms_header" = 'yes'; then
27582 passed=`expr $passed + 1`
27584 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
27587 failed=`expr $failed + 1`
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
27591 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
27592 if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
27593 $as_echo_n "(cached) " >&6
27595 ac_check_lib_save_LIBS=$LIBS
27596 LIBS="-llcms $LIBS"
27597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27598 /* end confdefs.h. */
27600 /* Override any GCC internal prototype to avoid an error.
27601 Use char because int might match the return type of a GCC
27602 builtin and then its argument prototype would still apply. */
27606 char cmsOpenProfileFromMem ();
27610 return cmsOpenProfileFromMem ();
27615 if ac_fn_c_try_link "$LINENO"; then :
27616 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27618 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
27620 rm -f core conftest.err conftest.$ac_objext \
27621 conftest$ac_exeext conftest.$ac_ext
27622 LIBS=$ac_check_lib_save_LIBS
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
27625 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
27626 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
27627 passed=`expr $passed + 1`
27629 failed=`expr $failed + 1`
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
27633 $as_echo_n "checking if LCMS package is complete... " >&6; }
27634 if test $passed -gt 0; then
27635 if test $failed -gt 0; then
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27637 $as_echo "no -- some components failed test" >&6; }
27638 have_lcms='no (failed tests)'
27641 LIBS="$LCMS_LIBS $LIBS"
27643 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27646 $as_echo "yes" >&6; }
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27651 $as_echo "no" >&6; }
27655 if test "$have_lcms" = 'yes'; then
27656 LCMS_DELEGATE_TRUE=
27657 LCMS_DELEGATE_FALSE='#'
27659 LCMS_DELEGATE_TRUE='#'
27660 LCMS_DELEGATE_FALSE=
27667 # Check for the LQR (Liquid Rescale) delegate library.
27670 # Check whether --with-lqr was given.
27671 if test "${with_lqr+set}" = set; then :
27672 withval=$with_lqr; with_lqr=$withval
27678 if test "$with_lqr" != 'yes'; then
27679 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27686 if test "x$with_lqr" = "xyes"; then
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27688 $as_echo "-------------------------------------------------------------" >&6; }
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
27692 $as_echo_n "checking for LQR... " >&6; }
27694 if test -n "$LQR_CFLAGS"; then
27695 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27696 elif test -n "$PKG_CONFIG"; then
27697 if test -n "$PKG_CONFIG" && \
27698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
27699 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702 test $ac_status = 0; }; then
27703 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27710 if test -n "$LQR_LIBS"; then
27711 pkg_cv_LQR_LIBS="$LQR_LIBS"
27712 elif test -n "$PKG_CONFIG"; then
27713 if test -n "$PKG_CONFIG" && \
27714 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
27715 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27718 test $ac_status = 0; }; then
27719 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27729 if test $pkg_failed = yes; then
27731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27732 _pkg_short_errors_supported=yes
27734 _pkg_short_errors_supported=no
27736 if test $_pkg_short_errors_supported = yes; then
27737 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27739 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27741 # Put the nasty error message in config.log where it belongs
27742 echo "$LQR_PKG_ERRORS" >&5
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27745 $as_echo "no" >&6; }
27747 elif test $pkg_failed = untried; then
27750 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27751 LQR_LIBS=$pkg_cv_LQR_LIBS
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27753 $as_echo "yes" >&6; }
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27760 if test "$have_lqr" = 'yes'; then
27762 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
27764 CFLAGS="$LQR_CFLAGS $CFLAGS"
27767 if test "$have_lqr" = 'yes'; then
27769 LQR_DELEGATE_FALSE='#'
27771 LQR_DELEGATE_TRUE='#'
27772 LQR_DELEGATE_FALSE=
27780 # Check for the OpenEXR delegate library.
27783 # Check whether --with-openexr was given.
27784 if test "${with_openexr+set}" = set; then :
27785 withval=$with_openexr; with_openexr=$withval
27791 if test "$with_openexr" != 'yes'; then
27792 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27799 if test "x$with_openexr" = "xyes"; then
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27801 $as_echo "-------------------------------------------------------------" >&6; }
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
27805 $as_echo_n "checking for OPENEXR... " >&6; }
27807 if test -n "$OPENEXR_CFLAGS"; then
27808 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27809 elif test -n "$PKG_CONFIG"; then
27810 if test -n "$PKG_CONFIG" && \
27811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
27812 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27815 test $ac_status = 0; }; then
27816 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27823 if test -n "$OPENEXR_LIBS"; then
27824 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27825 elif test -n "$PKG_CONFIG"; then
27826 if test -n "$PKG_CONFIG" && \
27827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
27828 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27831 test $ac_status = 0; }; then
27832 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27842 if test $pkg_failed = yes; then
27844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27845 _pkg_short_errors_supported=yes
27847 _pkg_short_errors_supported=no
27849 if test $_pkg_short_errors_supported = yes; then
27850 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27852 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27854 # Put the nasty error message in config.log where it belongs
27855 echo "$OPENEXR_PKG_ERRORS" >&5
27857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27858 $as_echo "no" >&6; }
27860 elif test $pkg_failed = untried; then
27863 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27864 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27866 $as_echo "yes" >&6; }
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27873 if test "$have_openexr" = 'yes'; then
27875 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
27877 if test "$with_modules" = 'no'; then
27878 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27882 if test "$have_openexr" = 'yes'; then
27883 OPENEXR_DELEGATE_TRUE=
27884 OPENEXR_DELEGATE_FALSE='#'
27886 OPENEXR_DELEGATE_TRUE='#'
27887 OPENEXR_DELEGATE_FALSE=
27895 # Check for PNG delegate library.
27898 # Check whether --with-png was given.
27899 if test "${with_png+set}" = set; then :
27900 withval=$with_png; with_png=$withval
27906 if test "$with_png" != 'yes'; then
27907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27912 if test "$with_png" != 'no'; then
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27914 $as_echo "-------------------------------------------------------------" >&6; }
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
27916 $as_echo_n "checking for PNG... " >&6; }
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27921 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27922 if test "x$ac_cv_header_png_h" = x""yes; then :
27923 passed=`expr $passed + 1`
27925 failed=`expr $failed + 1`
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
27930 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
27931 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
27932 $as_echo_n "(cached) " >&6
27934 ac_check_lib_save_LIBS=$LIBS
27936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27937 /* end confdefs.h. */
27939 /* Override any GCC internal prototype to avoid an error.
27940 Use char because int might match the return type of a GCC
27941 builtin and then its argument prototype would still apply. */
27945 char png_get_io_ptr ();
27949 return png_get_io_ptr ();
27954 if ac_fn_c_try_link "$LINENO"; then :
27955 ac_cv_lib_png_png_get_io_ptr=yes
27957 ac_cv_lib_png_png_get_io_ptr=no
27959 rm -f core conftest.err conftest.$ac_objext \
27960 conftest$ac_exeext conftest.$ac_ext
27961 LIBS=$ac_check_lib_save_LIBS
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
27964 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
27965 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
27966 passed=`expr $passed + 1`
27968 failed=`expr $failed + 1`
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
27972 $as_echo_n "checking if PNG package is complete... " >&6; }
27973 if test $passed -gt 0; then
27974 if test $failed -gt 0; then
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27976 $as_echo "no -- some components failed test" >&6; }
27977 have_png='no (failed tests)'
27980 LIBS="$PNG_LIBS $LIBS"
27982 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27985 $as_echo "yes" >&6; }
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27990 $as_echo "no" >&6; }
27993 if test "$have_png" = 'yes'; then
27995 PNG_DELEGATE_FALSE='#'
27997 PNG_DELEGATE_TRUE='#'
27998 PNG_DELEGATE_FALSE=
28005 # Check for RSVG delegate library.
28008 # Check whether --with-rsvg was given.
28009 if test "${with_rsvg+set}" = set; then :
28010 withval=$with_rsvg; with_rsvg=$withval
28016 if test "$with_rsvg" != 'yes'; then
28017 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28025 if test "x$with_rsvg" = "xyes"; then
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28027 $as_echo "-------------------------------------------------------------" >&6; }
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28031 $as_echo_n "checking for RSVG... " >&6; }
28033 if test -n "$RSVG_CFLAGS"; then
28034 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28035 elif test -n "$PKG_CONFIG"; then
28036 if test -n "$PKG_CONFIG" && \
28037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28038 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28041 test $ac_status = 0; }; then
28042 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28049 if test -n "$RSVG_LIBS"; then
28050 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28051 elif test -n "$PKG_CONFIG"; then
28052 if test -n "$PKG_CONFIG" && \
28053 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28054 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28057 test $ac_status = 0; }; then
28058 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28068 if test $pkg_failed = yes; then
28070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28071 _pkg_short_errors_supported=yes
28073 _pkg_short_errors_supported=no
28075 if test $_pkg_short_errors_supported = yes; then
28076 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28078 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28080 # Put the nasty error message in config.log where it belongs
28081 echo "$RSVG_PKG_ERRORS" >&5
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28084 $as_echo "no" >&6; }
28086 elif test $pkg_failed = untried; then
28089 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28090 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28092 $as_echo "yes" >&6; }
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28100 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28102 if test -n "$CAIRO_SVG_CFLAGS"; then
28103 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28104 elif test -n "$PKG_CONFIG"; then
28105 if test -n "$PKG_CONFIG" && \
28106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28107 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28110 test $ac_status = 0; }; then
28111 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28118 if test -n "$CAIRO_SVG_LIBS"; then
28119 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28120 elif test -n "$PKG_CONFIG"; then
28121 if test -n "$PKG_CONFIG" && \
28122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28123 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28126 test $ac_status = 0; }; then
28127 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28137 if test $pkg_failed = yes; then
28139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28140 _pkg_short_errors_supported=yes
28142 _pkg_short_errors_supported=no
28144 if test $_pkg_short_errors_supported = yes; then
28145 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28147 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28149 # Put the nasty error message in config.log where it belongs
28150 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28153 $as_echo "no" >&6; }
28155 elif test $pkg_failed = untried; then
28158 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28159 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28161 $as_echo "yes" >&6; }
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28168 if test "$have_rsvg" = 'yes'; then
28170 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28172 if test "$with_modules" = 'no'; then
28173 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28177 if test "$have_cairo" = 'yes'; then
28179 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28181 if test "$with_modules" = 'no'; then
28182 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28186 if test "$have_rsvg" = 'yes'; then
28187 RSVG_DELEGATE_TRUE=
28188 RSVG_DELEGATE_FALSE='#'
28190 RSVG_DELEGATE_TRUE='#'
28191 RSVG_DELEGATE_FALSE=
28194 if test "$have_cairo" = 'yes'; then
28195 CAIRO_DELEGATE_TRUE=
28196 CAIRO_DELEGATE_FALSE='#'
28198 CAIRO_DELEGATE_TRUE='#'
28199 CAIRO_DELEGATE_FALSE=
28207 # Check for TIFF delegate library.
28210 # Check whether --with-tiff was given.
28211 if test "${with_tiff+set}" = set; then :
28212 withval=$with_tiff; with_tiff=$withval
28218 if test "$with_tiff" != 'yes'; then
28219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28224 if test "$with_tiff" != 'no'; then
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28226 $as_echo "-------------------------------------------------------------" >&6; }
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28228 $as_echo_n "checking for TIFF... " >&6; }
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28233 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28234 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28235 passed=`expr $passed + 1`
28237 failed=`expr $failed + 1`
28241 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28242 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28243 passed=`expr $passed + 1`
28245 failed=`expr $failed + 1`
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28250 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28251 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28252 $as_echo_n "(cached) " >&6
28254 ac_check_lib_save_LIBS=$LIBS
28255 LIBS="-ltiff $LIBS"
28256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28257 /* end confdefs.h. */
28259 /* Override any GCC internal prototype to avoid an error.
28260 Use char because int might match the return type of a GCC
28261 builtin and then its argument prototype would still apply. */
28269 return TIFFOpen ();
28274 if ac_fn_c_try_link "$LINENO"; then :
28275 ac_cv_lib_tiff_TIFFOpen=yes
28277 ac_cv_lib_tiff_TIFFOpen=no
28279 rm -f core conftest.err conftest.$ac_objext \
28280 conftest$ac_exeext conftest.$ac_ext
28281 LIBS=$ac_check_lib_save_LIBS
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28284 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28285 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28286 passed=`expr $passed + 1`
28288 failed=`expr $failed + 1`
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28292 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28293 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28294 $as_echo_n "(cached) " >&6
28296 ac_check_lib_save_LIBS=$LIBS
28297 LIBS="-ltiff $LIBS"
28298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28299 /* end confdefs.h. */
28301 /* Override any GCC internal prototype to avoid an error.
28302 Use char because int might match the return type of a GCC
28303 builtin and then its argument prototype would still apply. */
28307 char TIFFClientOpen ();
28311 return TIFFClientOpen ();
28316 if ac_fn_c_try_link "$LINENO"; then :
28317 ac_cv_lib_tiff_TIFFClientOpen=yes
28319 ac_cv_lib_tiff_TIFFClientOpen=no
28321 rm -f core conftest.err conftest.$ac_objext \
28322 conftest$ac_exeext conftest.$ac_ext
28323 LIBS=$ac_check_lib_save_LIBS
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28326 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28327 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28328 passed=`expr $passed + 1`
28330 failed=`expr $failed + 1`
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28334 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28335 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28336 $as_echo_n "(cached) " >&6
28338 ac_check_lib_save_LIBS=$LIBS
28339 LIBS="-ltiff $LIBS"
28340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28341 /* end confdefs.h. */
28343 /* Override any GCC internal prototype to avoid an error.
28344 Use char because int might match the return type of a GCC
28345 builtin and then its argument prototype would still apply. */
28349 char TIFFIsByteSwapped ();
28353 return TIFFIsByteSwapped ();
28358 if ac_fn_c_try_link "$LINENO"; then :
28359 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28361 ac_cv_lib_tiff_TIFFIsByteSwapped=no
28363 rm -f core conftest.err conftest.$ac_objext \
28364 conftest$ac_exeext conftest.$ac_ext
28365 LIBS=$ac_check_lib_save_LIBS
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28368 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28369 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28370 passed=`expr $passed + 1`
28372 failed=`expr $failed + 1`
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28376 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28377 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28378 $as_echo_n "(cached) " >&6
28380 ac_check_lib_save_LIBS=$LIBS
28381 LIBS="-ltiff $LIBS"
28382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h. */
28385 /* Override any GCC internal prototype to avoid an error.
28386 Use char because int might match the return type of a GCC
28387 builtin and then its argument prototype would still apply. */
28391 char TIFFReadRGBATile ();
28395 return TIFFReadRGBATile ();
28400 if ac_fn_c_try_link "$LINENO"; then :
28401 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28403 ac_cv_lib_tiff_TIFFReadRGBATile=no
28405 rm -f core conftest.err conftest.$ac_objext \
28406 conftest$ac_exeext conftest.$ac_ext
28407 LIBS=$ac_check_lib_save_LIBS
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
28410 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
28411 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
28412 passed=`expr $passed + 1`
28414 failed=`expr $failed + 1`
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
28418 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
28419 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
28420 $as_echo_n "(cached) " >&6
28422 ac_check_lib_save_LIBS=$LIBS
28423 LIBS="-ltiff $LIBS"
28424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28425 /* end confdefs.h. */
28427 /* Override any GCC internal prototype to avoid an error.
28428 Use char because int might match the return type of a GCC
28429 builtin and then its argument prototype would still apply. */
28433 char TIFFReadRGBAStrip ();
28437 return TIFFReadRGBAStrip ();
28442 if ac_fn_c_try_link "$LINENO"; then :
28443 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28445 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
28447 rm -f core conftest.err conftest.$ac_objext \
28448 conftest$ac_exeext conftest.$ac_ext
28449 LIBS=$ac_check_lib_save_LIBS
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
28452 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
28453 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
28454 passed=`expr $passed + 1`
28456 failed=`expr $failed + 1`
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
28460 $as_echo_n "checking if TIFF package is complete... " >&6; }
28461 if test $passed -gt 0; then
28462 if test $failed -gt 0; then
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28464 $as_echo "no -- some components failed test" >&6; }
28465 have_tiff='no (failed tests)'
28468 LIBS="$TIFF_LIBS $LIBS"
28470 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28473 $as_echo "yes" >&6; }
28475 for ac_header in tiffconf.h
28477 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28478 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
28479 cat >>confdefs.h <<_ACEOF
28480 #define HAVE_TIFFCONF_H 1
28487 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
28488 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28489 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
28491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28493 eval as_val=\$$as_ac_var
28494 if test "x$as_val" = x""yes; then :
28495 cat >>confdefs.h <<_ACEOF
28496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505 $as_echo "no" >&6; }
28508 if test "$have_tiff" = 'yes'; then
28509 TIFF_DELEGATE_TRUE=
28510 TIFF_DELEGATE_FALSE='#'
28512 TIFF_DELEGATE_TRUE='#'
28513 TIFF_DELEGATE_FALSE=
28520 # Set Windows font directory.
28523 # Check whether --with-windows-font-dir was given.
28524 if test "${with_windows_font_dir+set}" = set; then :
28525 withval=$with_windows_font_dir; with_windows_font_dir=$withval
28527 with_windows_font_dir=''
28530 if test "$with_windows_font_dir" != '' ; then
28531 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28536 # Check for WMF delegate library.
28539 # Check whether --with-wmf was given.
28540 if test "${with_wmf+set}" = set; then :
28541 withval=$with_wmf; with_wmf=$withval
28547 if test "$with_wmf" != 'yes'; then
28548 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28553 if test "$with_wmf" != 'no'; then
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28555 $as_echo "-------------------------------------------------------------" >&6; }
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
28557 $as_echo_n "checking for WMF... " >&6; }
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28562 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
28563 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
28564 passed=`expr $passed + 1`
28566 failed=`expr $failed + 1`
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
28571 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
28572 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
28573 $as_echo_n "(cached) " >&6
28575 ac_check_lib_save_LIBS=$LIBS
28576 LIBS="-lwmf "-lwmflite" $LIBS"
28577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28578 /* end confdefs.h. */
28580 /* Override any GCC internal prototype to avoid an error.
28581 Use char because int might match the return type of a GCC
28582 builtin and then its argument prototype would still apply. */
28586 char wmf_eps_function ();
28590 return wmf_eps_function ();
28595 if ac_fn_c_try_link "$LINENO"; then :
28596 ac_cv_lib_wmf_wmf_eps_function=yes
28598 ac_cv_lib_wmf_wmf_eps_function=no
28600 rm -f core conftest.err conftest.$ac_objext \
28601 conftest$ac_exeext conftest.$ac_ext
28602 LIBS=$ac_check_lib_save_LIBS
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
28605 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
28606 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
28607 passed=`expr $passed + 1`
28609 failed=`expr $failed + 1`
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
28613 $as_echo_n "checking if WMF package is complete... " >&6; }
28614 if test $passed -gt 0; then
28615 if test $failed -gt 0; then
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28617 $as_echo "no -- some components failed test" >&6; }
28618 have_wmf='no (failed tests)'
28620 WMF_LIBS='-lwmf -lwmflite'
28621 LIBS="$WMF_LIBS $LIBS"
28623 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
28625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28626 $as_echo "yes" >&6; }
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28631 $as_echo "no" >&6; }
28634 if test "$have_wmf" = 'yes'; then
28636 WMF_DELEGATE_FALSE='#'
28638 WMF_DELEGATE_TRUE='#'
28639 WMF_DELEGATE_FALSE=
28648 # Check for XML delegate library.
28651 # Check whether --with-xml was given.
28652 if test "${with_xml+set}" = set; then :
28653 withval=$with_xml; with_xml=$withval
28659 if test "$with_xml" != 'yes' ; then
28660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28665 if test "$with_xml" != 'no'; then
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28667 $as_echo "-------------------------------------------------------------" >&6; }
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
28669 $as_echo_n "checking for XML... " >&6; }
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28672 PERSIST_LDFLAGS=$LDFLAGS
28673 PERSIST_CPPFLAGS=$CPPFLAGS
28675 for ac_prog in xml2-config
28677 # Extract the first word of "$ac_prog", so it can be a program name with args.
28678 set dummy $ac_prog; ac_word=$2
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28680 $as_echo_n "checking for $ac_word... " >&6; }
28681 if test "${ac_cv_prog_xml2_config+set}" = set; then :
28682 $as_echo_n "(cached) " >&6
28684 if test -n "$xml2_config"; then
28685 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28688 for as_dir in $PATH
28691 test -z "$as_dir" && as_dir=.
28692 for ac_exec_ext in '' $ac_executable_extensions; do
28693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28694 ac_cv_prog_xml2_config="$ac_prog"
28695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28704 xml2_config=$ac_cv_prog_xml2_config
28705 if test -n "$xml2_config"; then
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
28707 $as_echo "$xml2_config" >&6; }
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28710 $as_echo "no" >&6; }
28714 test -n "$xml2_config" && break
28716 if test -n "$xml2_config"; then
28717 # Debian installs libxml headers under /usr/include/libxml2/libxml with
28718 # the shared library installed under /usr/lib, whereas the package
28719 # installs itself under $prefix/libxml and $prefix/lib.
28720 xml2_prefix=`xml2-config --prefix`
28721 if test -d "${xml2_prefix}/include/libxml2"; then
28722 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28724 if test "${xml2_prefix}" != '/usr'; then
28725 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28730 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28731 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
28732 passed=`expr $passed + 1`
28734 failed=`expr $failed + 1`
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
28739 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
28740 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
28741 $as_echo_n "(cached) " >&6
28743 ac_check_lib_save_LIBS=$LIBS
28744 LIBS="-lxml2 $LIBS"
28745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28746 /* end confdefs.h. */
28748 /* Override any GCC internal prototype to avoid an error.
28749 Use char because int might match the return type of a GCC
28750 builtin and then its argument prototype would still apply. */
28754 char xmlParseExternalEntity ();
28758 return xmlParseExternalEntity ();
28763 if ac_fn_c_try_link "$LINENO"; then :
28764 ac_cv_lib_xml2_xmlParseExternalEntity=yes
28766 ac_cv_lib_xml2_xmlParseExternalEntity=no
28768 rm -f core conftest.err conftest.$ac_objext \
28769 conftest$ac_exeext conftest.$ac_ext
28770 LIBS=$ac_check_lib_save_LIBS
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
28773 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
28774 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
28775 passed=`expr $passed + 1`
28777 failed=`expr $failed + 1`
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
28781 $as_echo_n "checking if XML package is complete... " >&6; }
28782 if test $passed -gt 0; then
28783 if test $failed -gt 0; then
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28785 $as_echo "no -- some components failed test" >&6; }
28786 have_xml='no (failed tests)'
28787 LDFLAGS="$PERSIST_LDFLAGS"
28788 CPPFLAGS="$PERSIST_CPPFLAGS"
28791 LIBS="$XML_LIBS $LIBS"
28793 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28796 $as_echo "yes" >&6; }
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28801 $as_echo "no" >&6; }
28804 if test "$have_xml" = 'yes'; then
28806 XML_DELEGATE_FALSE='#'
28808 XML_DELEGATE_TRUE='#'
28809 XML_DELEGATE_FALSE=
28815 # Substitute compiler name to build/link PerlMagick
28820 # Configure install Paths
28823 # Subdirectory under lib to place ImageMagick lib files
28824 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28826 cat >>confdefs.h <<_ACEOF
28827 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28831 # Path to ImageMagick bin directory
28832 EXECUTABLE_PATH="${BIN_DIR}"
28833 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28834 case "${build_os}" in
28836 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28840 cat >>confdefs.h <<_ACEOF
28841 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28846 # Path to ImageMagick lib
28847 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28848 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28849 case "${build_os}" in
28851 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28855 cat >>confdefs.h <<_ACEOF
28856 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28861 # Subdirectory under lib to place ImageMagick configuration files
28862 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28864 cat >>confdefs.h <<_ACEOF
28865 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28868 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28869 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28870 case "${build_os}" in
28872 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28876 cat >>confdefs.h <<_ACEOF
28877 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28883 # Subdirectory under lib to place ImageMagick coder module files
28884 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28886 cat >>confdefs.h <<_ACEOF
28887 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28890 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28891 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28892 case "${build_os}" in
28894 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28898 cat >>confdefs.h <<_ACEOF
28899 #define CODER_PATH "$DEFINE_CODER_PATH"
28905 # Subdirectory under lib to place ImageMagick filter module files
28906 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28908 cat >>confdefs.h <<_ACEOF
28909 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28912 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28913 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28914 case "${build_os}" in
28916 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28920 cat >>confdefs.h <<_ACEOF
28921 #define FILTER_PATH "$DEFINE_FILTER_PATH"
28927 # Path to ImageMagick documentation files
28928 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28929 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28930 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28931 case "${build_os}" in
28933 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28937 cat >>confdefs.h <<_ACEOF
28938 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28944 # Path to ImageMagick share files
28945 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28946 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28947 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28948 case "${build_os}" in
28950 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28954 cat >>confdefs.h <<_ACEOF
28955 #define SHARE_PATH "$DEFINE_SHARE_PATH"
28960 # Subdirectory under share to place ImageMagick configuration files
28961 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28963 cat >>confdefs.h <<_ACEOF
28964 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28967 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28968 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28969 case "${build_os}" in
28971 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28975 cat >>confdefs.h <<_ACEOF
28976 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28982 # program_transform_name is formed for use in a Makefile, so create a
28983 # modified version for use in a shell script.
28984 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28986 # Default delegate definitions
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28988 $as_echo "-------------------------------------------------------------" >&6; }
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
28990 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28993 AutotraceDecodeDelegateDefault='autotrace'
28994 AVIDecodeDelegateDefault='mplayer'
28995 BlenderDecodeDelegateDefault='blender'
28996 BZIPDelegateDefault='bzip2'
28997 BrowseDelegateDefault='xdg-open'
28998 CGMDecodeDelegateDefault='ralcgm'
28999 CatDelegateDefault='cat'
29000 DNGDecodeDelegateDefault='ufraw-batch'
29001 GVCDecodeDelegateDefault='dot'
29002 DVIDecodeDelegateDefault='dvips'
29003 EchoDelegateDefault='echo'
29004 EditorDelegateDefault='xterm'
29005 FIGDecodeDelegateDefault='fig2dev'
29006 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29007 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29008 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29009 GnuplotDecodeDelegateDefault='gnuplot'
29010 HDRDecodeDelegateDefault='ra_pfm'
29011 HPGLDecodeDelegateDefault='hp2xx'
29012 HTMLDecodeDelegateDefault='html2ps'
29013 ILBMDecodeDelegateDefault='ilbmtoppm'
29014 ILBMEncodeDelegateDefault='ppmtoilbm'
29015 LPDelegateDefault='lp'
29016 LPRDelegateDefault='lpr'
29017 LZWDecodeDelegateDefault='uncompress'
29018 LZWEncodeDelegateDefault='compress'
29019 LaunchDelegateDefault='gimp'
29020 MANDelegateDefault='groff'
29021 MPEGDecodeDelegateDefault='ffmpeg'
29022 MPEGEncodeDelegateDefault='ffmpeg'
29023 MVDelegateDefault='mv'
29024 PCLDelegateDefault='pcl6'
29025 PGPDecodeDelegateDefault='pgpv'
29026 POVDelegateDefault='povray'
29027 if test "$native_win32_build" = 'yes'; then
29028 PSDelegateDefault='gswin32c'
29029 elif test "$gslib_framework" = 'yes'; then
29030 PSDelegateDefault='gsc'
29032 PSDelegateDefault='gs'
29034 RLEEncodeDelegateDefault='rawtorle'
29035 RMDelegateDefault='rm'
29036 RSVGDecodeDelegateDefault='rsvg'
29037 SCANDecodeDelegateDefault='scanimage'
29038 TXTDelegateDefault='enscript'
29039 WMFDecodeDelegateDefault='wmf2eps'
29040 WWWDecodeDelegateDefault='curl'
29041 XPSDelegateDefault='gxps'
29042 ZipDelegateDefault='gzip'
29044 # Search for delegates
29045 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29046 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29048 $as_echo_n "checking for $ac_word... " >&6; }
29049 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29050 $as_echo_n "(cached) " >&6
29052 case $AutotraceDecodeDelegate in
29054 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29058 for as_dir in $PATH
29061 test -z "$as_dir" && as_dir=.
29062 for ac_exec_ext in '' $ac_executable_extensions; do
29063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29064 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29072 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29076 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29077 if test -n "$AutotraceDecodeDelegate"; then
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29079 $as_echo "$AutotraceDecodeDelegate" >&6; }
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29082 $as_echo "no" >&6; }
29086 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29087 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29089 $as_echo_n "checking for $ac_word... " >&6; }
29090 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29091 $as_echo_n "(cached) " >&6
29093 case $AVIDecodeDelegate in
29095 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29099 for as_dir in $PATH
29102 test -z "$as_dir" && as_dir=.
29103 for ac_exec_ext in '' $ac_executable_extensions; do
29104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29105 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29113 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29117 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29118 if test -n "$AVIDecodeDelegate"; then
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29120 $as_echo "$AVIDecodeDelegate" >&6; }
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29123 $as_echo "no" >&6; }
29127 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29128 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29130 $as_echo_n "checking for $ac_word... " >&6; }
29131 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29132 $as_echo_n "(cached) " >&6
29134 case $BlenderDecodeDelegate in
29136 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29140 for as_dir in $PATH
29143 test -z "$as_dir" && as_dir=.
29144 for ac_exec_ext in '' $ac_executable_extensions; do
29145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29146 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29154 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29158 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29159 if test -n "$BlenderDecodeDelegate"; then
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29161 $as_echo "$BlenderDecodeDelegate" >&6; }
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29164 $as_echo "no" >&6; }
29168 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29169 set dummy "$BZIPDelegateDefault"; ac_word=$2
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29171 $as_echo_n "checking for $ac_word... " >&6; }
29172 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29173 $as_echo_n "(cached) " >&6
29175 case $BZIPDelegate in
29177 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29181 for as_dir in $PATH
29184 test -z "$as_dir" && as_dir=.
29185 for ac_exec_ext in '' $ac_executable_extensions; do
29186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29187 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29195 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29199 BZIPDelegate=$ac_cv_path_BZIPDelegate
29200 if test -n "$BZIPDelegate"; then
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29202 $as_echo "$BZIPDelegate" >&6; }
29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29205 $as_echo "no" >&6; }
29209 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29210 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29212 $as_echo_n "checking for $ac_word... " >&6; }
29213 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29214 $as_echo_n "(cached) " >&6
29216 case $BrowseDelegate in
29218 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29222 for as_dir in $PATH
29225 test -z "$as_dir" && as_dir=.
29226 for ac_exec_ext in '' $ac_executable_extensions; do
29227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29228 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29236 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29240 BrowseDelegate=$ac_cv_path_BrowseDelegate
29241 if test -n "$BrowseDelegate"; then
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29243 $as_echo "$BrowseDelegate" >&6; }
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29246 $as_echo "no" >&6; }
29250 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29251 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29253 $as_echo_n "checking for $ac_word... " >&6; }
29254 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29255 $as_echo_n "(cached) " >&6
29257 case $CGMDecodeDelegate in
29259 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29263 for as_dir in $PATH
29266 test -z "$as_dir" && as_dir=.
29267 for ac_exec_ext in '' $ac_executable_extensions; do
29268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29269 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29277 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29281 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29282 if test -n "$CGMDecodeDelegate"; then
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29284 $as_echo "$CGMDecodeDelegate" >&6; }
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287 $as_echo "no" >&6; }
29291 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29292 set dummy "$CatDelegateDefault"; ac_word=$2
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29294 $as_echo_n "checking for $ac_word... " >&6; }
29295 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29296 $as_echo_n "(cached) " >&6
29298 case $CatDelegate in
29300 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29304 for as_dir in $PATH
29307 test -z "$as_dir" && as_dir=.
29308 for ac_exec_ext in '' $ac_executable_extensions; do
29309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29310 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29318 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29322 CatDelegate=$ac_cv_path_CatDelegate
29323 if test -n "$CatDelegate"; then
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29325 $as_echo "$CatDelegate" >&6; }
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29328 $as_echo "no" >&6; }
29332 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29333 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29335 $as_echo_n "checking for $ac_word... " >&6; }
29336 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29337 $as_echo_n "(cached) " >&6
29339 case $DNGDecodeDelegate in
29341 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29345 for as_dir in $PATH
29348 test -z "$as_dir" && as_dir=.
29349 for ac_exec_ext in '' $ac_executable_extensions; do
29350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29351 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29359 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29363 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29364 if test -n "$DNGDecodeDelegate"; then
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29366 $as_echo "$DNGDecodeDelegate" >&6; }
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29369 $as_echo "no" >&6; }
29373 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29374 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29376 $as_echo_n "checking for $ac_word... " >&6; }
29377 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29378 $as_echo_n "(cached) " >&6
29380 case $GVCDecodeDelegate in
29382 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29386 for as_dir in $PATH
29389 test -z "$as_dir" && as_dir=.
29390 for ac_exec_ext in '' $ac_executable_extensions; do
29391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29392 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29400 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29404 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29405 if test -n "$GVCDecodeDelegate"; then
29406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29407 $as_echo "$GVCDecodeDelegate" >&6; }
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29410 $as_echo "no" >&6; }
29414 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29415 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29417 $as_echo_n "checking for $ac_word... " >&6; }
29418 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29419 $as_echo_n "(cached) " >&6
29421 case $DVIDecodeDelegate in
29423 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29427 for as_dir in $PATH
29430 test -z "$as_dir" && as_dir=.
29431 for ac_exec_ext in '' $ac_executable_extensions; do
29432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29433 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29441 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29445 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29446 if test -n "$DVIDecodeDelegate"; then
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
29448 $as_echo "$DVIDecodeDelegate" >&6; }
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29451 $as_echo "no" >&6; }
29455 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29456 set dummy "$EchoDelegateDefault"; ac_word=$2
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29458 $as_echo_n "checking for $ac_word... " >&6; }
29459 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
29460 $as_echo_n "(cached) " >&6
29462 case $EchoDelegate in
29464 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29468 for as_dir in $PATH
29471 test -z "$as_dir" && as_dir=.
29472 for ac_exec_ext in '' $ac_executable_extensions; do
29473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29474 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
29475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29482 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29486 EchoDelegate=$ac_cv_path_EchoDelegate
29487 if test -n "$EchoDelegate"; then
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
29489 $as_echo "$EchoDelegate" >&6; }
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29492 $as_echo "no" >&6; }
29496 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29497 set dummy "$EditorDelegateDefault"; ac_word=$2
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29499 $as_echo_n "checking for $ac_word... " >&6; }
29500 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
29501 $as_echo_n "(cached) " >&6
29503 case $EditorDelegate in
29505 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29509 for as_dir in $PATH
29512 test -z "$as_dir" && as_dir=.
29513 for ac_exec_ext in '' $ac_executable_extensions; do
29514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29515 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
29516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29523 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29527 EditorDelegate=$ac_cv_path_EditorDelegate
29528 if test -n "$EditorDelegate"; then
29529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
29530 $as_echo "$EditorDelegate" >&6; }
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29533 $as_echo "no" >&6; }
29537 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29538 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29540 $as_echo_n "checking for $ac_word... " >&6; }
29541 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
29542 $as_echo_n "(cached) " >&6
29544 case $FIGDecodeDelegate in
29546 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29550 for as_dir in $PATH
29553 test -z "$as_dir" && as_dir=.
29554 for ac_exec_ext in '' $ac_executable_extensions; do
29555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29556 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29564 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29568 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29569 if test -n "$FIGDecodeDelegate"; then
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
29571 $as_echo "$FIGDecodeDelegate" >&6; }
29573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29574 $as_echo "no" >&6; }
29578 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29579 set dummy "$ConvertDelegateDefault"; ac_word=$2
29580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29581 $as_echo_n "checking for $ac_word... " >&6; }
29582 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
29583 $as_echo_n "(cached) " >&6
29585 case $ConvertDelegate in
29587 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29591 for as_dir in $PATH
29594 test -z "$as_dir" && as_dir=.
29595 for ac_exec_ext in '' $ac_executable_extensions; do
29596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29597 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
29598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29605 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29609 ConvertDelegate=$ac_cv_path_ConvertDelegate
29610 if test -n "$ConvertDelegate"; then
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
29612 $as_echo "$ConvertDelegate" >&6; }
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29615 $as_echo "no" >&6; }
29619 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29620 set dummy "$DisplayDelegateDefault"; ac_word=$2
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29622 $as_echo_n "checking for $ac_word... " >&6; }
29623 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
29624 $as_echo_n "(cached) " >&6
29626 case $DisplayDelegate in
29628 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29632 for as_dir in $PATH
29635 test -z "$as_dir" && as_dir=.
29636 for ac_exec_ext in '' $ac_executable_extensions; do
29637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29638 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
29639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29646 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29650 DisplayDelegate=$ac_cv_path_DisplayDelegate
29651 if test -n "$DisplayDelegate"; then
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
29653 $as_echo "$DisplayDelegate" >&6; }
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29656 $as_echo "no" >&6; }
29660 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29661 set dummy "$MogrifyDelegateDefault"; ac_word=$2
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29663 $as_echo_n "checking for $ac_word... " >&6; }
29664 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
29665 $as_echo_n "(cached) " >&6
29667 case $MogrifyDelegate in
29669 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29673 for as_dir in $PATH
29676 test -z "$as_dir" && as_dir=.
29677 for ac_exec_ext in '' $ac_executable_extensions; do
29678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29679 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
29680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29687 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29691 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29692 if test -n "$MogrifyDelegate"; then
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
29694 $as_echo "$MogrifyDelegate" >&6; }
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29697 $as_echo "no" >&6; }
29701 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29702 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29704 $as_echo_n "checking for $ac_word... " >&6; }
29705 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
29706 $as_echo_n "(cached) " >&6
29708 case $GnuplotDecodeDelegate in
29710 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29714 for as_dir in $PATH
29717 test -z "$as_dir" && as_dir=.
29718 for ac_exec_ext in '' $ac_executable_extensions; do
29719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29720 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29728 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29732 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29733 if test -n "$GnuplotDecodeDelegate"; then
29734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
29735 $as_echo "$GnuplotDecodeDelegate" >&6; }
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29738 $as_echo "no" >&6; }
29742 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29743 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29745 $as_echo_n "checking for $ac_word... " >&6; }
29746 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
29747 $as_echo_n "(cached) " >&6
29749 case $HDRDecodeDelegate in
29751 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29755 for as_dir in $PATH
29758 test -z "$as_dir" && as_dir=.
29759 for ac_exec_ext in '' $ac_executable_extensions; do
29760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29761 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29769 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29773 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29774 if test -n "$HDRDecodeDelegate"; then
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
29776 $as_echo "$HDRDecodeDelegate" >&6; }
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29779 $as_echo "no" >&6; }
29783 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29784 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29786 $as_echo_n "checking for $ac_word... " >&6; }
29787 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
29788 $as_echo_n "(cached) " >&6
29790 case $HPGLDecodeDelegate in
29792 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29796 for as_dir in $PATH
29799 test -z "$as_dir" && as_dir=.
29800 for ac_exec_ext in '' $ac_executable_extensions; do
29801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29802 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29810 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29814 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29815 if test -n "$HPGLDecodeDelegate"; then
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
29817 $as_echo "$HPGLDecodeDelegate" >&6; }
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29820 $as_echo "no" >&6; }
29824 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29825 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29827 $as_echo_n "checking for $ac_word... " >&6; }
29828 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
29829 $as_echo_n "(cached) " >&6
29831 case $HTMLDecodeDelegate in
29833 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29837 for as_dir in $PATH
29840 test -z "$as_dir" && as_dir=.
29841 for ac_exec_ext in '' $ac_executable_extensions; do
29842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29843 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29851 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29855 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29856 if test -n "$HTMLDecodeDelegate"; then
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
29858 $as_echo "$HTMLDecodeDelegate" >&6; }
29860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29861 $as_echo "no" >&6; }
29865 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29866 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29868 $as_echo_n "checking for $ac_word... " >&6; }
29869 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
29870 $as_echo_n "(cached) " >&6
29872 case $ILBMDecodeDelegate in
29874 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29878 for as_dir in $PATH
29881 test -z "$as_dir" && as_dir=.
29882 for ac_exec_ext in '' $ac_executable_extensions; do
29883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29884 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29892 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29896 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29897 if test -n "$ILBMDecodeDelegate"; then
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
29899 $as_echo "$ILBMDecodeDelegate" >&6; }
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29902 $as_echo "no" >&6; }
29906 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29907 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29909 $as_echo_n "checking for $ac_word... " >&6; }
29910 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
29911 $as_echo_n "(cached) " >&6
29913 case $ILBMEncodeDelegate in
29915 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29919 for as_dir in $PATH
29922 test -z "$as_dir" && as_dir=.
29923 for ac_exec_ext in '' $ac_executable_extensions; do
29924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29925 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29933 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29937 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29938 if test -n "$ILBMEncodeDelegate"; then
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
29940 $as_echo "$ILBMEncodeDelegate" >&6; }
29942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29943 $as_echo "no" >&6; }
29947 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29948 set dummy "$LPDelegateDefault"; ac_word=$2
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29950 $as_echo_n "checking for $ac_word... " >&6; }
29951 if test "${ac_cv_path_LPDelegate+set}" = set; then :
29952 $as_echo_n "(cached) " >&6
29954 case $LPDelegate in
29956 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29960 for as_dir in $PATH
29963 test -z "$as_dir" && as_dir=.
29964 for ac_exec_ext in '' $ac_executable_extensions; do
29965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29966 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
29967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29974 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29978 LPDelegate=$ac_cv_path_LPDelegate
29979 if test -n "$LPDelegate"; then
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
29981 $as_echo "$LPDelegate" >&6; }
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29984 $as_echo "no" >&6; }
29988 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29989 set dummy "$LPRDelegateDefault"; ac_word=$2
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29991 $as_echo_n "checking for $ac_word... " >&6; }
29992 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
29993 $as_echo_n "(cached) " >&6
29995 case $LPRDelegate in
29997 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30001 for as_dir in $PATH
30004 test -z "$as_dir" && as_dir=.
30005 for ac_exec_ext in '' $ac_executable_extensions; do
30006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30007 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30015 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30019 LPRDelegate=$ac_cv_path_LPRDelegate
30020 if test -n "$LPRDelegate"; then
30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30022 $as_echo "$LPRDelegate" >&6; }
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30025 $as_echo "no" >&6; }
30029 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30030 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30032 $as_echo_n "checking for $ac_word... " >&6; }
30033 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30034 $as_echo_n "(cached) " >&6
30036 case $LZWDecodeDelegate in
30038 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042 for as_dir in $PATH
30045 test -z "$as_dir" && as_dir=.
30046 for ac_exec_ext in '' $ac_executable_extensions; do
30047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30056 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30060 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30061 if test -n "$LZWDecodeDelegate"; then
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30063 $as_echo "$LZWDecodeDelegate" >&6; }
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30066 $as_echo "no" >&6; }
30070 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30071 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30073 $as_echo_n "checking for $ac_word... " >&6; }
30074 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30075 $as_echo_n "(cached) " >&6
30077 case $LZWEncodeDelegate in
30079 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30083 for as_dir in $PATH
30086 test -z "$as_dir" && as_dir=.
30087 for ac_exec_ext in '' $ac_executable_extensions; do
30088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30089 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30097 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30101 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30102 if test -n "$LZWEncodeDelegate"; then
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30104 $as_echo "$LZWEncodeDelegate" >&6; }
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30107 $as_echo "no" >&6; }
30111 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30112 set dummy "$LaunchDelegateDefault"; ac_word=$2
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30114 $as_echo_n "checking for $ac_word... " >&6; }
30115 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30116 $as_echo_n "(cached) " >&6
30118 case $LaunchDelegate in
30120 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30124 for as_dir in $PATH
30127 test -z "$as_dir" && as_dir=.
30128 for ac_exec_ext in '' $ac_executable_extensions; do
30129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30130 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30138 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30142 LaunchDelegate=$ac_cv_path_LaunchDelegate
30143 if test -n "$LaunchDelegate"; then
30144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30145 $as_echo "$LaunchDelegate" >&6; }
30147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30148 $as_echo "no" >&6; }
30152 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30153 set dummy "$MANDelegateDefault"; ac_word=$2
30154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30155 $as_echo_n "checking for $ac_word... " >&6; }
30156 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30157 $as_echo_n "(cached) " >&6
30159 case $MANDelegate in
30161 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30165 for as_dir in $PATH
30168 test -z "$as_dir" && as_dir=.
30169 for ac_exec_ext in '' $ac_executable_extensions; do
30170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30171 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30179 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30183 MANDelegate=$ac_cv_path_MANDelegate
30184 if test -n "$MANDelegate"; then
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30186 $as_echo "$MANDelegate" >&6; }
30188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30189 $as_echo "no" >&6; }
30193 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30194 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30196 $as_echo_n "checking for $ac_word... " >&6; }
30197 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30198 $as_echo_n "(cached) " >&6
30200 case $MPEGDecodeDelegate in
30202 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30206 for as_dir in $PATH
30209 test -z "$as_dir" && as_dir=.
30210 for ac_exec_ext in '' $ac_executable_extensions; do
30211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30212 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30220 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30224 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30225 if test -n "$MPEGDecodeDelegate"; then
30226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30227 $as_echo "$MPEGDecodeDelegate" >&6; }
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30230 $as_echo "no" >&6; }
30234 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30235 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30237 $as_echo_n "checking for $ac_word... " >&6; }
30238 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30239 $as_echo_n "(cached) " >&6
30241 case $MPEGEncodeDelegate in
30243 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30247 for as_dir in $PATH
30250 test -z "$as_dir" && as_dir=.
30251 for ac_exec_ext in '' $ac_executable_extensions; do
30252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30253 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30261 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30265 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30266 if test -n "$MPEGEncodeDelegate"; then
30267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30268 $as_echo "$MPEGEncodeDelegate" >&6; }
30270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30271 $as_echo "no" >&6; }
30275 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30276 set dummy "$MVDelegateDefault"; ac_word=$2
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30278 $as_echo_n "checking for $ac_word... " >&6; }
30279 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30280 $as_echo_n "(cached) " >&6
30282 case $MVDelegate in
30284 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30288 for as_dir in $PATH
30291 test -z "$as_dir" && as_dir=.
30292 for ac_exec_ext in '' $ac_executable_extensions; do
30293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30294 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30302 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30306 MVDelegate=$ac_cv_path_MVDelegate
30307 if test -n "$MVDelegate"; then
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30309 $as_echo "$MVDelegate" >&6; }
30311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30312 $as_echo "no" >&6; }
30316 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30317 set dummy "$PCLDelegateDefault"; ac_word=$2
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30319 $as_echo_n "checking for $ac_word... " >&6; }
30320 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30321 $as_echo_n "(cached) " >&6
30323 case $PCLDelegate in
30325 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30329 for as_dir in $PATH
30332 test -z "$as_dir" && as_dir=.
30333 for ac_exec_ext in '' $ac_executable_extensions; do
30334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30335 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30343 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30347 PCLDelegate=$ac_cv_path_PCLDelegate
30348 if test -n "$PCLDelegate"; then
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30350 $as_echo "$PCLDelegate" >&6; }
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30353 $as_echo "no" >&6; }
30357 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30358 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30360 $as_echo_n "checking for $ac_word... " >&6; }
30361 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30362 $as_echo_n "(cached) " >&6
30364 case $PGPDecodeDelegate in
30366 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30370 for as_dir in $PATH
30373 test -z "$as_dir" && as_dir=.
30374 for ac_exec_ext in '' $ac_executable_extensions; do
30375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30376 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30384 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30388 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30389 if test -n "$PGPDecodeDelegate"; then
30390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
30391 $as_echo "$PGPDecodeDelegate" >&6; }
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30394 $as_echo "no" >&6; }
30398 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30399 set dummy "$POVDelegateDefault"; ac_word=$2
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30401 $as_echo_n "checking for $ac_word... " >&6; }
30402 if test "${ac_cv_path_POVDelegate+set}" = set; then :
30403 $as_echo_n "(cached) " >&6
30405 case $POVDelegate in
30407 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30411 for as_dir in $PATH
30414 test -z "$as_dir" && as_dir=.
30415 for ac_exec_ext in '' $ac_executable_extensions; do
30416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30417 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
30418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30425 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30429 POVDelegate=$ac_cv_path_POVDelegate
30430 if test -n "$POVDelegate"; then
30431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
30432 $as_echo "$POVDelegate" >&6; }
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30435 $as_echo "no" >&6; }
30439 for ac_prog in gsx gsc "$PSDelegateDefault"
30441 # Extract the first word of "$ac_prog", so it can be a program name with args.
30442 set dummy $ac_prog; ac_word=$2
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30444 $as_echo_n "checking for $ac_word... " >&6; }
30445 if test "${ac_cv_path_PSDelegate+set}" = set; then :
30446 $as_echo_n "(cached) " >&6
30448 case $PSDelegate in
30450 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30454 for as_dir in $PATH
30457 test -z "$as_dir" && as_dir=.
30458 for ac_exec_ext in '' $ac_executable_extensions; do
30459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30460 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
30461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30471 PSDelegate=$ac_cv_path_PSDelegate
30472 if test -n "$PSDelegate"; then
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
30474 $as_echo "$PSDelegate" >&6; }
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30477 $as_echo "no" >&6; }
30481 test -n "$PSDelegate" && break
30483 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30485 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30486 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30488 $as_echo_n "checking for $ac_word... " >&6; }
30489 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
30490 $as_echo_n "(cached) " >&6
30492 case $RLEEncodeDelegate in
30494 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30498 for as_dir in $PATH
30501 test -z "$as_dir" && as_dir=.
30502 for ac_exec_ext in '' $ac_executable_extensions; do
30503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30504 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30512 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30516 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30517 if test -n "$RLEEncodeDelegate"; then
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
30519 $as_echo "$RLEEncodeDelegate" >&6; }
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30522 $as_echo "no" >&6; }
30526 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30527 set dummy "$RMDelegateDefault"; ac_word=$2
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30529 $as_echo_n "checking for $ac_word... " >&6; }
30530 if test "${ac_cv_path_RMDelegate+set}" = set; then :
30531 $as_echo_n "(cached) " >&6
30533 case $RMDelegate in
30535 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30539 for as_dir in $PATH
30542 test -z "$as_dir" && as_dir=.
30543 for ac_exec_ext in '' $ac_executable_extensions; do
30544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30545 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
30546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30553 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30557 RMDelegate=$ac_cv_path_RMDelegate
30558 if test -n "$RMDelegate"; then
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
30560 $as_echo "$RMDelegate" >&6; }
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30563 $as_echo "no" >&6; }
30567 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30568 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30570 $as_echo_n "checking for $ac_word... " >&6; }
30571 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30572 $as_echo_n "(cached) " >&6
30574 case $RSVGDecodeDelegate in
30576 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 for as_dir in $PATH
30583 test -z "$as_dir" && as_dir=.
30584 for ac_exec_ext in '' $ac_executable_extensions; do
30585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30586 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30594 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30598 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30599 if test -n "$RSVGDecodeDelegate"; then
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30601 $as_echo "$RSVGDecodeDelegate" >&6; }
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30604 $as_echo "no" >&6; }
30608 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30609 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30611 $as_echo_n "checking for $ac_word... " >&6; }
30612 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
30613 $as_echo_n "(cached) " >&6
30615 case $SCANDecodeDelegate in
30617 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621 for as_dir in $PATH
30624 test -z "$as_dir" && as_dir=.
30625 for ac_exec_ext in '' $ac_executable_extensions; do
30626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30635 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30639 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30640 if test -n "$SCANDecodeDelegate"; then
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
30642 $as_echo "$SCANDecodeDelegate" >&6; }
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30645 $as_echo "no" >&6; }
30649 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30650 set dummy "$TXTDelegateDefault"; ac_word=$2
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30652 $as_echo_n "checking for $ac_word... " >&6; }
30653 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
30654 $as_echo_n "(cached) " >&6
30656 case $TXTDelegate in
30658 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30662 for as_dir in $PATH
30665 test -z "$as_dir" && as_dir=.
30666 for ac_exec_ext in '' $ac_executable_extensions; do
30667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30668 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
30669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30676 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30680 TXTDelegate=$ac_cv_path_TXTDelegate
30681 if test -n "$TXTDelegate"; then
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
30683 $as_echo "$TXTDelegate" >&6; }
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686 $as_echo "no" >&6; }
30690 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30691 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30693 $as_echo_n "checking for $ac_word... " >&6; }
30694 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
30695 $as_echo_n "(cached) " >&6
30697 case $WMFDecodeDelegate in
30699 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30703 for as_dir in $PATH
30706 test -z "$as_dir" && as_dir=.
30707 for ac_exec_ext in '' $ac_executable_extensions; do
30708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30709 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30717 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30721 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30722 if test -n "$WMFDecodeDelegate"; then
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
30724 $as_echo "$WMFDecodeDelegate" >&6; }
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727 $as_echo "no" >&6; }
30731 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30732 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30734 $as_echo_n "checking for $ac_word... " >&6; }
30735 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
30736 $as_echo_n "(cached) " >&6
30738 case $WWWDecodeDelegate in
30740 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744 for as_dir in $PATH
30747 test -z "$as_dir" && as_dir=.
30748 for ac_exec_ext in '' $ac_executable_extensions; do
30749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30758 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30762 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30763 if test -n "$WWWDecodeDelegate"; then
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
30765 $as_echo "$WWWDecodeDelegate" >&6; }
30767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30768 $as_echo "no" >&6; }
30772 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30773 set dummy "$XPSDelegateDefault"; ac_word=$2
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30775 $as_echo_n "checking for $ac_word... " >&6; }
30776 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
30777 $as_echo_n "(cached) " >&6
30779 case $XPSDelegate in
30781 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30785 for as_dir in $PATH
30788 test -z "$as_dir" && as_dir=.
30789 for ac_exec_ext in '' $ac_executable_extensions; do
30790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30791 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
30792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30799 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30803 XPSDelegate=$ac_cv_path_XPSDelegate
30804 if test -n "$XPSDelegate"; then
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
30806 $as_echo "$XPSDelegate" >&6; }
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30809 $as_echo "no" >&6; }
30813 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30814 set dummy "$ZipDelegateDefault"; ac_word=$2
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30816 $as_echo_n "checking for $ac_word... " >&6; }
30817 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
30818 $as_echo_n "(cached) " >&6
30820 case $ZipDelegate in
30822 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30826 for as_dir in $PATH
30829 test -z "$as_dir" && as_dir=.
30830 for ac_exec_ext in '' $ac_executable_extensions; do
30831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30832 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
30833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30840 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30844 ZipDelegate=$ac_cv_path_ZipDelegate
30845 if test -n "$ZipDelegate"; then
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
30847 $as_echo "$ZipDelegate" >&6; }
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30855 # Prefer lpr to lp; lp needs options tacked on.
30856 if test "$LPRDelegate" != no; then
30857 PrintDelegate="$LPRDelegate"
30859 PrintDelegate="$LPDelegate -c -s"
30863 # Installed ImageMagick utiltity paths
30864 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30865 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30866 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30868 # Set delegate booleans
30869 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30870 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30871 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30872 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30873 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30874 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30875 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30876 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30877 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30878 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30879 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30882 # Test for font directories
30884 type_include_files=''
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30888 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
30890 if test "${with_dejavu_font_dir}" != 'default'; then
30891 dejavu_font_dir="${with_dejavu_font_dir}/"
30893 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30894 if test -f "${font_dir}DejaVuSerif.ttf"; then
30895 dejavu_font_dir="${font_dir}"
30900 if test "${dejavu_font_dir}x" != 'x'; then
30901 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30903 $as_echo "$dejavu_font_dir" >&6; }
30905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30906 $as_echo "not found!" >&6; };
30911 windows_font_dir=''
30912 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30913 windows_font_dir="${with_windows_font_dir}/"
30915 if test "${windows_font_dir}x" != 'x'; then
30916 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30917 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30919 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30920 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30922 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30923 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30926 if test "${windows_font_dir}x" != 'x'; then
30927 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
30933 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30934 ghostscript_font_dir=''
30935 if test "${with_gs_font_dir}" != 'default'; then
30936 ghostscript_font_dir="${with_gs_font_dir}/"
30938 if test "${native_win32_build}" = 'yes'; then
30939 # Native Windows Build
30940 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30941 if test -f "${font_dir}a010013l.pfb"; then
30942 ghostscript_font_dir="$font_dir"
30946 if test "${PSDelegate}" != 'gswin32c'; then
30947 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30950 # Linux / Mac OS X / Unix Build
30951 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
30952 if test -f "${font_dir}a010013l.pfb"; then
30953 ghostscript_font_dir="${font_dir}"
30957 if test "${ghostscript_font_dir}x" = 'x'; then
30958 if test "$PSDelegate" != 'gs'; then
30959 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
30964 if test "${ghostscript_font_dir}x" != 'x'; then
30965 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
30967 $as_echo "$ghostscript_font_dir" >&6; }
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30970 $as_echo "not found!" >&6; };
30973 case "${build_os}" in
30975 PSDelegate=`$WinPathScript "$PSDelegate" 1`
30982 # Handle case where user doesn't want frozen paths
30984 if test "$with_frozenpaths" != 'yes'; then
30985 # Re-set delegate definitions to default (no paths)
30986 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30987 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30988 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30989 BZIPDelegate="$BZIPDelegateDefault"
30990 BrowseDelegate="$BrowseDelegateDefault"
30991 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30992 CatDelegate="$CatDelegateDefault"
30993 ConvertDelegate="$ConvertDelegateDefault"
30994 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30995 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30996 EchoDelegate="$EchoDelegateDefault"
30997 EditorDelegate="$EditorDelegateDefault"
30998 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30999 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31000 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31001 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31002 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31003 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31004 LPDelegate="$LPDelegateDefault"
31005 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31006 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31007 LaunchDelegate="$LaunchDelegateDefault"
31008 MANDelegate="$MANDelegateDefault"
31009 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31010 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31011 MVDelegate="$MVDelegateDefault"
31012 MogrifyDelegate="$MogrifyDelegateDefault"
31013 PCLDelegate="$PCLDelegateDefault"
31014 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31015 POVDelegate="$POVDelegateDefault"
31016 PSDelegate="$PSDelegateDefault"
31017 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31018 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31019 RMDelegate="$RMDelegateDefault"
31020 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31021 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31022 ShowImageDelegate="$ShowImageDelegateDefault"
31023 TXTDelegate="$TXTDelegateDefault"
31024 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31025 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31026 XPSDelegate="$XPSDelegateDefault"
31027 ZipDelegate="$ZipDelegateDefault"
31030 # Delegate substitutions
31077 for ac_prog in gnutar gtar tar
31079 # Extract the first word of "$ac_prog", so it can be a program name with args.
31080 set dummy $ac_prog; ac_word=$2
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31082 $as_echo_n "checking for $ac_word... " >&6; }
31083 if test "${ac_cv_prog_TAR+set}" = set; then :
31084 $as_echo_n "(cached) " >&6
31086 if test -n "$TAR"; then
31087 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31090 for as_dir in $PATH
31093 test -z "$as_dir" && as_dir=.
31094 for ac_exec_ext in '' $ac_executable_extensions; do
31095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31096 ac_cv_prog_TAR="$ac_prog"
31097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31106 TAR=$ac_cv_prog_TAR
31107 if test -n "$TAR"; then
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31109 $as_echo "$TAR" >&6; }
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31112 $as_echo "no" >&6; }
31116 test -n "$TAR" && break
31119 for ac_prog in perl
31121 # Extract the first word of "$ac_prog", so it can be a program name with args.
31122 set dummy $ac_prog; ac_word=$2
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31124 $as_echo_n "checking for $ac_word... " >&6; }
31125 if test "${ac_cv_prog_PERL+set}" = set; then :
31126 $as_echo_n "(cached) " >&6
31128 if test -n "$PERL"; then
31129 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31132 for as_dir in $PATH
31135 test -z "$as_dir" && as_dir=.
31136 for ac_exec_ext in '' $ac_executable_extensions; do
31137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31138 ac_cv_prog_PERL="$ac_prog"
31139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31148 PERL=$ac_cv_prog_PERL
31149 if test -n "$PERL"; then
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31151 $as_echo "$PERL" >&6; }
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31154 $as_echo "no" >&6; }
31158 test -n "$PERL" && break
31161 for ac_prog in rpmbuild rpm
31163 # Extract the first word of "$ac_prog", so it can be a program name with args.
31164 set dummy $ac_prog; ac_word=$2
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31166 $as_echo_n "checking for $ac_word... " >&6; }
31167 if test "${ac_cv_prog_RPM+set}" = set; then :
31168 $as_echo_n "(cached) " >&6
31170 if test -n "$RPM"; then
31171 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31174 for as_dir in $PATH
31177 test -z "$as_dir" && as_dir=.
31178 for ac_exec_ext in '' $ac_executable_extensions; do
31179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31180 ac_cv_prog_RPM="$ac_prog"
31181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31190 RPM=$ac_cv_prog_RPM
31191 if test -n "$RPM"; then
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31193 $as_echo "$RPM" >&6; }
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31196 $as_echo "no" >&6; }
31200 test -n "$RPM" && break
31204 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31207 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31210 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31213 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31216 if test "x$RPM" != "x" ; then
31218 RPM_DELEGATE_FALSE='#'
31220 RPM_DELEGATE_TRUE='#'
31221 RPM_DELEGATE_FALSE=
31226 # 7ZIP support (http://p7zip.sourceforge.net/)
31231 # Extract the first word of "$ac_prog", so it can be a program name with args.
31232 set dummy $ac_prog; ac_word=$2
31233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31234 $as_echo_n "checking for $ac_word... " >&6; }
31235 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31236 $as_echo_n "(cached) " >&6
31238 if test -n "$P7ZIP"; then
31239 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31242 for as_dir in $PATH
31245 test -z "$as_dir" && as_dir=.
31246 for ac_exec_ext in '' $ac_executable_extensions; do
31247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31248 ac_cv_prog_P7ZIP="$ac_prog"
31249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31258 P7ZIP=$ac_cv_prog_P7ZIP
31259 if test -n "$P7ZIP"; then
31260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31261 $as_echo "$P7ZIP" >&6; }
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31264 $as_echo "no" >&6; }
31268 test -n "$P7ZIP" && break
31272 if test "x$P7ZIP" != "x" ; then
31273 P7ZIP_DELEGATE_TRUE=
31274 P7ZIP_DELEGATE_FALSE='#'
31276 P7ZIP_DELEGATE_TRUE='#'
31277 P7ZIP_DELEGATE_FALSE=
31282 # ZIP support (http://www.info-zip.org/Zip.html)
31287 # Extract the first word of "$ac_prog", so it can be a program name with args.
31288 set dummy $ac_prog; ac_word=$2
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31290 $as_echo_n "checking for $ac_word... " >&6; }
31291 if test "${ac_cv_prog_ZIP+set}" = set; then :
31292 $as_echo_n "(cached) " >&6
31294 if test -n "$ZIP"; then
31295 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31298 for as_dir in $PATH
31301 test -z "$as_dir" && as_dir=.
31302 for ac_exec_ext in '' $ac_executable_extensions; do
31303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31304 ac_cv_prog_ZIP="$ac_prog"
31305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31314 ZIP=$ac_cv_prog_ZIP
31315 if test -n "$ZIP"; then
31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
31317 $as_echo "$ZIP" >&6; }
31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31320 $as_echo "no" >&6; }
31324 test -n "$ZIP" && break
31328 if test "x$ZIP" != "x" ; then
31330 ZIP_DELEGATE_FALSE='#'
31332 ZIP_DELEGATE_TRUE='#'
31333 ZIP_DELEGATE_FALSE=
31338 # GhostPCL related configuration.
31340 PCLColorDevice=ppmraw
31341 PCLCMYKDevice=bmpsep8
31342 PCLMonoDevice=pbmraw
31343 if test -z "$PCLVersion"; then
31344 PCLVersion='unknown'
31346 if test $have_pcl = 'yes'; then
31347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31348 $as_echo "-------------------------------------------------------------" >&6; }
31349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
31350 $as_echo_n "checking for PCL... " >&6; }
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
31355 $as_echo_n "checking for pcl color device... " >&6; }
31356 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31359 PCLColorDevice=ppmraw
31361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
31362 $as_echo "$PCLColorDevice" >&6; }
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
31366 $as_echo_n "checking for pcl CMYK device... " >&6; }
31367 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31370 PCLCMYKDevice=$PCLColorDevice
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
31373 $as_echo "$PCLCMYKDevice" >&6; }
31376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
31377 $as_echo_n "checking for pcl mono device... " >&6; }
31378 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31381 PCLMonoDevice=$PCLColorDevice
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
31384 $as_echo "$PCLMonoDevice" >&6; }
31393 # GhostXPS related configuration.
31395 XPSColorDevice=ppmraw
31396 XPSCMYKDevice=bmpsep8
31397 XPSMonoDevice=pbmraw
31398 if test -z "$XPSVersion"; then
31399 XPSVersion='unknown'
31401 if test $have_xps = 'yes'; then
31402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31403 $as_echo "-------------------------------------------------------------" >&6; }
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
31405 $as_echo_n "checking for XPS... " >&6; }
31406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
31410 $as_echo_n "checking for xps color device... " >&6; }
31411 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31414 XPSColorDevice=ppmraw
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
31417 $as_echo "$XPSColorDevice" >&6; }
31420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
31421 $as_echo_n "checking for xps CMYK device... " >&6; }
31422 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31425 XPSCMYKDevice=$XPSColorDevice
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
31428 $as_echo "$XPSCMYKDevice" >&6; }
31431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
31432 $as_echo_n "checking for xps mono device... " >&6; }
31433 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31436 XPSMonoDevice=$XPSColorDevice
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
31439 $as_echo "$XPSMonoDevice" >&6; }
31448 # Ghostscript related configuration.
31450 if test "$have_png" = 'yes'; then
31451 GSAlphaDevice=pngalpha
31453 GSAlphaDevice=pnmraw
31455 GSColorDevice=pnmraw
31457 GSMonoDevice=pbmraw
31458 GSPDFDevice=pdfwrite
31460 GSEPSDevice=epswrite
31461 GSVersion='unknown'
31462 if test $have_gs = 'yes'; then
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31464 $as_echo "-------------------------------------------------------------" >&6; }
31465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
31466 $as_echo_n "checking for Ghostscript... " >&6; }
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
31470 $as_echo_n "checking for Ghostscript version... " >&6; }
31471 if GSVersion=`$PSDelegate --version`; then
31474 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
31477 $as_echo "$GSVersion" >&6; }
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
31481 $as_echo_n "checking for gs alpha device... " >&6; }
31482 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31485 GSAlphaDevice=pnmraw
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
31488 $as_echo "$GSAlphaDevice" >&6; }
31491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
31492 $as_echo_n "checking for gs color device... " >&6; }
31493 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31496 GSColorDevice=pnmraw
31498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
31499 $as_echo "$GSColorDevice" >&6; }
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
31503 $as_echo_n "checking for gs CMYK device... " >&6; }
31504 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31507 GSCMYKDevice=bmpsep8
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
31510 $as_echo "$GSCMYKDevice" >&6; }
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
31514 $as_echo_n "checking for gs mono device... " >&6; }
31515 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31518 GSMonoDevice=$GSColorDevice
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
31521 $as_echo "$GSMonoDevice" >&6; }
31524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
31525 $as_echo_n "checking for gs PDF writing device... " >&6; }
31526 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31529 GSPDFDevice=nodevice
31531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
31532 $as_echo "$GSPDFDevice" >&6; }
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
31536 $as_echo_n "checking for gs PS writing device... " >&6; }
31537 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31540 GSPSDevice=nodevice
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
31543 $as_echo "$GSPSDevice" >&6; }
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
31547 $as_echo_n "checking for gs EPS writing device... " >&6; }
31548 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31551 GSEPSDevice=nodevice
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
31554 $as_echo "$GSEPSDevice" >&6; }
31567 # PerlMagick-related configuration
31570 # Look for PERL if PerlMagick requested
31571 # If name/path of desired PERL interpreter is specified, look for that one first
31573 if test "$with_perl" != 'no'; then
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31575 $as_echo "-------------------------------------------------------------" >&6; }
31576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
31577 $as_echo_n "checking for Perl... " >&6; }
31578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31580 if test "$with_perl" != 'yes'; then
31581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
31582 $as_echo_n "checking for perl... " >&6; }
31583 if test "${ac_cv_path_PERL+set}" = set; then :
31584 $as_echo_n "(cached) " >&6
31586 ac_cv_path_PERL="$with_perl"
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
31589 $as_echo "$ac_cv_path_PERL" >&6; };
31590 PERL=$ac_cv_path_PERL
31591 have_perl="$ac_cv_path_PERL"
31593 for ac_prog in perl perl5
31595 # Extract the first word of "$ac_prog", so it can be a program name with args.
31596 set dummy $ac_prog; ac_word=$2
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31598 $as_echo_n "checking for $ac_word... " >&6; }
31599 if test "${ac_cv_path_PERL+set}" = set; then :
31600 $as_echo_n "(cached) " >&6
31604 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31608 for as_dir in $PATH
31611 test -z "$as_dir" && as_dir=.
31612 for ac_exec_ext in '' $ac_executable_extensions; do
31613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31614 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31625 PERL=$ac_cv_path_PERL
31626 if test -n "$PERL"; then
31627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31628 $as_echo "$PERL" >&6; }
31630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31631 $as_echo "no" >&6; }
31635 test -n "$PERL" && break
31637 if test "$ac_cv_path_PERL"; then
31638 have_perl="$ac_cv_path_PERL"
31643 if test "$with_perl" != 'yes' ; then
31644 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31647 PERL_SUPPORTS_DESTDIR='no'
31649 with_perl_static='no'
31650 with_perl_dynamic='no'
31651 if test "$have_perl" != 'no'; then
31652 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31653 with_perl_static='yes'
31655 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31656 with_perl_dynamic='yes'
31658 # Is PERL's MakeMaker new enough to support DESTDIR?
31659 # Make sure we have perl
31660 if test -z "$PERL"; then
31661 # Extract the first word of "perl", so it can be a program name with args.
31662 set dummy perl; ac_word=$2
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31664 $as_echo_n "checking for $ac_word... " >&6; }
31665 if test "${ac_cv_prog_PERL+set}" = set; then :
31666 $as_echo_n "(cached) " >&6
31668 if test -n "$PERL"; then
31669 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31672 for as_dir in $PATH
31675 test -z "$as_dir" && as_dir=.
31676 for ac_exec_ext in '' $ac_executable_extensions; do
31677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31678 ac_cv_prog_PERL="perl"
31679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31688 PERL=$ac_cv_prog_PERL
31689 if test -n "$PERL"; then
31690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31691 $as_echo "$PERL" >&6; }
31693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31694 $as_echo "no" >&6; }
31700 # Check if version of Perl is sufficient
31701 ac_perl_version="5.8.1"
31703 if test "x$PERL" != "x"; then
31704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
31705 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31706 # NB: It would be nice to log the error if there is one, but we cannot rely
31707 # on autoconf internals
31708 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31709 if test $? -ne 0; then
31710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31711 $as_echo "no" >&6; };
31712 PERL_SUPPORTS_DESTDIR='no'
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31715 $as_echo "ok" >&6; };
31716 PERL_SUPPORTS_DESTDIR='yes'
31719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
31720 $as_echo "$as_me: WARNING: could not find perl" >&2;}
31724 if test "$have_perl" != 'no'; then
31726 WITH_PERL_FALSE='#'
31732 if test $with_perl_static = 'yes'; then
31733 WITH_PERL_STATIC_TRUE=
31734 WITH_PERL_STATIC_FALSE='#'
31736 WITH_PERL_STATIC_TRUE='#'
31737 WITH_PERL_STATIC_FALSE=
31740 if test $with_perl_dynamic = 'yes'; then
31741 WITH_PERL_DYNAMIC_TRUE=
31742 WITH_PERL_DYNAMIC_FALSE='#'
31744 WITH_PERL_DYNAMIC_TRUE='#'
31745 WITH_PERL_DYNAMIC_FALSE=
31750 # Determine path to pick up MagickCore library from for use with building PerlMagick
31751 MAGICKCORE_PATH="${LIB_DIR}"
31752 if test $with_perl_static = 'yes'; then
31753 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31754 libtool_objdir=$objdir
31756 # Linker search path to library, followed by -lMagickCore
31757 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31761 # Create a simple string containing format names for all delegate libraries
31763 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31764 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31765 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31766 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31767 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31768 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31769 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31770 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31771 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31772 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31773 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31774 if test "$have_jpeg" = 'yes'; then
31775 DELEGATES="$DELEGATES jpeg";
31776 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31778 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31779 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31780 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31781 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31782 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31783 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
31784 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31785 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31786 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31787 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31788 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31789 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31794 # Handle special compiler flags
31797 # Add '-p' if prof source profiling support enabled
31798 if test "$enable_prof" = 'yes'; then
31799 CFLAGS="-p $CFLAGS"
31800 CXXFLAGS="-p $CXXFLAGS"
31801 LDFLAGS="-p $LDFLAGS"
31804 # Add '-pg' if gprof source profiling support enabled
31805 if test "$enable_gprof" = 'yes'; then
31806 CFLAGS="-pg $CFLAGS"
31807 CXXFLAGS="-pg $CXXFLAGS"
31808 LDFLAGS="-pg $LDFLAGS"
31811 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31812 # This is a gcc-specific feature
31813 if test "$enable_gcov" = 'yes'; then
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
31815 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
31816 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
31817 $as_echo_n "(cached) " >&6
31819 ac_check_lib_save_LIBS=$LIBS
31820 LIBS="-lgcov $LIBS"
31821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31822 /* end confdefs.h. */
31824 /* Override any GCC internal prototype to avoid an error.
31825 Use char because int might match the return type of a GCC
31826 builtin and then its argument prototype would still apply. */
31830 char _gcov_init ();
31834 return _gcov_init ();
31839 if ac_fn_c_try_link "$LINENO"; then :
31840 ac_cv_lib_gcov__gcov_init=yes
31842 ac_cv_lib_gcov__gcov_init=no
31844 rm -f core conftest.err conftest.$ac_objext \
31845 conftest$ac_exeext conftest.$ac_ext
31846 LIBS=$ac_check_lib_save_LIBS
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
31849 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
31850 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
31851 cat >>confdefs.h <<_ACEOF
31852 #define HAVE_LIBGCOV 1
31855 LIBS="-lgcov $LIBS"
31859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
31860 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
31861 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
31862 $as_echo_n "(cached) " >&6
31864 ac_check_lib_save_LIBS=$LIBS
31865 LIBS="-lgcov $LIBS"
31866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31867 /* end confdefs.h. */
31869 /* Override any GCC internal prototype to avoid an error.
31870 Use char because int might match the return type of a GCC
31871 builtin and then its argument prototype would still apply. */
31875 char __gcov_init ();
31879 return __gcov_init ();
31884 if ac_fn_c_try_link "$LINENO"; then :
31885 ac_cv_lib_gcov___gcov_init=yes
31887 ac_cv_lib_gcov___gcov_init=no
31889 rm -f core conftest.err conftest.$ac_objext \
31890 conftest$ac_exeext conftest.$ac_ext
31891 LIBS=$ac_check_lib_save_LIBS
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
31894 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
31895 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
31896 cat >>confdefs.h <<_ACEOF
31897 #define HAVE_LIBGCOV 1
31900 LIBS="-lgcov $LIBS"
31904 case "$target_os" in
31906 OSX_GCOV_LDFLAG="-Wl,-single_module"
31913 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
31914 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
31915 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31919 # Build library dependency list for libMagickCore
31922 MAGICK_LIBLTDL='' # Libltdl for build
31923 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
31924 MAGICK_LTDLDEPS='' # extra libltdl dependencies
31925 if test "$with_ltdl" != 'no'
31927 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31928 MAGICK_API_LIBLTDL='-lltdl'
31930 MAGICK_LIBLTDL=${LIBLTDL}
31931 MAGICK_LTDLDEPS=${LTDLDEPS}
31936 if test "$with_modules" != 'no'; then
31937 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 $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
31939 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 $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"
31944 # Remove extraneous spaces from output variables (asthetic)
31946 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
31947 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
31948 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
31949 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
31951 CC=`echo $CC | sed -e 's/ */ /g'`
31952 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
31953 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
31954 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
31955 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
31956 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
31957 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
31958 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31959 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
31960 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
31962 # Pass only user-provided LIBS as "global" libraries
31965 #AC_SUBST(CPPFLAGS)
31968 #AC_SUBST(X_PRE_LIBS)
31970 #AC_SUBST(X_EXTRA_LIBS)
31972 MAGICK_CFLAGS=$CFLAGS
31973 MAGICK_CXXFLAGS="$CXXFLAGS"
31974 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
31975 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
31976 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
31977 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
31986 # Set configured scripts to executable.
31987 ac_config_commands="$ac_config_commands default"
31989 ac_config_commands="$ac_config_commands MagickCore-config.in"
31991 ac_config_commands="$ac_config_commands Magick-config.in"
31993 ac_config_commands="$ac_config_commands MagickWand-config.in"
31995 ac_config_commands="$ac_config_commands Wand-config.in"
31997 ac_config_commands="$ac_config_commands Magick++-config.in"
31999 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32003 $as_echo "-------------------------------------------------------------" >&6; }
32004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32005 $as_echo "Update ImageMagick configuration" >&6; }
32006 cat >confcache <<\_ACEOF
32007 # This file is a shell script that caches the results of configure
32008 # tests run on this system so they can be shared between configure
32009 # scripts and configure runs, see configure's option --config-cache.
32010 # It is not useful on other systems. If it contains results you don't
32011 # want to keep, you may remove or edit it.
32013 # config.status only pays attention to the cache file if you give it
32014 # the --recheck option to rerun configure.
32016 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32018 # following values.
32022 # The following way of writing the cache mishandles newlines in values,
32023 # but we know of no workaround that is simple, portable, and efficient.
32024 # So, we kill variables containing newlines.
32025 # Ultrix sh set writes to stderr and can't be redirected directly,
32026 # and sets the high bit in the cache file unless we assign to the vars.
32028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32029 eval ac_val=\$$ac_var
32033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32037 _ | IFS | as_nl) ;; #(
32038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32039 *) { eval $ac_var=; unset $ac_var;} ;;
32045 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32046 *${as_nl}ac_space=\ *)
32047 # `set' does not quote correctly, so add quotes: double-quote
32048 # substitution turns \\\\ into \\, and sed turns \\ into \.
32051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32054 # `set' quotes correctly as required by POSIX, so do not add quotes.
32055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32068 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32069 if test -w "$cache_file"; then
32070 test "x$cache_file" != "x/dev/null" &&
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32072 $as_echo "$as_me: updating cache $cache_file" >&6;}
32073 cat confcache >$cache_file
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32076 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32082 # Let make expand exec_prefix.
32083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32085 DEFS=-DHAVE_CONFIG_H
32089 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32090 # 1. Remove the extension, and $U if already installed.
32091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32094 # will be set to the directory where LIBOBJS objects are built.
32095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32098 LIBOBJS=$ac_libobjs
32100 LTLIBOBJS=$ac_ltlibobjs
32103 if test -n "$EXEEXT"; then
32105 am__EXEEXT_FALSE='#'
32107 am__EXEEXT_TRUE='#'
32111 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32112 as_fn_error "conditional \"AMDEP\" was never defined.
32113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32116 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32120 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32123 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32124 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32127 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32128 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32131 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32132 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32135 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32136 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32139 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32140 as_fn_error "conditional \"USING_CL\" was never defined.
32141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32143 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32144 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32147 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32148 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32151 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32152 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32155 LT_CONFIG_H=config/config.h
32159 if test -n "$_LT_LIBOBJS"; then
32160 # Remove the extension.
32161 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32162 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32163 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32164 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32167 ltdl_LIBOBJS=$_ltdl_libobjs
32169 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32172 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32173 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32176 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32177 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32180 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32181 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32184 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32185 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32189 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32190 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32193 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32194 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32197 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32198 as_fn_error "conditional \"HasUMEM\" was never defined.
32199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32201 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32202 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32205 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32206 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32209 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32210 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32213 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32214 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32217 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32218 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32221 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32222 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32225 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32226 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32229 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32230 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32233 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32234 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32237 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32238 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32241 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32242 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32245 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32246 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32249 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32250 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32253 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32254 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32257 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32258 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32261 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32262 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32265 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32266 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32269 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32270 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32273 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32274 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32277 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32278 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32281 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32282 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32285 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32286 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32289 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32290 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32293 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32294 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32297 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32298 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32301 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
32302 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32305 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
32306 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32309 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
32310 as_fn_error "conditional \"WITH_PERL\" was never defined.
32311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32313 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
32314 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32317 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
32318 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32322 : ${CONFIG_STATUS=./config.status}
32324 ac_clean_files_save=$ac_clean_files
32325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32327 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32329 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32331 # Generated by $as_me.
32332 # Run this file to recreate the current configuration.
32333 # Compiler output produced by configure, useful for debugging
32334 # configure, is in config.log if it exists.
32337 ac_cs_recheck=false
32340 SHELL=\${CONFIG_SHELL-$SHELL}
32343 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32344 ## -------------------- ##
32345 ## M4sh Initialization. ##
32346 ## -------------------- ##
32348 # Be more Bourne compatible
32349 DUALCASE=1; export DUALCASE # for MKS sh
32350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32354 # is contrary to our usage. Disable this feature.
32355 alias -g '${1+"$@"}'='"$@"'
32356 setopt NO_GLOB_SUBST
32358 case `(set -o) 2>/dev/null` in #(
32370 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32371 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32373 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32374 # Prefer a ksh shell builtin over an external printf program on Solaris,
32375 # but without wasting forks for bash or zsh.
32376 if test -z "$BASH_VERSION$ZSH_VERSION" \
32377 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32378 as_echo='print -r --'
32379 as_echo_n='print -rn --'
32380 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32381 as_echo='printf %s\n'
32382 as_echo_n='printf %s'
32384 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32385 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32386 as_echo_n='/usr/ucb/echo -n'
32388 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32389 as_echo_n_body='eval
32393 expr "X$arg" : "X\\(.*\\)$as_nl";
32394 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32396 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32398 export as_echo_n_body
32399 as_echo_n='sh -c $as_echo_n_body as_echo'
32401 export as_echo_body
32402 as_echo='sh -c $as_echo_body as_echo'
32405 # The user is always right.
32406 if test "${PATH_SEPARATOR+set}" != set; then
32408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32409 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32416 # We need space, tab and new line, in precisely that order. Quoting is
32417 # there to prevent editors from complaining about space-tab.
32418 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32419 # splitting by setting IFS to empty value.)
32422 # Find who we are. Look in the path if we contain no directory separator.
32424 *[\\/]* ) as_myself=$0 ;;
32425 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32426 for as_dir in $PATH
32429 test -z "$as_dir" && as_dir=.
32430 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32436 # We did not find ourselves, most probably we were run as `sh COMMAND'
32437 # in which case we are not to be found in the path.
32438 if test "x$as_myself" = x; then
32441 if test ! -f "$as_myself"; then
32442 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32446 # Unset variables that we do not need and which cause bugs (e.g. in
32447 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32448 # suppresses any "Segmentation fault" message there. '((' could
32449 # trigger a bug in pdksh 5.2.14.
32450 for as_var in BASH_ENV ENV MAIL MAILPATH
32451 do eval test x\${$as_var+set} = xset \
32452 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32465 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32468 # as_fn_error ERROR [LINENO LOG_FD]
32469 # ---------------------------------
32470 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32471 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32472 # script with status $?, using 1 if that was 0.
32475 as_status=$?; test $as_status -eq 0 && as_status=1
32477 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32478 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32480 $as_echo "$as_me: error: $1" >&2
32481 as_fn_exit $as_status
32485 # as_fn_set_status STATUS
32486 # -----------------------
32487 # Set $? to STATUS, without forking.
32488 as_fn_set_status ()
32491 } # as_fn_set_status
32493 # as_fn_exit STATUS
32494 # -----------------
32495 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32499 as_fn_set_status $1
32505 # Portably unset VAR.
32508 { eval $1=; unset $1;}
32510 as_unset=as_fn_unset
32511 # as_fn_append VAR VALUE
32512 # ----------------------
32513 # Append the text in VALUE to the end of the definition contained in VAR. Take
32514 # advantage of any shell optimizations that allow amortized linear growth over
32515 # repeated appends, instead of the typical quadratic growth present in naive
32517 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32518 eval 'as_fn_append ()
32529 # as_fn_arith ARG...
32530 # ------------------
32531 # Perform arithmetic evaluation on the ARGs, and store the result in the
32532 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32533 # must be portable across $(()) and expr.
32534 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32535 eval 'as_fn_arith ()
32542 as_val=`expr "$@" || test $? -eq 1`
32547 if expr a : '\(a\)' >/dev/null 2>&1 &&
32548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32555 as_basename=basename
32560 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32566 as_me=`$as_basename -- "$0" ||
32567 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32568 X"$0" : 'X\(//\)$' \| \
32569 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32571 sed '/^.*\/\([^/][^/]*\)\/*$/{
32585 # Avoid depending upon Character Ranges.
32586 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32587 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32588 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32589 as_cr_digits='0123456789'
32590 as_cr_alnum=$as_cr_Letters$as_cr_digits
32592 ECHO_C= ECHO_N= ECHO_T=
32593 case `echo -n x` in #(((((
32595 case `echo 'xy\c'` in
32596 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32598 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32605 rm -f conf$$ conf$$.exe conf$$.file
32606 if test -d conf$$.dir; then
32607 rm -f conf$$.dir/conf$$.file
32610 mkdir conf$$.dir 2>/dev/null
32612 if (echo >conf$$.file) 2>/dev/null; then
32613 if ln -s conf$$.file conf$$ 2>/dev/null; then
32615 # ... but there are two gotchas:
32616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32618 # In both cases, we have to default to `cp -p'.
32619 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32621 elif ln conf$$.file conf$$ 2>/dev/null; then
32629 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32630 rmdir conf$$.dir 2>/dev/null
32635 # Create "$as_dir" as a directory, including parents if necessary.
32640 -*) as_dir=./$as_dir;;
32642 test -d "$as_dir" || eval $as_mkdir_p || {
32646 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32647 *) as_qdir=$as_dir;;
32649 as_dirs="'$as_qdir' $as_dirs"
32650 as_dir=`$as_dirname -- "$as_dir" ||
32651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32652 X"$as_dir" : 'X\(//\)[^/]' \| \
32653 X"$as_dir" : 'X\(//\)$' \| \
32654 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32655 $as_echo X"$as_dir" |
32656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32660 /^X\(\/\/\)[^/].*/{
32673 test -d "$as_dir" && break
32675 test -z "$as_dirs" || eval "mkdir $as_dirs"
32676 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32680 if mkdir -p . 2>/dev/null; then
32681 as_mkdir_p='mkdir -p "$as_dir"'
32683 test -d ./-p && rmdir ./-p
32687 if test -x / >/dev/null 2>&1; then
32688 as_test_x='test -x'
32690 if ls -dL / >/dev/null 2>&1; then
32697 if test -d "$1"; then
32703 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
32704 ???[sx]*):;;*)false;;esac;fi
32708 as_executable_p=$as_test_x
32710 # Sed expression to map a string onto a valid CPP name.
32711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32713 # Sed expression to map a string onto a valid variable name.
32714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32718 ## ----------------------------------- ##
32719 ## Main body of $CONFIG_STATUS script. ##
32720 ## ----------------------------------- ##
32722 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32725 # Save the log message, to keep $0 and so on meaningful, and to
32726 # report actual input values of CONFIG_FILES etc. instead of their
32727 # values after options handling.
32729 This file was extended by ImageMagick $as_me 6.6.1, which was
32730 generated by GNU Autoconf 2.65. Invocation command line was
32732 CONFIG_FILES = $CONFIG_FILES
32733 CONFIG_HEADERS = $CONFIG_HEADERS
32734 CONFIG_LINKS = $CONFIG_LINKS
32735 CONFIG_COMMANDS = $CONFIG_COMMANDS
32738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32743 case $ac_config_files in *"
32744 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32747 case $ac_config_headers in *"
32748 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32753 # Files that config.status was made for.
32754 config_files="$ac_config_files"
32755 config_headers="$ac_config_headers"
32756 config_commands="$ac_config_commands"
32760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32762 \`$as_me' instantiates files and other configuration actions
32763 from templates according to the current configuration. Unless the files
32764 and actions are specified as TAGs, all are instantiated by default.
32766 Usage: $0 [OPTION]... [TAG]...
32768 -h, --help print this help, then exit
32769 -V, --version print version number and configuration settings, then exit
32770 --config print configuration, then exit
32771 -q, --quiet, --silent
32772 do not print progress messages
32773 -d, --debug don't remove temporary files
32774 --recheck update $as_me by reconfiguring in the same conditions
32775 --file=FILE[:TEMPLATE]
32776 instantiate the configuration file FILE
32777 --header=FILE[:TEMPLATE]
32778 instantiate the configuration header FILE
32780 Configuration files:
32783 Configuration headers:
32786 Configuration commands:
32789 Report bugs to <http://www.imagemagick.org>."
32792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32793 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32795 ImageMagick config.status 6.6.1
32796 configured by $0, generated by GNU Autoconf 2.65,
32797 with options \\"\$ac_cs_config\\"
32799 Copyright (C) 2009 Free Software Foundation, Inc.
32800 This config.status script is free software; the Free Software Foundation
32801 gives unlimited permission to copy, distribute and modify it."
32808 test -n "\$AWK" || AWK=awk
32811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32812 # The default lists apply if the user does not specify any file.
32818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32830 # Handling of the options.
32831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32834 $as_echo "$ac_cs_version"; exit ;;
32835 --config | --confi | --conf | --con | --co | --c )
32836 $as_echo "$ac_cs_config"; exit ;;
32837 --debug | --debu | --deb | --de | --d | -d )
32839 --file | --fil | --fi | --f )
32842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32844 as_fn_append CONFIG_FILES " '$ac_optarg'"
32845 ac_need_defaults=false;;
32846 --header | --heade | --head | --hea )
32849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32851 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32852 ac_need_defaults=false;;
32854 # Conflict between --help and --header
32855 as_fn_error "ambiguous option: \`$1'
32856 Try \`$0 --help' for more information.";;
32857 --help | --hel | -h )
32858 $as_echo "$ac_cs_usage"; exit ;;
32859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32860 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32863 # This is an error.
32864 -*) as_fn_error "unrecognized option: \`$1'
32865 Try \`$0 --help' for more information." ;;
32867 *) as_fn_append ac_config_targets " $1"
32868 ac_need_defaults=false ;;
32874 ac_configure_extra_args=
32876 if $ac_cs_silent; then
32878 ac_configure_extra_args="$ac_configure_extra_args --silent"
32882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32883 if \$ac_cs_recheck; then
32884 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32886 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32887 CONFIG_SHELL='$SHELL'
32888 export CONFIG_SHELL
32893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32898 ## Running $as_me. ##
32904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32912 # The HP-UX ksh and POSIX shell print the target directory to stdout
32913 # if CDPATH is set.
32914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32916 sed_quote_subst='$sed_quote_subst'
32917 double_quote_subst='$double_quote_subst'
32918 delay_variable_subst='$delay_variable_subst'
32919 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32920 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32921 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32922 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32923 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32924 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32925 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32926 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32927 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32928 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32929 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32930 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32931 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32932 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32933 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32934 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32935 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32936 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32937 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32938 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32939 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32940 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32941 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32942 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32943 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32944 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32945 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32946 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32947 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32948 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32949 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32950 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32951 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32952 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32953 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32954 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32955 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32956 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32957 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32958 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32959 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32960 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32961 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32962 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32963 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32964 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32965 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
32966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32967 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32968 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32969 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32970 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32971 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32972 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32973 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32974 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32975 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32976 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32977 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32978 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32979 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32980 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32981 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32982 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32983 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32984 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32985 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32986 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32987 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32988 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32989 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32990 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32991 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32992 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32993 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32994 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32995 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32996 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32997 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32998 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32999 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33000 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33001 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33002 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33003 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33004 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33005 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33006 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33007 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33008 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33009 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33010 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33011 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33012 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33013 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33014 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33015 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33016 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33017 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33018 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33019 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33020 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33021 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33022 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33023 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33024 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33025 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33026 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33027 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33028 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33029 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33030 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33031 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33032 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33033 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33034 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33035 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33036 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33037 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33038 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33039 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33040 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33041 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33042 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33043 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33044 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33045 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33046 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33047 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33048 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33049 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33050 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33051 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33052 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33053 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33054 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33055 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33056 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33057 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33058 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33059 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33060 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33061 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33062 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33063 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33064 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33065 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33066 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33067 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33068 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33069 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33070 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33071 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33072 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33073 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33074 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33075 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33076 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33077 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33078 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33079 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33080 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33081 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33082 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33083 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33084 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33085 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33086 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33087 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33088 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33089 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33090 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33091 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33094 LTCFLAGS='$LTCFLAGS'
33095 compiler='$compiler_DEFAULT'
33097 # Quote evaled strings.
33108 deplibs_check_method \
33117 lt_cv_sys_global_symbol_pipe \
33118 lt_cv_sys_global_symbol_to_cdecl \
33119 lt_cv_sys_global_symbol_to_c_name_address \
33120 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33123 lt_prog_compiler_no_builtin_flag \
33124 lt_prog_compiler_wl \
33125 lt_prog_compiler_pic \
33126 lt_prog_compiler_static \
33127 lt_cv_prog_compiler_c_o \
33135 export_dynamic_flag_spec \
33136 whole_archive_flag_spec \
33137 compiler_needs_object \
33139 allow_undefined_flag \
33140 no_undefined_flag \
33141 hardcode_libdir_flag_spec \
33142 hardcode_libdir_flag_spec_ld \
33143 hardcode_libdir_separator \
33148 variables_saved_for_relink \
33150 library_names_spec \
33155 compiler_lib_search_dirs \
33160 compiler_lib_search_path \
33163 lt_prog_compiler_no_builtin_flag_CXX \
33164 lt_prog_compiler_wl_CXX \
33165 lt_prog_compiler_pic_CXX \
33166 lt_prog_compiler_static_CXX \
33167 lt_cv_prog_compiler_c_o_CXX \
33168 export_dynamic_flag_spec_CXX \
33169 whole_archive_flag_spec_CXX \
33170 compiler_needs_object_CXX \
33172 allow_undefined_flag_CXX \
33173 no_undefined_flag_CXX \
33174 hardcode_libdir_flag_spec_CXX \
33175 hardcode_libdir_flag_spec_ld_CXX \
33176 hardcode_libdir_separator_CXX \
33177 fix_srcfile_path_CXX \
33178 exclude_expsyms_CXX \
33179 include_expsyms_CXX \
33180 file_list_spec_CXX \
33181 compiler_lib_search_dirs_CXX \
33182 predep_objects_CXX \
33183 postdep_objects_CXX \
33186 compiler_lib_search_path_CXX; do
33187 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33188 *[\\\\\\\`\\"\\\$]*)
33189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33197 # Double-quote double-evaled strings.
33198 for var in reload_cmds \
33199 old_postinstall_cmds \
33200 old_postuninstall_cmds \
33202 extract_expsyms_cmds \
33203 old_archive_from_new_cmds \
33204 old_archive_from_expsyms_cmds \
33206 archive_expsym_cmds \
33208 module_expsym_cmds \
33209 export_symbols_cmds \
33212 postuninstall_cmds \
33214 sys_lib_search_path_spec \
33215 sys_lib_dlsearch_path_spec \
33216 old_archive_cmds_CXX \
33217 old_archive_from_new_cmds_CXX \
33218 old_archive_from_expsyms_cmds_CXX \
33220 archive_expsym_cmds_CXX \
33222 module_expsym_cmds_CXX \
33223 export_symbols_cmds_CXX \
33224 prelink_cmds_CXX; do
33225 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33226 *[\\\\\\\`\\"\\\$]*)
33227 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33235 # Fix-up fallback echo if it was mangled by the above quoting rules.
33237 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33241 ac_aux_dir='$ac_aux_dir'
33242 xsi_shell='$xsi_shell'
33243 lt_shell_append='$lt_shell_append'
33245 # See if we are running on zsh, and set the options which allow our
33246 # commands through without removal of \ escapes INIT.
33247 if test -n "\${ZSH_VERSION+set}" ; then
33248 setopt NO_GLOB_SUBST
33254 TIMESTAMP='$TIMESTAMP'
33265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33267 # Handling of arguments.
33268 for ac_config_target in $ac_config_targets
33270 case $ac_config_target in
33271 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33272 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33273 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33274 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33275 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33276 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33277 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33278 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33279 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33280 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33281 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33282 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33283 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33284 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33285 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33286 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33287 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33288 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33289 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33290 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33292 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33293 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33294 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33295 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33296 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33297 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33298 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33299 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33300 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33301 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33302 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33303 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33304 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33305 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33306 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33307 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33308 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33309 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33310 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33311 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33312 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33313 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33314 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33315 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33316 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33317 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33318 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33319 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33320 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33322 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33327 # If the user did not use the arguments to specify the items to instantiate,
33328 # then the envvar interface is used. Set only those that are not.
33329 # We use the long form for the default assignment because of an extremely
33330 # bizarre bug on SunOS 4.1.3.
33331 if $ac_need_defaults; then
33332 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33333 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33334 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33337 # Have a temporary directory for convenience. Make it in the build tree
33338 # simply because there is no reason against having it here, and in addition,
33339 # creating and moving files from /tmp can sometimes cause problems.
33340 # Hook for its removal unless debugging.
33341 # Note that there is a small window in which the directory will not be cleaned:
33342 # after its creation but before its name has been assigned to `$tmp'.
33346 trap 'exit_status=$?
33347 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33349 trap 'as_fn_exit 1' 1 2 13 15
33351 # Create a (secure) tmp directory for tmp files.
33354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33355 test -n "$tmp" && test -d "$tmp"
33358 tmp=./conf$$-$RANDOM
33359 (umask 077 && mkdir "$tmp")
33360 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
33362 # Set up the scripts for CONFIG_FILES section.
33363 # No need to generate them if there are no CONFIG_FILES.
33364 # This happens for instance with `./config.status config.h'.
33365 if test -n "$CONFIG_FILES"; then
33368 ac_cr=`echo X | tr X '\015'`
33369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33370 # But we know of no other shell where ac_cr would be empty at this
33371 # point, so we can use a bashism as a fallback.
33372 if test "x$ac_cr" = x; then
33373 eval ac_cr=\$\'\\r\'
33375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33379 ac_cs_awk_cr=$ac_cr
33382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33387 echo "cat >conf$$subs.awk <<_ACEOF" &&
33388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33390 } >conf$$subs.sh ||
33391 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
33392 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33394 for ac_last_try in false false false false false :; do
33395 . ./conf$$subs.sh ||
33396 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
33398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33399 if test $ac_delim_n = $ac_delim_num; then
33401 elif $ac_last_try; then
33402 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
33404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33407 rm -f conf$$subs.sh
33409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33410 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33414 s/^/S["/; s/!.*/"]=/
33424 s/\(.\{148\}\)..*/\1/
33426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33438 s/\(.\{148\}\)..*/\1/
33440 s/["\\]/\\&/g; s/^/"/; s/$/"/
33444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33449 ' <conf$$subs.awk | sed '
33454 ' >>$CONFIG_STATUS || ac_write_fail=1
33455 rm -f conf$$subs.awk
33456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33458 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33459 for (key in S) S_is_set[key] = 1
33465 nfields = split(line, field, "@")
33467 len = length(field[1])
33468 for (i = 2; i < nfields; i++) {
33470 keylen = length(key)
33471 if (S_is_set[key]) {
33473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33474 len += length(value) + length(field[++i])
33485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33490 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33491 || as_fn_error "could not setup config files machinery" "$LINENO" 5
33494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33496 # trailing colons and then remove the whole line if VPATH becomes empty
33497 # (actually we leave an empty line to preserve line numbers).
33498 if test "x$srcdir" = x.; then
33499 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33500 s/:*\$(srcdir):*/:/
33501 s/:*\${srcdir}:*/:/
33503 s/^\([^=]*=[ ]*\):*/\1/
33509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33510 fi # test -n "$CONFIG_FILES"
33512 # Set up the scripts for CONFIG_HEADERS section.
33513 # No need to generate them if there are no CONFIG_HEADERS.
33514 # This happens for instance with `./config.status Makefile'.
33515 if test -n "$CONFIG_HEADERS"; then
33516 cat >"$tmp/defines.awk" <<\_ACAWK ||
33520 # Transform confdefs.h into an awk script `defines.awk', embedded as
33521 # here-document in config.status, that substitutes the proper values into
33522 # config.h.in to produce config.h.
33524 # Create a delimiter string that does not exist in confdefs.h, to ease
33525 # handling of long lines.
33527 for ac_last_try in false false :; do
33528 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33529 if test -z "$ac_t"; then
33531 elif $ac_last_try; then
33532 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
33534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33538 # For the awk script, D is an array of macro values keyed by name,
33539 # likewise P contains macro parameters if any. Preserve backslash
33540 # newline sequences.
33542 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33544 s/.\{148\}/&'"$ac_delim"'/g
33547 s/^[ ]*#[ ]*define[ ][ ]*/ /
33554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33560 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33561 D["\1"]=" \3\\\\\\n"\\/p
33563 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33568 s/.\{148\}/&'"$ac_delim"'/g
33573 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33576 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33578 ' <confdefs.h | sed '
33579 s/'"$ac_delim"'/"\\\
33580 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33583 for (key in D) D_is_set[key] = 1
33586 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33588 split(line, arg, " ")
33589 if (arg[1] == "#") {
33593 defundef = substr(arg[1], 2)
33596 split(mac1, mac2, "(") #)
33598 prefix = substr(line, 1, index(line, defundef) - 1)
33599 if (D_is_set[macro]) {
33600 # Preserve the white space surrounding the "#".
33601 print prefix "define", macro P[macro] D[macro]
33604 # Replace #undef with comments. This is necessary, for example,
33605 # in the case of _POSIX_SOURCE, which is predefined and required
33606 # on some systems where configure will not decide to define it.
33607 if (defundef == "undef") {
33608 print "/*", prefix defundef, macro, "*/"
33616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33617 as_fn_error "could not setup config headers machinery" "$LINENO" 5
33618 fi # test -n "$CONFIG_HEADERS"
33621 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
33626 :[FHLC]) ac_mode=$ac_tag; continue;;
33628 case $ac_mode$ac_tag in
33630 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
33631 :[FH]-) ac_tag=-:-;;
33632 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33649 -) ac_f="$tmp/stdin";;
33650 *) # Look for the file first in the build tree, then in the source tree
33651 # (if the path is not absolute). The absolute path cannot be DOS-style,
33652 # because $ac_f cannot contain `:'.
33656 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33658 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33660 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33661 as_fn_append ac_file_inputs " '$ac_f'"
33664 # Let's still pretend it is `configure' which instantiates (i.e., don't
33665 # use $as_me), people would be surprised to read:
33666 # /* config.h. Generated by config.status. */
33667 configure_input='Generated from '`
33668 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33670 if test x"$ac_file" != x-; then
33671 configure_input="$ac_file. $configure_input"
33672 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33673 $as_echo "$as_me: creating $ac_file" >&6;}
33675 # Neutralize special characters interpreted by sed in replacement strings.
33676 case $configure_input in #(
33677 *\&* | *\|* | *\\* )
33678 ac_sed_conf_input=`$as_echo "$configure_input" |
33679 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33680 *) ac_sed_conf_input=$configure_input;;
33684 *:-:* | *:-) cat >"$tmp/stdin" \
33685 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
33690 ac_dir=`$as_dirname -- "$ac_file" ||
33691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33692 X"$ac_file" : 'X\(//\)[^/]' \| \
33693 X"$ac_file" : 'X\(//\)$' \| \
33694 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33695 $as_echo X"$ac_file" |
33696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33700 /^X\(\/\/\)[^/].*/{
33713 as_dir="$ac_dir"; as_fn_mkdir_p
33717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33719 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33720 # A ".." for each directory in $ac_dir_suffix.
33721 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33722 case $ac_top_builddir_sub in
33723 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33724 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33727 ac_abs_top_builddir=$ac_pwd
33728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33729 # for backward compatibility:
33730 ac_top_builddir=$ac_top_build_prefix
33733 .) # We are building in place.
33735 ac_top_srcdir=$ac_top_builddir_sub
33736 ac_abs_top_srcdir=$ac_pwd ;;
33737 [\\/]* | ?:[\\/]* ) # Absolute name.
33738 ac_srcdir=$srcdir$ac_dir_suffix;
33739 ac_top_srcdir=$srcdir
33740 ac_abs_top_srcdir=$srcdir ;;
33741 *) # Relative name.
33742 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33743 ac_top_srcdir=$ac_top_build_prefix$srcdir
33744 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33756 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33757 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33759 ac_MKDIR_P=$MKDIR_P
33761 [\\/$]* | ?:[\\/]* ) ;;
33762 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33767 # If the template does not know about datarootdir, expand it.
33768 # FIXME: This hack should be removed a few years after 2.60.
33769 ac_datarootdir_hack=; ac_datarootdir_seen=
33780 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33781 *datarootdir*) ac_datarootdir_seen=yes;;
33782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33784 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33787 ac_datarootdir_hack='
33788 s&@datadir@&$datadir&g
33789 s&@docdir@&$docdir&g
33790 s&@infodir@&$infodir&g
33791 s&@localedir@&$localedir&g
33792 s&@mandir@&$mandir&g
33793 s&\\\${datarootdir}&$datarootdir&g' ;;
33797 # Neutralize VPATH when `$srcdir' = `.'.
33798 # Shell code in configure.ac might set extrasub.
33799 # FIXME: do we really want to maintain this feature?
33800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33801 ac_sed_extra="$ac_vpsub
33804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33807 s|@configure_input@|$ac_sed_conf_input|;t t
33808 s&@top_builddir@&$ac_top_builddir_sub&;t t
33809 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33810 s&@srcdir@&$ac_srcdir&;t t
33811 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33812 s&@top_srcdir@&$ac_top_srcdir&;t t
33813 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33814 s&@builddir@&$ac_builddir&;t t
33815 s&@abs_builddir@&$ac_abs_builddir&;t t
33816 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33817 s&@INSTALL@&$ac_INSTALL&;t t
33818 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33819 $ac_datarootdir_hack
33821 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33822 || as_fn_error "could not create $ac_file" "$LINENO" 5
33824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33825 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33828 which seems to be undefined. Please make sure it is defined." >&5
33829 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33830 which seems to be undefined. Please make sure it is defined." >&2;}
33834 -) cat "$tmp/out" && rm -f "$tmp/out";;
33835 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33837 || as_fn_error "could not create $ac_file" "$LINENO" 5
33843 if test x"$ac_file" != x-; then
33845 $as_echo "/* $configure_input */" \
33846 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33847 } >"$tmp/config.h" \
33848 || as_fn_error "could not create $ac_file" "$LINENO" 5
33849 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
33850 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33851 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33854 mv "$tmp/config.h" "$ac_file" \
33855 || as_fn_error "could not create $ac_file" "$LINENO" 5
33858 $as_echo "/* $configure_input */" \
33859 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
33860 || as_fn_error "could not create -" "$LINENO" 5
33862 # Compute "$ac_file"'s index in $config_headers.
33865 for _am_header in $config_headers :; do
33866 case $_am_header in
33867 $_am_arg | $_am_arg:* )
33870 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33873 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33874 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33875 X"$_am_arg" : 'X\(//\)[^/]' \| \
33876 X"$_am_arg" : 'X\(//\)$' \| \
33877 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33878 $as_echo X"$_am_arg" |
33879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33883 /^X\(\/\/\)[^/].*/{
33895 s/.*/./; q'`/stamp-h$_am_stamp_count
33898 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33899 $as_echo "$as_me: executing $ac_file commands" >&6;}
33904 case $ac_file$ac_mode in
33905 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33906 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33907 ac_prefix_conf_PKG=`echo MagickCore`
33908 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33909 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
33910 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33911 if test ".$ac_prefix_conf_INP" = "."; then
33912 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33914 *.h) ac_prefix_conf_INP=$ac_file ;;
33917 test ".$ac_prefix_conf_INP" != "." && break
33920 if test ".$ac_prefix_conf_INP" = "."; then
33921 case "$ac_prefix_conf_OUT" in
33922 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33924 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33926 *) ac_prefix_conf_INP=config.h
33930 if test -z "$ac_prefix_conf_PKG" ; then
33931 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
33933 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33934 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
33937 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33938 if test -f $ac_prefix_conf_INP ; then
33939 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33940 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33941 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33942 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33943 echo "#endif/" >>conftest.prefix
33944 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33945 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33946 echo "#endif/" >> conftest.prefix
33947 # now executing _script on _DEF input to create _OUT output file
33948 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
33949 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33950 echo ' ' >>$tmp/pconfig.h
33951 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
33953 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
33954 echo ' ' >>$tmp/pconfig.h
33955 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
33956 echo "#endif" >>$tmp/pconfig.h
33957 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
33959 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
33961 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
33962 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33963 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
33964 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
33965 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
33966 $as_echo X"$ac_prefix_conf_OUT" |
33967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33971 /^X\(\/\/\)[^/].*/{
33984 as_dir="$ac_dir"; as_fn_mkdir_p
33985 rm -f "$ac_prefix_conf_OUT"
33986 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
33988 cp conftest.prefix _configs.sed
33990 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
33995 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33996 # Autoconf 2.62 quotes --file arguments for eval, but not when files
33997 # are listed without --file. Let's play safe and only enable the eval
33998 # if we detect the quoting.
33999 case $CONFIG_FILES in
34000 *\'*) eval set x "$CONFIG_FILES" ;;
34001 *) set x $CONFIG_FILES ;;
34006 # Strip MF so we end up with the name of the file.
34007 mf=`echo "$mf" | sed -e 's/:.*$//'`
34008 # Check whether this is an Automake generated Makefile or not.
34009 # We used to match only the files named `Makefile.in', but
34010 # some people rename them; so instead we look at the file content.
34011 # Grep'ing the first line is not enough: some people post-process
34012 # each Makefile.in and add a new line on top of each file to say so.
34013 # Grep'ing the whole file is not good either: AIX grep has a line
34014 # limit of 2048, but all sed's we know have understand at least 4000.
34015 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34016 dirpart=`$as_dirname -- "$mf" ||
34017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34018 X"$mf" : 'X\(//\)[^/]' \| \
34019 X"$mf" : 'X\(//\)$' \| \
34020 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34026 /^X\(\/\/\)[^/].*/{
34042 # Extract the definition of DEPDIR, am__include, and am__quote
34043 # from the Makefile without running `make'.
34044 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34045 test -z "$DEPDIR" && continue
34046 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34047 test -z "am__include" && continue
34048 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34049 # When using ansi2knr, U may be empty or an underscore; expand it
34050 U=`sed -n 's/^U = //p' < "$mf"`
34051 # Find all dependency output files, they are included files with
34052 # $(DEPDIR) in their names. We invoke sed twice because it is the
34053 # simplest approach to changing $(DEPDIR) to its actual value in the
34055 for file in `sed -n "
34056 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34057 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34058 # Make sure the directory exists.
34059 test -f "$dirpart/$file" && continue
34060 fdir=`$as_dirname -- "$file" ||
34061 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34062 X"$file" : 'X\(//\)[^/]' \| \
34063 X"$file" : 'X\(//\)$' \| \
34064 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34065 $as_echo X"$file" |
34066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34070 /^X\(\/\/\)[^/].*/{
34083 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34084 # echo "creating $dirpart/$file"
34085 echo '# dummy' > "$dirpart/$file"
34092 # See if we are running on zsh, and set the options which allow our
34093 # commands through without removal of \ escapes.
34094 if test -n "${ZSH_VERSION+set}" ; then
34095 setopt NO_GLOB_SUBST
34098 cfgfile="${ofile}T"
34099 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34102 cat <<_LT_EOF >> "$cfgfile"
34105 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34106 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34108 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34110 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34111 # 2006, 2007, 2008 Free Software Foundation, Inc.
34112 # Written by Gordon Matzigkeit, 1996
34114 # This file is part of GNU Libtool.
34116 # GNU Libtool is free software; you can redistribute it and/or
34117 # modify it under the terms of the GNU General Public License as
34118 # published by the Free Software Foundation; either version 2 of
34119 # the License, or (at your option) any later version.
34121 # As a special exception to the GNU General Public License,
34122 # if you distribute this file as part of a program or library that
34123 # is built using GNU Libtool, you may include this file under the
34124 # same distribution terms that you use for the rest of that program.
34126 # GNU Libtool is distributed in the hope that it will be useful,
34127 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34128 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34129 # GNU General Public License for more details.
34131 # You should have received a copy of the GNU General Public License
34132 # along with GNU Libtool; see the file COPYING. If not, a copy
34133 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34134 # obtained by writing to the Free Software Foundation, Inc.,
34135 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34138 # The names of the tagged configurations supported by this script.
34139 available_tags="CXX "
34141 # ### BEGIN LIBTOOL CONFIG
34143 # A sed program that does not truncate output.
34146 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34147 Xsed="\$SED -e 1s/^X//"
34149 # A grep program that handles long lines.
34155 # A literal string matcher.
34158 # Which release of libtool.m4 was used?
34159 macro_version=$macro_version
34160 macro_revision=$macro_revision
34162 # Assembler program.
34165 # DLL creation program.
34168 # Object dumper program.
34171 # Whether or not to build shared libraries.
34172 build_libtool_libs=$enable_shared
34174 # Whether or not to build static libraries.
34175 build_old_libs=$enable_static
34177 # What type of objects to build.
34180 # Whether or not to optimize for fast installation.
34181 fast_install=$enable_fast_install
34184 host_alias=$host_alias
34188 # The build system.
34189 build_alias=$build_alias
34193 # A BSD- or MS-compatible name lister.
34196 # Whether we need soft or hard links.
34199 # What is the maximum length of a command?
34200 max_cmd_len=$max_cmd_len
34202 # Object file suffix (normally "o").
34205 # Executable file suffix (normally "").
34208 # whether the shell understands "unset".
34211 # turn spaces into newlines.
34214 # turn newlines into spaces.
34217 # How to create reloadable object files.
34218 reload_flag=$lt_reload_flag
34219 reload_cmds=$lt_reload_cmds
34221 # Method to check whether dependent libraries are shared objects.
34222 deplibs_check_method=$lt_deplibs_check_method
34224 # Command to use when deplibs_check_method == "file_magic".
34225 file_magic_cmd=$lt_file_magic_cmd
34229 AR_FLAGS=$lt_AR_FLAGS
34231 # A symbol stripping program.
34234 # Commands used to install an old-style archive.
34236 old_postinstall_cmds=$lt_old_postinstall_cmds
34237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34242 # LTCC compiler flags.
34243 LTCFLAGS=$lt_CFLAGS
34245 # Take the output of nm and produce a listing of raw symbols and C names.
34246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34248 # Transform the output of nm in a proper C declaration.
34249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34251 # Transform the output of nm in a C name address pair.
34252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34254 # Transform the output of nm in a C name address pair when lib prefix is needed.
34255 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34257 # The name of the directory that contains temporary libtool files.
34260 # Shell to use when invoking shell scripts.
34263 # An echo program that does not interpret backslashes.
34266 # Used to examine libraries when file_magic_cmd begins with "file".
34267 MAGIC_CMD=$MAGIC_CMD
34269 # Must we lock files when doing compilation?
34270 need_locks=$lt_need_locks
34272 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34273 DSYMUTIL=$lt_DSYMUTIL
34275 # Tool to change global to local symbols on Mac OS X.
34278 # Tool to manipulate fat objects and archives on Mac OS X.
34281 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34284 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34285 OTOOL64=$lt_OTOOL64
34287 # Old archive suffix (normally "a").
34290 # Shared library suffix (normally ".so").
34291 shrext_cmds=$lt_shrext_cmds
34293 # The commands to extract the exported symbol list from a shared archive.
34294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34296 # Variables whose values should be saved in libtool wrapper scripts and
34297 # restored at link time.
34298 variables_saved_for_relink=$lt_variables_saved_for_relink
34300 # Do we need the "lib" prefix for modules?
34301 need_lib_prefix=$need_lib_prefix
34303 # Do we need a version for libraries?
34304 need_version=$need_version
34306 # Library versioning type.
34307 version_type=$version_type
34309 # Shared library runtime path variable.
34310 runpath_var=$runpath_var
34312 # Shared library path variable.
34313 shlibpath_var=$shlibpath_var
34315 # Is shlibpath searched before the hard-coded library search path?
34316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34318 # Format of library name prefix.
34319 libname_spec=$lt_libname_spec
34321 # List of archive names. First name is the real one, the rest are links.
34322 # The last name is the one that the linker finds with -lNAME
34323 library_names_spec=$lt_library_names_spec
34325 # The coded name of the library, if different from the real name.
34326 soname_spec=$lt_soname_spec
34328 # Command to use after installation of a shared archive.
34329 postinstall_cmds=$lt_postinstall_cmds
34331 # Command to use after uninstallation of a shared archive.
34332 postuninstall_cmds=$lt_postuninstall_cmds
34334 # Commands used to finish a libtool library installation in a directory.
34335 finish_cmds=$lt_finish_cmds
34337 # As "finish_cmds", except a single script fragment to be evaled but
34339 finish_eval=$lt_finish_eval
34341 # Whether we should hardcode library paths into libraries.
34342 hardcode_into_libs=$hardcode_into_libs
34344 # Compile-time system search path for libraries.
34345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34347 # Run-time system search path for libraries.
34348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34350 # Whether dlopen is supported.
34351 dlopen_support=$enable_dlopen
34353 # Whether dlopen of programs is supported.
34354 dlopen_self=$enable_dlopen_self
34356 # Whether dlopen of statically linked programs is supported.
34357 dlopen_self_static=$enable_dlopen_self_static
34359 # Commands to strip libraries.
34360 old_striplib=$lt_old_striplib
34361 striplib=$lt_striplib
34364 # The linker used to build libraries.
34367 # Commands used to build an old-style archive.
34368 old_archive_cmds=$lt_old_archive_cmds
34370 # A language specific compiler.
34373 # Is the compiler the GNU compiler?
34376 # Compiler flag to turn off builtin functions.
34377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34379 # How to pass a linker flag through the compiler.
34380 wl=$lt_lt_prog_compiler_wl
34382 # Additional compiler flags for building library objects.
34383 pic_flag=$lt_lt_prog_compiler_pic
34385 # Compiler flag to prevent dynamic linking.
34386 link_static_flag=$lt_lt_prog_compiler_static
34388 # Does compiler simultaneously support -c and -o options?
34389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34391 # Whether or not to add -lc for building shared libraries.
34392 build_libtool_need_lc=$archive_cmds_need_lc
34394 # Whether or not to disallow shared libs when runtime libs are static.
34395 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34397 # Compiler flag to allow reflexive dlopens.
34398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34400 # Compiler flag to generate shared objects directly from archives.
34401 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34403 # Whether the compiler copes with passing no objects directly.
34404 compiler_needs_object=$lt_compiler_needs_object
34406 # Create an old-style archive from a shared archive.
34407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34409 # Create a temporary old-style archive to link instead of a shared archive.
34410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34412 # Commands used to build a shared archive.
34413 archive_cmds=$lt_archive_cmds
34414 archive_expsym_cmds=$lt_archive_expsym_cmds
34416 # Commands used to build a loadable module if different from building
34417 # a shared archive.
34418 module_cmds=$lt_module_cmds
34419 module_expsym_cmds=$lt_module_expsym_cmds
34421 # Whether we are building with GNU ld or not.
34422 with_gnu_ld=$lt_with_gnu_ld
34424 # Flag that allows shared libraries with undefined symbols to be built.
34425 allow_undefined_flag=$lt_allow_undefined_flag
34427 # Flag that enforces no undefined symbols.
34428 no_undefined_flag=$lt_no_undefined_flag
34430 # Flag to hardcode \$libdir into a binary during linking.
34431 # This must work even if \$libdir does not exist
34432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34434 # If ld is used when linking, flag to hardcode \$libdir into a binary
34435 # during linking. This must work even if \$libdir does not exist.
34436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34438 # Whether we need a single "-rpath" flag with a separated argument.
34439 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34441 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34442 # DIR into the resulting binary.
34443 hardcode_direct=$hardcode_direct
34445 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34446 # DIR into the resulting binary and the resulting library dependency is
34447 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34448 # library is relocated.
34449 hardcode_direct_absolute=$hardcode_direct_absolute
34451 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34452 # into the resulting binary.
34453 hardcode_minus_L=$hardcode_minus_L
34455 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34456 # into the resulting binary.
34457 hardcode_shlibpath_var=$hardcode_shlibpath_var
34459 # Set to "yes" if building a shared library automatically hardcodes DIR
34460 # into the library and all subsequent libraries and executables linked
34462 hardcode_automatic=$hardcode_automatic
34464 # Set to yes if linker adds runtime paths of dependent libraries
34465 # to runtime path list.
34466 inherit_rpath=$inherit_rpath
34468 # Whether libtool must link a program against all its dependency libraries.
34469 link_all_deplibs=$link_all_deplibs
34471 # Fix the shell variable \$srcfile for the compiler.
34472 fix_srcfile_path=$lt_fix_srcfile_path
34474 # Set to "yes" if exported symbols are required.
34475 always_export_symbols=$always_export_symbols
34477 # The commands to list exported symbols.
34478 export_symbols_cmds=$lt_export_symbols_cmds
34480 # Symbols that should not be listed in the preloaded symbols.
34481 exclude_expsyms=$lt_exclude_expsyms
34483 # Symbols that must always be exported.
34484 include_expsyms=$lt_include_expsyms
34486 # Commands necessary for linking programs (against libraries) with templates.
34487 prelink_cmds=$lt_prelink_cmds
34489 # Specify filename containing input files.
34490 file_list_spec=$lt_file_list_spec
34492 # How to hardcode a shared library path into an executable.
34493 hardcode_action=$hardcode_action
34495 # The directories searched by this compiler when creating a shared library.
34496 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34498 # Dependencies to place before and after the objects being linked to
34499 # create a shared library.
34500 predep_objects=$lt_predep_objects
34501 postdep_objects=$lt_postdep_objects
34502 predeps=$lt_predeps
34503 postdeps=$lt_postdeps
34505 # The library search path used internally by the compiler when linking
34506 # a shared library.
34507 compiler_lib_search_path=$lt_compiler_lib_search_path
34509 # ### END LIBTOOL CONFIG
34515 cat <<\_LT_EOF >> "$cfgfile"
34516 # AIX sometimes has problems with the GCC collect2 program. For some
34517 # reason, if we set the COLLECT_NAMES environment variable, the problems
34518 # vanish in a puff of smoke.
34519 if test "X${COLLECT_NAMES+set}" != Xset; then
34521 export COLLECT_NAMES
34528 ltmain="$ac_aux_dir/ltmain.sh"
34531 # We use sed instead of cat because bash on DJGPP gets confused if
34532 # if finds mixed CR/LF and LF-only lines. Since sed operates in
34533 # text mode, it properly converts lines to CR/LF. This bash problem
34534 # is reportedly fixed, but why not run on old versions too?
34535 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34536 || (rm -f "$cfgfile"; exit 1)
34540 cat << \_LT_EOF >> "$cfgfile"
34542 # func_dirname file append nondir_replacement
34543 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
34544 # otherwise set result to NONDIR_REPLACEMENT.
34548 */*) func_dirname_result="${1%/*}${2}" ;;
34549 * ) func_dirname_result="${3}" ;;
34553 # func_basename file
34556 func_basename_result="${1##*/}"
34559 # func_dirname_and_basename file append nondir_replacement
34560 # perform func_basename and func_dirname in a single function
34562 # dirname: Compute the dirname of FILE. If nonempty,
34563 # add APPEND to the result, otherwise set result
34564 # to NONDIR_REPLACEMENT.
34565 # value returned in "$func_dirname_result"
34566 # basename: Compute filename of FILE.
34567 # value retuned in "$func_basename_result"
34568 # Implementation must be kept synchronized with func_dirname
34569 # and func_basename. For efficiency, we do not delegate to
34570 # those functions but instead duplicate the functionality here.
34571 func_dirname_and_basename ()
34574 */*) func_dirname_result="${1%/*}${2}" ;;
34575 * ) func_dirname_result="${3}" ;;
34577 func_basename_result="${1##*/}"
34580 # func_stripname prefix suffix name
34581 # strip PREFIX and SUFFIX off of NAME.
34582 # PREFIX and SUFFIX must not contain globbing or regex special
34583 # characters, hashes, percent signs, but SUFFIX may contain a leading
34584 # dot (in which case that matches only a dot).
34587 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34588 # positional parameters, so assign one to ordinary parameter first.
34589 func_stripname_result=${3}
34590 func_stripname_result=${func_stripname_result#"${1}"}
34591 func_stripname_result=${func_stripname_result%"${2}"}
34597 func_opt_split_opt=${1%%=*}
34598 func_opt_split_arg=${1#*=}
34605 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34606 *) func_lo2o_result=${1} ;;
34610 # func_xform libobj-or-source
34613 func_xform_result=${1%.*}.lo
34616 # func_arith arithmetic-term...
34619 func_arith_result=$(( $* ))
34623 # STRING may not start with a hyphen.
34626 func_len_result=${#1}
34631 *) # Bourne compatible functions.
34632 cat << \_LT_EOF >> "$cfgfile"
34634 # func_dirname file append nondir_replacement
34635 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
34636 # otherwise set result to NONDIR_REPLACEMENT.
34639 # Extract subdirectory from the argument.
34640 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
34641 if test "X$func_dirname_result" = "X${1}"; then
34642 func_dirname_result="${3}"
34644 func_dirname_result="$func_dirname_result${2}"
34648 # func_basename file
34651 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
34655 # func_stripname prefix suffix name
34656 # strip PREFIX and SUFFIX off of NAME.
34657 # PREFIX and SUFFIX must not contain globbing or regex special
34658 # characters, hashes, percent signs, but SUFFIX may contain a leading
34659 # dot (in which case that matches only a dot).
34660 # func_strip_suffix prefix name
34664 .*) func_stripname_result=`$ECHO "X${3}" \
34665 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34666 *) func_stripname_result=`$ECHO "X${3}" \
34667 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
34672 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34673 my_sed_long_arg='1s/^-[^=]*=//'
34678 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34679 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
34685 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
34688 # func_xform libobj-or-source
34691 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
34694 # func_arith arithmetic-term...
34697 func_arith_result=`expr "$@"`
34701 # STRING may not start with a hyphen.
34704 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34710 case $lt_shell_append in
34712 cat << \_LT_EOF >> "$cfgfile"
34714 # func_append var value
34715 # Append VALUE to the end of shell variable VAR.
34723 cat << \_LT_EOF >> "$cfgfile"
34725 # func_append var value
34726 # Append VALUE to the end of shell variable VAR.
34737 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34738 || (rm -f "$cfgfile"; exit 1)
34740 mv -f "$cfgfile" "$ofile" ||
34741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34745 cat <<_LT_EOF >> "$ofile"
34747 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34749 # The linker used to build libraries.
34752 # Commands used to build an old-style archive.
34753 old_archive_cmds=$lt_old_archive_cmds_CXX
34755 # A language specific compiler.
34756 CC=$lt_compiler_CXX
34758 # Is the compiler the GNU compiler?
34761 # Compiler flag to turn off builtin functions.
34762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34764 # How to pass a linker flag through the compiler.
34765 wl=$lt_lt_prog_compiler_wl_CXX
34767 # Additional compiler flags for building library objects.
34768 pic_flag=$lt_lt_prog_compiler_pic_CXX
34770 # Compiler flag to prevent dynamic linking.
34771 link_static_flag=$lt_lt_prog_compiler_static_CXX
34773 # Does compiler simultaneously support -c and -o options?
34774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34776 # Whether or not to add -lc for building shared libraries.
34777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34779 # Whether or not to disallow shared libs when runtime libs are static.
34780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34782 # Compiler flag to allow reflexive dlopens.
34783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34785 # Compiler flag to generate shared objects directly from archives.
34786 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34788 # Whether the compiler copes with passing no objects directly.
34789 compiler_needs_object=$lt_compiler_needs_object_CXX
34791 # Create an old-style archive from a shared archive.
34792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34794 # Create a temporary old-style archive to link instead of a shared archive.
34795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34797 # Commands used to build a shared archive.
34798 archive_cmds=$lt_archive_cmds_CXX
34799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34801 # Commands used to build a loadable module if different from building
34802 # a shared archive.
34803 module_cmds=$lt_module_cmds_CXX
34804 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34806 # Whether we are building with GNU ld or not.
34807 with_gnu_ld=$lt_with_gnu_ld_CXX
34809 # Flag that allows shared libraries with undefined symbols to be built.
34810 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34812 # Flag that enforces no undefined symbols.
34813 no_undefined_flag=$lt_no_undefined_flag_CXX
34815 # Flag to hardcode \$libdir into a binary during linking.
34816 # This must work even if \$libdir does not exist
34817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34819 # If ld is used when linking, flag to hardcode \$libdir into a binary
34820 # during linking. This must work even if \$libdir does not exist.
34821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34823 # Whether we need a single "-rpath" flag with a separated argument.
34824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34827 # DIR into the resulting binary.
34828 hardcode_direct=$hardcode_direct_CXX
34830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34831 # DIR into the resulting binary and the resulting library dependency is
34832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34833 # library is relocated.
34834 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34837 # into the resulting binary.
34838 hardcode_minus_L=$hardcode_minus_L_CXX
34840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34841 # into the resulting binary.
34842 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34844 # Set to "yes" if building a shared library automatically hardcodes DIR
34845 # into the library and all subsequent libraries and executables linked
34847 hardcode_automatic=$hardcode_automatic_CXX
34849 # Set to yes if linker adds runtime paths of dependent libraries
34850 # to runtime path list.
34851 inherit_rpath=$inherit_rpath_CXX
34853 # Whether libtool must link a program against all its dependency libraries.
34854 link_all_deplibs=$link_all_deplibs_CXX
34856 # Fix the shell variable \$srcfile for the compiler.
34857 fix_srcfile_path=$lt_fix_srcfile_path_CXX
34859 # Set to "yes" if exported symbols are required.
34860 always_export_symbols=$always_export_symbols_CXX
34862 # The commands to list exported symbols.
34863 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34865 # Symbols that should not be listed in the preloaded symbols.
34866 exclude_expsyms=$lt_exclude_expsyms_CXX
34868 # Symbols that must always be exported.
34869 include_expsyms=$lt_include_expsyms_CXX
34871 # Commands necessary for linking programs (against libraries) with templates.
34872 prelink_cmds=$lt_prelink_cmds_CXX
34874 # Specify filename containing input files.
34875 file_list_spec=$lt_file_list_spec_CXX
34877 # How to hardcode a shared library path into an executable.
34878 hardcode_action=$hardcode_action_CXX
34880 # The directories searched by this compiler when creating a shared library.
34881 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34883 # Dependencies to place before and after the objects being linked to
34884 # create a shared library.
34885 predep_objects=$lt_predep_objects_CXX
34886 postdep_objects=$lt_postdep_objects_CXX
34887 predeps=$lt_predeps_CXX
34888 postdeps=$lt_postdeps_CXX
34890 # The library search path used internally by the compiler when linking
34891 # a shared library.
34892 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34894 # ### END LIBTOOL TAG CONFIG: CXX
34898 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34899 "Magick-config.in":C) chmod +x magick/Magick-config ;;
34900 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34901 "Wand-config.in":C) chmod +x wand/Wand-config ;;
34902 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34903 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34911 ac_clean_files=$ac_clean_files_save
34913 test $ac_write_fail = 0 ||
34914 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
34917 # configure is writing to config.log, and then calls config.status.
34918 # config.status does its own redirection, appending to config.log.
34919 # Unfortunately, on DOS this fails, as config.log is still kept open
34920 # by configure, so config.status won't be able to write to it; its
34921 # output is simply discarded. So we exec the FD to /dev/null,
34922 # effectively closing config.log, so it can be properly (re)opened and
34923 # appended to by config.status. When coming back to configure, we
34924 # need to make the FD available again.
34925 if test "$no_create" != yes; then
34927 ac_config_status_args=
34928 test "$silent" = yes &&
34929 ac_config_status_args="$ac_config_status_args --quiet"
34931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34934 # would make configure fail if this is the last instruction.
34935 $ac_cs_success || as_fn_exit $?
34937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34943 rm -f magick-version
34945 result_dejavu_font_dir='none'
34946 if test "${dejavu_font_dir}x" != 'x'; then
34947 result_dejavu_font_dir=$dejavu_font_dir
34950 result_ghostscript_font_dir='none'
34951 if test "${ghostscript_font_dir}x" != 'x'; then
34952 result_ghostscript_font_dir=$ghostscript_font_dir
34955 result_windows_font_dir='none'
34956 if test "${windows_font_dir}x" != 'x'; then
34957 result_windows_font_dir=${windows_font_dir}
34960 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
34961 ImageMagick is configured as follows. Please verify that this configuration
34962 matches your expectations.
34964 Host system type: $host
34965 Build system type: $build
34968 -------------------------------------------------------------------------------
34969 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34970 Static libraries --enable-static=$enable_static $libtool_build_static_libs
34971 Module support --with-modules=$with_modules $with_modules
34972 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34973 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34974 High Dynamic Range Imagery
34975 --enable-hdri=$enable_hdri $enable_hdri
34977 Delegate Configuration:
34978 BZLIB --with-bzlib=$with_bzlib $have_bzlib
34979 Autotrace --with-autotrace=$with_autotrace $have_autotrace
34980 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
34981 DJVU --with-djvu=$with_djvu $have_djvu
34982 DPS --with-dps=$with_dps $have_dps
34983 FFTW --with-fftw=$with_fftw $have_fftw
34984 FlashPIX --with-fpx=$with_fpx $have_fpx
34985 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34986 FreeType --with-freetype=$with_freetype $have_freetype
34987 GhostPCL None $PCLDelegate ($PCLVersion)
34988 GhostXPS None $XPSDelegate ($XPSVersion)
34989 Ghostscript None $PSDelegate ($GSVersion)
34990 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34991 Ghostscript lib --with-gslib=$with_gslib $have_gslib
34992 Graphviz --with-gvc=$with_gvc $have_gvc
34993 JBIG --with-jbig=$with_jbig $have_jbig
34994 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34995 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34996 LCMS --with-lcms=$with_lcms $have_lcms
34997 LQR --with-lqr=$with_lqr $have_lqr
34998 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34999 OpenEXR --with-openexr=$with_openexr $have_openexr
35000 PERL --with-perl=$with_perl $have_perl
35001 PNG --with-png=$with_png $have_png
35002 RSVG --with-rsvg=$with_rsvg $have_rsvg
35003 TIFF --with-tiff=$with_tiff $have_tiff
35004 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35005 WMF --with-wmf=$with_wmf $have_wmf
35006 X11 --with-x=$with_x $have_x
35007 XML --with-xml=$with_xml $have_xml
35008 ZLIB --with-zlib=$with_zlib $have_zlib
35011 X_CFLAGS = $X_CFLAGS
35012 X_PRE_LIBS = $X_PRE_LIBS
35014 X_EXTRA_LIBS = $X_EXTRA_LIBS
35016 Options used to compile and link:
35017 PREFIX = $PREFIX_DIR
35018 EXEC-PREFIX = $EXEC_PREFIX_DIR
35019 VERSION = $PACKAGE_VERSION
35022 CPPFLAGS = $MAGICK_CPPFLAGS
35023 PCFLAGS = $MAGICK_PCFLAGS
35026 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35027 LIBS = $MAGICK_LIBS
35029 CXXFLAGS = $CXXFLAGS
35032 ImageMagick is configured as follows. Please verify that this configuration
35033 matches your expectations.
35035 Host system type: $host
35036 Build system type: $build
35039 -------------------------------------------------------------------------------
35040 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35041 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35042 Module support --with-modules=$with_modules $with_modules
35043 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35044 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35045 High Dynamic Range Imagery
35046 --enable-hdri=$enable_hdri $enable_hdri
35048 Delegate Configuration:
35049 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35050 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35051 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35052 DJVU --with-djvu=$with_djvu $have_djvu
35053 DPS --with-dps=$with_dps $have_dps
35054 FFTW --with-fftw=$with_fftw $have_fftw
35055 FlashPIX --with-fpx=$with_fpx $have_fpx
35056 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35057 FreeType --with-freetype=$with_freetype $have_freetype
35058 GhostPCL None $PCLDelegate ($PCLVersion)
35059 GhostXPS None $XPSDelegate ($XPSVersion)
35060 Ghostscript None $PSDelegate ($GSVersion)
35061 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35062 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35063 Graphviz --with-gvc=$with_gvc $have_gvc
35064 JBIG --with-jbig=$with_jbig $have_jbig
35065 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35066 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35067 LCMS --with-lcms=$with_lcms $have_lcms
35068 LQR --with-lqr=$with_lqr $have_lqr
35069 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35070 OpenEXR --with-openexr=$with_openexr $have_openexr
35071 PERL --with-perl=$with_perl $have_perl
35072 PNG --with-png=$with_png $have_png
35073 RSVG --with-rsvg=$with_rsvg $have_rsvg
35074 TIFF --with-tiff=$with_tiff $have_tiff
35075 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35076 WMF --with-wmf=$with_wmf $have_wmf
35077 X11 --with-x=$with_x $have_x
35078 XML --with-xml=$with_xml $have_xml
35079 ZLIB --with-zlib=$with_zlib $have_zlib
35082 X_CFLAGS = $X_CFLAGS
35083 X_PRE_LIBS = $X_PRE_LIBS
35085 X_EXTRA_LIBS = $X_EXTRA_LIBS
35087 Options used to compile and link:
35088 PREFIX = $PREFIX_DIR
35089 EXEC-PREFIX = $EXEC_PREFIX_DIR
35090 VERSION = $PACKAGE_VERSION
35093 CPPFLAGS = $MAGICK_CPPFLAGS
35094 PCFLAGS = $MAGICK_PCFLAGS
35097 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35098 LIBS = $MAGICK_LIBS
35100 CXXFLAGS = $CXXFLAGS