2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.5.8.
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.5.8'
709 PACKAGE_STRING='ImageMagick 6.5.8'
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
834 GnuplotDecodeDelegate
848 BlenderDecodeDelegate
850 AutotraceDecodeDelegate
882 OPENEXR_DELEGATE_FALSE
883 OPENEXR_DELEGATE_TRUE
910 FREETYPE_DELEGATE_FALSE
911 FREETYPE_DELEGATE_TRUE
913 FONTCONFIG_DELEGATE_FALSE
914 FONTCONFIG_DELEGATE_TRUE
929 AUTOTRACE_DELEGATE_FALSE
930 AUTOTRACE_DELEGATE_TRUE
956 WITH_MAGICK_PLUS_PLUS_FALSE
957 WITH_MAGICK_PLUS_PLUS_TRUE
971 LIBRARY_EXTRA_CPPFLAGS
972 MODULE_EXTRA_CPPFLAGS
977 MAINTAINER_MODE_FALSE
988 CONVENIENCE_LTDL_FALSE
989 CONVENIENCE_LTDL_TRUE
993 sys_symbol_underscore
1033 WIN32_NATIVE_BUILD_FALSE
1034 WIN32_NATIVE_BUILD_TRUE
1035 WINGDI32_DELEGATE_FALSE
1036 WINGDI32_DELEGATE_TRUE
1047 am__fastdepCXX_FALSE
1070 MAGICK_FILTER_MODULE_PATH
1071 MAGICK_CONFIGURE_BUILD_PATH
1072 MAGICK_CONFIGURE_SRC_PATH
1073 MAGICK_CODER_MODULE_PATH
1088 CONFIG_STATUS_DEPENDENCIES
1089 MAGICK_LIB_VERSION_NUMBER
1090 MAGICK_LIB_VERSION_TEXT
1093 AM_DEFAULT_VERBOSITY
1102 INSTALL_STRIP_PROGRAM
1117 PACKAGE_LIB_SUBVERSION
1118 PACKAGE_RELEASE_DATE
1119 PACKAGE_LIB_VERSION_NUMBER
1124 MAGICK_LIBRARY_REVISION
1125 MAGICK_LIBRARY_CURRENT
1139 DISTCHECK_CONFIG_FLAGS
1167 program_transform_name
1180 enable_option_checking
1182 enable_dependency_tracking
1184 with_maximum_compile_warnings
1186 enable_bounds_checking
1187 enable_osx_universal_binary
1201 enable_delegate_build
1208 enable_maintainer_mode
1218 with_magick_plus_plus
1246 with_windows_font_dir
1250 ac_precious_vars='build_alias
1281 # Initialize some variables set by options.
1283 ac_init_version=false
1284 ac_unrecognized_opts=
1285 ac_unrecognized_sep=
1286 # The variables have the same names as the options, with
1287 # dashes changed to underlines.
1288 cache_file=/dev/null
1295 program_transform_name=s,x,x,
1303 # Installation directory options.
1304 # These are left unexpanded so users can "make install exec_prefix=/foo"
1305 # and all the variables that are supposed to be based on exec_prefix
1306 # by default will actually change.
1307 # Use braces instead of parens because sh, perl, etc. also accept them.
1308 # (The list follows the same order as the GNU Coding Standards.)
1309 bindir='${exec_prefix}/bin'
1310 sbindir='${exec_prefix}/sbin'
1311 libexecdir='${exec_prefix}/libexec'
1312 datarootdir='${prefix}/share'
1313 datadir='${datarootdir}'
1314 sysconfdir='${prefix}/etc'
1315 sharedstatedir='${prefix}/com'
1316 localstatedir='${prefix}/var'
1317 includedir='${prefix}/include'
1318 oldincludedir='/usr/include'
1319 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1320 infodir='${datarootdir}/info'
1325 libdir='${exec_prefix}/lib'
1326 localedir='${datarootdir}/locale'
1327 mandir='${datarootdir}/man'
1333 # If the previous option needs an argument, assign it.
1334 if test -n "$ac_prev"; then
1335 eval $ac_prev=\$ac_option
1341 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1345 # Accept the important Cygnus configure options, so we can diagnose typos.
1347 case $ac_dashdash$ac_option in
1351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1354 bindir=$ac_optarg ;;
1356 -build | --build | --buil | --bui | --bu)
1357 ac_prev=build_alias ;;
1358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1359 build_alias=$ac_optarg ;;
1361 -cache-file | --cache-file | --cache-fil | --cache-fi \
1362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1363 ac_prev=cache_file ;;
1364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1366 cache_file=$ac_optarg ;;
1368 --config-cache | -C)
1369 cache_file=config.cache ;;
1371 -datadir | --datadir | --datadi | --datad)
1373 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1374 datadir=$ac_optarg ;;
1376 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1377 | --dataroo | --dataro | --datar)
1378 ac_prev=datarootdir ;;
1379 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1380 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1381 datarootdir=$ac_optarg ;;
1383 -disable-* | --disable-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1387 as_fn_error "invalid feature name: $ac_useropt"
1388 ac_useropt_orig=$ac_useropt
1389 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1392 "enable_$ac_useropt"
1394 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1395 ac_unrecognized_sep=', ';;
1397 eval enable_$ac_useropt=no ;;
1399 -docdir | --docdir | --docdi | --doc | --do)
1401 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1402 docdir=$ac_optarg ;;
1404 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1406 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1407 dvidir=$ac_optarg ;;
1409 -enable-* | --enable-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1413 as_fn_error "invalid feature name: $ac_useropt"
1414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1418 "enable_$ac_useropt"
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1423 eval enable_$ac_useropt=\$ac_optarg ;;
1425 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1426 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1427 | --exec | --exe | --ex)
1428 ac_prev=exec_prefix ;;
1429 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1430 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1431 | --exec=* | --exe=* | --ex=*)
1432 exec_prefix=$ac_optarg ;;
1434 -gas | --gas | --ga | --g)
1435 # Obsolete; use --with-gas.
1438 -help | --help | --hel | --he | -h)
1439 ac_init_help=long ;;
1440 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1441 ac_init_help=recursive ;;
1442 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1443 ac_init_help=short ;;
1445 -host | --host | --hos | --ho)
1446 ac_prev=host_alias ;;
1447 -host=* | --host=* | --hos=* | --ho=*)
1448 host_alias=$ac_optarg ;;
1450 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1452 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1454 htmldir=$ac_optarg ;;
1456 -includedir | --includedir | --includedi | --included | --include \
1457 | --includ | --inclu | --incl | --inc)
1458 ac_prev=includedir ;;
1459 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1460 | --includ=* | --inclu=* | --incl=* | --inc=*)
1461 includedir=$ac_optarg ;;
1463 -infodir | --infodir | --infodi | --infod | --info | --inf)
1465 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1466 infodir=$ac_optarg ;;
1468 -libdir | --libdir | --libdi | --libd)
1470 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1471 libdir=$ac_optarg ;;
1473 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1474 | --libexe | --libex | --libe)
1475 ac_prev=libexecdir ;;
1476 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1477 | --libexe=* | --libex=* | --libe=*)
1478 libexecdir=$ac_optarg ;;
1480 -localedir | --localedir | --localedi | --localed | --locale)
1481 ac_prev=localedir ;;
1482 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1483 localedir=$ac_optarg ;;
1485 -localstatedir | --localstatedir | --localstatedi | --localstated \
1486 | --localstate | --localstat | --localsta | --localst | --locals)
1487 ac_prev=localstatedir ;;
1488 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1489 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1490 localstatedir=$ac_optarg ;;
1492 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1494 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1495 mandir=$ac_optarg ;;
1497 -nfp | --nfp | --nf)
1498 # Obsolete; use --without-fp.
1501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1502 | --no-cr | --no-c | -n)
1505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1509 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1510 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1511 | --oldin | --oldi | --old | --ol | --o)
1512 ac_prev=oldincludedir ;;
1513 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1514 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1515 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1516 oldincludedir=$ac_optarg ;;
1518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1521 prefix=$ac_optarg ;;
1523 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1524 | --program-pre | --program-pr | --program-p)
1525 ac_prev=program_prefix ;;
1526 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1527 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1528 program_prefix=$ac_optarg ;;
1530 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1531 | --program-suf | --program-su | --program-s)
1532 ac_prev=program_suffix ;;
1533 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1534 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1535 program_suffix=$ac_optarg ;;
1537 -program-transform-name | --program-transform-name \
1538 | --program-transform-nam | --program-transform-na \
1539 | --program-transform-n | --program-transform- \
1540 | --program-transform | --program-transfor \
1541 | --program-transfo | --program-transf \
1542 | --program-trans | --program-tran \
1543 | --progr-tra | --program-tr | --program-t)
1544 ac_prev=program_transform_name ;;
1545 -program-transform-name=* | --program-transform-name=* \
1546 | --program-transform-nam=* | --program-transform-na=* \
1547 | --program-transform-n=* | --program-transform-=* \
1548 | --program-transform=* | --program-transfor=* \
1549 | --program-transfo=* | --program-transf=* \
1550 | --program-trans=* | --program-tran=* \
1551 | --progr-tra=* | --program-tr=* | --program-t=*)
1552 program_transform_name=$ac_optarg ;;
1554 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1556 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1557 pdfdir=$ac_optarg ;;
1559 -psdir | --psdir | --psdi | --psd | --ps)
1561 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1568 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1570 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1572 sbindir=$ac_optarg ;;
1574 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1575 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1576 | --sharedst | --shareds | --shared | --share | --shar \
1578 ac_prev=sharedstatedir ;;
1579 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1580 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1581 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1583 sharedstatedir=$ac_optarg ;;
1585 -site | --site | --sit)
1587 -site=* | --site=* | --sit=*)
1590 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1592 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1593 srcdir=$ac_optarg ;;
1595 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1596 | --syscon | --sysco | --sysc | --sys | --sy)
1597 ac_prev=sysconfdir ;;
1598 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1599 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1600 sysconfdir=$ac_optarg ;;
1602 -target | --target | --targe | --targ | --tar | --ta | --t)
1603 ac_prev=target_alias ;;
1604 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1605 target_alias=$ac_optarg ;;
1607 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1610 -version | --version | --versio | --versi | --vers | -V)
1611 ac_init_version=: ;;
1614 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1615 # Reject names that are not valid shell variable names.
1616 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1617 as_fn_error "invalid package name: $ac_useropt"
1618 ac_useropt_orig=$ac_useropt
1619 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1620 case $ac_user_opts in
1624 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1625 ac_unrecognized_sep=', ';;
1627 eval with_$ac_useropt=\$ac_optarg ;;
1629 -without-* | --without-*)
1630 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1631 # Reject names that are not valid shell variable names.
1632 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1633 as_fn_error "invalid package name: $ac_useropt"
1634 ac_useropt_orig=$ac_useropt
1635 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1636 case $ac_user_opts in
1640 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1641 ac_unrecognized_sep=', ';;
1643 eval with_$ac_useropt=no ;;
1646 # Obsolete; use --with-x.
1649 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1650 | --x-incl | --x-inc | --x-in | --x-i)
1651 ac_prev=x_includes ;;
1652 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1653 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1654 x_includes=$ac_optarg ;;
1656 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1657 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1658 ac_prev=x_libraries ;;
1659 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1660 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1661 x_libraries=$ac_optarg ;;
1663 -*) as_fn_error "unrecognized option: \`$ac_option'
1664 Try \`$0 --help' for more information."
1668 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1669 # Reject names that are not valid shell variable names.
1670 case $ac_envvar in #(
1671 '' | [0-9]* | *[!_$as_cr_alnum]* )
1672 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1674 eval $ac_envvar=\$ac_optarg
1675 export $ac_envvar ;;
1678 # FIXME: should be removed in autoconf 3.0.
1679 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1680 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1681 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1682 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1688 if test -n "$ac_prev"; then
1689 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1690 as_fn_error "missing argument to $ac_option"
1693 if test -n "$ac_unrecognized_opts"; then
1694 case $enable_option_checking in
1696 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1697 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1701 # Check all directory arguments for consistency.
1702 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1703 datadir sysconfdir sharedstatedir localstatedir includedir \
1704 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1705 libdir localedir mandir
1707 eval ac_val=\$$ac_var
1708 # Remove trailing slashes.
1711 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1712 eval $ac_var=\$ac_val;;
1714 # Be sure to have absolute directory names.
1716 [\\/$]* | ?:[\\/]* ) continue;;
1717 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1719 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1722 # There might be people who depend on the old broken behavior: `$host'
1723 # used to hold the argument of --host etc.
1724 # FIXME: To remove some day.
1727 target=$target_alias
1729 # FIXME: To remove some day.
1730 if test "x$host_alias" != x; then
1731 if test "x$build_alias" = x; then
1732 cross_compiling=maybe
1733 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1734 If a cross compiler is detected then cross compile mode will be used." >&2
1735 elif test "x$build_alias" != "x$host_alias"; then
1741 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1743 test "$silent" = yes && exec 6>/dev/null
1746 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747 ac_ls_di=`ls -di .` &&
1748 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1749 as_fn_error "working directory cannot be determined"
1750 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1751 as_fn_error "pwd does not report name of working directory"
1754 # Find the source files, if location was not specified.
1755 if test -z "$srcdir"; then
1756 ac_srcdir_defaulted=yes
1757 # Try the directory containing this script, then the parent directory.
1758 ac_confdir=`$as_dirname -- "$as_myself" ||
1759 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760 X"$as_myself" : 'X\(//\)[^/]' \| \
1761 X"$as_myself" : 'X\(//\)$' \| \
1762 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763 $as_echo X"$as_myself" |
1764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1782 if test ! -r "$srcdir/$ac_unique_file"; then
1786 ac_srcdir_defaulted=no
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1789 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1790 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1792 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1794 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1796 # When building in place, set srcdir=.
1797 if test "$ac_abs_confdir" = "$ac_pwd"; then
1800 # Remove unnecessary trailing slashes from srcdir.
1801 # Double slashes in file names in object file debugging info
1802 # mess up M-x gdb in Emacs.
1804 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808 eval ac_env_${ac_var}_value=\$${ac_var}
1809 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1814 # Report the --help message.
1816 if test "$ac_init_help" = "long"; then
1817 # Omit some internal or obsolete options to make the list less imposing.
1818 # This message is too long to be a string in the A/UX 3.1 sh.
1820 \`configure' configures ImageMagick 6.5.8 to adapt to many kinds of systems.
1822 Usage: $0 [OPTION]... [VAR=VALUE]...
1824 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825 VAR=VALUE. See below for descriptions of some of the useful variables.
1827 Defaults for the options are specified in brackets.
1830 -h, --help display this help and exit
1831 --help=short display options specific to this package
1832 --help=recursive display the short help of all the included packages
1833 -V, --version display version information and exit
1834 -q, --quiet, --silent do not print \`checking...' messages
1835 --cache-file=FILE cache test results in FILE [disabled]
1836 -C, --config-cache alias for \`--cache-file=config.cache'
1837 -n, --no-create do not create output files
1838 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1840 Installation directories:
1841 --prefix=PREFIX install architecture-independent files in PREFIX
1842 [$ac_default_prefix]
1843 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1846 By default, \`make install' will install all the files in
1847 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1848 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849 for instance \`--prefix=\$HOME'.
1851 For better control, use the options below.
1853 Fine tuning of the installation directories:
1854 --bindir=DIR user executables [EPREFIX/bin]
1855 --sbindir=DIR system admin executables [EPREFIX/sbin]
1856 --libexecdir=DIR program executables [EPREFIX/libexec]
1857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1859 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1860 --libdir=DIR object code libraries [EPREFIX/lib]
1861 --includedir=DIR C header files [PREFIX/include]
1862 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1863 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1864 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1865 --infodir=DIR info documentation [DATAROOTDIR/info]
1866 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1867 --mandir=DIR man documentation [DATAROOTDIR/man]
1868 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1869 --htmldir=DIR html documentation [DOCDIR]
1870 --dvidir=DIR dvi documentation [DOCDIR]
1871 --pdfdir=DIR pdf documentation [DOCDIR]
1872 --psdir=DIR ps documentation [DOCDIR]
1878 --program-prefix=PREFIX prepend PREFIX to installed program names
1879 --program-suffix=SUFFIX append SUFFIX to installed program names
1880 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1883 --x-includes=DIR X include files are in DIR
1884 --x-libraries=DIR X library files are in DIR
1887 --build=BUILD configure for building on BUILD [guessed]
1888 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1889 --target=TARGET configure for building compilers for TARGET [HOST]
1893 if test -n "$ac_init_help"; then
1894 case $ac_init_help in
1895 short | recursive ) echo "Configuration of ImageMagick 6.5.8:";;
1900 --disable-option-checking ignore unrecognized --enable/--with options
1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1903 --enable-silent-rules less verbose build output (undo: `make V=1')
1904 --disable-silent-rules verbose build output (undo: `make V=0')
1905 --disable-dependency-tracking speeds up one-time build
1906 --enable-dependency-tracking do not reject slow dependency extractors
1907 --bounds-checking enable run-time bounds-checking
1908 --enable-osx-universal-binary
1909 build universal binary on OS X [[default=no]]
1910 --disable-openmp do not use OpenMP
1911 --disable-largefile omit support for large files
1912 --enable-shared[=PKGS] build shared libraries [default=yes]
1913 --enable-static[=PKGS] build static libraries [default=yes]
1914 --enable-fast-install[=PKGS]
1915 optimize for fast installation [default=yes]
1916 --disable-libtool-lock avoid locking (might break parallel builds)
1917 --enable-ltdl-install install libltdl
1918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
1921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
1923 --enable-embeddable enable self-contained, embeddable,
1924 zero-configuration ImageMagick
1925 --enable-hdri accurately represent the wide range of intensity
1926 levels found in real scenes
1927 --disable-assert disable assert() statements in build
1928 --enable-maintainer-mode enable make rules and dependencies not useful
1929 (and sometimes confusing) to the casual installer
1930 --enable-ccmalloc enable 'ccmalloc' memory debug support
1931 --enable-efence enable 'efence' memory debug support
1932 --enable-prof enable 'prof' profiling support
1933 --enable-gprof enable 'gprof' profiling support
1934 --enable-gcov enable 'gcov' profiling support
1937 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1938 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1939 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1940 --without-maximum-compile-warnings
1941 Disable maximum warning verbosity
1942 --with-dmalloc use dmalloc, as in
1943 http://www.dmalloc.com/dmalloc.tar.gz
1944 --without-threads disable threads support
1945 --with-pic try to use only PIC/non-PIC objects [default=use
1947 --with-included-ltdl use the GNU ltdl sources included here
1948 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1949 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1950 --with-modules enable building dynamically loadable modules
1951 --with-method-prefix=PREFIX
1952 prefix MagickCore API methods
1953 --with-quantum-depth=DEPTH
1954 number of bits in a pixel quantum (default 16)
1955 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1957 --with-frozenpaths freeze delegate paths
1958 --without-magick-plus-plus
1959 disable build/install of Magick++
1960 --with-perl enable build/install of PerlMagick
1961 --with-perl-options=OPTIONS
1962 options to pass on command-line when generating
1963 PerlMagick's build file
1964 --with-umem enable umem memory allocation library support
1965 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1966 --without-bzlib disable BZLIB support
1967 --with-x use the X Window System
1968 --without-zlib disable ZLIB support
1969 --with-autotrace enable autotrace support
1970 --without-dps disable Display Postscript support
1971 --without-djvu disable DjVu support
1972 --without-fftw disable FFTW support
1973 --without-fpx disable FlashPIX support
1974 --without-fontconfig disable fontconfig support
1975 --without-freetype disable Freetype support
1976 --without-gslib enable Ghostscript library support
1977 --with-fontpath=DIR prepend to default font search path
1978 --with-gs-font-dir=DIR Ghostscript font directory
1979 --without-gvc disable GVC support
1980 --without-jbig disable JBIG support
1981 --without-jpeg disable JPEG support
1982 --without-jp2 disable JPEG-2000 support
1983 --without-lcms disable LCMS support
1984 --without-lqr disable Liquid Rescale support (experimental)
1985 --without-openexr disable OpenEXR support
1986 --without-png disable PNG support
1987 --without-rsvg disable RSVG support
1988 --without-tiff disable TIFF support
1989 --with-windows-font-dir=DIR
1990 directory containing MS-Windows fonts
1991 --without-wmf disable WMF support
1992 --without-xml disable XML support
1994 Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
2000 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2001 you have headers in a nonstandard directory <include dir>
2002 CXX C++ compiler command
2003 CXXFLAGS C++ compiler flags
2005 PKG_CONFIG path to pkg-config utility
2006 CXXCPP C++ preprocessor
2007 XMKMF Path to xmkmf, Makefile generator for X Window System
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2011 linker flags for AUTOTRACE, overriding pkg-config
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2015 linker flags for FONTCONFIG, overriding pkg-config
2016 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2017 GVC_LIBS linker flags for GVC, overriding pkg-config
2018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
2021 C compiler flags for OPENEXR, overriding pkg-config
2023 linker flags for OPENEXR, overriding pkg-config
2024 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2025 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2027 C compiler flags for CAIRO_SVG, overriding pkg-config
2029 linker flags for CAIRO_SVG, overriding pkg-config
2031 Use these variables to override the choices made by `configure' or to help
2032 it to find libraries and programs with nonstandard names/locations.
2034 Report bugs to <http://www.imagemagick.org>.
2039 if test "$ac_init_help" = "recursive"; then
2040 # If there are subdirs, report their specific --help.
2041 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042 test -d "$ac_dir" ||
2043 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2051 # A ".." for each directory in $ac_dir_suffix.
2052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053 case $ac_top_builddir_sub in
2054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2058 ac_abs_top_builddir=$ac_pwd
2059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060 # for backward compatibility:
2061 ac_top_builddir=$ac_top_build_prefix
2064 .) # We are building in place.
2066 ac_top_srcdir=$ac_top_builddir_sub
2067 ac_abs_top_srcdir=$ac_pwd ;;
2068 [\\/]* | ?:[\\/]* ) # Absolute name.
2069 ac_srcdir=$srcdir$ac_dir_suffix;
2070 ac_top_srcdir=$srcdir
2071 ac_abs_top_srcdir=$srcdir ;;
2073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074 ac_top_srcdir=$ac_top_build_prefix$srcdir
2075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2079 cd "$ac_dir" || { ac_status=$?; continue; }
2080 # Check for guested configure.
2081 if test -f "$ac_srcdir/configure.gnu"; then
2083 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2084 elif test -f "$ac_srcdir/configure"; then
2086 $SHELL "$ac_srcdir/configure" --help=recursive
2088 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2090 cd "$ac_pwd" || { ac_status=$?; break; }
2094 test -n "$ac_init_help" && exit $ac_status
2095 if $ac_init_version; then
2097 ImageMagick configure 6.5.8
2098 generated by GNU Autoconf 2.65
2100 Copyright (C) 2009 Free Software Foundation, Inc.
2101 This configure script is free software; the Free Software Foundation
2102 gives unlimited permission to copy, distribute and modify it.
2107 ## ------------------------ ##
2108 ## Autoconf initialization. ##
2109 ## ------------------------ ##
2111 # ac_fn_c_try_compile LINENO
2112 # --------------------------
2113 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2114 ac_fn_c_try_compile ()
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 rm -f conftest.$ac_objext
2118 if { { ac_try="$ac_compile"
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_compile") 2>conftest.err
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } && {
2134 test -z "$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 } && test -s conftest.$ac_objext; then :
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 as_fn_set_status $ac_retval
2147 } # ac_fn_c_try_compile
2149 # ac_fn_cxx_try_compile LINENO
2150 # ----------------------------
2151 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_compile ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 rm -f conftest.$ac_objext
2156 if { { ac_try="$ac_compile"
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_compile") 2>conftest.err
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && {
2172 test -z "$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2174 } && test -s conftest.$ac_objext; then :
2177 $as_echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183 as_fn_set_status $ac_retval
2185 } # ac_fn_cxx_try_compile
2187 # ac_fn_c_try_cpp LINENO
2188 # ----------------------
2189 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if { { ac_try="$ac_cpp conftest.$ac_ext"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } >/dev/null && {
2209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 as_fn_set_status $ac_retval
2224 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2225 # -------------------------------------------------------
2226 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227 # the include files in INCLUDES and setting the cache variable VAR
2229 ac_fn_c_check_header_mongrel ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2242 # Is the header compilable?
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244 $as_echo_n "checking $2 usability... " >&6; }
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2253 ac_header_compiler=no
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257 $as_echo "$ac_header_compiler" >&6; }
2259 # Is the header present?
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261 $as_echo_n "checking $2 presence... " >&6; }
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2266 if ac_fn_c_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2269 ac_header_preproc=no
2271 rm -f conftest.err conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273 $as_echo "$ac_header_preproc" >&6; }
2275 # So? What about this header?
2276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295 ## ----------------------------------------- ##
2296 ## Report this to http://www.imagemagick.org ##
2297 ## ----------------------------------------- ##
2299 ) | sed "s/^/$as_me: WARNING: /" >&2
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2307 eval "$3=\$ac_header_compiler"
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 } # ac_fn_c_check_header_mongrel
2317 # ac_fn_c_try_run LINENO
2318 # ----------------------
2319 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2320 # that executables *can* be run.
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 if { { ac_try="$ac_link"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_link") 2>&5
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2335 { { case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_try") 2>&5
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; }; }; then :
2347 $as_echo "$as_me: program exited with status $ac_status" >&5
2348 $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2351 ac_retval=$ac_status
2353 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 as_fn_set_status $ac_retval
2359 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2360 # -------------------------------------------------------
2361 # Tests whether HEADER exists and can be compiled using the include files in
2362 # INCLUDES, setting the cache variable VAR accordingly.
2363 ac_fn_c_check_header_compile ()
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369 $as_echo_n "(cached) " >&6
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2376 if ac_fn_c_try_compile "$LINENO"; then :
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 } # ac_fn_c_check_header_compile
2390 # ac_fn_c_try_link LINENO
2391 # -----------------------
2392 # Try to link conftest.$ac_ext, and return whether this succeeded.
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { { ac_try="$ac_link"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403 $as_echo "$ac_try_echo"; } >&5
2404 (eval "$ac_link") 2>conftest.err
2406 if test -s conftest.err; then
2407 grep -v '^ *+' conftest.err >conftest.er1
2408 cat conftest.er1 >&5
2409 mv -f conftest.er1 conftest.err
2411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412 test $ac_status = 0; } && {
2413 test -z "$ac_c_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest$ac_exeext && {
2416 test "$cross_compiling" = yes ||
2417 $as_test_x conftest$ac_exeext
2421 $as_echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2428 # interfere with the next link command; also delete a directory that is
2429 # left behind by Apple's compiler. We do this before executing the actions.
2430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432 as_fn_set_status $ac_retval
2434 } # ac_fn_c_try_link
2436 # ac_fn_c_check_func LINENO FUNC VAR
2437 # ----------------------------------
2438 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2439 ac_fn_c_check_func ()
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2451 #define $2 innocuous_$2
2453 /* System header to define __stub macros and hopefully few prototypes,
2454 which can conflict with char $2 (); below.
2455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2456 <limits.h> exists even on freestanding compilers. */
2459 # include <limits.h>
2461 # include <assert.h>
2466 /* Override any GCC internal prototype to avoid an error.
2467 Use char because int might match the return type of a GCC
2468 builtin and then its argument prototype would still apply. */
2473 /* The GNU C library defines this for functions which it implements
2474 to always fail with ENOSYS. Some functions are actually named
2475 something starting with __ and the normal name is an alias. */
2476 #if defined __stub_$2 || defined __stub___$2
2488 if ac_fn_c_try_link "$LINENO"; then :
2493 rm -f core conftest.err conftest.$ac_objext \
2494 conftest$ac_exeext conftest.$ac_ext
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498 $as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501 } # ac_fn_c_check_func
2503 # ac_fn_cxx_try_cpp LINENO
2504 # ------------------------
2505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2506 ac_fn_cxx_try_cpp ()
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 if { { ac_try="$ac_cpp conftest.$ac_ext"
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } >/dev/null && {
2525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2526 test ! -s conftest.err
2530 $as_echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536 as_fn_set_status $ac_retval
2538 } # ac_fn_cxx_try_cpp
2540 # ac_fn_cxx_try_link LINENO
2541 # -------------------------
2542 # Try to link conftest.$ac_ext, and return whether this succeeded.
2543 ac_fn_cxx_try_link ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 rm -f conftest.$ac_objext conftest$ac_exeext
2547 if { { ac_try="$ac_link"
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553 $as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>conftest.err
2556 if test -s conftest.err; then
2557 grep -v '^ *+' conftest.err >conftest.er1
2558 cat conftest.er1 >&5
2559 mv -f conftest.er1 conftest.err
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; } && {
2563 test -z "$ac_cxx_werror_flag" ||
2564 test ! -s conftest.err
2565 } && test -s conftest$ac_exeext && {
2566 test "$cross_compiling" = yes ||
2567 $as_test_x conftest$ac_exeext
2571 $as_echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2576 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2577 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2578 # interfere with the next link command; also delete a directory that is
2579 # left behind by Apple's compiler. We do this before executing the actions.
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 as_fn_set_status $ac_retval
2584 } # ac_fn_cxx_try_link
2586 # ac_fn_c_check_decl LINENO SYMBOL VAR
2587 # ------------------------------------
2588 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2589 ac_fn_c_check_decl ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2593 $as_echo_n "checking whether $2 is declared... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2611 if ac_fn_c_try_compile "$LINENO"; then :
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2623 } # ac_fn_c_check_decl
2625 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2626 # -------------------------------------------
2627 # Tests whether TYPE exists after having included INCLUDES, setting cache
2628 # variable VAR accordingly.
2629 ac_fn_c_check_type ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2650 if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2663 if ac_fn_c_try_compile "$LINENO"; then :
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677 } # ac_fn_c_check_type
2679 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2680 # --------------------------------------------
2681 # Tries to find the compile-time value of EXPR in a program that includes
2682 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2684 ac_fn_c_compute_int ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 if test "$cross_compiling" = yes; then
2688 # Depending upon the size, compute the lo and hi bounds.
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2695 static int test_array [1 - 2 * !(($2) >= 0)];
2702 if ac_fn_c_try_compile "$LINENO"; then :
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2711 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719 ac_hi=$ac_mid; break
2721 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2722 if test $ac_lo -le $ac_mid; then
2726 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2737 static int test_array [1 - 2 * !(($2) < 0)];
2744 if ac_fn_c_try_compile "$LINENO"; then :
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2753 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_lo=$ac_mid; break
2763 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2764 if test $ac_mid -le $ac_hi; then
2768 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 # Binary search between lo and hi bounds.
2779 while test "x$ac_lo" != "x$ac_hi"; do
2780 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2787 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2794 if ac_fn_c_try_compile "$LINENO"; then :
2797 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2809 static long int longval () { return $2; }
2810 static unsigned long int ulongval () { return $2; }
2817 FILE *f = fopen ("conftest.val", "w");
2822 long int i = longval ();
2825 fprintf (f, "%ld", i);
2829 unsigned long int i = ulongval ();
2832 fprintf (f, "%lu", i);
2834 /* Do not output a trailing newline, as this causes \r\n confusion
2835 on some platforms. */
2836 return ferror (f) || fclose (f) != 0;
2842 if ac_fn_c_try_run "$LINENO"; then :
2843 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2848 conftest.$ac_objext conftest.beam conftest.$ac_ext
2852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2853 as_fn_set_status $ac_retval
2855 } # ac_fn_c_compute_int
2857 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2858 # ---------------------------------------------------------
2859 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2860 # the include files in INCLUDES and setting the cache variable VAR
2862 ac_fn_cxx_check_header_mongrel ()
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873 $as_echo "$ac_res" >&6; }
2875 # Is the header compilable?
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2877 $as_echo_n "checking $2 usability... " >&6; }
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2883 if ac_fn_cxx_try_compile "$LINENO"; then :
2884 ac_header_compiler=yes
2886 ac_header_compiler=no
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2890 $as_echo "$ac_header_compiler" >&6; }
2892 # Is the header present?
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2894 $as_echo_n "checking $2 presence... " >&6; }
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2899 if ac_fn_cxx_try_cpp "$LINENO"; then :
2900 ac_header_preproc=yes
2902 ac_header_preproc=no
2904 rm -f conftest.err conftest.$ac_ext
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2906 $as_echo "$ac_header_preproc" >&6; }
2908 # So? What about this header?
2909 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2912 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2918 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2920 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2922 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2924 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2928 ## ----------------------------------------- ##
2929 ## Report this to http://www.imagemagick.org ##
2930 ## ----------------------------------------- ##
2932 ) | sed "s/^/$as_me: WARNING: /" >&2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936 $as_echo_n "checking for $2... " >&6; }
2937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938 $as_echo_n "(cached) " >&6
2940 eval "$3=\$ac_header_compiler"
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944 $as_echo "$ac_res" >&6; }
2946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2948 } # ac_fn_cxx_check_header_mongrel
2949 cat >config.log <<_ACEOF
2950 This file contains any messages produced by compilers while
2951 running configure, to aid debugging if configure makes a mistake.
2953 It was created by ImageMagick $as_me 6.5.8, which was
2954 generated by GNU Autoconf 2.65. Invocation command line was
2966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 $as_echo "PATH: $as_dir"
3006 # Keep a trace of the command line.
3007 # Strip out --no-create and --no-recursion so they do not pile up.
3008 # Strip out --silent because we don't want to record it for future runs.
3009 # Also quote any args containing shell meta-characters.
3010 # Make two passes to allow for proper duplicate-argument suppression.
3014 ac_must_keep_next=false
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3030 as_fn_append ac_configure_args1 " '$ac_arg'"
3031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3043 -* ) ac_must_keep_next=true ;;
3046 as_fn_append ac_configure_args " '$ac_arg'"
3051 { ac_configure_args0=; unset ac_configure_args0;}
3052 { ac_configure_args1=; unset ac_configure_args1;}
3054 # When interrupted or exit'd, cleanup temporary files, and complete
3055 # config.log. We remove comments because anyway the quotes in there
3056 # would cause problems or look ugly.
3057 # WARNING: Use '\'' to represent an apostrophe within the trap.
3058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059 trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3065 ## ---------------- ##
3066 ## Cache variables. ##
3067 ## ---------------- ##
3070 # The following way of writing the cache mishandles newlines in values,
3072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073 eval ac_val=\$$ac_var
3077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3081 _ | IFS | as_nl) ;; #(
3082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3083 *) { eval $ac_var=; unset $ac_var;} ;;
3088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089 *${as_nl}ac_space=\ *)
3091 "s/'\''/'\''\\\\'\'''\''/g;
3092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3103 ## ----------------- ##
3104 ## Output variables. ##
3105 ## ----------------- ##
3108 for ac_var in $ac_subst_vars
3110 eval ac_val=\$$ac_var
3112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 $as_echo "$ac_var='\''$ac_val'\''"
3118 if test -n "$ac_subst_files"; then
3120 ## ------------------- ##
3121 ## File substitutions. ##
3122 ## ------------------- ##
3125 for ac_var in $ac_subst_files
3127 eval ac_val=\$$ac_var
3129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3131 $as_echo "$ac_var='\''$ac_val'\''"
3136 if test -s confdefs.h; then
3146 test "$ac_signal" != 0 &&
3147 $as_echo "$as_me: caught signal $ac_signal"
3148 $as_echo "$as_me: exit $exit_status"
3150 rm -f core *.core core.conftest.* &&
3151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3154 for ac_signal in 1 2 13 15; do
3155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3160 rm -f -r conftest* confdefs.h
3162 $as_echo "/* confdefs.h */" > confdefs.h
3164 # Predefined preprocessor variables.
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_NAME "$PACKAGE_NAME"
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_STRING "$PACKAGE_STRING"
3182 cat >>confdefs.h <<_ACEOF
3183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3186 cat >>confdefs.h <<_ACEOF
3187 #define PACKAGE_URL "$PACKAGE_URL"
3191 # Let the site file select an alternate cache file if it wants to.
3192 # Prefer an explicitly selected file to automatically selected ones.
3195 if test -n "$CONFIG_SITE"; then
3196 ac_site_file1=$CONFIG_SITE
3197 elif test "x$prefix" != xNONE; then
3198 ac_site_file1=$prefix/share/config.site
3199 ac_site_file2=$prefix/etc/config.site
3201 ac_site_file1=$ac_default_prefix/share/config.site
3202 ac_site_file2=$ac_default_prefix/etc/config.site
3204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3206 test "x$ac_site_file" = xNONE && continue
3207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3210 sed 's/^/| /' "$ac_site_file" >&5
3215 if test -r "$cache_file"; then
3216 # Some versions of bash will fail to source /dev/null (special files
3217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3220 $as_echo "$as_me: loading cache $cache_file" >&6;}
3222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3223 *) . "./$cache_file";;
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3228 $as_echo "$as_me: creating cache $cache_file" >&6;}
3232 as_fn_append ac_header_list " stdlib.h"
3233 as_fn_append ac_header_list " unistd.h"
3234 as_fn_append ac_header_list " sys/param.h"
3235 # Check that the precious variables saved in the cache have kept the same
3237 ac_cache_corrupted=false
3238 for ac_var in $ac_precious_vars; do
3239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240 eval ac_new_set=\$ac_env_${ac_var}_set
3241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242 eval ac_new_val=\$ac_env_${ac_var}_value
3243 case $ac_old_set,$ac_new_set in
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247 ac_cache_corrupted=: ;;
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3254 if test "x$ac_old_val" != "x$ac_new_val"; then
3255 # differences in whitespace do not lead to failure.
3256 ac_old_val_w=`echo x $ac_old_val`
3257 ac_new_val_w=`echo x $ac_new_val`
3258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261 ac_cache_corrupted=:
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265 eval $ac_var=\$ac_old_val
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3273 # Pass precious variables to config.status.
3274 if test "$ac_new_set" = set; then
3276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277 *) ac_arg=$ac_var=$ac_new_val ;;
3279 case " $ac_configure_args " in
3280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3285 if $ac_cache_corrupted; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3290 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3292 ## -------------------- ##
3293 ## Main body of script. ##
3294 ## -------------------- ##
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 for ac_dir in config "$srcdir"/config; do
3306 for ac_t in install-sh install.sh shtool; do
3307 if test -f "$ac_dir/$ac_t"; then
3309 ac_install_sh="$ac_aux_dir/$ac_t -c"
3314 if test -z "$ac_aux_dir"; then
3315 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3318 # These three variables are undocumented and unsupported,
3319 # and are intended to be withdrawn in a future Autoconf release.
3320 # They can cause serious problems if a builder's source tree is in a directory
3321 # whose full name contains unusual characters.
3322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 ac_config_headers="$ac_config_headers config/config.h"
3331 ac_config_commands="$ac_config_commands magick/magick-config.h"
3333 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox 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"
3337 # Save initial user-tunable values
3340 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3341 eval isset=\${$var+set}
3342 if test "$isset" = 'set'; then
3343 eval val=$`echo $var`
3344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3349 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3352 # Source file containing package/library versioning information.
3353 . ${srcdir}/version.sh
3355 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3356 # Make sure we can run config.sub.
3357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3361 $as_echo_n "checking build system type... " >&6; }
3362 if test "${ac_cv_build+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 ac_build_alias=$build_alias
3366 test "x$ac_build_alias" = x &&
3367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3368 test "x$ac_build_alias" = x &&
3369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3375 $as_echo "$ac_cv_build" >&6; }
3376 case $ac_cv_build in
3378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3381 ac_save_IFS=$IFS; IFS='-'
3387 # Remember, the first character of IFS is used to create $*,
3388 # except with old shells:
3391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3395 $as_echo_n "checking host system type... " >&6; }
3396 if test "${ac_cv_host+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 if test "x$host_alias" = x; then
3400 ac_cv_host=$ac_cv_build
3402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3408 $as_echo "$ac_cv_host" >&6; }
3411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3414 ac_save_IFS=$IFS; IFS='-'
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3428 $as_echo_n "checking target system type... " >&6; }
3429 if test "${ac_cv_target+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3432 if test "x$target_alias" = x; then
3433 ac_cv_target=$ac_cv_host
3435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3441 $as_echo "$ac_cv_target" >&6; }
3442 case $ac_cv_target in
3444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3446 target=$ac_cv_target
3447 ac_save_IFS=$IFS; IFS='-'
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3460 # The aliases save the names the user supplied, while $host etc.
3461 # will get canonicalized.
3462 test -n "$target_alias" &&
3463 test "$program_prefix$program_suffix$program_transform_name" = \
3465 program_prefix=${target_alias}-
3467 # Substitute library versioning
3470 # Ensure that make can run correctly
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3472 $as_echo_n "checking whether build environment is sane... " >&6; }
3475 echo timestamp > conftest.file
3476 # Reject unsafe characters in $srcdir or the absolute working directory
3477 # name. Accept space and tab only in the latter.
3481 *[\\\"\#\$\&\'\`$am_lf]*)
3482 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3486 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3489 # Do `set' in a subshell so we don't clobber the current shell's
3490 # arguments. Must try -L first in case configure is actually a
3491 # symlink; some systems play weird games with the mod time of symlinks
3492 # (eg FreeBSD returns the mod time of the symlink's containing
3495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3496 if test "$*" = "X"; then
3498 set X `ls -t "$srcdir/configure" conftest.file`
3501 if test "$*" != "X $srcdir/configure conftest.file" \
3502 && test "$*" != "X conftest.file $srcdir/configure"; then
3504 # If neither matched, then we have a broken ls. This can happen
3505 # if, for instance, CONFIG_SHELL is bash and it inherits a
3506 # broken ls alias from the environment. This has actually
3507 # happened. Such a system could not be considered "sane".
3508 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3509 alias in your environment" "$LINENO" 5
3512 test "$2" = conftest.file
3518 as_fn_error "newly created file is older than distributed files!
3519 Check your system clock" "$LINENO" 5
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3522 $as_echo "yes" >&6; }
3524 am__api_version='1.11'
3526 # Find a good install program. We prefer a C program (faster),
3527 # so one script is as good as another. But avoid the broken or
3528 # incompatible versions:
3529 # SysV /etc/install, /usr/sbin/install
3530 # SunOS /usr/etc/install
3531 # IRIX /sbin/install
3533 # AmigaOS /C/install, which installs bootblocks on floppy discs
3534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537 # OS/2's system install, which has a completely different semantic
3538 # ./install, which can be erroneously created by make from ./install.sh.
3539 # Reject install programs that cannot install multiple files.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3542 if test -z "$INSTALL"; then
3543 if test "${ac_cv_path_install+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 # Account for people who put trailing slashes in PATH elements.
3552 case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
3554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3595 rm -rf conftest.one conftest.two conftest.dir
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3609 $as_echo "$INSTALL" >&6; }
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619 test "$program_prefix" != NONE &&
3620 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3621 # Use a double $ so make ignores it.
3622 test "$program_suffix" != NONE &&
3623 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3624 # Double any \ or $.
3625 # By default was `s,x,x', remove it if useless.
3626 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3627 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3629 # expand $ac_aux_dir to an absolute path
3630 am_aux_dir=`cd $ac_aux_dir && pwd`
3632 if test x"${MISSING+set}" != xset; then
3635 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3637 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3640 # Use eval to expand $SHELL
3641 if eval "$MISSING --run true"; then
3642 am_missing_run="$MISSING --run "
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3646 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3649 if test x"${install_sh}" != xset; then
3652 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3654 install_sh="\${SHELL} $am_aux_dir/install-sh"
3658 # Installed binaries are usually stripped using `strip' when the user
3659 # run `make install-strip'. However `strip' might not be the right
3660 # tool to use in cross-compilation environments, therefore Automake
3661 # will honor the `STRIP' environment variable to overrule this program.
3662 if test "$cross_compiling" != no; then
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}strip; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_STRIP+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$STRIP"; then
3672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 STRIP=$ac_cv_prog_STRIP
3692 if test -n "$STRIP"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3694 $as_echo "$STRIP" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$ac_cv_prog_STRIP"; then
3704 # Extract the first word of "strip", so it can be a program name with args.
3705 set dummy strip; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$ac_ct_STRIP"; then
3712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_STRIP="strip"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732 if test -n "$ac_ct_STRIP"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3734 $as_echo "$ac_ct_STRIP" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3740 if test "x$ac_ct_STRIP" = x; then
3743 case $cross_compiling:$ac_tool_warned in
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3752 STRIP="$ac_cv_prog_STRIP"
3756 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3759 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3760 if test -z "$MKDIR_P"; then
3761 if test "${ac_cv_path_mkdir+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3768 test -z "$as_dir" && as_dir=.
3769 for ac_prog in mkdir gmkdir; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3772 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3773 'mkdir (GNU coreutils) '* | \
3774 'mkdir (coreutils) '* | \
3775 'mkdir (fileutils) '4.1*)
3776 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3786 test -d ./--version && rmdir ./--version
3787 if test "${ac_cv_path_mkdir+set}" = set; then
3788 MKDIR_P="$ac_cv_path_mkdir -p"
3790 # As a last resort, use the slow shell script. Don't cache a
3791 # value for MKDIR_P within a source directory, because that will
3792 # break other packages using the cache if that directory is
3793 # removed, or if the value is a relative name.
3794 MKDIR_P="$ac_install_sh -d"
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3798 $as_echo "$MKDIR_P" >&6; }
3802 [\\/$]* | ?:[\\/]*) ;;
3803 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3806 for ac_prog in gawk mawk nawk awk
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809 set dummy $ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if test "${ac_cv_prog_AWK+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$AWK"; then
3816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_prog_AWK="$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 if test -n "$AWK"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3838 $as_echo "$AWK" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3845 test -n "$AWK" && break
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3853 $as_echo_n "(cached) " >&6
3855 cat >conftest.make <<\_ACEOF
3858 @echo '@@@%%%=$(MAKE)=@@@%%%'
3860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3863 eval ac_cv_prog_make_${ac_make}_set=yes;;
3865 eval ac_cv_prog_make_${ac_make}_set=no;;
3869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 SET_MAKE="MAKE=${MAKE-make}"
3879 rm -rf .tst 2>/dev/null
3880 mkdir .tst 2>/dev/null
3881 if test -d .tst; then
3886 rmdir .tst 2>/dev/null
3888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3890 # is not polluted with repeated "-I."
3891 am__isrc=' -I$(srcdir)'
3892 # test to see if srcdir already configured
3893 if test -f $srcdir/config.status; then
3894 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3898 # test whether we have cygpath
3899 if test -z "$CYGPATH_W"; then
3900 if (cygpath --version) >/dev/null 2>/dev/null; then
3901 CYGPATH_W='cygpath -w'
3908 # Define the identity of the package.
3909 PACKAGE=$PACKAGE_NAME
3910 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3913 # Some tools Automake needs.
3915 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3918 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3921 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3924 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3927 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3929 # We need awk for the "check" target. The system "awk" is bad on
3931 # Always define AMTAR for backward compatibility.
3933 AMTAR=${AMTAR-"${am_missing_run}tar"}
3935 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3942 # Enable support for silent build rules
3943 # Check whether --enable-silent-rules was given.
3944 if test "${enable_silent_rules+set}" = set; then :
3945 enableval=$enable_silent_rules;
3948 case $enable_silent_rules in
3949 yes) AM_DEFAULT_VERBOSITY=0;;
3950 no) AM_DEFAULT_VERBOSITY=1;;
3951 *) AM_DEFAULT_VERBOSITY=0;;
3956 MAGICK_LIB_VERSION="0x"
3957 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3958 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3960 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3961 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3962 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3964 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3965 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3966 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3968 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3971 # Definition used to define MagickLibVersionText in version.h
3972 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3975 # Definition used to define MagickLibVersionNumber in version.h
3976 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3979 # Regenerate config.status if ChangeLog or version.sh is updated.
3980 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3986 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3987 MAGICK_PCFLAGS=$CPPFLAGS_USER
3992 # Standards compliance definitions
3995 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3998 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4002 # Evaluate shell variable equivalents to Makefile directory variables
4004 if test "x$prefix" = xNONE; then
4005 prefix=$ac_default_prefix
4007 # Let make expand exec_prefix.
4008 if test "x$exec_prefix" = xNONE; then
4009 exec_prefix='${prefix}'
4013 eval "eval PREFIX_DIR=${prefix}"
4015 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4017 eval "eval BIN_DIR=$bindir"
4019 eval "eval SBIN_DIR=$sbindir"
4021 eval "eval LIBEXEC_DIR=$libexecdir"
4023 eval "eval DATA_DIR=$datadir"
4025 eval "eval SYSCONF_DIR=$sysconfdir"
4027 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4029 eval "eval LOCALSTATE_DIR=$localstatedir"
4031 eval "eval LIB_DIR=$libdir"
4033 eval "eval INCLUDE_DIR=$includedir"
4035 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4037 eval "eval INFO_DIR=$infodir"
4039 eval "eval MAN_DIR=$mandir"
4042 # Get full paths to source and build directories
4043 srcdirfull="`cd $srcdir && pwd`"
4047 # Compute variables useful for running uninstalled software.
4049 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4050 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4051 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4052 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4054 case "${build_os}" in
4056 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4057 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4058 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4059 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4063 case "${host_os}" in
4074 # Check for programs
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 $as_echo_n "checking for $ac_word... " >&6; }
4085 if test "${ac_cv_prog_CC+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4088 if test -n "$CC"; then
4089 ac_cv_prog_CC="$CC" # Let the user override the test.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 test -z "$as_dir" && as_dir=.
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 if test -n "$CC"; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4111 $as_echo "$CC" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4119 if test -z "$ac_cv_prog_CC"; then
4121 # Extract the first word of "gcc", so it can be a program name with args.
4122 set dummy gcc; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -n "$ac_ct_CC"; then
4129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 ac_cv_prog_ac_ct_CC="gcc"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4149 if test -n "$ac_ct_CC"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4151 $as_echo "$ac_ct_CC" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4157 if test "x$ac_ct_CC" = x; then
4160 case $cross_compiling:$ac_tool_warned in
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4164 ac_tool_warned=yes ;;
4172 if test -z "$CC"; then
4173 if test -n "$ac_tool_prefix"; then
4174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4175 set dummy ${ac_tool_prefix}cc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_CC="${ac_tool_prefix}cc"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 if test -n "$CC"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4204 $as_echo "$CC" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4213 if test -z "$CC"; then
4214 # Extract the first word of "cc", so it can be a program name with args.
4215 set dummy cc; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_prog_CC+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4233 ac_prog_rejected=yes
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 if test $ac_prog_rejected = yes; then
4245 # We found a bogon in the path, so make sure we never use it.
4246 set dummy $ac_cv_prog_CC
4248 if test $# != 0; then
4249 # We chose a different compiler from the bogus one.
4250 # However, it has the same basename, so the bogon will be chosen
4251 # first if we set CC to just the basename; use the full file name.
4253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4259 if test -n "$CC"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 $as_echo "$CC" >&6; }
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4269 if test -z "$CC"; then
4270 if test -n "$ac_tool_prefix"; then
4271 for ac_prog in cl.exe
4273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if test "${ac_cv_prog_CC+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 if test -n "$CC"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4303 $as_echo "$CC" >&6; }
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4310 test -n "$CC" && break
4313 if test -z "$CC"; then
4315 for ac_prog in cl.exe
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy $ac_prog; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -n "$ac_ct_CC"; then
4325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_ac_ct_CC="$ac_prog"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345 if test -n "$ac_ct_CC"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4347 $as_echo "$ac_ct_CC" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4354 test -n "$ac_ct_CC" && break
4357 if test "x$ac_ct_CC" = x; then
4360 case $cross_compiling:$ac_tool_warned in
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364 ac_tool_warned=yes ;;
4373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4375 as_fn_error "no acceptable C compiler found in \$PATH
4376 See \`config.log' for more details." "$LINENO" 5; }
4378 # Provide some information about the compiler.
4379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4382 for ac_option in --version -v -V -qversion; do
4383 { { ac_try="$ac_compiler $ac_option >&5"
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4392 if test -s conftest.err; then
4394 ... rest of stderr output deleted ...
4395 10q' conftest.err >conftest.er1
4396 cat conftest.er1 >&5
4398 rm -f conftest.er1 conftest.err
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4414 ac_clean_files_save=$ac_clean_files
4415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4416 # Try to create an executable without -o first, disregard a.out.
4417 # It will help us diagnose broken compilers, and finding out an intuition
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4420 $as_echo_n "checking whether the C compiler works... " >&6; }
4421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4423 # The possible output files:
4424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4427 for ac_file in $ac_files
4430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4436 if { { ac_try="$ac_link_default"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_link_default") 2>&5
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }; then :
4447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4450 # so that the user can short-circuit this test for compilers unknown to
4452 for ac_file in $ac_files ''
4454 test -f "$ac_file" || continue
4456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4459 # We found the default executable, but exeext='' is most
4463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4467 # We set ac_cv_exeext here because the later test for it is not
4468 # safe: cross compilers may not add the suffix if given an `-o'
4469 # argument, so we may need to know it at that point already.
4470 # Even if this section looks crufty: it has the advantage of
4477 test "$ac_cv_exeext" = no && ac_cv_exeext=
4482 if test -z "$ac_file"; then :
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 $as_echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4490 { as_fn_set_status 77
4491 as_fn_error "C compiler cannot create executables
4492 See \`config.log' for more details." "$LINENO" 5; }; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495 $as_echo "yes" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4498 $as_echo_n "checking for C compiler default output file name... " >&6; }
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4500 $as_echo "$ac_file" >&6; }
4501 ac_exeext=$ac_cv_exeext
4503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4504 ac_clean_files=$ac_clean_files_save
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4506 $as_echo_n "checking for suffix of executables... " >&6; }
4507 if { { ac_try="$ac_link"
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 $as_echo "$ac_try_echo"; } >&5
4514 (eval "$ac_link") 2>&5
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }; then :
4518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4519 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4520 # work properly (i.e., refer to `conftest.exe'), while it won't with
4522 for ac_file in conftest.exe conftest conftest.*; do
4523 test -f "$ac_file" || continue
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534 as_fn_error "cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details." "$LINENO" 5; }
4537 rm -f conftest conftest$ac_cv_exeext
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4539 $as_echo "$ac_cv_exeext" >&6; }
4541 rm -f conftest.$ac_ext
4542 EXEEXT=$ac_cv_exeext
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4550 FILE *f = fopen ("conftest.out", "w");
4551 return ferror (f) || fclose (f) != 0;
4557 ac_clean_files="$ac_clean_files conftest.out"
4558 # Check that the compiler produces executables we can run. If not, either
4559 # the compiler is broken, or we cross compile.
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4561 $as_echo_n "checking whether we are cross compiling... " >&6; }
4562 if test "$cross_compiling" != yes; then
4563 { { ac_try="$ac_link"
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }
4574 if { ac_try='./conftest$ac_cv_exeext'
4575 { { case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 $as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_try") 2>&5
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }; }; then
4587 if test "$cross_compiling" = maybe; then
4590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error "cannot run C compiled programs.
4593 If you meant to cross compile, use \`--host'.
4594 See \`config.log' for more details." "$LINENO" 5; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4599 $as_echo "$cross_compiling" >&6; }
4601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4602 ac_clean_files=$ac_clean_files_save
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4604 $as_echo_n "checking for suffix of object files... " >&6; }
4605 if test "${ac_cv_objext+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4619 rm -f conftest.o conftest.obj
4620 if { { ac_try="$ac_compile"
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_compile") 2>&5
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then :
4631 for ac_file in conftest.o conftest.obj conftest.*; do
4632 test -f "$ac_file" || continue;
4634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4640 $as_echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4645 as_fn_error "cannot compute suffix of object files: cannot compile
4646 See \`config.log' for more details." "$LINENO" 5; }
4648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4651 $as_echo "$ac_cv_objext" >&6; }
4652 OBJEXT=$ac_cv_objext
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4656 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4673 if ac_fn_c_try_compile "$LINENO"; then :
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4684 if test $ac_compiler_gnu = yes; then
4689 ac_test_CFLAGS=${CFLAGS+set}
4690 ac_save_CFLAGS=$CFLAGS
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4693 if test "${ac_cv_prog_cc_g+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4696 ac_save_c_werror_flag=$ac_c_werror_flag
4697 ac_c_werror_flag=yes
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_c_try_compile "$LINENO"; then :
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 if ac_fn_c_try_compile "$LINENO"; then :
4729 ac_c_werror_flag=$ac_save_c_werror_flag
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4742 if ac_fn_c_try_compile "$LINENO"; then :
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 ac_c_werror_flag=$ac_save_c_werror_flag
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4753 $as_echo "$ac_cv_prog_cc_g" >&6; }
4754 if test "$ac_test_CFLAGS" = set; then
4755 CFLAGS=$ac_save_CFLAGS
4756 elif test $ac_cv_prog_cc_g = yes; then
4757 if test "$GCC" = yes; then
4763 if test "$GCC" = yes; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4771 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4774 ac_cv_prog_cc_c89=no
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4780 #include <sys/types.h>
4781 #include <sys/stat.h>
4782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4783 struct buf { int x; };
4784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4785 static char *e (p, i)
4791 static char *f (char * (*g) (char **, int), char **p, ...)
4796 s = g (p, va_arg (v,int));
4801 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4802 function prototypes and stuff, but not '\xHH' hex character constants.
4803 These don't provoke an error unfortunately, instead are silently treated
4804 as 'x'. The following induces an error, until -std is added to get
4805 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4806 array size at least. It's necessary to write '\x00'==0 to get something
4807 that's true only with -std. */
4808 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4810 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4811 inside strings and character constants. */
4813 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4815 int test (int i, double x);
4816 struct s1 {int (*f) (int a);};
4817 struct s2 {int (*f) (double a);};
4818 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4824 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4829 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4830 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4832 CC="$ac_save_CC $ac_arg"
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_prog_cc_c89=$ac_arg
4836 rm -f core conftest.err conftest.$ac_objext
4837 test "x$ac_cv_prog_cc_c89" != "xno" && break
4839 rm -f conftest.$ac_ext
4844 case "x$ac_cv_prog_cc_c89" in
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4847 $as_echo "none needed" >&6; } ;;
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4850 $as_echo "unsupported" >&6; } ;;
4852 CC="$CC $ac_cv_prog_cc_c89"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4854 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4856 if test "x$ac_cv_prog_cc_c89" != xno; then :
4861 ac_cpp='$CPP $CPPFLAGS'
4862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865 DEPDIR="${am__leading_dot}deps"
4867 ac_config_commands="$ac_config_commands depfiles"
4870 am_make=${MAKE-make}
4871 cat > confinc << 'END'
4873 @echo this is the am__doit target
4876 # If we don't find an include directive, just comment out the code.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4878 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4882 # First try GNU make style include.
4883 echo "include confinc" > confmf
4884 # Ignore all kinds of additional output from `make'.
4885 case `$am_make -s -f confmf 2> /dev/null` in #(
4886 *the\ am__doit\ target*)
4892 # Now try BSD make style include.
4893 if test "$am__include" = "#"; then
4894 echo '.include "confinc"' > confmf
4895 case `$am_make -s -f confmf 2> /dev/null` in #(
4896 *the\ am__doit\ target*)
4897 am__include=.include
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4906 $as_echo "$_am_result" >&6; }
4907 rm -f confinc confmf
4909 # Check whether --enable-dependency-tracking was given.
4910 if test "${enable_dependency_tracking+set}" = set; then :
4911 enableval=$enable_dependency_tracking;
4914 if test "x$enable_dependency_tracking" != xno; then
4915 am_depcomp="$ac_aux_dir/depcomp"
4918 if test "x$enable_dependency_tracking" != xno; then
4928 depcc="$CC" am_compiler_list=
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4931 $as_echo_n "checking dependency style of $depcc... " >&6; }
4932 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4935 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4936 # We make a subdir and do the tests there. Otherwise we can end up
4937 # making bogus files that we don't know about and never remove. For
4938 # instance it was reported that on HP-UX the gcc test will end up
4939 # making a dummy file named `D' -- because `-MD' means `put the output
4942 # Copy depcomp to subdir because otherwise we won't find it if we're
4943 # using a relative directory.
4944 cp "$am_depcomp" conftest.dir
4946 # We will build objects and dependencies in a subdirectory because
4947 # it helps to detect inapplicable dependency modes. For instance
4948 # both Tru64's cc and ICC support -MD to output dependencies as a
4949 # side effect of compilation, but ICC will put the dependencies in
4950 # the current directory while Tru64 will put them in the object
4954 am_cv_CC_dependencies_compiler_type=none
4955 if test "$am_compiler_list" = ""; then
4956 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4959 case " $depcc " in #(
4960 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4963 for depmode in $am_compiler_list; do
4964 # Setup a source with many dependencies, because some compilers
4965 # like to wrap large dependency lists on column 80 (with \), and
4966 # we should not choose a depcomp mode which is confused by this.
4968 # We need to recreate these files for each test, as the compiler may
4969 # overwrite some of them when testing with obscure command lines.
4970 # This happens at least with the AIX C compiler.
4972 for i in 1 2 3 4 5 6; do
4973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4975 # Solaris 8's {/usr,}/bin/sh.
4976 touch sub/conftst$i.h
4978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4981 # mode. It turns out that the SunPro C++ compiler does not properly
4982 # handle `-M -o', and we need to detect this. Also, some Intel
4983 # versions had trouble with output in subdirs
4984 am__obj=sub/conftest.${OBJEXT-o}
4985 am__minus_obj="-o $am__obj"
4988 # This depmode causes a compiler race in universal mode.
4989 test "$am__universal" = false || continue
4992 # after this tag, mechanisms are not by side-effect, so they'll
4993 # only be used when explicitly requested
4994 if test "x$enable_dependency_tracking" = xyes; then
5000 msvisualcpp | msvcmsys)
5001 # This compiler won't grok `-c -o', but also, the minuso test has
5002 # not run yet. These depmodes are late enough in the game, and
5003 # so weak that their functioning should not be impacted.
5004 am__obj=conftest.${OBJEXT-o}
5009 if depmode=$depmode \
5010 source=sub/conftest.c object=$am__obj \
5011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5012 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5013 >/dev/null 2>conftest.err &&
5014 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5018 # icc doesn't choke on unknown options, it will just issue warnings
5019 # or remarks (even with -Werror). So we grep stderr for any message
5020 # that says an option was ignored or not supported.
5021 # When given -MP, icc 7.0 and 7.1 complain thusly:
5022 # icc: Command line warning: ignoring option '-M'; no argument required
5023 # The diagnosis changed in icc 8.0:
5024 # icc: Command line remark: option '-MP' not supported
5025 if (grep 'ignoring option' conftest.err ||
5026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5027 am_cv_CC_dependencies_compiler_type=$depmode
5036 am_cv_CC_dependencies_compiler_type=none
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5041 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5045 test "x$enable_dependency_tracking" != xno \
5046 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5048 am__fastdepCC_FALSE='#'
5050 am__fastdepCC_TRUE='#'
5051 am__fastdepCC_FALSE=
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060 if test -z "$CXX"; then
5061 if test -n "$CCC"; then
5064 if test -n "$ac_tool_prefix"; then
5065 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_prog_CXX+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5074 if test -n "$CXX"; then
5075 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 if test -n "$CXX"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5097 $as_echo "$CXX" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5104 test -n "$CXX" && break
5107 if test -z "$CXX"; then
5109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5111 # Extract the first word of "$ac_prog", so it can be a program name with args.
5112 set dummy $ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5118 if test -n "$ac_ct_CXX"; then
5119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_CXX="$ac_prog"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5139 if test -n "$ac_ct_CXX"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5141 $as_echo "$ac_ct_CXX" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5148 test -n "$ac_ct_CXX" && break
5151 if test "x$ac_ct_CXX" = x; then
5154 case $cross_compiling:$ac_tool_warned in
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5158 ac_tool_warned=yes ;;
5166 # Provide some information about the compiler.
5167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5170 for ac_option in --version -v -V -qversion; do
5171 { { ac_try="$ac_compiler $ac_option >&5"
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5177 $as_echo "$ac_try_echo"; } >&5
5178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5180 if test -s conftest.err; then
5182 ... rest of stderr output deleted ...
5183 10q' conftest.err >conftest.er1
5184 cat conftest.er1 >&5
5186 rm -f conftest.er1 conftest.err
5187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5188 test $ac_status = 0; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5210 if ac_fn_cxx_try_compile "$LINENO"; then :
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5220 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5221 if test $ac_compiler_gnu = yes; then
5226 ac_test_CXXFLAGS=${CXXFLAGS+set}
5227 ac_save_CXXFLAGS=$CXXFLAGS
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5229 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5230 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5233 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5234 ac_cxx_werror_flag=yes
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5248 if ac_fn_cxx_try_compile "$LINENO"; then :
5249 ac_cv_prog_cxx_g=yes
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5263 if ac_fn_cxx_try_compile "$LINENO"; then :
5266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5279 if ac_fn_cxx_try_compile "$LINENO"; then :
5280 ac_cv_prog_cxx_g=yes
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5290 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5291 if test "$ac_test_CXXFLAGS" = set; then
5292 CXXFLAGS=$ac_save_CXXFLAGS
5293 elif test $ac_cv_prog_cxx_g = yes; then
5294 if test "$GXX" = yes; then
5300 if test "$GXX" = yes; then
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312 depcc="$CXX" am_compiler_list=
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5315 $as_echo_n "checking dependency style of $depcc... " >&6; }
5316 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5320 # We make a subdir and do the tests there. Otherwise we can end up
5321 # making bogus files that we don't know about and never remove. For
5322 # instance it was reported that on HP-UX the gcc test will end up
5323 # making a dummy file named `D' -- because `-MD' means `put the output
5326 # Copy depcomp to subdir because otherwise we won't find it if we're
5327 # using a relative directory.
5328 cp "$am_depcomp" conftest.dir
5330 # We will build objects and dependencies in a subdirectory because
5331 # it helps to detect inapplicable dependency modes. For instance
5332 # both Tru64's cc and ICC support -MD to output dependencies as a
5333 # side effect of compilation, but ICC will put the dependencies in
5334 # the current directory while Tru64 will put them in the object
5338 am_cv_CXX_dependencies_compiler_type=none
5339 if test "$am_compiler_list" = ""; then
5340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5343 case " $depcc " in #(
5344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5347 for depmode in $am_compiler_list; do
5348 # Setup a source with many dependencies, because some compilers
5349 # like to wrap large dependency lists on column 80 (with \), and
5350 # we should not choose a depcomp mode which is confused by this.
5352 # We need to recreate these files for each test, as the compiler may
5353 # overwrite some of them when testing with obscure command lines.
5354 # This happens at least with the AIX C compiler.
5356 for i in 1 2 3 4 5 6; do
5357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5359 # Solaris 8's {/usr,}/bin/sh.
5360 touch sub/conftst$i.h
5362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5364 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5365 # mode. It turns out that the SunPro C++ compiler does not properly
5366 # handle `-M -o', and we need to detect this. Also, some Intel
5367 # versions had trouble with output in subdirs
5368 am__obj=sub/conftest.${OBJEXT-o}
5369 am__minus_obj="-o $am__obj"
5372 # This depmode causes a compiler race in universal mode.
5373 test "$am__universal" = false || continue
5376 # after this tag, mechanisms are not by side-effect, so they'll
5377 # only be used when explicitly requested
5378 if test "x$enable_dependency_tracking" = xyes; then
5384 msvisualcpp | msvcmsys)
5385 # This compiler won't grok `-c -o', but also, the minuso test has
5386 # not run yet. These depmodes are late enough in the game, and
5387 # so weak that their functioning should not be impacted.
5388 am__obj=conftest.${OBJEXT-o}
5393 if depmode=$depmode \
5394 source=sub/conftest.c object=$am__obj \
5395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5397 >/dev/null 2>conftest.err &&
5398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402 # icc doesn't choke on unknown options, it will just issue warnings
5403 # or remarks (even with -Werror). So we grep stderr for any message
5404 # that says an option was ignored or not supported.
5405 # When given -MP, icc 7.0 and 7.1 complain thusly:
5406 # icc: Command line warning: ignoring option '-M'; no argument required
5407 # The diagnosis changed in icc 8.0:
5408 # icc: Command line remark: option '-MP' not supported
5409 if (grep 'ignoring option' conftest.err ||
5410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411 am_cv_CXX_dependencies_compiler_type=$depmode
5420 am_cv_CXX_dependencies_compiler_type=none
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5425 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5426 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5429 test "x$enable_dependency_tracking" != xno \
5430 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5431 am__fastdepCXX_TRUE=
5432 am__fastdepCXX_FALSE='#'
5434 am__fastdepCXX_TRUE='#'
5435 am__fastdepCXX_FALSE=
5439 case $ac_cv_prog_cc_stdc in #(
5441 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5444 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5445 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5448 ac_cv_prog_cc_c99=no
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5453 #include <stdbool.h>
5458 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5459 #define debug(...) fprintf (stderr, __VA_ARGS__)
5460 #define showlist(...) puts (#__VA_ARGS__)
5461 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5463 test_varargs_macros (void)
5468 debug ("X = %d\n", x);
5469 showlist (The first, second, and third items.);
5470 report (x>y, "x is %d but y is %d", x, y);
5473 // Check long long types.
5474 #define BIG64 18446744073709551615ull
5475 #define BIG32 4294967295ul
5476 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5478 your preprocessor is broken;
5482 your preprocessor is broken;
5484 static long long int bignum = -9223372036854775807LL;
5485 static unsigned long long int ubignum = BIG64;
5487 struct incomplete_array
5495 const wchar_t *name;
5499 typedef const char *ccp;
5502 test_restrict (ccp restrict text)
5504 // See if C++-style comments work.
5505 // Iterate through items via the restricted pointer.
5506 // Also check for declarations in for loops.
5507 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5512 // Check varargs and va_copy.
5514 test_varargs (const char *format, ...)
5517 va_start (args, format);
5519 va_copy (args_copy, args);
5530 str = va_arg (args_copy, const char *);
5533 number = va_arg (args_copy, int);
5536 fnumber = va_arg (args_copy, double);
5551 _Bool success = false;
5554 if (test_restrict ("String literal") == 0)
5556 char *restrict newvar = "Another string";
5559 test_varargs ("s, d' f .", "string", 65, 34.234);
5560 test_varargs_macros ();
5562 // Check flexible array members.
5563 struct incomplete_array *ia =
5564 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5566 for (int i = 0; i < ia->datasize; ++i)
5567 ia->data[i] = i * 1.234;
5569 // Check named initializers.
5570 struct named_init ni = {
5572 .name = L"Test wide string",
5573 .average = 543.34343,
5578 int dynamic_array[ni.number];
5579 dynamic_array[ni.number - 1] = 543;
5581 // work around unused variable warnings
5582 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5583 || dynamic_array[ni.number - 1] != 543);
5589 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5591 CC="$ac_save_CC $ac_arg"
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_prog_cc_c99=$ac_arg
5595 rm -f core conftest.err conftest.$ac_objext
5596 test "x$ac_cv_prog_cc_c99" != "xno" && break
5598 rm -f conftest.$ac_ext
5603 case "x$ac_cv_prog_cc_c99" in
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5606 $as_echo "none needed" >&6; } ;;
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5609 $as_echo "unsupported" >&6; } ;;
5611 CC="$CC $ac_cv_prog_cc_c99"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5613 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5615 if test "x$ac_cv_prog_cc_c99" != xno; then :
5616 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5620 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5623 ac_cv_prog_cc_c89=no
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5629 #include <sys/types.h>
5630 #include <sys/stat.h>
5631 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5632 struct buf { int x; };
5633 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5634 static char *e (p, i)
5640 static char *f (char * (*g) (char **, int), char **p, ...)
5645 s = g (p, va_arg (v,int));
5650 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5651 function prototypes and stuff, but not '\xHH' hex character constants.
5652 These don't provoke an error unfortunately, instead are silently treated
5653 as 'x'. The following induces an error, until -std is added to get
5654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5655 array size at least. It's necessary to write '\x00'==0 to get something
5656 that's true only with -std. */
5657 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5659 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5660 inside strings and character constants. */
5662 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5664 int test (int i, double x);
5665 struct s1 {int (*f) (int a);};
5666 struct s2 {int (*f) (double a);};
5667 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5673 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5678 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5681 CC="$ac_save_CC $ac_arg"
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 ac_cv_prog_cc_c89=$ac_arg
5685 rm -f core conftest.err conftest.$ac_objext
5686 test "x$ac_cv_prog_cc_c89" != "xno" && break
5688 rm -f conftest.$ac_ext
5693 case "x$ac_cv_prog_cc_c89" in
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5696 $as_echo "none needed" >&6; } ;;
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5699 $as_echo "unsupported" >&6; } ;;
5701 CC="$CC $ac_cv_prog_cc_c89"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5703 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5705 if test "x$ac_cv_prog_cc_c89" != xno; then :
5706 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5708 ac_cv_prog_cc_stdc=no
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5715 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5716 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5720 case $ac_cv_prog_cc_stdc in #(
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5723 $as_echo "unsupported" >&6; } ;; #(
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5726 $as_echo "none needed" >&6; } ;; #(
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5729 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5739 # On Suns, sometimes $CPP names a directory.
5740 if test -n "$CPP" && test -d "$CPP"; then
5743 if test -z "$CPP"; then
5744 if test "${ac_cv_prog_CPP+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5747 # Double quotes because CPP needs to be expanded
5748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5751 for ac_c_preproc_warn_flag in '' yes
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5762 # include <limits.h>
5764 # include <assert.h>
5768 if ac_fn_c_try_cpp "$LINENO"; then :
5771 # Broken: fails on valid input.
5774 rm -f conftest.err conftest.$ac_ext
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5783 # Broken: success on invalid input.
5786 # Passes both tests.
5790 rm -f conftest.err conftest.$ac_ext
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.err conftest.$ac_ext
5795 if $ac_preproc_ok; then :
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5808 $as_echo "$CPP" >&6; }
5810 for ac_c_preproc_warn_flag in '' yes
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5821 # include <limits.h>
5823 # include <assert.h>
5827 if ac_fn_c_try_cpp "$LINENO"; then :
5830 # Broken: fails on valid input.
5833 rm -f conftest.err conftest.$ac_ext
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <ac_nonexistent.h>
5841 if ac_fn_c_try_cpp "$LINENO"; then :
5842 # Broken: success on invalid input.
5845 # Passes both tests.
5849 rm -f conftest.err conftest.$ac_ext
5852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853 rm -f conftest.err conftest.$ac_ext
5854 if $ac_preproc_ok; then :
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5860 See \`config.log' for more details." "$LINENO" 5; }
5864 ac_cpp='$CPP $CPPFLAGS'
5865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5870 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5871 if test "${ac_cv_path_SED+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5874 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5875 for ac_i in 1 2 3 4 5 6 7; do
5876 ac_script="$ac_script$as_nl$ac_script"
5878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5879 { ac_script=; unset ac_script;}
5880 if test -z "$SED"; then
5881 ac_path_SED_found=false
5882 # Loop through the user's path and test for each of PROGNAME-LIST
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887 test -z "$as_dir" && as_dir=.
5888 for ac_prog in sed gsed; do
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5891 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5892 # Check for GNU ac_path_SED and select it if it is found.
5893 # Check for GNU $ac_path_SED
5894 case `"$ac_path_SED" --version 2>&1` in
5896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5899 $as_echo_n 0123456789 >"conftest.in"
5902 cat "conftest.in" "conftest.in" >"conftest.tmp"
5903 mv "conftest.tmp" "conftest.in"
5904 cp "conftest.in" "conftest.nl"
5905 $as_echo '' >> "conftest.nl"
5906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5908 as_fn_arith $ac_count + 1 && ac_count=$as_val
5909 if test $ac_count -gt ${ac_path_SED_max-0}; then
5910 # Best one so far, save it but keep looking for a better one
5911 ac_cv_path_SED="$ac_path_SED"
5912 ac_path_SED_max=$ac_count
5914 # 10*(2^10) chars as input seems more than enough
5915 test $ac_count -gt 10 && break
5917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5920 $ac_path_SED_found && break 3
5925 if test -z "$ac_cv_path_SED"; then
5926 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5934 $as_echo "$ac_cv_path_SED" >&6; }
5935 SED="$ac_cv_path_SED"
5938 test -z "$SED" && SED=sed
5939 Xsed="$SED -e 1s/^X//"
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5953 if test "${ac_cv_path_GREP+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 if test -z "$GREP"; then
5957 ac_path_GREP_found=false
5958 # Loop through the user's path and test for each of PROGNAME-LIST
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5963 test -z "$as_dir" && as_dir=.
5964 for ac_prog in grep ggrep; do
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5968 # Check for GNU ac_path_GREP and select it if it is found.
5969 # Check for GNU $ac_path_GREP
5970 case `"$ac_path_GREP" --version 2>&1` in
5972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5975 $as_echo_n 0123456789 >"conftest.in"
5978 cat "conftest.in" "conftest.in" >"conftest.tmp"
5979 mv "conftest.tmp" "conftest.in"
5980 cp "conftest.in" "conftest.nl"
5981 $as_echo 'GREP' >> "conftest.nl"
5982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5984 as_fn_arith $ac_count + 1 && ac_count=$as_val
5985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5986 # Best one so far, save it but keep looking for a better one
5987 ac_cv_path_GREP="$ac_path_GREP"
5988 ac_path_GREP_max=$ac_count
5990 # 10*(2^10) chars as input seems more than enough
5991 test $ac_count -gt 10 && break
5993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5996 $ac_path_GREP_found && break 3
6001 if test -z "$ac_cv_path_GREP"; then
6002 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6005 ac_cv_path_GREP=$GREP
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6010 $as_echo "$ac_cv_path_GREP" >&6; }
6011 GREP="$ac_cv_path_GREP"
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6015 $as_echo_n "checking for egrep... " >&6; }
6016 if test "${ac_cv_path_EGREP+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6020 then ac_cv_path_EGREP="$GREP -E"
6022 if test -z "$EGREP"; then
6023 ac_path_EGREP_found=false
6024 # Loop through the user's path and test for each of PROGNAME-LIST
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6029 test -z "$as_dir" && as_dir=.
6030 for ac_prog in egrep; do
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6034 # Check for GNU ac_path_EGREP and select it if it is found.
6035 # Check for GNU $ac_path_EGREP
6036 case `"$ac_path_EGREP" --version 2>&1` in
6038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6041 $as_echo_n 0123456789 >"conftest.in"
6044 cat "conftest.in" "conftest.in" >"conftest.tmp"
6045 mv "conftest.tmp" "conftest.in"
6046 cp "conftest.in" "conftest.nl"
6047 $as_echo 'EGREP' >> "conftest.nl"
6048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6050 as_fn_arith $ac_count + 1 && ac_count=$as_val
6051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6052 # Best one so far, save it but keep looking for a better one
6053 ac_cv_path_EGREP="$ac_path_EGREP"
6054 ac_path_EGREP_max=$ac_count
6056 # 10*(2^10) chars as input seems more than enough
6057 test $ac_count -gt 10 && break
6059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6062 $ac_path_EGREP_found && break 3
6067 if test -z "$ac_cv_path_EGREP"; then
6068 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6071 ac_cv_path_EGREP=$EGREP
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6077 $as_echo "$ac_cv_path_EGREP" >&6; }
6078 EGREP="$ac_cv_path_EGREP"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6082 $as_echo_n "checking for fgrep... " >&6; }
6083 if test "${ac_cv_path_FGREP+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6087 then ac_cv_path_FGREP="$GREP -F"
6089 if test -z "$FGREP"; then
6090 ac_path_FGREP_found=false
6091 # Loop through the user's path and test for each of PROGNAME-LIST
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6096 test -z "$as_dir" && as_dir=.
6097 for ac_prog in fgrep; do
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6100 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6101 # Check for GNU ac_path_FGREP and select it if it is found.
6102 # Check for GNU $ac_path_FGREP
6103 case `"$ac_path_FGREP" --version 2>&1` in
6105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6108 $as_echo_n 0123456789 >"conftest.in"
6111 cat "conftest.in" "conftest.in" >"conftest.tmp"
6112 mv "conftest.tmp" "conftest.in"
6113 cp "conftest.in" "conftest.nl"
6114 $as_echo 'FGREP' >> "conftest.nl"
6115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6117 as_fn_arith $ac_count + 1 && ac_count=$as_val
6118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6119 # Best one so far, save it but keep looking for a better one
6120 ac_cv_path_FGREP="$ac_path_FGREP"
6121 ac_path_FGREP_max=$ac_count
6123 # 10*(2^10) chars as input seems more than enough
6124 test $ac_count -gt 10 && break
6126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6129 $ac_path_FGREP_found && break 3
6134 if test -z "$ac_cv_path_FGREP"; then
6135 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6138 ac_cv_path_FGREP=$FGREP
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6144 $as_echo "$ac_cv_path_FGREP" >&6; }
6145 FGREP="$ac_cv_path_FGREP"
6148 test -z "$GREP" && GREP=grep
6168 # Check whether --with-gnu-ld was given.
6169 if test "${with_gnu_ld+set}" = set; then :
6170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6176 if test "$GCC" = yes; then
6177 # Check if gcc -print-prog-name=ld gives a path.
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6179 $as_echo_n "checking for ld used by $CC... " >&6; }
6182 # gcc leaves a trailing carriage return which upsets mingw
6183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6188 # Accept absolute paths.
6190 re_direlt='/[^/][^/]*/\.\./'
6191 # Canonicalize the pathname of ld
6192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6196 test -z "$LD" && LD="$ac_prog"
6199 # If it fails, then pretend we aren't using GCC.
6203 # If it is relative, then search for the first ld in PATH.
6207 elif test "$with_gnu_ld" = yes; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6209 $as_echo_n "checking for GNU ld... " >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6212 $as_echo_n "checking for non-GNU ld... " >&6; }
6214 if test "${lt_cv_path_LD+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -z "$LD"; then
6218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6219 for ac_dir in $PATH; do
6221 test -z "$ac_dir" && ac_dir=.
6222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6223 lt_cv_path_LD="$ac_dir/$ac_prog"
6224 # Check to see if the program is GNU ld. I'd rather use --version,
6225 # but apparently some variants of GNU ld only accept -v.
6226 # Break only if it was the GNU/non-GNU ld that we prefer.
6227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6228 *GNU* | *'with BFD'*)
6229 test "$with_gnu_ld" != no && break
6232 test "$with_gnu_ld" != yes && break
6239 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6244 if test -n "$LD"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6246 $as_echo "$LD" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6251 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6254 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6258 case `$LD -v 2>&1 </dev/null` in
6259 *GNU* | *'with BFD'*)
6260 lt_cv_prog_gnu_ld=yes
6263 lt_cv_prog_gnu_ld=no
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6268 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6269 with_gnu_ld=$lt_cv_prog_gnu_ld
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -n "$RANLIB"; then
6288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 RANLIB=$ac_cv_prog_RANLIB
6308 if test -n "$RANLIB"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6310 $as_echo "$RANLIB" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6318 if test -z "$ac_cv_prog_RANLIB"; then
6319 ac_ct_RANLIB=$RANLIB
6320 # Extract the first word of "ranlib", so it can be a program name with args.
6321 set dummy ranlib; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$ac_ct_RANLIB"; then
6328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_ac_ct_RANLIB="ranlib"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348 if test -n "$ac_ct_RANLIB"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6350 $as_echo "$ac_ct_RANLIB" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6356 if test "x$ac_ct_RANLIB" = x; then
6359 case $cross_compiling:$ac_tool_warned in
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6365 RANLIB=$ac_ct_RANLIB
6368 RANLIB="$ac_cv_prog_RANLIB"
6372 if test "x$CC" != xcc; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6374 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6377 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6379 set dummy $CC; ac_cc=`$as_echo "$2" |
6380 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6381 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6382 $as_echo_n "(cached) " >&6
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6395 # Make sure it works both with $CC and with simple cc.
6396 # We do the test twice because some compilers refuse to overwrite an
6397 # existing .o file with -o, though they will create one.
6398 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6400 if { { case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6405 $as_echo "$ac_try_echo"; } >&5
6406 (eval "$ac_try") 2>&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; } &&
6410 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6415 $as_echo "$ac_try_echo"; } >&5
6416 (eval "$ac_try") 2>&5
6418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; };
6421 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6422 if test "x$CC" != xcc; then
6423 # Test first that cc exists at all.
6424 if { ac_try='cc -c conftest.$ac_ext >&5'
6425 { { case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6430 $as_echo "$ac_try_echo"; } >&5
6431 (eval "$ac_try") 2>&5
6433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6434 test $ac_status = 0; }; }; then
6435 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6437 if { { case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442 $as_echo "$ac_try_echo"; } >&5
6443 (eval "$ac_try") 2>&5
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; } &&
6447 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6452 $as_echo "$ac_try_echo"; } >&5
6453 (eval "$ac_try") 2>&5
6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6456 test $ac_status = 0; };
6461 # cc exists but doesn't like -o.
6462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6467 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6469 rm -f core conftest*
6472 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6474 $as_echo "yes" >&6; }
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6479 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6483 # FIXME: we rely on the cache variable name because
6484 # there is no other way.
6486 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6487 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6488 if test "$am_t" != yes; then
6489 # Losing compiler, so override with the script.
6490 # FIXME: It is wrong to rewrite CC.
6491 # But if we don't then we get into trouble of one sort or another.
6492 # A longer-term fix would be to have automake use am__CC in this case,
6493 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6494 CC="$am_aux_dir/compile $CC"
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6500 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6502 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6503 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6506 cat >conftest.make <<\_ACEOF
6509 @echo '@@@%%%=$(MAKE)=@@@%%%'
6511 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6512 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6514 eval ac_cv_prog_make_${ac_make}_set=yes;;
6516 eval ac_cv_prog_make_${ac_make}_set=no;;
6520 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6522 $as_echo "yes" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6527 SET_MAKE="MAKE=${MAKE-make}"
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
6532 $as_echo_n "checking maximum warning verbosity option... " >&6; }
6537 # Check whether --with-maximum-compile-warnings was given.
6538 if test "${with_maximum_compile_warnings+set}" = set; then :
6539 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6541 ac_compile_warnings_on=""
6545 if test x"$ac_compile_warnings_on" = xno
6547 ac_compile_warnings_msg=no
6551 if test "$GXX" = "yes"
6553 ac_compile_warnings_opt='-Wall -W'
6555 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6556 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6561 if test "$GCC" = "yes"
6563 ac_compile_warnings_opt='-Wall -W'
6565 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6566 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
6570 $as_echo "$ac_compile_warnings_msg" >&6; }
6571 unset ac_compile_warnings_msg
6572 unset ac_compile_warnings_opt
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6575 $as_echo_n "checking whether ln -s works... " >&6; }
6577 if test "$LN_S" = "ln -s"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6579 $as_echo "yes" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6582 $as_echo "no, using $LN_S" >&6; }
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
6586 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
6588 # Check whether --with-dmalloc was given.
6589 if test "${with_dmalloc+set}" = set; then :
6590 withval=$with_dmalloc; if test "$withval" = yes; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6592 $as_echo "yes" >&6; }
6594 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
6596 LIBS="$LIBS -ldmalloc"
6597 LDFLAGS="$LDFLAGS -g"
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6610 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6643 if test -n "$PKG_CONFIG"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6645 $as_echo "$PKG_CONFIG" >&6; }
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6653 if test -z "$ac_cv_path_PKG_CONFIG"; then
6654 ac_pt_PKG_CONFIG=$PKG_CONFIG
6655 # Extract the first word of "pkg-config", so it can be a program name with args.
6656 set dummy pkg-config; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6662 case $ac_pt_PKG_CONFIG in
6664 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6686 if test -n "$ac_pt_PKG_CONFIG"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6688 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6694 if test "x$ac_pt_PKG_CONFIG" = x; then
6697 case $cross_compiling:$ac_tool_warned in
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6701 ac_tool_warned=yes ;;
6703 PKG_CONFIG=$ac_pt_PKG_CONFIG
6706 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6710 if test -n "$PKG_CONFIG"; then
6711 _pkg_min_version=0.9.0
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6713 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6714 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6716 $as_echo "yes" >&6; }
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6726 # Enable OS features.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6731 $as_echo_n "checking for ANSI C header files... " >&6; }
6732 if test "${ac_cv_header_stdc+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751 ac_cv_header_stdc=yes
6753 ac_cv_header_stdc=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 if test $ac_cv_header_stdc = yes; then
6758 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765 $EGREP "memchr" >/dev/null 2>&1; then :
6768 ac_cv_header_stdc=no
6774 if test $ac_cv_header_stdc = yes; then
6775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6782 $EGREP "free" >/dev/null 2>&1; then :
6785 ac_cv_header_stdc=no
6791 if test $ac_cv_header_stdc = yes; then
6792 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6793 if test "$cross_compiling" = yes; then :
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6800 #if ((' ' & 0x0FF) == 0x020)
6801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6804 # define ISLOWER(c) \
6805 (('a' <= (c) && (c) <= 'i') \
6806 || ('j' <= (c) && (c) <= 'r') \
6807 || ('s' <= (c) && (c) <= 'z'))
6808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6816 for (i = 0; i < 256; i++)
6817 if (XOR (islower (i), ISLOWER (i))
6818 || toupper (i) != TOUPPER (i))
6823 if ac_fn_c_try_run "$LINENO"; then :
6826 ac_cv_header_stdc=no
6828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6829 conftest.$ac_objext conftest.beam conftest.$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6835 $as_echo "$ac_cv_header_stdc" >&6; }
6836 if test $ac_cv_header_stdc = yes; then
6838 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6842 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6844 inttypes.h stdint.h unistd.h
6846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6849 eval as_val=\$$as_ac_Header
6850 if test "x$as_val" = x""yes; then :
6851 cat >>confdefs.h <<_ACEOF
6852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6861 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6862 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6869 if test "$MINIX" = yes; then
6871 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6874 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6877 $as_echo "#define _MINIX 1" >>confdefs.h
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6883 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6884 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6890 # define __EXTENSIONS__ 1
6891 $ac_includes_default
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 ac_cv_safe_to_define___extensions__=yes
6903 ac_cv_safe_to_define___extensions__=no
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6908 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6909 test $ac_cv_safe_to_define___extensions__ = yes &&
6910 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6912 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6914 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6916 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6918 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6923 # Enable run-time checking.
6925 # Check whether --enable-bounds-checking was given.
6926 if test "${enable_bounds_checking+set}" = set; then :
6927 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6929 enable_bounds_checking='no'
6933 if test "$enable_bounds_checking" = yes; then
6935 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
6946 StaticCplusPlusLibraries='no'
6947 native_win32_build='no'
6949 case "${host_os}" in
6951 StaticCplusPlusLibraries='yes'
6953 GDI32_LIBS='-lgdi32'
6956 StaticCplusPlusLibraries='yes'
6957 native_win32_build='yes'
6958 GDI32_LIBS='-lgdi32'
6961 if test "${GDI32_LIBS}x" != 'x'; then
6963 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
6967 if test "${GDI32_LIBS}x" != 'x' ; then
6968 WINGDI32_DELEGATE_TRUE=
6969 WINGDI32_DELEGATE_FALSE='#'
6971 WINGDI32_DELEGATE_TRUE='#'
6972 WINGDI32_DELEGATE_FALSE=
6975 if test "${native_win32_build}" = 'yes' ; then
6976 WIN32_NATIVE_BUILD_TRUE=
6977 WIN32_NATIVE_BUILD_FALSE='#'
6979 WIN32_NATIVE_BUILD_TRUE='#'
6980 WIN32_NATIVE_BUILD_FALSE=
6983 if test "${cygwin_build}" = 'yes' ; then
6985 CYGWIN_BUILD_FALSE='#'
6987 CYGWIN_BUILD_TRUE='#'
6991 if test "x${CC}" = 'xcl.exe' ; then
7000 WinPathScript="${srcdirfull}/winpath.sh"
7004 # Compiler flags tweaks
7006 if test "${GCC}" != "yes"; then
7009 # aCC: HP ANSI C++ B3910B A.03.34
7010 CFLAGS="${CFLAGS} -Wp,-H30000"
7011 if test -n "${CXXFLAGS}"; then
7014 CXXFLAGS="${CXXFLAGS} -AA"
7018 # Compaq alphaev68-dec-osf5.1 compiler
7019 if test -n "${CXXFLAGS}"; then
7020 CXXFLAGS='-std strict_ansi -noimplicit_include'
7022 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7027 # Check for lazy-loading.
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
7029 $as_echo_n "checking for linker lazyload option... " >&6; }
7030 if test "${im_cv_ld_lazyload+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7034 im_cv_ld_lazyload='none'
7036 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7037 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7038 im_cv_ld_lazyload='-Wl,-zlazyload'
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
7045 $as_echo "$im_cv_ld_lazyload" >&6; }
7046 if test "${im_cv_ld_lazyload}" != 'none' ; then
7047 if test -z "${LDFLAGS}" ; then
7048 LDFLAGS="${im_cv_ld_lazyload}"
7050 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7055 *darwin* | *-macos10*)
7056 if test -d /opt/local ; then
7057 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7058 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7059 elif test -d /sw ; then
7060 CPPFLAGS="$CPPFLAGS -I/sw/include"
7061 LDFLAGS="$LDFLAGS -L/sw/lib"
7063 # Check whether --enable-osx-universal-binary was given.
7064 if test "${enable_osx_universal_binary+set}" = set; then :
7065 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7067 build_osxuniversal=no
7071 if test "${build_osxuniversal}" != no ; then
7072 if test "$enable_dependency_tracking" != no ; then
7073 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
7074 Please re-run configure with these options:
7075 --disable-dependency-tracking --enable-osx-universal-binary
7078 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7079 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7080 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7085 # Enable support for threads
7087 # Check whether --with-threads was given.
7088 if test "${with_threads+set}" = set; then :
7089 withval=$with_threads; with_threads=$withval
7096 if test "$with_threads" != 'no'; then
7101 ac_cpp='$CPP $CPPFLAGS'
7102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7108 # We used to check for pthread.h first, but this fails if pthread.h
7109 # requires special compiler flags (e.g. on True64 or Sequent).
7110 # It gets checked for in the link test anyway.
7112 # First of all, check if the user has set any of the PTHREAD_LIBS,
7113 # etcetera environment variables, and if threads linking works using
7115 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7116 save_CFLAGS="$CFLAGS"
7117 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7119 LIBS="$PTHREAD_LIBS $LIBS"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7121 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7125 /* Override any GCC internal prototype to avoid an error.
7126 Use char because int might match the return type of a GCC
7127 builtin and then its argument prototype would still apply. */
7131 char pthread_join ();
7135 return pthread_join ();
7140 if ac_fn_c_try_link "$LINENO"; then :
7143 rm -f core conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7146 $as_echo "$acx_pthread_ok" >&6; }
7147 if test x"$acx_pthread_ok" = xno; then
7152 CFLAGS="$save_CFLAGS"
7155 # We must check for the threads library under a number of different
7156 # names; the ordering is very important because some systems
7157 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7158 # libraries is broken (non-POSIX).
7160 # Create a list of thread flags to try. Items starting with a "-" are
7161 # C compiler flags, and other items are library names, except for "none"
7162 # which indicates that we try without any flags at all, and "pthread-config"
7163 # which is a program returning the flags for the Pth emulation library.
7165 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7167 # The ordering *is* (sometimes) important. Some notes on the
7168 # individual items follow:
7170 # pthreads: AIX (must check this before -lpthread)
7171 # none: in case threads are in libc; should be tried before -Kthread and
7172 # other compiler flags to prevent continual compiler warnings
7173 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7174 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7175 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7176 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7177 # -pthreads: Solaris/gcc
7178 # -mthreads: Mingw32/gcc, Lynx/gcc
7179 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7180 # doesn't hurt to check since this sometimes defines pthreads too;
7181 # also defines -D_REENTRANT)
7182 # ... -mt is also the pthreads flag for HP/aCC
7183 # pthread: Linux, etcetera
7184 # --thread-safe: KAI C++
7185 # pthread-config: use pthread-config program (for GNU Pth library)
7187 case "${host_cpu}-${host_os}" in
7190 # On Solaris (at least, for some versions), libc contains stubbed
7191 # (non-functional) versions of the pthreads routines, so link-based
7192 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7193 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7194 # a function called by this macro, so we could check for that, but
7195 # who knows whether they'll stub that too in a future libc.) So,
7196 # we'll just look for -pthreads and -lpthread first:
7198 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7202 if test x"$acx_pthread_ok" = xno; then
7203 for flag in $acx_pthread_flags; do
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7208 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
7213 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
7214 PTHREAD_CFLAGS="$flag"
7218 # Extract the first word of "pthread-config", so it can be a program name with args.
7219 set dummy pthread-config; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7225 if test -n "$acx_pthread_config"; then
7226 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_acx_pthread_config="yes"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7246 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7247 if test -n "$acx_pthread_config"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
7249 $as_echo "$acx_pthread_config" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7256 if test x"$acx_pthread_config" = xno; then continue; fi
7257 PTHREAD_CFLAGS="`pthread-config --cflags`"
7258 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
7263 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7264 PTHREAD_LIBS="-l$flag"
7269 save_CFLAGS="$CFLAGS"
7270 LIBS="$PTHREAD_LIBS $LIBS"
7271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7273 # Check for various functions. We must include pthread.h,
7274 # since some functions may be macros. (On the Sequent, we
7275 # need a special flag -Kthread to make this header compile.)
7276 # We check for pthread_join because it is in -lpthread on IRIX
7277 # while pthread_create is in libc. We check for pthread_attr_init
7278 # due to DEC craziness with -lpthreads. We check for
7279 # pthread_cleanup_push because it is one of the few pthread
7280 # functions on Solaris that doesn't have a non-functional libc stub.
7281 # We try pthread_create on general principles.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #include <pthread.h>
7288 pthread_t th; pthread_join(th, 0);
7289 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7290 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7295 if ac_fn_c_try_link "$LINENO"; then :
7298 rm -f core conftest.err conftest.$ac_objext \
7299 conftest$ac_exeext conftest.$ac_ext
7302 CFLAGS="$save_CFLAGS"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7305 $as_echo "$acx_pthread_ok" >&6; }
7306 if test "x$acx_pthread_ok" = xyes; then
7315 # Various other checks:
7316 if test "x$acx_pthread_ok" = xyes; then
7318 LIBS="$PTHREAD_LIBS $LIBS"
7319 save_CFLAGS="$CFLAGS"
7320 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7322 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7324 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7326 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 #include <pthread.h>
7333 int attr=$attr; return attr;
7338 if ac_fn_c_try_link "$LINENO"; then :
7339 attr_name=$attr; break
7341 rm -f core conftest.err conftest.$ac_objext \
7342 conftest$ac_exeext conftest.$ac_ext
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
7345 $as_echo "$attr_name" >&6; }
7346 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7348 cat >>confdefs.h <<_ACEOF
7349 #define PTHREAD_CREATE_JOINABLE $attr_name
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
7355 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7357 case "${host_cpu}-${host_os}" in
7358 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7359 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
7362 $as_echo "${flag}" >&6; }
7363 if test "x$flag" != xno; then
7364 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7368 CFLAGS="$save_CFLAGS"
7370 # More AIX lossage: must compile with xlc_r or cc_r
7371 if test x"$GCC" != xyes; then
7372 for ac_prog in xlc_r cc_r
7374 # Extract the first word of "$ac_prog", so it can be a program name with args.
7375 set dummy $ac_prog; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$PTHREAD_CC"; then
7382 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_PTHREAD_CC="$ac_prog"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7402 if test -n "$PTHREAD_CC"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7404 $as_echo "$PTHREAD_CC" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7411 test -n "$PTHREAD_CC" && break
7413 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7426 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7427 if test x"$acx_pthread_ok" = xyes; then
7429 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
7437 ac_cpp='$CPP $CPPFLAGS'
7438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443 if test "$acx_pthread_ok" = yes; then
7445 DEF_THREAD="$PTHREAD_CFLAGS"
7446 CFLAGS="$CFLAGS $DEF_THREAD"
7447 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7448 if test "$CC" != "$PTHREAD_CC"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7450 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7456 # Enable support for OpenMP
7457 if test "$have_threads" != 'yes'; then
7458 ac_cv_prog_c_openmp=unsupported
7462 # Check whether --enable-openmp was given.
7463 if test "${enable_openmp+set}" = set; then :
7464 enableval=$enable_openmp;
7467 if test "$enable_openmp" != no; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
7469 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7470 if test "${ac_cv_prog_c_openmp+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7480 int main () { return omp_get_num_threads (); }
7483 if ac_fn_c_try_link "$LINENO"; then :
7484 ac_cv_prog_c_openmp='none needed'
7486 ac_cv_prog_c_openmp='unsupported'
7487 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7488 ac_save_CFLAGS=$CFLAGS
7489 CFLAGS="$CFLAGS $ac_option"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7497 int main () { return omp_get_num_threads (); }
7500 if ac_fn_c_try_link "$LINENO"; then :
7501 ac_cv_prog_c_openmp=$ac_option
7503 rm -f core conftest.err conftest.$ac_objext \
7504 conftest$ac_exeext conftest.$ac_ext
7505 CFLAGS=$ac_save_CFLAGS
7506 if test "$ac_cv_prog_c_openmp" != unsupported; then
7511 rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
7515 $as_echo "$ac_cv_prog_c_openmp" >&6; }
7516 case $ac_cv_prog_c_openmp in #(
7517 "none needed" | unsupported)
7520 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7525 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7526 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7529 # Enable support for OpenCL
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7538 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7539 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7556 if ac_fn_c_try_compile "$LINENO"; then :
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 ax_cv_c_compiler_ms=$ax_compiler_ms
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7566 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7567 if test X$ax_compiler_ms = Xno; then :
7568 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7571 ax_save_CPPFLAGS=$CPPFLAGS
7572 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7573 for ac_header in CL/opencl.h OpenCL/OpenCL.h
7575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7577 eval as_val=\$$as_ac_Header
7578 if test "x$as_val" = x""yes; then :
7579 cat >>confdefs.h <<_ACEOF
7580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7587 CPPFLAGS=$ax_save_CPPFLAGS
7589 for ac_header in windows.h
7591 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7592 if test "x$ac_cv_header_windows_h" = x""yes; then :
7593 cat >>confdefs.h <<_ACEOF
7594 #define HAVE_WINDOWS_H 1
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
7605 $as_echo_n "checking for OpenCL library... " >&6; }
7606 if test "${ax_cv_check_cl_libcl+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7609 ax_cv_check_cl_libcl=no
7611 x86_64) ax_check_cl_libdir=lib64 ;;
7612 *) ax_check_cl_libdir=lib ;;
7614 ax_save_CPPFLAGS=$CPPFLAGS
7615 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7618 ax_check_libs="-lOpenCL -lCL"
7619 for ax_lib in $ax_check_libs; do
7620 if test X$ax_compiler_ms = Xyes; then :
7621 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7625 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7629 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7630 # include <windows.h>
7632 # ifdef HAVE_CL_OPENCL_H
7633 # include <CL/opencl.h>
7634 # elif defined(HAVE_OPENCL_OPENCL_H)
7635 # include <OpenCL/OpenCL.h>
7642 clCreateContextFromType(0,0,0,0,0)
7647 if ac_fn_c_try_link "$LINENO"; then :
7648 ax_cv_check_cl_libcl=$ax_try_lib; break
7650 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"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7654 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7655 # include <windows.h>
7657 # ifdef HAVE_CL_OPENCL_H
7658 # include <CL/opencl.h>
7659 # elif defined(HAVE_OPENCL_OPENCL_H)
7660 # include <OpenCL/OpenCL.h>
7667 clCreateContextFromType(0,0,0,0,0)
7672 if ac_fn_c_try_link "$LINENO"; then :
7673 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7675 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7679 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7680 # include <windows.h>
7682 # ifdef HAVE_CL_OPENCL_H
7683 # include <CL/opencl.h>
7684 # elif defined(HAVE_OPENCL_OPENCL_H)
7685 # include <OpenCL/OpenCL.h>
7692 clCreateContextFromType(0,0,0,0,0)
7697 if ac_fn_c_try_link "$LINENO"; then :
7698 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
7700 rm -f core conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
7703 rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7706 rm -f core conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7710 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
7711 LIBS='-framework OpenCL'
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7715 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7716 # include <windows.h>
7718 # ifdef HAVE_CL_OPENCL_H
7719 # include <CL/opencl.h>
7720 # elif defined(HAVE_OPENCL_OPENCL_H)
7721 # include <OpenCL/OpenCL.h>
7728 clCreateContextFromType(0,0,0,0,0)
7733 if ac_fn_c_try_link "$LINENO"; then :
7734 ax_cv_check_cl_libcl=$LIBS
7736 rm -f core conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7741 CPPFLAGS=$ax_save_CPPFLAGS
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
7744 $as_echo "$ax_cv_check_cl_libcl" >&6; }
7746 if test "X$ax_cv_check_cl_libcl" = Xno; then :
7747 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7749 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7761 CFLAGS="$CL_CFLAGS $CFLAGS"
7762 LIBS="$CL_LIBS $LIBS"
7767 # Check for large file support
7770 # Check whether --enable-largefile was given.
7771 if test "${enable_largefile+set}" = set; then :
7772 enableval=$enable_largefile;
7775 if test "$enable_largefile" != no; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7778 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7779 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7782 ac_cv_sys_largefile_CC=no
7783 if test "$GCC" != yes; then
7786 # IRIX 6.2 and later do not support large files by default,
7787 # so use the C compiler's -n32 option if that helps.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #include <sys/types.h>
7791 /* Check that off_t can represent 2**63 - 1 correctly.
7792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7793 since some C++ compilers masquerading as C compilers
7794 incorrectly reject 9223372036854775807. */
7795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7797 && LARGE_OFF_T % 2147483647 == 1)
7807 if ac_fn_c_try_compile "$LINENO"; then :
7810 rm -f core conftest.err conftest.$ac_objext
7812 if ac_fn_c_try_compile "$LINENO"; then :
7813 ac_cv_sys_largefile_CC=' -n32'; break
7815 rm -f core conftest.err conftest.$ac_objext
7819 rm -f conftest.$ac_ext
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7823 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7824 if test "$ac_cv_sys_largefile_CC" != no; then
7825 CC=$CC$ac_cv_sys_largefile_CC
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7829 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7830 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 #include <sys/types.h>
7837 /* Check that off_t can represent 2**63 - 1 correctly.
7838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7839 since some C++ compilers masquerading as C compilers
7840 incorrectly reject 9223372036854775807. */
7841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7843 && LARGE_OFF_T % 2147483647 == 1)
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 ac_cv_sys_file_offset_bits=no; break
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7859 #define _FILE_OFFSET_BITS 64
7860 #include <sys/types.h>
7861 /* Check that off_t can represent 2**63 - 1 correctly.
7862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7863 since some C++ compilers masquerading as C compilers
7864 incorrectly reject 9223372036854775807. */
7865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7867 && LARGE_OFF_T % 2147483647 == 1)
7877 if ac_fn_c_try_compile "$LINENO"; then :
7878 ac_cv_sys_file_offset_bits=64; break
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 ac_cv_sys_file_offset_bits=unknown
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7886 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7887 case $ac_cv_sys_file_offset_bits in #(
7890 cat >>confdefs.h <<_ACEOF
7891 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7896 if test $ac_cv_sys_file_offset_bits = unknown; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7898 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7899 if test "${ac_cv_sys_large_files+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 #include <sys/types.h>
7906 /* Check that off_t can represent 2**63 - 1 correctly.
7907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7908 since some C++ compilers masquerading as C compilers
7909 incorrectly reject 9223372036854775807. */
7910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7912 && LARGE_OFF_T % 2147483647 == 1)
7922 if ac_fn_c_try_compile "$LINENO"; then :
7923 ac_cv_sys_large_files=no; break
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #define _LARGE_FILES 1
7929 #include <sys/types.h>
7930 /* Check that off_t can represent 2**63 - 1 correctly.
7931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7932 since some C++ compilers masquerading as C compilers
7933 incorrectly reject 9223372036854775807. */
7934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7936 && LARGE_OFF_T % 2147483647 == 1)
7946 if ac_fn_c_try_compile "$LINENO"; then :
7947 ac_cv_sys_large_files=1; break
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 ac_cv_sys_large_files=unknown
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7955 $as_echo "$ac_cv_sys_large_files" >&6; }
7956 case $ac_cv_sys_large_files in #(
7959 cat >>confdefs.h <<_ACEOF
7960 #define _LARGE_FILES $ac_cv_sys_large_files
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7969 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7970 if test "${ac_cv_sys_largefile_source+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 #include <sys/types.h> /* for off_t */
7981 int (*fp) (FILE *, off_t, int) = fseeko;
7982 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7987 if ac_fn_c_try_link "$LINENO"; then :
7988 ac_cv_sys_largefile_source=no; break
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 #define _LARGEFILE_SOURCE 1
7995 #include <sys/types.h> /* for off_t */
8000 int (*fp) (FILE *, off_t, int) = fseeko;
8001 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8006 if ac_fn_c_try_link "$LINENO"; then :
8007 ac_cv_sys_largefile_source=1; break
8009 rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011 ac_cv_sys_largefile_source=unknown
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8016 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8017 case $ac_cv_sys_largefile_source in #(
8020 cat >>confdefs.h <<_ACEOF
8021 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8027 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8028 # in glibc 2.1.3, but that breaks too many other things.
8029 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8030 if test $ac_cv_sys_largefile_source != unknown; then
8032 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8037 if test "$enable_largefile" != no; then
8038 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8039 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
8042 $as_echo_n "checking for native large file support... " >&6; }
8043 if test "$cross_compiling" = yes; then :
8044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8046 as_fn_error "cannot run test program while cross compiling
8047 See \`config.log' for more details." "$LINENO" 5; }
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8053 exit(!(sizeof(off_t) == 8));
8056 if ac_fn_c_try_run "$LINENO"; then :
8057 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8060 $as_echo "yes" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8066 conftest.$ac_objext conftest.beam conftest.$ac_ext
8070 if test "$ac_cv_sys_large_files" != 'no'; then
8071 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8073 if test "$ac_cv_sys_largefile_source" != 'no'; then
8074 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8080 # Configure libtool & libltdl
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8090 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8095 macro_version='2.2.6b'
8096 macro_revision='1.3017'
8110 ltmain="$ac_aux_dir/ltmain.sh"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8113 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8114 if test "${lt_cv_path_NM+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8117 if test -n "$NM"; then
8118 # Let the user override the test.
8121 lt_nm_to_check="${ac_tool_prefix}nm"
8122 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8123 lt_nm_to_check="$lt_nm_to_check nm"
8125 for lt_tmp_nm in $lt_nm_to_check; do
8126 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8127 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8129 test -z "$ac_dir" && ac_dir=.
8130 tmp_nm="$ac_dir/$lt_tmp_nm"
8131 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8132 # Check to see if the nm accepts a BSD-compat flag.
8133 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8134 # nm: unknown option "B" ignored
8135 # Tru64's nm complains that /dev/null is an invalid object file
8136 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8137 */dev/null* | *'Invalid file or object type'*)
8138 lt_cv_path_NM="$tmp_nm -B"
8142 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8144 lt_cv_path_NM="$tmp_nm -p"
8148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8149 continue # so that we can try to find one that supports BSD flags
8158 : ${lt_cv_path_NM=no}
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8162 $as_echo "$lt_cv_path_NM" >&6; }
8163 if test "$lt_cv_path_NM" != "no"; then
8166 # Didn't find any BSD compatible name lister, look for dumpbin.
8167 if test -n "$ac_tool_prefix"; then
8168 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8171 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8177 if test -n "$DUMPBIN"; then
8178 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 DUMPBIN=$ac_cv_prog_DUMPBIN
8198 if test -n "$DUMPBIN"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8200 $as_echo "$DUMPBIN" >&6; }
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8207 test -n "$DUMPBIN" && break
8210 if test -z "$DUMPBIN"; then
8211 ac_ct_DUMPBIN=$DUMPBIN
8212 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8214 # Extract the first word of "$ac_prog", so it can be a program name with args.
8215 set dummy $ac_prog; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8221 if test -n "$ac_ct_DUMPBIN"; then
8222 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8242 if test -n "$ac_ct_DUMPBIN"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8244 $as_echo "$ac_ct_DUMPBIN" >&6; }
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8251 test -n "$ac_ct_DUMPBIN" && break
8254 if test "x$ac_ct_DUMPBIN" = x; then
8257 case $cross_compiling:$ac_tool_warned in
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8261 ac_tool_warned=yes ;;
8263 DUMPBIN=$ac_ct_DUMPBIN
8268 if test "$DUMPBIN" != ":"; then
8272 test -z "$NM" && NM=nm
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8280 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8281 if test "${lt_cv_nm_interface+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8284 lt_cv_nm_interface="BSD nm"
8285 echo "int some_variable = 0;" > conftest.$ac_ext
8286 (eval echo "\"\$as_me:8286: $ac_compile\"" >&5)
8287 (eval "$ac_compile" 2>conftest.err)
8288 cat conftest.err >&5
8289 (eval echo "\"\$as_me:8289: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8290 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8291 cat conftest.err >&5
8292 (eval echo "\"\$as_me:8292: output\"" >&5)
8293 cat conftest.out >&5
8294 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8295 lt_cv_nm_interface="MS dumpbin"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8300 $as_echo "$lt_cv_nm_interface" >&6; }
8302 # find the maximum length of command line arguments
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8304 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8305 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8313 # On DJGPP, this test can blow up pretty badly due to problems in libc
8314 # (any single argument exceeding 2000 bytes causes a buffer overrun
8315 # during glob expansion). Even if it were fixed, the result of this
8316 # check would be larger than it should be.
8317 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8321 # Under GNU Hurd, this test is not required because there is
8322 # no limit to the length of command line arguments.
8323 # Libtool will interpret -1 as no limit whatsoever
8324 lt_cv_sys_max_cmd_len=-1;
8327 cygwin* | mingw* | cegcc*)
8328 # On Win9x/ME, this test blows up -- it succeeds, but takes
8329 # about 5 minutes as the teststring grows exponentially.
8330 # Worse, since 9x/ME are not pre-emptively multitasking,
8331 # you end up with a "frozen" computer, even though with patience
8332 # the test eventually succeeds (with a max line length of 256k).
8333 # Instead, let's just punt: use the minimum linelength reported by
8334 # all of the supported platforms: 8192 (on NT/2K/XP).
8335 lt_cv_sys_max_cmd_len=8192;
8339 # On AmigaOS with pdksh, this test takes hours, literally.
8340 # So we just punt and use a minimum line length of 8192.
8341 lt_cv_sys_max_cmd_len=8192;
8344 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8345 # This has been around since 386BSD, at least. Likely further.
8346 if test -x /sbin/sysctl; then
8347 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8348 elif test -x /usr/sbin/sysctl; then
8349 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8351 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8353 # And add a safety zone
8354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8359 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8360 lt_cv_sys_max_cmd_len=196608
8364 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8365 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8366 # nice to cause kernel panics so lets avoid the loop below.
8367 # First set a reasonable default.
8368 lt_cv_sys_max_cmd_len=16384
8370 if test -x /sbin/sysconfig; then
8371 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8372 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8377 lt_cv_sys_max_cmd_len=102400
8379 sysv5* | sco5v6* | sysv4.2uw2*)
8380 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8381 if test -n "$kargmax"; then
8382 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8384 lt_cv_sys_max_cmd_len=32768
8388 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8389 if test -n "$lt_cv_sys_max_cmd_len"; then
8390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8393 # Make teststring a little bigger before we do anything with it.
8394 # a 1K string should be a reasonable start.
8395 for i in 1 2 3 4 5 6 7 8 ; do
8396 teststring=$teststring$teststring
8398 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8399 # If test is not a shell built-in, we'll probably end up computing a
8400 # maximum length that is only half of the actual maximum length, but
8402 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8403 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8404 test $i != 17 # 1/2 MB should be enough
8407 teststring=$teststring$teststring
8409 # Only check the string length outside the loop.
8410 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8412 # Add a significant safety factor because C++ compilers can tack on
8413 # massive amounts of additional arguments before passing them to the
8414 # linker. It appears as though 1/2 is a usable value.
8415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8422 if test -n $lt_cv_sys_max_cmd_len ; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8424 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8427 $as_echo "none" >&6; }
8429 max_cmd_len=$lt_cv_sys_max_cmd_len
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8441 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8442 # Try some XSI features
8445 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8447 && eval 'test $(( 1 + 1 )) -eq 2 \
8448 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8451 $as_echo "$xsi_shell" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8455 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8457 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8459 && lt_shell_append=yes
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8461 $as_echo "$lt_shell_append" >&6; }
8464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8474 # test EBCDIC or ASCII
8475 case `echo X|tr X '\101'` in
8476 A) # ASCII based system
8477 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8478 lt_SP2NL='tr \040 \012'
8479 lt_NL2SP='tr \015\012 \040\040'
8481 *) # EBCDIC based system
8482 lt_SP2NL='tr \100 \n'
8483 lt_NL2SP='tr \r\n \100\100'
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8496 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8497 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8500 lt_cv_ld_reload_flag='-r'
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8503 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8504 reload_flag=$lt_cv_ld_reload_flag
8505 case $reload_flag in
8507 *) reload_flag=" $reload_flag" ;;
8509 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8512 if test "$GCC" = yes; then
8513 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8528 if test -n "$ac_tool_prefix"; then
8529 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8530 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8536 if test -n "$OBJDUMP"; then
8537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 OBJDUMP=$ac_cv_prog_OBJDUMP
8557 if test -n "$OBJDUMP"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8559 $as_echo "$OBJDUMP" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8567 if test -z "$ac_cv_prog_OBJDUMP"; then
8568 ac_ct_OBJDUMP=$OBJDUMP
8569 # Extract the first word of "objdump", so it can be a program name with args.
8570 set dummy objdump; ac_word=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8576 if test -n "$ac_ct_OBJDUMP"; then
8577 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8597 if test -n "$ac_ct_OBJDUMP"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8599 $as_echo "$ac_ct_OBJDUMP" >&6; }
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8605 if test "x$ac_ct_OBJDUMP" = x; then
8608 case $cross_compiling:$ac_tool_warned in
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8612 ac_tool_warned=yes ;;
8614 OBJDUMP=$ac_ct_OBJDUMP
8617 OBJDUMP="$ac_cv_prog_OBJDUMP"
8620 test -z "$OBJDUMP" && OBJDUMP=objdump
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8628 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8629 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8632 lt_cv_file_magic_cmd='$MAGIC_CMD'
8633 lt_cv_file_magic_test_file=
8634 lt_cv_deplibs_check_method='unknown'
8635 # Need to set the preceding variable on all platforms that support
8636 # interlibrary dependencies.
8637 # 'none' -- dependencies not supported.
8638 # `unknown' -- same as none, but documents that we really don't know.
8639 # 'pass_all' -- all dependencies passed with no checks.
8640 # 'test_compile' -- check by making test program.
8641 # 'file_magic [[regex]]' -- check by looking for files in library path
8642 # which responds to the $file_magic_cmd with a given extended regex.
8643 # If you have `file' or equivalent on your system and you're not sure
8644 # whether `pass_all' will *always* work, you probably want this one.
8648 lt_cv_deplibs_check_method=pass_all
8652 lt_cv_deplibs_check_method=pass_all
8656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8657 lt_cv_file_magic_cmd='/usr/bin/file -L'
8658 lt_cv_file_magic_test_file=/shlib/libc.so
8662 # func_win32_libid is a shell function defined in ltmain.sh
8663 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8664 lt_cv_file_magic_cmd='func_win32_libid'
8668 # Base MSYS/MinGW do not provide the 'file' command needed by
8669 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8670 # unless we find 'file', for example because we are cross-compiling.
8671 if ( file / ) >/dev/null 2>&1; then
8672 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8673 lt_cv_file_magic_cmd='func_win32_libid'
8675 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8676 lt_cv_file_magic_cmd='$OBJDUMP -f'
8681 # use the weaker test based on 'objdump'. See mingw*.
8682 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8683 lt_cv_file_magic_cmd='$OBJDUMP -f'
8686 darwin* | rhapsody*)
8687 lt_cv_deplibs_check_method=pass_all
8690 freebsd* | dragonfly*)
8691 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8694 # Not sure whether the presence of OpenBSD here was a mistake.
8695 # Let's accept both of them until this is cleared up.
8696 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8697 lt_cv_file_magic_cmd=/usr/bin/file
8698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8702 lt_cv_deplibs_check_method=pass_all
8707 lt_cv_deplibs_check_method=pass_all
8710 hpux10.20* | hpux11*)
8711 lt_cv_file_magic_cmd=/usr/bin/file
8714 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8715 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8718 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]'
8719 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8722 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8723 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8729 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8733 irix5* | irix6* | nonstopux*)
8735 *-32|*"-32 ") libmagic=32-bit;;
8736 *-n32|*"-n32 ") libmagic=N32;;
8737 *-64|*"-64 ") libmagic=64-bit;;
8738 *) libmagic=never-match;;
8740 lt_cv_deplibs_check_method=pass_all
8743 # This must be Linux ELF.
8744 linux* | k*bsd*-gnu)
8745 lt_cv_deplibs_check_method=pass_all
8749 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8752 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8758 lt_cv_file_magic_cmd=/usr/bin/file
8759 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8763 lt_cv_deplibs_check_method=pass_all
8767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8774 osf3* | osf4* | osf5*)
8775 lt_cv_deplibs_check_method=pass_all
8779 lt_cv_deplibs_check_method=pass_all
8783 lt_cv_deplibs_check_method=pass_all
8786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8787 lt_cv_deplibs_check_method=pass_all
8791 case $host_vendor in
8793 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]'
8794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8797 lt_cv_deplibs_check_method=pass_all
8800 lt_cv_file_magic_cmd='/bin/file'
8801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8804 lt_cv_file_magic_cmd='/bin/file'
8805 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8806 lt_cv_file_magic_test_file=/lib/libc.so
8809 lt_cv_deplibs_check_method=pass_all
8812 lt_cv_deplibs_check_method=pass_all
8818 lt_cv_deplibs_check_method=pass_all
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8824 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8825 file_magic_cmd=$lt_cv_file_magic_cmd
8826 deplibs_check_method=$lt_cv_deplibs_check_method
8827 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8840 if test -n "$ac_tool_prefix"; then
8841 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8842 set dummy ${ac_tool_prefix}ar; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if test "${ac_cv_prog_AR+set}" = set; then :
8846 $as_echo_n "(cached) " >&6
8848 if test -n "$AR"; then
8849 ac_cv_prog_AR="$AR" # Let the user override the test.
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8858 ac_cv_prog_AR="${ac_tool_prefix}ar"
8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 if test -n "$AR"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8871 $as_echo "$AR" >&6; }
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8879 if test -z "$ac_cv_prog_AR"; then
8881 # Extract the first word of "ar", so it can be a program name with args.
8882 set dummy ar; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
8888 if test -n "$ac_ct_AR"; then
8889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 test -z "$as_dir" && as_dir=.
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898 ac_cv_prog_ac_ct_AR="ar"
8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8909 if test -n "$ac_ct_AR"; then
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8911 $as_echo "$ac_ct_AR" >&6; }
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8917 if test "x$ac_ct_AR" = x; then
8920 case $cross_compiling:$ac_tool_warned in
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8932 test -z "$AR" && AR=ar
8933 test -z "$AR_FLAGS" && AR_FLAGS=cru
8945 if test -n "$ac_tool_prefix"; then
8946 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8947 set dummy ${ac_tool_prefix}strip; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if test "${ac_cv_prog_STRIP+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8953 if test -n "$STRIP"; then
8954 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 STRIP=$ac_cv_prog_STRIP
8974 if test -n "$STRIP"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8976 $as_echo "$STRIP" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8984 if test -z "$ac_cv_prog_STRIP"; then
8986 # Extract the first word of "strip", so it can be a program name with args.
8987 set dummy strip; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8993 if test -n "$ac_ct_STRIP"; then
8994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003 ac_cv_prog_ac_ct_STRIP="strip"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9014 if test -n "$ac_ct_STRIP"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9016 $as_echo "$ac_ct_STRIP" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9022 if test "x$ac_ct_STRIP" = x; then
9025 case $cross_compiling:$ac_tool_warned in
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9029 ac_tool_warned=yes ;;
9034 STRIP="$ac_cv_prog_STRIP"
9037 test -z "$STRIP" && STRIP=:
9044 if test -n "$ac_tool_prefix"; then
9045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9050 $as_echo_n "(cached) " >&6
9052 if test -n "$RANLIB"; then
9053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 test -z "$as_dir" && as_dir=.
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 RANLIB=$ac_cv_prog_RANLIB
9073 if test -n "$RANLIB"; then
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9075 $as_echo "$RANLIB" >&6; }
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 $as_echo "no" >&6; }
9083 if test -z "$ac_cv_prog_RANLIB"; then
9084 ac_ct_RANLIB=$RANLIB
9085 # Extract the first word of "ranlib", so it can be a program name with args.
9086 set dummy ranlib; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9092 if test -n "$ac_ct_RANLIB"; then
9093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 test -z "$as_dir" && as_dir=.
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_prog_ac_ct_RANLIB="ranlib"
9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9113 if test -n "$ac_ct_RANLIB"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9115 $as_echo "$ac_ct_RANLIB" >&6; }
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; }
9121 if test "x$ac_ct_RANLIB" = x; then
9124 case $cross_compiling:$ac_tool_warned in
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9128 ac_tool_warned=yes ;;
9130 RANLIB=$ac_ct_RANLIB
9133 RANLIB="$ac_cv_prog_RANLIB"
9136 test -z "$RANLIB" && RANLIB=:
9143 # Determine commands to create old-style static archives.
9144 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9145 old_postinstall_cmds='chmod 644 $oldlib'
9146 old_postuninstall_cmds=
9148 if test -n "$RANLIB"; then
9151 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9154 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9157 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9193 # If no C compiler was specified, use CC.
9196 # If no C compiler flags were specified, use CFLAGS.
9197 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9199 # Allow CC to be a program name with arguments.
9203 # Check for command to grab the raw symbol name followed by C symbol from nm.
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9205 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9206 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9210 # These are sane defaults that work on at least a few old systems.
9211 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9213 # Character class describing NM global symbol codes.
9214 symcode='[BCDEGRST]'
9216 # Regexp to match symbols that can be accessed directly from C.
9217 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9219 # Define system-specific variables.
9224 cygwin* | mingw* | pw32* | cegcc*)
9225 symcode='[ABCDGISTW]'
9228 if test "$host_cpu" = ia64; then
9229 symcode='[ABCDEGRST]'
9233 symcode='[BCDEGRST]'
9236 symcode='[BCDEGQRST]'
9247 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9255 # If we're using GNU nm, then use its standard symbol codes.
9256 case `$NM -V 2>&1` in
9257 *GNU* | *'with BFD'*)
9258 symcode='[ABCDGIRSTW]' ;;
9261 # Transform an extracted symbol line into a proper C declaration.
9262 # Some systems (esp. on ia64) link data and code symbols differently,
9263 # so use this general approach.
9264 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9266 # Transform an extracted symbol line into symbol name and symbol address
9267 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9268 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'"
9270 # Handle CRLF in mingw tool chain
9274 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9278 # Try without a prefix underscore, then with it.
9279 for ac_symprfx in "" "_"; do
9281 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9282 symxfrm="\\1 $ac_symprfx\\2 \\2"
9284 # Write the raw and C identifiers.
9285 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9286 # Fake it for dumpbin and say T for any non-static function
9287 # and D for any global variable.
9288 # Also find C++ and __fastcall symbols from MSVC++,
9289 # which start with @ or ?.
9290 lt_cv_sys_global_symbol_pipe="$AWK '"\
9291 " {last_section=section; section=\$ 3};"\
9292 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9293 " \$ 0!~/External *\|/{next};"\
9294 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9295 " {if(hide[section]) next};"\
9296 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9297 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9298 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9299 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9300 " ' prfx=^$ac_symprfx"
9302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9305 # Check to see that the pipe works correctly.
9309 cat > conftest.$ac_ext <<_LT_EOF
9314 void nm_test_func(void);
9315 void nm_test_func(void){}
9319 int main(){nm_test_var='a';nm_test_func();return(0);}
9322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9323 (eval $ac_compile) 2>&5
9325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9326 test $ac_status = 0; }; then
9327 # Now try to grab the symbols.
9329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9333 test $ac_status = 0; } && test -s "$nlist"; then
9334 # Try sorting and uniquifying the output.
9335 if sort "$nlist" | uniq > "$nlist"T; then
9336 mv -f "$nlist"T "$nlist"
9341 # Make sure that we snagged all the symbols we need.
9342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9344 cat <<_LT_EOF > conftest.$ac_ext
9350 # Now generate the symbol file.
9351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9353 cat <<_LT_EOF >> conftest.$ac_ext
9355 /* The mapping between symbol names and symbols. */
9360 lt__PROGRAM__LTX_preloaded_symbols[] =
9362 { "@PROGRAM@", (void *) 0 },
9364 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9365 cat <<\_LT_EOF >> conftest.$ac_ext
9369 /* This works around a problem in FreeBSD linker */
9370 #ifdef FREEBSD_WORKAROUND
9371 static const void *lt_preloaded_setup() {
9372 return lt__PROGRAM__LTX_preloaded_symbols;
9380 # Now try linking the two files.
9381 mv conftest.$ac_objext conftstm.$ac_objext
9382 lt_save_LIBS="$LIBS"
9383 lt_save_CFLAGS="$CFLAGS"
9384 LIBS="conftstm.$ac_objext"
9385 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9387 (eval $ac_link) 2>&5
9389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9390 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9393 LIBS="$lt_save_LIBS"
9394 CFLAGS="$lt_save_CFLAGS"
9396 echo "cannot find nm_test_func in $nlist" >&5
9399 echo "cannot find nm_test_var in $nlist" >&5
9402 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9405 echo "$progname: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9408 rm -rf conftest* conftst*
9410 # Do not use the global_symbol_pipe unless it works.
9411 if test "$pipe_works" = yes; then
9414 lt_cv_sys_global_symbol_pipe=
9420 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9421 lt_cv_sys_global_symbol_to_cdecl=
9423 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9425 $as_echo "failed" >&6; }
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9428 $as_echo "ok" >&6; }
9452 # Check whether --enable-libtool-lock was given.
9453 if test "${enable_libtool_lock+set}" = set; then :
9454 enableval=$enable_libtool_lock;
9457 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9459 # Some flags need to be propagated to the compiler or linker for good
9463 # Find out which ABI we are using.
9464 echo 'int i;' > conftest.$ac_ext
9465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9466 (eval $ac_compile) 2>&5
9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469 test $ac_status = 0; }; then
9470 case `/usr/bin/file conftest.$ac_objext` in
9482 # Find out which ABI we are using.
9483 echo '#line 9483 "configure"' > conftest.$ac_ext
9484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9485 (eval $ac_compile) 2>&5
9487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488 test $ac_status = 0; }; then
9489 if test "$lt_cv_prog_gnu_ld" = yes; then
9490 case `/usr/bin/file conftest.$ac_objext` in
9492 LD="${LD-ld} -melf32bsmip"
9495 LD="${LD-ld} -melf32bmipn32"
9498 LD="${LD-ld} -melf64bmip"
9502 case `/usr/bin/file conftest.$ac_objext` in
9518 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9519 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9520 # Find out which ABI we are using.
9521 echo 'int i;' > conftest.$ac_ext
9522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9523 (eval $ac_compile) 2>&5
9525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526 test $ac_status = 0; }; then
9527 case `/usr/bin/file conftest.o` in
9530 x86_64-*kfreebsd*-gnu)
9531 LD="${LD-ld} -m elf_i386_fbsd"
9534 LD="${LD-ld} -m elf_i386"
9536 ppc64-*linux*|powerpc64-*linux*)
9537 LD="${LD-ld} -m elf32ppclinux"
9540 LD="${LD-ld} -m elf_s390"
9543 LD="${LD-ld} -m elf32_sparc"
9549 x86_64-*kfreebsd*-gnu)
9550 LD="${LD-ld} -m elf_x86_64_fbsd"
9553 LD="${LD-ld} -m elf_x86_64"
9555 ppc*-*linux*|powerpc*-*linux*)
9556 LD="${LD-ld} -m elf64ppc"
9558 s390*-*linux*|s390*-*tpf*)
9559 LD="${LD-ld} -m elf64_s390"
9562 LD="${LD-ld} -m elf64_sparc"
9572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9573 SAVE_CFLAGS="$CFLAGS"
9574 CFLAGS="$CFLAGS -belf"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9577 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9581 ac_cpp='$CPP $CPPFLAGS'
9582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9597 if ac_fn_c_try_link "$LINENO"; then :
9598 lt_cv_cc_needs_belf=yes
9600 lt_cv_cc_needs_belf=no
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9605 ac_cpp='$CPP $CPPFLAGS'
9606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9613 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9615 CFLAGS="$SAVE_CFLAGS"
9619 # Find out which ABI we are using.
9620 echo 'int i;' > conftest.$ac_ext
9621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9622 (eval $ac_compile) 2>&5
9624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9625 test $ac_status = 0; }; then
9626 case `/usr/bin/file conftest.o` in
9628 case $lt_cv_prog_gnu_ld in
9629 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9631 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9643 need_locks="$enable_libtool_lock"
9647 rhapsody* | darwin*)
9648 if test -n "$ac_tool_prefix"; then
9649 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9650 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9654 $as_echo_n "(cached) " >&6
9656 if test -n "$DSYMUTIL"; then
9657 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9676 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9677 if test -n "$DSYMUTIL"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9679 $as_echo "$DSYMUTIL" >&6; }
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9687 if test -z "$ac_cv_prog_DSYMUTIL"; then
9688 ac_ct_DSYMUTIL=$DSYMUTIL
9689 # Extract the first word of "dsymutil", so it can be a program name with args.
9690 set dummy dsymutil; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9694 $as_echo_n "(cached) " >&6
9696 if test -n "$ac_ct_DSYMUTIL"; then
9697 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9706 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9716 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9717 if test -n "$ac_ct_DSYMUTIL"; then
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9719 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9722 $as_echo "no" >&6; }
9725 if test "x$ac_ct_DSYMUTIL" = x; then
9728 case $cross_compiling:$ac_tool_warned in
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9732 ac_tool_warned=yes ;;
9734 DSYMUTIL=$ac_ct_DSYMUTIL
9737 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9740 if test -n "$ac_tool_prefix"; then
9741 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9742 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9748 if test -n "$NMEDIT"; then
9749 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 NMEDIT=$ac_cv_prog_NMEDIT
9769 if test -n "$NMEDIT"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9771 $as_echo "$NMEDIT" >&6; }
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9779 if test -z "$ac_cv_prog_NMEDIT"; then
9780 ac_ct_NMEDIT=$NMEDIT
9781 # Extract the first word of "nmedit", so it can be a program name with args.
9782 set dummy nmedit; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9788 if test -n "$ac_ct_NMEDIT"; then
9789 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9808 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9809 if test -n "$ac_ct_NMEDIT"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9811 $as_echo "$ac_ct_NMEDIT" >&6; }
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9817 if test "x$ac_ct_NMEDIT" = x; then
9820 case $cross_compiling:$ac_tool_warned in
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9824 ac_tool_warned=yes ;;
9826 NMEDIT=$ac_ct_NMEDIT
9829 NMEDIT="$ac_cv_prog_NMEDIT"
9832 if test -n "$ac_tool_prefix"; then
9833 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9834 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if test "${ac_cv_prog_LIPO+set}" = set; then :
9838 $as_echo_n "(cached) " >&6
9840 if test -n "$LIPO"; then
9841 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 LIPO=$ac_cv_prog_LIPO
9861 if test -n "$LIPO"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9863 $as_echo "$LIPO" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9871 if test -z "$ac_cv_prog_LIPO"; then
9873 # Extract the first word of "lipo", so it can be a program name with args.
9874 set dummy lipo; ac_word=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9880 if test -n "$ac_ct_LIPO"; then
9881 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_prog_ac_ct_LIPO="lipo"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9901 if test -n "$ac_ct_LIPO"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9903 $as_echo "$ac_ct_LIPO" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9909 if test "x$ac_ct_LIPO" = x; then
9912 case $cross_compiling:$ac_tool_warned in
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9916 ac_tool_warned=yes ;;
9921 LIPO="$ac_cv_prog_LIPO"
9924 if test -n "$ac_tool_prefix"; then
9925 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9926 set dummy ${ac_tool_prefix}otool; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9932 if test -n "$OTOOL"; then
9933 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9952 OTOOL=$ac_cv_prog_OTOOL
9953 if test -n "$OTOOL"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9955 $as_echo "$OTOOL" >&6; }
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9963 if test -z "$ac_cv_prog_OTOOL"; then
9965 # Extract the first word of "otool", so it can be a program name with args.
9966 set dummy otool; 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_ac_ct_OTOOL+set}" = set; then :
9970 $as_echo_n "(cached) " >&6
9972 if test -n "$ac_ct_OTOOL"; then
9973 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9993 if test -n "$ac_ct_OTOOL"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9995 $as_echo "$ac_ct_OTOOL" >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
10001 if test "x$ac_ct_OTOOL" = x; then
10004 case $cross_compiling:$ac_tool_warned in
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10008 ac_tool_warned=yes ;;
10013 OTOOL="$ac_cv_prog_OTOOL"
10016 if test -n "$ac_tool_prefix"; then
10017 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10018 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10024 if test -n "$OTOOL64"; then
10025 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 OTOOL64=$ac_cv_prog_OTOOL64
10045 if test -n "$OTOOL64"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10047 $as_echo "$OTOOL64" >&6; }
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10055 if test -z "$ac_cv_prog_OTOOL64"; then
10056 ac_ct_OTOOL64=$OTOOL64
10057 # Extract the first word of "otool64", so it can be a program name with args.
10058 set dummy otool64; ac_word=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10062 $as_echo_n "(cached) " >&6
10064 if test -n "$ac_ct_OTOOL64"; then
10065 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in $PATH
10071 test -z "$as_dir" && as_dir=.
10072 for ac_exec_ext in '' $ac_executable_extensions; do
10073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10074 ac_cv_prog_ac_ct_OTOOL64="otool64"
10075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10085 if test -n "$ac_ct_OTOOL64"; then
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10087 $as_echo "$ac_ct_OTOOL64" >&6; }
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090 $as_echo "no" >&6; }
10093 if test "x$ac_ct_OTOOL64" = x; then
10096 case $cross_compiling:$ac_tool_warned in
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10100 ac_tool_warned=yes ;;
10102 OTOOL64=$ac_ct_OTOOL64
10105 OTOOL64="$ac_cv_prog_OTOOL64"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10135 $as_echo_n "checking for -single_module linker flag... " >&6; }
10136 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
10139 lt_cv_apple_cc_single_mod=no
10140 if test -z "${LT_MULTI_MODULE}"; then
10141 # By default we will add the -single_module flag. You can override
10142 # by either setting the environment variable LT_MULTI_MODULE
10143 # non-empty at configure time, or by adding -multi_module to the
10145 rm -rf libconftest.dylib*
10146 echo "int foo(void){return 1;}" > conftest.c
10147 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10148 -dynamiclib -Wl,-single_module conftest.c" >&5
10149 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10150 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10152 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10153 lt_cv_apple_cc_single_mod=yes
10155 cat conftest.err >&5
10157 rm -rf libconftest.dylib*
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10162 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10164 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10165 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
10168 lt_cv_ld_exported_symbols_list=no
10169 save_LDFLAGS=$LDFLAGS
10170 echo "_main" > conftest.sym
10171 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10183 if ac_fn_c_try_link "$LINENO"; then :
10184 lt_cv_ld_exported_symbols_list=yes
10186 lt_cv_ld_exported_symbols_list=no
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LDFLAGS="$save_LDFLAGS"
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10194 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10196 rhapsody* | darwin1.[012])
10197 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10199 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10200 darwin*) # darwin 5.x on
10201 # if running on 10.5 or later, the deployment target defaults
10202 # to the OS version, if on x86, and 10.4, the deployment
10203 # target defaults to 10.4. Don't you love it?
10204 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10205 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10206 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10208 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10210 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10214 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10215 _lt_dar_single_mod='$single_module'
10217 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10218 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10220 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10222 if test "$DSYMUTIL" != ":"; then
10223 _lt_dsymutil='~$DSYMUTIL $lib || :'
10230 for ac_header in dlfcn.h
10232 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10234 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DLFCN_H 1
10246 ac_cpp='$CXXCPP $CPPFLAGS'
10247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10250 if test -z "$CXX"; then
10251 if test -n "$CCC"; then
10254 if test -n "$ac_tool_prefix"; then
10255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if test "${ac_cv_prog_CXX+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10264 if test -n "$CXX"; then
10265 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10284 CXX=$ac_cv_prog_CXX
10285 if test -n "$CXX"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10287 $as_echo "$CXX" >&6; }
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10294 test -n "$CXX" && break
10297 if test -z "$CXX"; then
10299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302 set dummy $ac_prog; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10308 if test -n "$ac_ct_CXX"; then
10309 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318 ac_cv_prog_ac_ct_CXX="$ac_prog"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10329 if test -n "$ac_ct_CXX"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10331 $as_echo "$ac_ct_CXX" >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10338 test -n "$ac_ct_CXX" && break
10341 if test "x$ac_ct_CXX" = x; then
10344 case $cross_compiling:$ac_tool_warned in
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10348 ac_tool_warned=yes ;;
10356 # Provide some information about the compiler.
10357 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10360 for ac_option in --version -v -V -qversion; do
10361 { { ac_try="$ac_compiler $ac_option >&5"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10367 $as_echo "$ac_try_echo"; } >&5
10368 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10370 if test -s conftest.err; then
10372 ... rest of stderr output deleted ...
10373 10q' conftest.err >conftest.er1
10374 cat conftest.er1 >&5
10376 rm -f conftest.er1 conftest.err
10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378 test $ac_status = 0; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10382 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10383 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10400 if ac_fn_cxx_try_compile "$LINENO"; then :
10401 ac_compiler_gnu=yes
10405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10410 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10411 if test $ac_compiler_gnu = yes; then
10416 ac_test_CXXFLAGS=${CXXFLAGS+set}
10417 ac_save_CXXFLAGS=$CXXFLAGS
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10419 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10420 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10421 $as_echo_n "(cached) " >&6
10423 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10424 ac_cxx_werror_flag=yes
10425 ac_cv_prog_cxx_g=no
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10438 if ac_fn_cxx_try_compile "$LINENO"; then :
10439 ac_cv_prog_cxx_g=yes
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10453 if ac_fn_cxx_try_compile "$LINENO"; then :
10456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10469 if ac_fn_cxx_try_compile "$LINENO"; then :
10470 ac_cv_prog_cxx_g=yes
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10480 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10481 if test "$ac_test_CXXFLAGS" = set; then
10482 CXXFLAGS=$ac_save_CXXFLAGS
10483 elif test $ac_cv_prog_cxx_g = yes; then
10484 if test "$GXX" = yes; then
10490 if test "$GXX" = yes; then
10497 ac_cpp='$CPP $CPPFLAGS'
10498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10502 depcc="$CXX" am_compiler_list=
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10505 $as_echo_n "checking dependency style of $depcc... " >&6; }
10506 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10509 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10510 # We make a subdir and do the tests there. Otherwise we can end up
10511 # making bogus files that we don't know about and never remove. For
10512 # instance it was reported that on HP-UX the gcc test will end up
10513 # making a dummy file named `D' -- because `-MD' means `put the output
10516 # Copy depcomp to subdir because otherwise we won't find it if we're
10517 # using a relative directory.
10518 cp "$am_depcomp" conftest.dir
10520 # We will build objects and dependencies in a subdirectory because
10521 # it helps to detect inapplicable dependency modes. For instance
10522 # both Tru64's cc and ICC support -MD to output dependencies as a
10523 # side effect of compilation, but ICC will put the dependencies in
10524 # the current directory while Tru64 will put them in the object
10528 am_cv_CXX_dependencies_compiler_type=none
10529 if test "$am_compiler_list" = ""; then
10530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10532 am__universal=false
10533 case " $depcc " in #(
10534 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10537 for depmode in $am_compiler_list; do
10538 # Setup a source with many dependencies, because some compilers
10539 # like to wrap large dependency lists on column 80 (with \), and
10540 # we should not choose a depcomp mode which is confused by this.
10542 # We need to recreate these files for each test, as the compiler may
10543 # overwrite some of them when testing with obscure command lines.
10544 # This happens at least with the AIX C compiler.
10546 for i in 1 2 3 4 5 6; do
10547 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10548 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10549 # Solaris 8's {/usr,}/bin/sh.
10550 touch sub/conftst$i.h
10552 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10554 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10555 # mode. It turns out that the SunPro C++ compiler does not properly
10556 # handle `-M -o', and we need to detect this. Also, some Intel
10557 # versions had trouble with output in subdirs
10558 am__obj=sub/conftest.${OBJEXT-o}
10559 am__minus_obj="-o $am__obj"
10562 # This depmode causes a compiler race in universal mode.
10563 test "$am__universal" = false || continue
10566 # after this tag, mechanisms are not by side-effect, so they'll
10567 # only be used when explicitly requested
10568 if test "x$enable_dependency_tracking" = xyes; then
10574 msvisualcpp | msvcmsys)
10575 # This compiler won't grok `-c -o', but also, the minuso test has
10576 # not run yet. These depmodes are late enough in the game, and
10577 # so weak that their functioning should not be impacted.
10578 am__obj=conftest.${OBJEXT-o}
10583 if depmode=$depmode \
10584 source=sub/conftest.c object=$am__obj \
10585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10586 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10587 >/dev/null 2>conftest.err &&
10588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10590 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10592 # icc doesn't choke on unknown options, it will just issue warnings
10593 # or remarks (even with -Werror). So we grep stderr for any message
10594 # that says an option was ignored or not supported.
10595 # When given -MP, icc 7.0 and 7.1 complain thusly:
10596 # icc: Command line warning: ignoring option '-M'; no argument required
10597 # The diagnosis changed in icc 8.0:
10598 # icc: Command line remark: option '-MP' not supported
10599 if (grep 'ignoring option' conftest.err ||
10600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10601 am_cv_CXX_dependencies_compiler_type=$depmode
10608 rm -rf conftest.dir
10610 am_cv_CXX_dependencies_compiler_type=none
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10615 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10616 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10619 test "x$enable_dependency_tracking" != xno \
10620 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10621 am__fastdepCXX_TRUE=
10622 am__fastdepCXX_FALSE='#'
10624 am__fastdepCXX_TRUE='#'
10625 am__fastdepCXX_FALSE=
10629 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10630 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10631 (test "X$CXX" != "Xg++"))) ; then
10633 ac_cpp='$CXXCPP $CPPFLAGS'
10634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10638 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10639 if test -z "$CXXCPP"; then
10640 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10643 # Double quotes because CXXCPP needs to be expanded
10644 for CXXCPP in "$CXX -E" "/lib/cpp"
10646 ac_preproc_ok=false
10647 for ac_cxx_preproc_warn_flag in '' yes
10649 # Use a header file that comes with gcc, so configuring glibc
10650 # with a fresh cross-compiler works.
10651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10652 # <limits.h> exists even on freestanding compilers.
10653 # On the NeXT, cc -E runs the code through the compiler's parser,
10654 # not just through cpp. "Syntax error" is here to catch this case.
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10658 # include <limits.h>
10660 # include <assert.h>
10664 if ac_fn_cxx_try_cpp "$LINENO"; then :
10667 # Broken: fails on valid input.
10670 rm -f conftest.err conftest.$ac_ext
10672 # OK, works on sane cases. Now check whether nonexistent headers
10673 # can be detected and how.
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #include <ac_nonexistent.h>
10678 if ac_fn_cxx_try_cpp "$LINENO"; then :
10679 # Broken: success on invalid input.
10682 # Passes both tests.
10686 rm -f conftest.err conftest.$ac_ext
10689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10690 rm -f conftest.err conftest.$ac_ext
10691 if $ac_preproc_ok; then :
10696 ac_cv_prog_CXXCPP=$CXXCPP
10699 CXXCPP=$ac_cv_prog_CXXCPP
10701 ac_cv_prog_CXXCPP=$CXXCPP
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10704 $as_echo "$CXXCPP" >&6; }
10705 ac_preproc_ok=false
10706 for ac_cxx_preproc_warn_flag in '' yes
10708 # Use a header file that comes with gcc, so configuring glibc
10709 # with a fresh cross-compiler works.
10710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711 # <limits.h> exists even on freestanding compilers.
10712 # On the NeXT, cc -E runs the code through the compiler's parser,
10713 # not just through cpp. "Syntax error" is here to catch this case.
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10717 # include <limits.h>
10719 # include <assert.h>
10723 if ac_fn_cxx_try_cpp "$LINENO"; then :
10726 # Broken: fails on valid input.
10729 rm -f conftest.err conftest.$ac_ext
10731 # OK, works on sane cases. Now check whether nonexistent headers
10732 # can be detected and how.
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 #include <ac_nonexistent.h>
10737 if ac_fn_cxx_try_cpp "$LINENO"; then :
10738 # Broken: success on invalid input.
10741 # Passes both tests.
10745 rm -f conftest.err conftest.$ac_ext
10748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10749 rm -f conftest.err conftest.$ac_ext
10750 if $ac_preproc_ok; then :
10753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10755 _lt_caught_CXX_error=yes; }
10759 ac_cpp='$CPP $CPPFLAGS'
10760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10765 _lt_caught_CXX_error=yes
10773 enable_win32_dll=yes
10776 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10777 if test -n "$ac_tool_prefix"; then
10778 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10779 set dummy ${ac_tool_prefix}as; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if test "${ac_cv_prog_AS+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
10785 if test -n "$AS"; then
10786 ac_cv_prog_AS="$AS" # Let the user override the test.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_prog_AS="${ac_tool_prefix}as"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 if test -n "$AS"; then
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10808 $as_echo "$AS" >&6; }
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10816 if test -z "$ac_cv_prog_AS"; then
10818 # Extract the first word of "as", so it can be a program name with args.
10819 set dummy as; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10825 if test -n "$ac_ct_AS"; then
10826 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10829 for as_dir in $PATH
10832 test -z "$as_dir" && as_dir=.
10833 for ac_exec_ext in '' $ac_executable_extensions; do
10834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10835 ac_cv_prog_ac_ct_AS="as"
10836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10846 if test -n "$ac_ct_AS"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10848 $as_echo "$ac_ct_AS" >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851 $as_echo "no" >&6; }
10854 if test "x$ac_ct_AS" = x; then
10857 case $cross_compiling:$ac_tool_warned in
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10861 ac_tool_warned=yes ;;
10866 AS="$ac_cv_prog_AS"
10869 if test -n "$ac_tool_prefix"; then
10870 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10871 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10877 if test -n "$DLLTOOL"; then
10878 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 DLLTOOL=$ac_cv_prog_DLLTOOL
10898 if test -n "$DLLTOOL"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10900 $as_echo "$DLLTOOL" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10908 if test -z "$ac_cv_prog_DLLTOOL"; then
10909 ac_ct_DLLTOOL=$DLLTOOL
10910 # Extract the first word of "dlltool", so it can be a program name with args.
10911 set dummy dlltool; ac_word=$2
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913 $as_echo_n "checking for $ac_word... " >&6; }
10914 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10917 if test -n "$ac_ct_DLLTOOL"; then
10918 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10938 if test -n "$ac_ct_DLLTOOL"; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10940 $as_echo "$ac_ct_DLLTOOL" >&6; }
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10946 if test "x$ac_ct_DLLTOOL" = x; then
10949 case $cross_compiling:$ac_tool_warned in
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10953 ac_tool_warned=yes ;;
10955 DLLTOOL=$ac_ct_DLLTOOL
10958 DLLTOOL="$ac_cv_prog_DLLTOOL"
10961 if test -n "$ac_tool_prefix"; then
10962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10963 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10969 if test -n "$OBJDUMP"; then
10970 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 OBJDUMP=$ac_cv_prog_OBJDUMP
10990 if test -n "$OBJDUMP"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10992 $as_echo "$OBJDUMP" >&6; }
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
11000 if test -z "$ac_cv_prog_OBJDUMP"; then
11001 ac_ct_OBJDUMP=$OBJDUMP
11002 # Extract the first word of "objdump", so it can be a program name with args.
11003 set dummy objdump; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11009 if test -n "$ac_ct_OBJDUMP"; then
11010 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11016 test -z "$as_dir" && as_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11019 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11030 if test -n "$ac_ct_OBJDUMP"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11032 $as_echo "$ac_ct_OBJDUMP" >&6; }
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11038 if test "x$ac_ct_OBJDUMP" = x; then
11041 case $cross_compiling:$ac_tool_warned in
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11045 ac_tool_warned=yes ;;
11047 OBJDUMP=$ac_ct_OBJDUMP
11050 OBJDUMP="$ac_cv_prog_OBJDUMP"
11056 test -z "$AS" && AS=as
11062 test -z "$DLLTOOL" && DLLTOOL=dlltool
11068 test -z "$OBJDUMP" && OBJDUMP=objdump
11078 # Check whether --enable-shared was given.
11079 if test "${enable_shared+set}" = set; then :
11080 enableval=$enable_shared; p=${PACKAGE-default}
11082 yes) enable_shared=yes ;;
11083 no) enable_shared=no ;;
11086 # Look at the argument we got. We use all the common list separators.
11087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11088 for pkg in $enableval; do
11090 if test "X$pkg" = "X$p"; then
11109 # Check whether --enable-static was given.
11110 if test "${enable_static+set}" = set; then :
11111 enableval=$enable_static; p=${PACKAGE-default}
11113 yes) enable_static=yes ;;
11114 no) enable_static=no ;;
11117 # Look at the argument we got. We use all the common list separators.
11118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11119 for pkg in $enableval; do
11121 if test "X$pkg" = "X$p"; then
11141 # Check whether --with-pic was given.
11142 if test "${with_pic+set}" = set; then :
11143 withval=$with_pic; pic_mode="$withval"
11149 test -z "$pic_mode" && pic_mode=default
11157 # Check whether --enable-fast-install was given.
11158 if test "${enable_fast_install+set}" = set; then :
11159 enableval=$enable_fast_install; p=${PACKAGE-default}
11161 yes) enable_fast_install=yes ;;
11162 no) enable_fast_install=no ;;
11164 enable_fast_install=no
11165 # Look at the argument we got. We use all the common list separators.
11166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11167 for pkg in $enableval; do
11169 if test "X$pkg" = "X$p"; then
11170 enable_fast_install=yes
11177 enable_fast_install=yes
11190 # This can be used to rebuild libtool when needed
11191 LIBTOOL_DEPS="$ltmain"
11193 # Always use our own libtool.
11194 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11220 test -z "$LN_S" && LN_S="ln -s"
11235 if test -n "${ZSH_VERSION+set}" ; then
11236 setopt NO_GLOB_SUBST
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11240 $as_echo_n "checking for objdir... " >&6; }
11241 if test "${lt_cv_objdir+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11244 rm -f .libs 2>/dev/null
11245 mkdir .libs 2>/dev/null
11246 if test -d .libs; then
11249 # MS-DOS does not allow filenames that begin with a dot.
11252 rmdir .libs 2>/dev/null
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11255 $as_echo "$lt_cv_objdir" >&6; }
11256 objdir=$lt_cv_objdir
11262 cat >>confdefs.h <<_ACEOF
11263 #define LT_OBJDIR "$lt_cv_objdir/"
11284 # AIX sometimes has problems with the GCC collect2 program. For some
11285 # reason, if we set the COLLECT_NAMES environment variable, the problems
11286 # vanish in a puff of smoke.
11287 if test "X${COLLECT_NAMES+set}" != Xset; then
11289 export COLLECT_NAMES
11294 # Sed substitution that helps us do robust quoting. It backslashifies
11295 # metacharacters that are still active within double-quoted strings.
11296 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11298 # Same as above, but do not quote variable references.
11299 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11301 # Sed substitution to delay expansion of an escaped shell variable in a
11302 # double_quote_subst'ed string.
11303 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11305 # Sed substitution to delay expansion of an escaped single quote.
11306 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11308 # Sed substitution to avoid accidental globbing in evaled expressions
11309 no_glob_subst='s/\*/\\\*/g'
11311 # Global variables:
11313 can_build_shared=yes
11315 # All known linkers require a `.a' archive for static linking (except MSVC,
11316 # which needs '.lib').
11319 with_gnu_ld="$lt_cv_prog_gnu_ld"
11322 old_CFLAGS="$CFLAGS"
11324 # Set sane defaults for various variables
11325 test -z "$CC" && CC=cc
11326 test -z "$LTCC" && LTCC=$CC
11327 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11328 test -z "$LD" && LD=ld
11329 test -z "$ac_objext" && ac_objext=o
11331 for cc_temp in $compiler""; do
11333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11339 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11342 # Only perform the check for file, if the check method requires it
11343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11344 case $deplibs_check_method in
11346 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11348 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11354 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11357 lt_save_MAGIC_CMD="$MAGIC_CMD"
11358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11360 for ac_dir in $ac_dummy; do
11362 test -z "$ac_dir" && ac_dir=.
11363 if test -f $ac_dir/${ac_tool_prefix}file; then
11364 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11365 if test -n "$file_magic_test_file"; then
11366 case $deplibs_check_method in
11368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11371 $EGREP "$file_magic_regex" > /dev/null; then
11376 *** Warning: the command libtool uses to detect shared libraries,
11377 *** $file_magic_cmd, produces output that libtool cannot recognize.
11378 *** The result is that libtool may fail to recognize shared libraries
11379 *** as such. This will affect the creation of libtool libraries that
11380 *** depend on shared libraries, but programs linked with such libtool
11381 *** libraries will work regardless of this problem. Nevertheless, you
11382 *** may want to report the problem to your system manager and/or to
11383 *** bug-libtool@gnu.org
11393 MAGIC_CMD="$lt_save_MAGIC_CMD"
11398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11399 if test -n "$MAGIC_CMD"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11401 $as_echo "$MAGIC_CMD" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11411 if test -z "$lt_cv_path_MAGIC_CMD"; then
11412 if test -n "$ac_tool_prefix"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11414 $as_echo_n "checking for file... " >&6; }
11415 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11416 $as_echo_n "(cached) " >&6
11420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11423 lt_save_MAGIC_CMD="$MAGIC_CMD"
11424 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11425 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11426 for ac_dir in $ac_dummy; do
11428 test -z "$ac_dir" && ac_dir=.
11429 if test -f $ac_dir/file; then
11430 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11431 if test -n "$file_magic_test_file"; then
11432 case $deplibs_check_method in
11434 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11436 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11437 $EGREP "$file_magic_regex" > /dev/null; then
11442 *** Warning: the command libtool uses to detect shared libraries,
11443 *** $file_magic_cmd, produces output that libtool cannot recognize.
11444 *** The result is that libtool may fail to recognize shared libraries
11445 *** as such. This will affect the creation of libtool libraries that
11446 *** depend on shared libraries, but programs linked with such libtool
11447 *** libraries will work regardless of this problem. Nevertheless, you
11448 *** may want to report the problem to your system manager and/or to
11449 *** bug-libtool@gnu.org
11459 MAGIC_CMD="$lt_save_MAGIC_CMD"
11464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11465 if test -n "$MAGIC_CMD"; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11467 $as_echo "$MAGIC_CMD" >&6; }
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11483 # Use C for the default configuration in the libtool script
11487 ac_cpp='$CPP $CPPFLAGS'
11488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11493 # Source file extension for C test sources.
11496 # Object file extension for compiled C test sources.
11500 # Code to be used in simple compile tests
11501 lt_simple_compile_test_code="int some_variable = 0;"
11503 # Code to be used in simple link tests
11504 lt_simple_link_test_code='int main(){return(0);}'
11512 # If no C compiler was specified, use CC.
11515 # If no C compiler flags were specified, use CFLAGS.
11516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11518 # Allow CC to be a program name with arguments.
11521 # Save the default compiler, since it gets overwritten when the other
11522 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11523 compiler_DEFAULT=$CC
11525 # save warnings/boilerplate of simple test code
11526 ac_outfile=conftest.$ac_objext
11527 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11529 _lt_compiler_boilerplate=`cat conftest.err`
11532 ac_outfile=conftest.$ac_objext
11533 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11535 _lt_linker_boilerplate=`cat conftest.err`
11540 ## There is no encapsulation within the following macros, do not change
11541 ## the running order or otherwise move them around unless you know exactly
11542 ## what you are doing...
11543 if test -n "$compiler"; then
11545 lt_prog_compiler_no_builtin_flag=
11547 if test "$GCC" = yes; then
11548 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11551 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11552 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11555 lt_cv_prog_compiler_rtti_exceptions=no
11556 ac_outfile=conftest.$ac_objext
11557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11558 lt_compiler_flag="-fno-rtti -fno-exceptions"
11559 # Insert the option either (1) after the last *FLAGS variable, or
11560 # (2) before a word containing "conftest.", or (3) at the end.
11561 # Note that $ac_compile itself does not contain backslashes and begins
11562 # with a dollar sign (not a hyphen), so the echo should work correctly.
11563 # The option is referenced via a variable to avoid confusing sed.
11564 lt_compile=`echo "$ac_compile" | $SED \
11565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11567 -e 's:$: $lt_compiler_flag:'`
11568 (eval echo "\"\$as_me:11568: $lt_compile\"" >&5)
11569 (eval "$lt_compile" 2>conftest.err)
11571 cat conftest.err >&5
11572 echo "$as_me:11572: \$? = $ac_status" >&5
11573 if (exit $ac_status) && test -s "$ac_outfile"; then
11574 # The compiler can only warn and ignore the option if not recognized
11575 # So say no if there are warnings other than the usual output.
11576 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11579 lt_cv_prog_compiler_rtti_exceptions=yes
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11586 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11588 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11589 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11601 lt_prog_compiler_wl=
11602 lt_prog_compiler_pic=
11603 lt_prog_compiler_static=
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11608 if test "$GCC" = yes; then
11609 lt_prog_compiler_wl='-Wl,'
11610 lt_prog_compiler_static='-static'
11614 # All AIX code is PIC.
11615 if test "$host_cpu" = ia64; then
11616 # AIX 5 now supports IA64 processor
11617 lt_prog_compiler_static='-Bstatic'
11624 # see comment about AmigaOS4 .so support
11625 lt_prog_compiler_pic='-fPIC'
11628 # FIXME: we need at least 68020 code to build shared libraries, but
11629 # adding the `-m68020' flag to GCC prevents building anything better,
11631 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11637 # PIC is the default for these OSes.
11640 mingw* | cygwin* | pw32* | os2* | cegcc*)
11641 # This hack is so that the source file can tell whether it is being
11642 # built for inclusion in a dll (and should export symbols for example).
11643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11644 # (--disable-auto-import) libraries
11645 lt_prog_compiler_pic='-DDLL_EXPORT'
11648 darwin* | rhapsody*)
11649 # PIC is the default on this platform
11650 # Common symbols not allowed in MH_DYLIB files
11651 lt_prog_compiler_pic='-fno-common'
11655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11657 # sets the default TLS model and affects inlining.
11663 lt_prog_compiler_pic='-fPIC'
11669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11670 # Instead, we relocate shared libraries at runtime.
11674 # Just because we use GCC doesn't mean we suddenly get shared libraries
11675 # on systems that don't support them.
11676 lt_prog_compiler_can_build_shared=no
11681 # QNX uses GNU C++, but need to define -shared option too, otherwise
11682 # it will coredump.
11683 lt_prog_compiler_pic='-fPIC -shared'
11687 if test -d /usr/nec; then
11688 lt_prog_compiler_pic=-Kconform_pic
11693 lt_prog_compiler_pic='-fPIC'
11697 # PORTME Check for flag to pass linker flags through the system compiler.
11700 lt_prog_compiler_wl='-Wl,'
11701 if test "$host_cpu" = ia64; then
11702 # AIX 5 now supports IA64 processor
11703 lt_prog_compiler_static='-Bstatic'
11705 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11709 mingw* | cygwin* | pw32* | os2* | cegcc*)
11710 # This hack is so that the source file can tell whether it is being
11711 # built for inclusion in a dll (and should export symbols for example).
11712 lt_prog_compiler_pic='-DDLL_EXPORT'
11715 hpux9* | hpux10* | hpux11*)
11716 lt_prog_compiler_wl='-Wl,'
11717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11718 # not for PA HP-UX.
11724 lt_prog_compiler_pic='+Z'
11727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11728 lt_prog_compiler_static='${wl}-a ${wl}archive'
11731 irix5* | irix6* | nonstopux*)
11732 lt_prog_compiler_wl='-Wl,'
11733 # PIC (with -KPIC) is the default.
11734 lt_prog_compiler_static='-non_shared'
11737 linux* | k*bsd*-gnu)
11738 case $cc_basename in
11739 # old Intel for x86_64 which still supported -KPIC.
11741 lt_prog_compiler_wl='-Wl,'
11742 lt_prog_compiler_pic='-KPIC'
11743 lt_prog_compiler_static='-static'
11745 # icc used to be incompatible with GCC.
11746 # ICC 10 doesn't accept -KPIC any more.
11748 lt_prog_compiler_wl='-Wl,'
11749 lt_prog_compiler_pic='-fPIC'
11750 lt_prog_compiler_static='-static'
11752 # Lahey Fortran 8.1.
11754 lt_prog_compiler_wl='-Wl,'
11755 lt_prog_compiler_pic='--shared'
11756 lt_prog_compiler_static='--static'
11758 pgcc* | pgf77* | pgf90* | pgf95*)
11759 # Portland Group compilers (*not* the Pentium gcc compiler,
11760 # which looks to be a dead project)
11761 lt_prog_compiler_wl='-Wl,'
11762 lt_prog_compiler_pic='-fpic'
11763 lt_prog_compiler_static='-Bstatic'
11766 lt_prog_compiler_wl='-Wl,'
11767 # All Alpha code is PIC.
11768 lt_prog_compiler_static='-non_shared'
11771 # IBM XL C 8.0/Fortran 10.1 on PPC
11772 lt_prog_compiler_wl='-Wl,'
11773 lt_prog_compiler_pic='-qpic'
11774 lt_prog_compiler_static='-qstaticlink'
11777 case `$CC -V 2>&1 | sed 5q` in
11780 lt_prog_compiler_pic='-KPIC'
11781 lt_prog_compiler_static='-Bstatic'
11782 lt_prog_compiler_wl='-Wl,'
11785 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11786 lt_prog_compiler_pic='-KPIC'
11787 lt_prog_compiler_static='-Bstatic'
11788 lt_prog_compiler_wl=''
11796 lt_prog_compiler_pic='-KPIC'
11797 lt_prog_compiler_static='-Bstatic'
11801 # QNX uses GNU C++, but need to define -shared option too, otherwise
11802 # it will coredump.
11803 lt_prog_compiler_pic='-fPIC -shared'
11806 osf3* | osf4* | osf5*)
11807 lt_prog_compiler_wl='-Wl,'
11808 # All OSF/1 code is PIC.
11809 lt_prog_compiler_static='-non_shared'
11813 lt_prog_compiler_static='-non_shared'
11817 lt_prog_compiler_pic='-KPIC'
11818 lt_prog_compiler_static='-Bstatic'
11819 case $cc_basename in
11820 f77* | f90* | f95*)
11821 lt_prog_compiler_wl='-Qoption ld ';;
11823 lt_prog_compiler_wl='-Wl,';;
11828 lt_prog_compiler_wl='-Qoption ld '
11829 lt_prog_compiler_pic='-PIC'
11830 lt_prog_compiler_static='-Bstatic'
11833 sysv4 | sysv4.2uw2* | sysv4.3*)
11834 lt_prog_compiler_wl='-Wl,'
11835 lt_prog_compiler_pic='-KPIC'
11836 lt_prog_compiler_static='-Bstatic'
11840 if test -d /usr/nec ;then
11841 lt_prog_compiler_pic='-Kconform_pic'
11842 lt_prog_compiler_static='-Bstatic'
11846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11847 lt_prog_compiler_wl='-Wl,'
11848 lt_prog_compiler_pic='-KPIC'
11849 lt_prog_compiler_static='-Bstatic'
11853 lt_prog_compiler_wl='-Wl,'
11854 lt_prog_compiler_can_build_shared=no
11858 lt_prog_compiler_pic='-pic'
11859 lt_prog_compiler_static='-Bstatic'
11863 lt_prog_compiler_can_build_shared=no
11869 # For platforms which do not support PIC, -DPIC is meaningless:
11871 lt_prog_compiler_pic=
11874 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11878 $as_echo "$lt_prog_compiler_pic" >&6; }
11886 # Check to make sure the PIC flag actually works.
11888 if test -n "$lt_prog_compiler_pic"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11890 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11891 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11894 lt_cv_prog_compiler_pic_works=no
11895 ac_outfile=conftest.$ac_objext
11896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11897 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11898 # Insert the option either (1) after the last *FLAGS variable, or
11899 # (2) before a word containing "conftest.", or (3) at the end.
11900 # Note that $ac_compile itself does not contain backslashes and begins
11901 # with a dollar sign (not a hyphen), so the echo should work correctly.
11902 # The option is referenced via a variable to avoid confusing sed.
11903 lt_compile=`echo "$ac_compile" | $SED \
11904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11906 -e 's:$: $lt_compiler_flag:'`
11907 (eval echo "\"\$as_me:11907: $lt_compile\"" >&5)
11908 (eval "$lt_compile" 2>conftest.err)
11910 cat conftest.err >&5
11911 echo "$as_me:11911: \$? = $ac_status" >&5
11912 if (exit $ac_status) && test -s "$ac_outfile"; then
11913 # The compiler can only warn and ignore the option if not recognized
11914 # So say no if there are warnings other than the usual output.
11915 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11918 lt_cv_prog_compiler_pic_works=yes
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11925 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11927 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11928 case $lt_prog_compiler_pic in
11930 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11933 lt_prog_compiler_pic=
11934 lt_prog_compiler_can_build_shared=no
11945 # Check to make sure the static flag actually works.
11947 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11949 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11950 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11953 lt_cv_prog_compiler_static_works=no
11954 save_LDFLAGS="$LDFLAGS"
11955 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11958 # The linker can only warn and ignore the option if not recognized
11959 # So say no if there are warnings
11960 if test -s conftest.err; then
11961 # Append any errors to the config.log.
11962 cat conftest.err 1>&5
11963 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11965 if diff conftest.exp conftest.er2 >/dev/null; then
11966 lt_cv_prog_compiler_static_works=yes
11969 lt_cv_prog_compiler_static_works=yes
11973 LDFLAGS="$save_LDFLAGS"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11977 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11979 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11982 lt_prog_compiler_static=
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11993 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11996 lt_cv_prog_compiler_c_o=no
11997 $RM -r conftest 2>/dev/null
12001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12003 lt_compiler_flag="-o out/conftest2.$ac_objext"
12004 # Insert the option either (1) after the last *FLAGS variable, or
12005 # (2) before a word containing "conftest.", or (3) at the end.
12006 # Note that $ac_compile itself does not contain backslashes and begins
12007 # with a dollar sign (not a hyphen), so the echo should work correctly.
12008 lt_compile=`echo "$ac_compile" | $SED \
12009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12011 -e 's:$: $lt_compiler_flag:'`
12012 (eval echo "\"\$as_me:12012: $lt_compile\"" >&5)
12013 (eval "$lt_compile" 2>out/conftest.err)
12015 cat out/conftest.err >&5
12016 echo "$as_me:12016: \$? = $ac_status" >&5
12017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12019 # The compiler can only warn and ignore the option if not recognized
12020 # So say no if there are warnings
12021 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12024 lt_cv_prog_compiler_c_o=yes
12029 # SGI C++ compiler will create directory out/ii_files/ for
12030 # template instantiation
12031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12032 $RM out/* && rmdir out
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12039 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12047 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12048 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12051 lt_cv_prog_compiler_c_o=no
12052 $RM -r conftest 2>/dev/null
12056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12058 lt_compiler_flag="-o out/conftest2.$ac_objext"
12059 # Insert the option either (1) after the last *FLAGS variable, or
12060 # (2) before a word containing "conftest.", or (3) at the end.
12061 # Note that $ac_compile itself does not contain backslashes and begins
12062 # with a dollar sign (not a hyphen), so the echo should work correctly.
12063 lt_compile=`echo "$ac_compile" | $SED \
12064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12066 -e 's:$: $lt_compiler_flag:'`
12067 (eval echo "\"\$as_me:12067: $lt_compile\"" >&5)
12068 (eval "$lt_compile" 2>out/conftest.err)
12070 cat out/conftest.err >&5
12071 echo "$as_me:12071: \$? = $ac_status" >&5
12072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12074 # The compiler can only warn and ignore the option if not recognized
12075 # So say no if there are warnings
12076 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12079 lt_cv_prog_compiler_c_o=yes
12084 # SGI C++ compiler will create directory out/ii_files/ for
12085 # template instantiation
12086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12087 $RM out/* && rmdir out
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12094 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12099 hard_links="nottested"
12100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12101 # do not overwrite the value of need_locks provided by the user
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12103 $as_echo_n "checking if we can lock with hard links... " >&6; }
12106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12108 ln conftest.a conftest.b 2>&5 || hard_links=no
12109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12111 $as_echo "$hard_links" >&6; }
12112 if test "$hard_links" = no; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12114 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12130 allow_undefined_flag=
12131 always_export_symbols=no
12133 archive_expsym_cmds=
12134 compiler_needs_object=no
12135 enable_shared_with_static_runtimes=no
12136 export_dynamic_flag_spec=
12137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12138 hardcode_automatic=no
12140 hardcode_direct_absolute=no
12141 hardcode_libdir_flag_spec=
12142 hardcode_libdir_flag_spec_ld=
12143 hardcode_libdir_separator=
12144 hardcode_minus_L=no
12145 hardcode_shlibpath_var=unsupported
12147 link_all_deplibs=unknown
12149 module_expsym_cmds=
12150 old_archive_from_new_cmds=
12151 old_archive_from_expsyms_cmds=
12152 thread_safe_flag_spec=
12153 whole_archive_flag_spec=
12154 # include_expsyms should be a list of space-separated symbols to be *always*
12155 # included in the symbol list
12157 # exclude_expsyms can be an extended regexp of symbols to exclude
12158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12160 # as well as any symbol that contains `d'.
12161 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12163 # platforms (ab)use it in PIC code, but their linkers get confused if
12164 # the symbol is explicitly referenced. Since portable code cannot
12165 # rely on this symbol name, it's probably fine to never include it in
12166 # preloaded symbol tables.
12167 # Exclude shared library initialization/finalization symbols.
12168 extract_expsyms_cmds=
12171 cygwin* | mingw* | pw32* | cegcc*)
12172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12173 # When not using gcc, we currently assume that we are using
12174 # Microsoft Visual C++.
12175 if test "$GCC" != yes; then
12180 # we just hope/assume this is gcc and not c89 (= MSVC++)
12189 if test "$with_gnu_ld" = yes; then
12190 # If archive_cmds runs LD, not CC, wlarc should be empty
12193 # Set some defaults for GNU ld with shared library support. These
12194 # are reset later if shared libraries are not supported. Putting them
12195 # here allows them to be overridden if necessary.
12196 runpath_var=LD_RUN_PATH
12197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12198 export_dynamic_flag_spec='${wl}--export-dynamic'
12199 # ancient GNU ld didn't support --whole-archive et. al.
12200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12201 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12203 whole_archive_flag_spec=
12205 supports_anon_versioning=no
12206 case `$LD -v 2>&1` in
12207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12210 *\ 2.11.*) ;; # other 2.11 versions
12211 *) supports_anon_versioning=yes ;;
12214 # See if GNU ld supports shared libraries.
12217 # On AIX/PPC, the GNU linker is very broken
12218 if test "$host_cpu" != ia64; then
12222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12223 *** to be unable to reliably create shared libraries on AIX.
12224 *** Therefore, libtool is disabling shared libraries support. If you
12225 *** really care for shared libraries, you may want to modify your PATH
12226 *** so that a non-GNU linker is found, and then restart.
12235 # see comment about AmigaOS4 .so support
12236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds=''
12240 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)'
12241 hardcode_libdir_flag_spec='-L$libdir'
12242 hardcode_minus_L=yes
12248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249 allow_undefined_flag=unsupported
12250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251 # support --undefined. This deserves some investigation. FIXME
12252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258 cygwin* | mingw* | pw32* | cegcc*)
12259 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12260 # as there is no search path for DLLs.
12261 hardcode_libdir_flag_spec='-L$libdir'
12262 allow_undefined_flag=unsupported
12263 always_export_symbols=no
12264 enable_shared_with_static_runtimes=yes
12265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269 # If the export-symbols file already is a .def file (1st line
12270 # is EXPORTS), use it as is; otherwise, prepend...
12271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12272 cp $export_symbols $output_objdir/$soname.def;
12274 echo EXPORTS > $output_objdir/$soname.def;
12275 cat $export_symbols >> $output_objdir/$soname.def;
12277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12285 hardcode_shlibpath_var=no
12286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12287 export_dynamic_flag_spec='${wl}-E'
12288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12289 # Instead, shared libraries are loaded at an image base (0x10000000 by
12290 # default) and relocated if they conflict, which is a slow very memory
12291 # consuming and fragmenting process. To avoid this, we pick a random,
12292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12295 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'
12298 gnu* | linux* | tpf* | k*bsd*-gnu)
12300 if test "$host_os" = linux-dietlibc; then
12301 case $cc_basename in
12302 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12305 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12306 && test "$tmp_diet" = no
12309 tmp_sharedflag='-shared'
12310 case $cc_basename,$host_cpu in
12311 pgcc*) # Portland Group C compiler
12312 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'
12313 tmp_addflag=' $pic_flag'
12315 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12316 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'
12317 tmp_addflag=' $pic_flag -Mnomain' ;;
12318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12319 tmp_addflag=' -i_dynamic' ;;
12320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12321 tmp_addflag=' -i_dynamic -nofor_main' ;;
12322 ifc* | ifort*) # Intel Fortran compiler
12323 tmp_addflag=' -nofor_main' ;;
12324 lf95*) # Lahey Fortran 8.1
12325 whole_archive_flag_spec=
12326 tmp_sharedflag='--shared' ;;
12327 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12328 tmp_sharedflag='-qmkshrobj'
12331 case `$CC -V 2>&1 | sed 5q` in
12332 *Sun\ C*) # Sun C 5.9
12333 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'
12334 compiler_needs_object=yes
12335 tmp_sharedflag='-G' ;;
12336 *Sun\ F*) # Sun Fortran 8.3
12337 tmp_sharedflag='-G' ;;
12339 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12341 if test "x$supports_anon_versioning" = xyes; then
12342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12344 echo "local: *; };" >> $output_objdir/$libname.ver~
12345 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12348 case $cc_basename in
12350 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12351 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12352 hardcode_libdir_flag_spec=
12353 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12354 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12355 if test "x$supports_anon_versioning" = xyes; then
12356 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12357 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12358 echo "local: *; };" >> $output_objdir/$libname.ver~
12359 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12379 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12384 *** create shared libraries on Solaris systems. Therefore, libtool
12385 *** is disabling shared libraries support. We urge you to upgrade GNU
12386 *** binutils to release 2.9.1 or newer. Another option is to modify
12387 *** your PATH or compiler configuration so that the native linker is
12388 *** used, and then restart.
12391 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12400 case `$LD -v 2>&1` in
12401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12406 *** reliably create shared libraries on SCO systems. Therefore, libtool
12407 *** is disabling shared libraries support. We urge you to upgrade GNU
12408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12409 *** your PATH or compiler configuration so that the native linker is
12410 *** used, and then restart.
12415 # For security reasons, it is highly recommended that you always
12416 # use absolute paths for naming shared libraries, and exclude the
12417 # DT_RUNPATH tag from executables and libraries. But doing so
12418 # requires that you compile everything twice, which is a pain.
12419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12431 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12433 hardcode_direct=yes
12434 hardcode_shlibpath_var=no
12438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12439 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12440 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12447 if test "$ld_shlibs" = no; then
12449 hardcode_libdir_flag_spec=
12450 export_dynamic_flag_spec=
12451 whole_archive_flag_spec=
12454 # PORTME fill in a description of your system's linker (not GNU ld)
12457 allow_undefined_flag=unsupported
12458 always_export_symbols=yes
12459 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'
12460 # Note: this linker hardcodes the directories in LIBPATH if there
12461 # are no directories specified by -L.
12462 hardcode_minus_L=yes
12463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12464 # Neither direct hardcoding nor static linking is supported with a
12466 hardcode_direct=unsupported
12471 if test "$host_cpu" = ia64; then
12472 # On IA64, the linker does run time linking by default, so we don't
12473 # have to do anything special.
12474 aix_use_runtimelinking=no
12475 exp_sym_flag='-Bexport'
12478 # If we're using GNU nm, then we don't want the "-C" option.
12479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12480 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12481 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'
12483 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'
12485 aix_use_runtimelinking=no
12487 # Test if we are trying to use run time linking or normal
12488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489 # need to do runtime linking.
12490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12491 for ld_flag in $LDFLAGS; do
12492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12493 aix_use_runtimelinking=yes
12500 exp_sym_flag='-bexport'
12501 no_entry_flag='-bnoentry'
12504 # When large executables or shared objects are built, AIX ld can
12505 # have problems creating the table of contents. If linking a library
12506 # or program results in "error TOC overflow" add -mminimal-toc to
12507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12511 hardcode_direct=yes
12512 hardcode_direct_absolute=yes
12513 hardcode_libdir_separator=':'
12514 link_all_deplibs=yes
12515 file_list_spec='${wl}-f,'
12517 if test "$GCC" = yes; then
12518 case $host_os in aix4.[012]|aix4.[012].*)
12519 # We only want to do this on AIX 4.2 and lower, the check
12520 # below for broken collect2 doesn't work under 4.3+
12521 collect2name=`${CC} -print-prog-name=collect2`
12522 if test -f "$collect2name" &&
12523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12525 # We have reworked collect2
12528 # We have old collect2
12529 hardcode_direct=unsupported
12530 # It fails to find uninstalled libraries when the uninstalled
12531 # path is not listed in the libpath. Setting hardcode_minus_L
12532 # to unsupported forces relinking
12533 hardcode_minus_L=yes
12534 hardcode_libdir_flag_spec='-L$libdir'
12535 hardcode_libdir_separator=
12539 shared_flag='-shared'
12540 if test "$aix_use_runtimelinking" = yes; then
12541 shared_flag="$shared_flag "'${wl}-G'
12545 if test "$host_cpu" = ia64; then
12546 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12547 # chokes on -Wl,-G. The following line is correct:
12550 if test "$aix_use_runtimelinking" = yes; then
12551 shared_flag='${wl}-G'
12553 shared_flag='${wl}-bM:SRE'
12558 export_dynamic_flag_spec='${wl}-bexpall'
12559 # It seems that -bexpall does not export symbols beginning with
12560 # underscore (_), so it is better to generate a list of symbols to export.
12561 always_export_symbols=yes
12562 if test "$aix_use_runtimelinking" = yes; then
12563 # Warning - without using the other runtime loading flags (-brtl),
12564 # -berok will link without error, but may produce a broken library.
12565 allow_undefined_flag='-berok'
12566 # Determine the default libpath from the value encoded in an
12567 # empty executable.
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12579 if ac_fn_c_try_link "$LINENO"; then :
12581 lt_aix_libpath_sed='
12582 /Import File Strings/,/^$/ {
12588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12589 # Check for a 64-bit object if we didn't find anything.
12590 if test -z "$aix_libpath"; then
12591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594 rm -f core conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext conftest.$ac_ext
12596 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12598 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12599 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"
12601 if test "$host_cpu" = ia64; then
12602 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12603 allow_undefined_flag="-z nodefs"
12604 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"
12606 # Determine the default libpath from the value encoded in an
12607 # empty executable.
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12619 if ac_fn_c_try_link "$LINENO"; then :
12621 lt_aix_libpath_sed='
12622 /Import File Strings/,/^$/ {
12628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 # Check for a 64-bit object if we didn't find anything.
12630 if test -z "$aix_libpath"; then
12631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12638 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12639 # Warning - without using the other run time loading flags,
12640 # -berok will link without error, but may produce a broken library.
12641 no_undefined_flag=' ${wl}-bernotok'
12642 allow_undefined_flag=' ${wl}-berok'
12643 # Exported symbols can be pulled into shared objects from archives
12644 whole_archive_flag_spec='$convenience'
12645 archive_cmds_need_lc=yes
12646 # This is similar to how AIX traditionally builds its shared libraries.
12647 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'
12655 # see comment about AmigaOS4 .so support
12656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657 archive_expsym_cmds=''
12660 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)'
12661 hardcode_libdir_flag_spec='-L$libdir'
12662 hardcode_minus_L=yes
12668 export_dynamic_flag_spec=-rdynamic
12671 cygwin* | mingw* | pw32* | cegcc*)
12672 # When not using gcc, we currently assume that we are using
12673 # Microsoft Visual C++.
12674 # hardcode_libdir_flag_spec is actually meaningless, as there is
12675 # no search path for DLLs.
12676 hardcode_libdir_flag_spec=' '
12677 allow_undefined_flag=unsupported
12678 # Tell ltmain to make .lib files, not .a files.
12680 # Tell ltmain to make .dll files, not .so files.
12682 # FIXME: Setting linknames here is a bad hack.
12683 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12684 # The linker will automatically build a .lib file if we build a DLL.
12685 old_archive_from_new_cmds='true'
12686 # FIXME: Should let the user specify the lib program.
12687 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12688 fix_srcfile_path='`cygpath -w "$srcfile"`'
12689 enable_shared_with_static_runtimes=yes
12692 darwin* | rhapsody*)
12695 archive_cmds_need_lc=no
12697 hardcode_automatic=yes
12698 hardcode_shlibpath_var=unsupported
12699 whole_archive_flag_spec=''
12700 link_all_deplibs=yes
12701 allow_undefined_flag="$_lt_dar_allow_undefined"
12702 case $cc_basename in
12703 ifort*) _lt_dar_can_shared=yes ;;
12704 *) _lt_dar_can_shared=$GCC ;;
12706 if test "$_lt_dar_can_shared" = "yes"; then
12707 output_verbose_link_cmd=echo
12708 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12709 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12710 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}"
12711 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}"
12720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12721 hardcode_libdir_flag_spec='-L$libdir'
12722 hardcode_shlibpath_var=no
12729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12730 # support. Future versions do this automatically, but an explicit c++rt0.o
12731 # does not break anything, and helps significantly (at the cost of a little
12734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12735 hardcode_libdir_flag_spec='-R$libdir'
12736 hardcode_direct=yes
12737 hardcode_shlibpath_var=no
12740 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12743 hardcode_direct=yes
12744 hardcode_minus_L=yes
12745 hardcode_shlibpath_var=no
12748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12749 freebsd* | dragonfly*)
12750 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12751 hardcode_libdir_flag_spec='-R$libdir'
12752 hardcode_direct=yes
12753 hardcode_shlibpath_var=no
12757 if test "$GCC" = yes; then
12758 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'
12760 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'
12762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12763 hardcode_libdir_separator=:
12764 hardcode_direct=yes
12766 # hardcode_minus_L: Not really in the search PATH,
12767 # but as the default location of the library.
12768 hardcode_minus_L=yes
12769 export_dynamic_flag_spec='${wl}-E'
12773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12778 if test "$with_gnu_ld" = no; then
12779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_flag_spec_ld='+b $libdir'
12781 hardcode_libdir_separator=:
12782 hardcode_direct=yes
12783 hardcode_direct_absolute=yes
12784 export_dynamic_flag_spec='${wl}-E'
12785 # hardcode_minus_L: Not really in the search PATH,
12786 # but as the default location of the library.
12787 hardcode_minus_L=yes
12792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12795 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12801 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12807 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12810 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12813 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12817 if test "$with_gnu_ld" = no; then
12818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12819 hardcode_libdir_separator=:
12824 hardcode_shlibpath_var=no
12827 hardcode_direct=yes
12828 hardcode_direct_absolute=yes
12829 export_dynamic_flag_spec='${wl}-E'
12831 # hardcode_minus_L: Not really in the search PATH,
12832 # but as the default location of the library.
12833 hardcode_minus_L=yes
12839 irix5* | irix6* | nonstopux*)
12840 if test "$GCC" = yes; then
12841 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'
12842 # Try to use the -exported_symbol ld option, if it does not
12843 # work, assume that -exports_file does not work either and
12844 # implicitly export all symbols.
12845 save_LDFLAGS="$LDFLAGS"
12846 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12851 if ac_fn_c_try_link "$LINENO"; then :
12852 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'
12855 rm -f core conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 LDFLAGS="$save_LDFLAGS"
12859 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'
12860 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'
12862 archive_cmds_need_lc='no'
12863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12864 hardcode_libdir_separator=:
12866 link_all_deplibs=yes
12870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12873 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12875 hardcode_libdir_flag_spec='-R$libdir'
12876 hardcode_direct=yes
12877 hardcode_shlibpath_var=no
12881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12882 hardcode_direct=yes
12883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12884 hardcode_libdir_separator=:
12885 hardcode_shlibpath_var=no
12892 if test -f /usr/libexec/ld.so; then
12893 hardcode_direct=yes
12894 hardcode_shlibpath_var=no
12895 hardcode_direct_absolute=yes
12896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12898 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12900 export_dynamic_flag_spec='${wl}-E'
12903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12905 hardcode_libdir_flag_spec='-R$libdir'
12908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12919 hardcode_libdir_flag_spec='-L$libdir'
12920 hardcode_minus_L=yes
12921 allow_undefined_flag=unsupported
12922 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'
12923 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12927 if test "$GCC" = yes; then
12928 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12929 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'
12931 allow_undefined_flag=' -expect_unresolved \*'
12932 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'
12934 archive_cmds_need_lc='no'
12935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12936 hardcode_libdir_separator=:
12939 osf4* | osf5*) # as osf3* with the addition of -msym flag
12940 if test "$GCC" = yes; then
12941 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12942 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'
12943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12945 allow_undefined_flag=' -expect_unresolved \*'
12946 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'
12947 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~
12948 $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'
12950 # Both c and cxx compiler support -rpath directly
12951 hardcode_libdir_flag_spec='-rpath $libdir'
12953 archive_cmds_need_lc='no'
12954 hardcode_libdir_separator=:
12958 no_undefined_flag=' -z defs'
12959 if test "$GCC" = yes; then
12961 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12963 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12965 case `$CC -V 2>&1` in
12968 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12974 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12976 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12980 hardcode_libdir_flag_spec='-R$libdir'
12981 hardcode_shlibpath_var=no
12983 solaris2.[0-5] | solaris2.[0-5].*) ;;
12985 # The compiler driver will combine and reorder linker options,
12986 # but understands `-z linker_flag'. GCC discards it without `$wl',
12987 # but is careful enough not to reorder.
12988 # Supported since Solaris 2.6 (maybe 2.5.1?)
12989 if test "$GCC" = yes; then
12990 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12996 link_all_deplibs=yes
13000 if test "x$host_vendor" = xsequent; then
13001 # Use $CC to link under sequent, because it throws in some extra .o
13002 # files that make .init and .fini sections work.
13003 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13007 hardcode_libdir_flag_spec='-L$libdir'
13008 hardcode_direct=yes
13009 hardcode_minus_L=yes
13010 hardcode_shlibpath_var=no
13014 case $host_vendor in
13016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13017 hardcode_direct=yes # is this really true???
13020 ## LD is ld it makes a PLAMLIB
13021 ## CC just makes a GrossModule.
13022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13023 reload_cmds='$CC -r -o $output$reload_objs'
13027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13031 runpath_var='LD_RUN_PATH'
13032 hardcode_shlibpath_var=no
13036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037 hardcode_shlibpath_var=no
13038 export_dynamic_flag_spec='-Bexport'
13042 if test -d /usr/nec; then
13043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13044 hardcode_shlibpath_var=no
13045 runpath_var=LD_RUN_PATH
13046 hardcode_runpath_var=yes
13051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13052 no_undefined_flag='${wl}-z,text'
13053 archive_cmds_need_lc=no
13054 hardcode_shlibpath_var=no
13055 runpath_var='LD_RUN_PATH'
13057 if test "$GCC" = yes; then
13058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066 sysv5* | sco3.2v5* | sco5v6*)
13067 # Note: We can NOT use -z defs as we might desire, because we do not
13068 # link with -lc, and that would cause any symbols used from libc to
13069 # always be unresolved, which means just about no library would
13070 # ever link correctly. If we're not using GNU ld we use -z text
13071 # though, which does catch some bad symbols but isn't as heavy-handed
13073 no_undefined_flag='${wl}-z,text'
13074 allow_undefined_flag='${wl}-z,nodefs'
13075 archive_cmds_need_lc=no
13076 hardcode_shlibpath_var=no
13077 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13078 hardcode_libdir_separator=':'
13079 link_all_deplibs=yes
13080 export_dynamic_flag_spec='${wl}-Bexport'
13081 runpath_var='LD_RUN_PATH'
13083 if test "$GCC" = yes; then
13084 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13085 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13087 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13094 hardcode_libdir_flag_spec='-L$libdir'
13095 hardcode_shlibpath_var=no
13103 if test x$host_vendor = xsni; then
13105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13106 export_dynamic_flag_spec='${wl}-Blargedynsym'
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13113 $as_echo "$ld_shlibs" >&6; }
13114 test "$ld_shlibs" = no && can_build_shared=no
13116 with_gnu_ld=$with_gnu_ld
13133 # Do we need to explicitly link libc?
13135 case "x$archive_cmds_need_lc" in
13137 # Assume -lc should be added
13138 archive_cmds_need_lc=yes
13140 if test "$enable_shared" = yes && test "$GCC" = yes; then
13141 case $archive_cmds in
13143 # FIXME: we may have to deal with multi-command sequences.
13146 # Test whether the compiler implicitly links with -lc since on some
13147 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13148 # to ld, don't add -lc before -lgcc.
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13150 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13155 (eval $ac_compile) 2>&5
13157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158 test $ac_status = 0; } 2>conftest.err; then
13161 libobjs=conftest.$ac_objext
13163 wl=$lt_prog_compiler_wl
13164 pic_flag=$lt_prog_compiler_pic
13170 lt_save_allow_undefined_flag=$allow_undefined_flag
13171 allow_undefined_flag=
13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13173 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }
13178 archive_cmds_need_lc=no
13180 archive_cmds_need_lc=yes
13182 allow_undefined_flag=$lt_save_allow_undefined_flag
13184 cat conftest.err 1>&5
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13188 $as_echo "$archive_cmds_need_lc" >&6; }
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13352 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13354 if test "$GCC" = yes; then
13356 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13357 *) lt_awk_arg="/^libraries:/" ;;
13359 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13360 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13361 # if the path contains ";" then we assume it to be the separator
13362 # otherwise default to the standard path separator (i.e. ":") - it is
13363 # assumed that no part of a normal pathname contains ";" but that should
13364 # okay in the real world where ";" in dirpaths is itself problematic.
13365 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13369 # Ok, now we have the path, separated by spaces, we can step through it
13370 # and add multilib dir if necessary.
13371 lt_tmp_lt_search_path_spec=
13372 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13373 for lt_sys_path in $lt_search_path_spec; do
13374 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13375 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13377 test -d "$lt_sys_path" && \
13378 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13381 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13382 BEGIN {RS=" "; FS="/|\n";} {
13385 for (lt_i = NF; lt_i > 0; lt_i--) {
13386 if ($lt_i != "" && $lt_i != ".") {
13387 if ($lt_i == "..") {
13390 if (lt_count == 0) {
13391 lt_foo="/" $lt_i lt_foo;
13398 if (lt_foo != "") { lt_freq[lt_foo]++; }
13399 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13401 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13403 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13405 library_names_spec=
13406 libname_spec='lib$name'
13410 postuninstall_cmds=
13414 shlibpath_overrides_runpath=unknown
13416 dynamic_linker="$host_os ld.so"
13417 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13418 need_lib_prefix=unknown
13419 hardcode_into_libs=no
13421 # when you set need_version to no, make sure it does not cause -set_version
13422 # flags to be left without arguments
13423 need_version=unknown
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13429 shlibpath_var=LIBPATH
13431 # AIX 3 has no versioning support, so we append a major version to the name.
13432 soname_spec='${libname}${release}${shared_ext}$major'
13439 hardcode_into_libs=yes
13440 if test "$host_cpu" = ia64; then
13441 # AIX 5 supports IA64
13442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13443 shlibpath_var=LD_LIBRARY_PATH
13445 # With GCC up to 2.95.x, collect2 would create an import file
13446 # for dependence libraries. The import file would start with
13447 # the line `#! .'. This would cause the generated library to
13448 # depend on `.', always an invalid library. This was fixed in
13449 # development snapshots of GCC prior to 3.0.
13451 aix4 | aix4.[01] | aix4.[01].*)
13452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13454 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13457 can_build_shared=no
13461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13462 # soname into executable. Probably we can add versioning support to
13463 # collect2, so additional links can be useful in future.
13464 if test "$aix_use_runtimelinking" = yes; then
13465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13466 # instead of lib<name>.a to let people know that these are not
13467 # typical AIX shared libraries.
13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470 # We preserve .a as extension for shared libraries through AIX4.2
13471 # and later when we are not doing run time linking.
13472 library_names_spec='${libname}${release}.a $libname.a'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13475 shlibpath_var=LIBPATH
13482 # Since July 2007 AmigaOS4 officially supports .so libraries.
13483 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487 library_names_spec='$libname.ixlibrary $libname.a'
13488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13489 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'
13495 library_names_spec='${libname}${shared_ext}'
13496 dynamic_linker="$host_os ld.so"
13497 shlibpath_var=LIBRARY_PATH
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504 soname_spec='${libname}${release}${shared_ext}$major'
13505 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13508 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13509 # the default ld.so.conf also contains /usr/contrib/lib and
13510 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13511 # libtool to hard-code these into programs
13514 cygwin* | mingw* | pw32* | cegcc*)
13515 version_type=windows
13520 case $GCC,$host_os in
13521 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13522 library_names_spec='$libname.dll.a'
13523 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13524 postinstall_cmds='base_file=`basename \${file}`~
13525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13526 dldir=$destdir/`dirname \$dlpath`~
13527 test -d \$dldir || mkdir -p \$dldir~
13528 $install_prog $dir/$dlname \$dldir/$dlname~
13529 chmod a+x \$dldir/$dlname~
13530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13534 dlpath=$dir/\$dldll~
13536 shlibpath_overrides_runpath=yes
13540 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13541 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13542 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13545 # MinGW DLLs use traditional 'lib' prefix
13546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13547 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13548 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13549 # It is most probably a Windows format PATH printed by
13550 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13551 # path with ; separators, and with drive letters. We can handle the
13552 # drive letters (cygwin fileutils understands them), so leave them,
13553 # especially as we might pass files found there to a mingw objdump,
13554 # which wouldn't understand a cygwinified path. Ahh.
13555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13561 # pw32 DLLs use 'pw' prefix rather than 'lib'
13562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13568 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13571 dynamic_linker='Win32 ld.exe'
13572 # FIXME: first we should search . and the directory the executable is in
13576 darwin* | rhapsody*)
13577 dynamic_linker="$host_os dyld"
13578 version_type=darwin
13581 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13582 soname_spec='${libname}${release}${major}$shared_ext'
13583 shlibpath_overrides_runpath=yes
13584 shlibpath_var=DYLD_LIBRARY_PATH
13585 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13587 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13596 soname_spec='${libname}${release}${shared_ext}$major'
13597 shlibpath_var=LD_LIBRARY_PATH
13604 freebsd* | dragonfly*)
13605 # DragonFly does not have aout. When/if they implement a new
13606 # versioning mechanism, adjust this.
13607 if test -x /usr/bin/objformat; then
13608 objformat=`/usr/bin/objformat`
13611 freebsd[123]*) objformat=aout ;;
13612 *) objformat=elf ;;
13615 version_type=freebsd-$objformat
13616 case $version_type in
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13627 shlibpath_var=LD_LIBRARY_PATH
13630 shlibpath_overrides_runpath=yes
13632 freebsd3.[01]* | freebsdelf3.[01]*)
13633 shlibpath_overrides_runpath=yes
13634 hardcode_into_libs=yes
13636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13638 shlibpath_overrides_runpath=no
13639 hardcode_into_libs=yes
13641 *) # from 4.6 on, and DragonFly
13642 shlibpath_overrides_runpath=yes
13643 hardcode_into_libs=yes
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13653 soname_spec='${libname}${release}${shared_ext}$major'
13654 shlibpath_var=LD_LIBRARY_PATH
13655 hardcode_into_libs=yes
13658 hpux9* | hpux10* | hpux11*)
13659 # Give a soname corresponding to the major version so that dld.sl refuses to
13660 # link against other versions.
13667 hardcode_into_libs=yes
13668 dynamic_linker="$host_os dld.so"
13669 shlibpath_var=LD_LIBRARY_PATH
13670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672 soname_spec='${libname}${release}${shared_ext}$major'
13673 if test "X$HPUX_IA64_MODE" = X32; then
13674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13682 hardcode_into_libs=yes
13683 dynamic_linker="$host_os dld.sl"
13684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13693 dynamic_linker="$host_os dld.sl"
13694 shlibpath_var=SHLIB_PATH
13695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13697 soname_spec='${libname}${release}${shared_ext}$major'
13700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13701 postinstall_cmds='chmod 555 $lib'
13708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13709 soname_spec='${libname}${release}${shared_ext}$major'
13710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13711 shlibpath_var=LD_LIBRARY_PATH
13712 shlibpath_overrides_runpath=no
13713 hardcode_into_libs=yes
13716 irix5* | irix6* | nonstopux*)
13718 nonstopux*) version_type=nonstopux ;;
13720 if test "$lt_cv_prog_gnu_ld" = yes; then
13728 soname_spec='${libname}${release}${shared_ext}$major'
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13731 irix5* | nonstopux*)
13732 libsuff= shlibsuff=
13735 case $LD in # libtool.m4 will add one of these switches to LD
13736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13737 libsuff= shlibsuff= libmagic=32-bit;;
13738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13739 libsuff=32 shlibsuff=N32 libmagic=N32;;
13740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13742 *) libsuff= shlibsuff= libmagic=never-match;;
13746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13747 shlibpath_overrides_runpath=no
13748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13750 hardcode_into_libs=yes
13753 # No shared lib support for Linux oldld, aout, or coff.
13754 linux*oldld* | linux*aout* | linux*coff*)
13758 # This must be Linux ELF.
13759 linux* | k*bsd*-gnu)
13763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764 soname_spec='${libname}${release}${shared_ext}$major'
13765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13766 shlibpath_var=LD_LIBRARY_PATH
13767 shlibpath_overrides_runpath=no
13768 # Some binutils ld are patched to set DT_RUNPATH
13769 save_LDFLAGS=$LDFLAGS
13770 save_libdir=$libdir
13771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13784 if ac_fn_c_try_link "$LINENO"; then :
13785 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13786 shlibpath_overrides_runpath=yes
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
13791 LDFLAGS=$save_LDFLAGS
13792 libdir=$save_libdir
13794 # This implies no fast_install, which is unacceptable.
13795 # Some rework will be needed to allow for fast_install
13796 # before this can be enabled.
13797 hardcode_into_libs=yes
13799 # Add ABI-specific directories to the system library path.
13800 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13802 # Append ld.so.conf contents to the search path
13803 if test -f /etc/ld.so.conf; then
13804 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' ' '`
13805 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13808 # We used to test for /lib/ld.so.1 and disable shared libraries on
13809 # powerpc, because MkLinux only supported shared libraries with the
13810 # GNU dynamic linker. Since this was broken with cross compilers,
13811 # most powerpc-linux boxes support dynamic linking these days and
13812 # people can always --disable-shared, the test was removed, and we
13813 # assume the GNU/Linux dynamic linker is in use.
13814 dynamic_linker='GNU/Linux ld.so'
13821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13824 dynamic_linker='NetBSD (a.out) ld.so'
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 dynamic_linker='NetBSD ld.elf_so'
13830 shlibpath_var=LD_LIBRARY_PATH
13831 shlibpath_overrides_runpath=yes
13832 hardcode_into_libs=yes
13837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 shlibpath_overrides_runpath=yes
13846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13847 soname_spec='${libname}${release}${shared_ext}$major'
13848 shlibpath_var=LD_LIBRARY_PATH
13849 shlibpath_overrides_runpath=no
13850 hardcode_into_libs=yes
13851 dynamic_linker='ldqnx.so'
13856 sys_lib_dlsearch_path_spec="/usr/lib"
13858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13860 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13861 *) need_version=no ;;
13863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13865 shlibpath_var=LD_LIBRARY_PATH
13866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13868 openbsd2.[89] | openbsd2.[89].*)
13869 shlibpath_overrides_runpath=no
13872 shlibpath_overrides_runpath=yes
13876 shlibpath_overrides_runpath=yes
13881 libname_spec='$name'
13884 library_names_spec='$libname${shared_ext} $libname.a'
13885 dynamic_linker='OS/2 ld.exe'
13886 shlibpath_var=LIBPATH
13889 osf3* | osf4* | osf5*)
13893 soname_spec='${libname}${release}${shared_ext}$major'
13894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895 shlibpath_var=LD_LIBRARY_PATH
13896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 soname_spec='${libname}${release}${shared_ext}$major'
13910 shlibpath_var=LD_LIBRARY_PATH
13911 shlibpath_overrides_runpath=yes
13912 hardcode_into_libs=yes
13913 # ldd complains unless libraries are executable
13914 postinstall_cmds='chmod +x $lib'
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13921 shlibpath_var=LD_LIBRARY_PATH
13922 shlibpath_overrides_runpath=yes
13923 if test "$with_gnu_ld" = yes; then
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13932 soname_spec='${libname}${release}${shared_ext}$major'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 case $host_vendor in
13936 shlibpath_overrides_runpath=no
13938 runpath_var=LD_RUN_PATH
13946 shlibpath_overrides_runpath=no
13947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13953 if test -d /usr/nec ;then
13955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13956 soname_spec='$libname${shared_ext}.$major'
13957 shlibpath_var=LD_LIBRARY_PATH
13961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13962 version_type=freebsd-elf
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13966 soname_spec='${libname}${release}${shared_ext}$major'
13967 shlibpath_var=LD_LIBRARY_PATH
13968 shlibpath_overrides_runpath=yes
13969 hardcode_into_libs=yes
13970 if test "$with_gnu_ld" = yes; then
13971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13980 sys_lib_dlsearch_path_spec='/usr/lib'
13984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=no
13991 hardcode_into_libs=yes
13996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13997 soname_spec='${libname}${release}${shared_ext}$major'
13998 shlibpath_var=LD_LIBRARY_PATH
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14006 $as_echo "$dynamic_linker" >&6; }
14007 test "$dynamic_linker" = no && can_build_shared=no
14009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14010 if test "$GCC" = yes; then
14011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14014 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14015 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14017 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14018 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14110 if test -n "$hardcode_libdir_flag_spec" ||
14111 test -n "$runpath_var" ||
14112 test "X$hardcode_automatic" = "Xyes" ; then
14114 # We can hardcode non-existent directories.
14115 if test "$hardcode_direct" != no &&
14116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14117 # have to relink, otherwise we might link with an installed library
14118 # when we should be linking with a yet-to-be-installed one
14119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14120 test "$hardcode_minus_L" != no; then
14121 # Linking always hardcodes the temporary library directory.
14122 hardcode_action=relink
14124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14125 hardcode_action=immediate
14128 # We cannot hardcode anything, or else we can only hardcode existing
14130 hardcode_action=unsupported
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14133 $as_echo "$hardcode_action" >&6; }
14135 if test "$hardcode_action" = relink ||
14136 test "$inherit_rpath" = yes; then
14137 # Fast installation is not supported
14138 enable_fast_install=no
14139 elif test "$shlibpath_overrides_runpath" = yes ||
14140 test "$enable_shared" = no; then
14141 # Fast installation is not necessary
14142 enable_fast_install=needless
14150 if test "x$enable_dlopen" != xyes; then
14151 enable_dlopen=unknown
14152 enable_dlopen_self=unknown
14153 enable_dlopen_self_static=unknown
14160 lt_cv_dlopen="load_add_on"
14162 lt_cv_dlopen_self=yes
14165 mingw* | pw32* | cegcc*)
14166 lt_cv_dlopen="LoadLibrary"
14171 lt_cv_dlopen="dlopen"
14176 # if libdl is installed we need to link against it
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14182 ac_check_lib_save_LIBS=$LIBS
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14187 /* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
14202 if ac_fn_c_try_link "$LINENO"; then :
14203 ac_cv_lib_dl_dlopen=yes
14205 ac_cv_lib_dl_dlopen=no
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14209 LIBS=$ac_check_lib_save_LIBS
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14217 lt_cv_dlopen="dyld"
14219 lt_cv_dlopen_self=yes
14226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14227 if test "x$ac_cv_func_shl_load" = x""yes; then :
14228 lt_cv_dlopen="shl_load"
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14233 $as_echo_n "(cached) " >&6
14235 ac_check_lib_save_LIBS=$LIBS
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14250 return shl_load ();
14255 if ac_fn_c_try_link "$LINENO"; then :
14256 ac_cv_lib_dld_shl_load=yes
14258 ac_cv_lib_dld_shl_load=no
14260 rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
14262 LIBS=$ac_check_lib_save_LIBS
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14266 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14270 if test "x$ac_cv_func_dlopen" = x""yes; then :
14271 lt_cv_dlopen="dlopen"
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14278 ac_check_lib_save_LIBS=$LIBS
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 ac_cv_lib_dl_dlopen=yes
14301 ac_cv_lib_dl_dlopen=no
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14315 $as_echo_n "(cached) " >&6
14317 ac_check_lib_save_LIBS=$LIBS
14318 LIBS="-lsvld $LIBS"
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14322 /* Override any GCC internal prototype to avoid an error.
14323 Use char because int might match the return type of a GCC
14324 builtin and then its argument prototype would still apply. */
14337 if ac_fn_c_try_link "$LINENO"; then :
14338 ac_cv_lib_svld_dlopen=yes
14340 ac_cv_lib_svld_dlopen=no
14342 rm -f core conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14348 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14356 ac_check_lib_save_LIBS=$LIBS
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14361 /* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14371 return dld_link ();
14376 if ac_fn_c_try_link "$LINENO"; then :
14377 ac_cv_lib_dld_dld_link=yes
14379 ac_cv_lib_dld_dld_link=no
14381 rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext conftest.$ac_ext
14383 LIBS=$ac_check_lib_save_LIBS
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14387 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14409 if test "x$lt_cv_dlopen" != xno; then
14415 case $lt_cv_dlopen in
14417 save_CPPFLAGS="$CPPFLAGS"
14418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14420 save_LDFLAGS="$LDFLAGS"
14421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14424 LIBS="$lt_cv_dlopen_libs $LIBS"
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14428 if test "${lt_cv_dlopen_self+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14431 if test "$cross_compiling" = yes; then :
14432 lt_cv_dlopen_self=cross
14434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14435 lt_status=$lt_dlunknown
14436 cat > conftest.$ac_ext <<_LT_EOF
14437 #line 14437 "configure"
14438 #include "confdefs.h"
14447 # define LT_DLGLOBAL RTLD_GLOBAL
14450 # define LT_DLGLOBAL DL_GLOBAL
14452 # define LT_DLGLOBAL 0
14456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14457 find out it does not work in some platform. */
14458 #ifndef LT_DLLAZY_OR_NOW
14460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14463 # define LT_DLLAZY_OR_NOW DL_LAZY
14466 # define LT_DLLAZY_OR_NOW RTLD_NOW
14469 # define LT_DLLAZY_OR_NOW DL_NOW
14471 # define LT_DLLAZY_OR_NOW 0
14478 void fnord() { int i=42;}
14481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14482 int status = $lt_dlunknown;
14486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14487 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14488 /* dlclose (self); */
14496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14497 (eval $ac_link) 2>&5
14499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14501 (./conftest; exit; ) >&5 2>/dev/null
14503 case x$lt_status in
14504 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14505 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14506 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14509 # compilation failed
14510 lt_cv_dlopen_self=no
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14518 $as_echo "$lt_cv_dlopen_self" >&6; }
14520 if test "x$lt_cv_dlopen_self" = xyes; then
14521 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14523 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14524 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14525 $as_echo_n "(cached) " >&6
14527 if test "$cross_compiling" = yes; then :
14528 lt_cv_dlopen_self_static=cross
14530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14531 lt_status=$lt_dlunknown
14532 cat > conftest.$ac_ext <<_LT_EOF
14533 #line 14533 "configure"
14534 #include "confdefs.h"
14543 # define LT_DLGLOBAL RTLD_GLOBAL
14546 # define LT_DLGLOBAL DL_GLOBAL
14548 # define LT_DLGLOBAL 0
14552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14553 find out it does not work in some platform. */
14554 #ifndef LT_DLLAZY_OR_NOW
14556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14559 # define LT_DLLAZY_OR_NOW DL_LAZY
14562 # define LT_DLLAZY_OR_NOW RTLD_NOW
14565 # define LT_DLLAZY_OR_NOW DL_NOW
14567 # define LT_DLLAZY_OR_NOW 0
14574 void fnord() { int i=42;}
14577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14578 int status = $lt_dlunknown;
14582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14584 /* dlclose (self); */
14592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14593 (eval $ac_link) 2>&5
14595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14597 (./conftest; exit; ) >&5 2>/dev/null
14599 case x$lt_status in
14600 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14601 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14602 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14605 # compilation failed
14606 lt_cv_dlopen_self_static=no
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14614 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14617 CPPFLAGS="$save_CPPFLAGS"
14618 LDFLAGS="$save_LDFLAGS"
14623 case $lt_cv_dlopen_self in
14624 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14625 *) enable_dlopen_self=unknown ;;
14628 case $lt_cv_dlopen_self_static in
14629 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14630 *) enable_dlopen_self_static=unknown ;;
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14653 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14654 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14658 $as_echo "yes" >&6; }
14660 # FIXME - insert some real tests, host_os isn't really good enough
14663 if test -n "$STRIP" ; then
14664 striplib="$STRIP -x"
14665 old_striplib="$STRIP -S"
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14667 $as_echo "yes" >&6; }
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14675 $as_echo "no" >&6; }
14691 # Report which library types will actually be built
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14693 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14695 $as_echo "$can_build_shared" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14698 $as_echo_n "checking whether to build shared libraries... " >&6; }
14699 test "$can_build_shared" = "no" && enable_shared=no
14701 # On AIX, shared libraries and static libraries use the same namespace, and
14702 # are all built from PIC.
14705 test "$enable_shared" = yes && enable_static=no
14706 if test -n "$RANLIB"; then
14707 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14708 postinstall_cmds='$RANLIB $lib'
14713 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14714 test "$enable_shared" = yes && enable_static=no
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14719 $as_echo "$enable_shared" >&6; }
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14722 $as_echo_n "checking whether to build static libraries... " >&6; }
14723 # Make sure either enable_shared or enable_static is yes.
14724 test "$enable_shared" = yes || enable_static=yes
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14726 $as_echo "$enable_static" >&6; }
14733 ac_cpp='$CPP $CPPFLAGS'
14734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14742 ac_cpp='$CXXCPP $CPPFLAGS'
14743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14747 archive_cmds_need_lc_CXX=no
14748 allow_undefined_flag_CXX=
14749 always_export_symbols_CXX=no
14750 archive_expsym_cmds_CXX=
14751 compiler_needs_object_CXX=no
14752 export_dynamic_flag_spec_CXX=
14753 hardcode_direct_CXX=no
14754 hardcode_direct_absolute_CXX=no
14755 hardcode_libdir_flag_spec_CXX=
14756 hardcode_libdir_flag_spec_ld_CXX=
14757 hardcode_libdir_separator_CXX=
14758 hardcode_minus_L_CXX=no
14759 hardcode_shlibpath_var_CXX=unsupported
14760 hardcode_automatic_CXX=no
14761 inherit_rpath_CXX=no
14763 module_expsym_cmds_CXX=
14764 link_all_deplibs_CXX=unknown
14765 old_archive_cmds_CXX=$old_archive_cmds
14766 no_undefined_flag_CXX=
14767 whole_archive_flag_spec_CXX=
14768 enable_shared_with_static_runtimes_CXX=no
14770 # Source file extension for C++ test sources.
14773 # Object file extension for compiled C++ test sources.
14777 # No sense in running all these tests if we already determined that
14778 # the CXX compiler isn't working. Some variables (like enable_shared)
14779 # are currently assumed to apply to all compilers on this platform,
14780 # and will be corrupted by setting them based on a non-working compiler.
14781 if test "$_lt_caught_CXX_error" != yes; then
14782 # Code to be used in simple compile tests
14783 lt_simple_compile_test_code="int some_variable = 0;"
14785 # Code to be used in simple link tests
14786 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14788 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14795 # If no C compiler was specified, use CC.
14798 # If no C compiler flags were specified, use CFLAGS.
14799 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14801 # Allow CC to be a program name with arguments.
14805 # save warnings/boilerplate of simple test code
14806 ac_outfile=conftest.$ac_objext
14807 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14808 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14809 _lt_compiler_boilerplate=`cat conftest.err`
14812 ac_outfile=conftest.$ac_objext
14813 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14814 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14815 _lt_linker_boilerplate=`cat conftest.err`
14819 # Allow CC to be a program name with arguments.
14824 lt_save_with_gnu_ld=$with_gnu_ld
14825 lt_save_path_LD=$lt_cv_path_LD
14826 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14827 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14829 $as_unset lt_cv_prog_gnu_ld
14831 if test -n "${lt_cv_path_LDCXX+set}"; then
14832 lt_cv_path_LD=$lt_cv_path_LDCXX
14834 $as_unset lt_cv_path_LD
14836 test -z "${LDCXX+set}" || LD=$LDCXX
14840 for cc_temp in $compiler""; do
14842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14848 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14851 if test -n "$compiler"; then
14852 # We don't want -fno-exception when compiling C++ code, so set the
14853 # no_builtin_flag separately
14854 if test "$GXX" = yes; then
14855 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14857 lt_prog_compiler_no_builtin_flag_CXX=
14860 if test "$GXX" = yes; then
14861 # Set up default GNU C++ configuration
14865 # Check whether --with-gnu-ld was given.
14866 if test "${with_gnu_ld+set}" = set; then :
14867 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14873 if test "$GCC" = yes; then
14874 # Check if gcc -print-prog-name=ld gives a path.
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14876 $as_echo_n "checking for ld used by $CC... " >&6; }
14879 # gcc leaves a trailing carriage return which upsets mingw
14880 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14882 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14885 # Accept absolute paths.
14887 re_direlt='/[^/][^/]*/\.\./'
14888 # Canonicalize the pathname of ld
14889 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14890 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14891 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14893 test -z "$LD" && LD="$ac_prog"
14896 # If it fails, then pretend we aren't using GCC.
14900 # If it is relative, then search for the first ld in PATH.
14901 with_gnu_ld=unknown
14904 elif test "$with_gnu_ld" = yes; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14906 $as_echo_n "checking for GNU ld... " >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14909 $as_echo_n "checking for non-GNU ld... " >&6; }
14911 if test "${lt_cv_path_LD+set}" = set; then :
14912 $as_echo_n "(cached) " >&6
14914 if test -z "$LD"; then
14915 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14916 for ac_dir in $PATH; do
14918 test -z "$ac_dir" && ac_dir=.
14919 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14920 lt_cv_path_LD="$ac_dir/$ac_prog"
14921 # Check to see if the program is GNU ld. I'd rather use --version,
14922 # but apparently some variants of GNU ld only accept -v.
14923 # Break only if it was the GNU/non-GNU ld that we prefer.
14924 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14925 *GNU* | *'with BFD'*)
14926 test "$with_gnu_ld" != no && break
14929 test "$with_gnu_ld" != yes && break
14936 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14940 LD="$lt_cv_path_LD"
14941 if test -n "$LD"; then
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14943 $as_echo "$LD" >&6; }
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946 $as_echo "no" >&6; }
14948 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14950 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14951 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14952 $as_echo_n "(cached) " >&6
14954 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14955 case `$LD -v 2>&1 </dev/null` in
14956 *GNU* | *'with BFD'*)
14957 lt_cv_prog_gnu_ld=yes
14960 lt_cv_prog_gnu_ld=no
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14965 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14966 with_gnu_ld=$lt_cv_prog_gnu_ld
14974 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14975 # archiving commands below assume that GNU ld is being used.
14976 if test "$with_gnu_ld" = yes; then
14977 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14978 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'
14980 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14983 # If archive_cmds runs LD, not CC, wlarc should be empty
14984 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14985 # investigate it a little bit more. (MM)
14988 # ancient GNU ld didn't support --whole-archive et. al.
14989 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14990 $GREP 'no-whole-archive' > /dev/null; then
14991 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14993 whole_archive_flag_spec_CXX=
14999 # A generic and very simple default shared library creation
15000 # command for GNU C++ for the case where it uses the native
15001 # linker, instead of GNU ld. If possible, this setting should
15002 # overridden to take advantage of the native linker features on
15003 # the platform it is being used on.
15004 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15007 # Commands to make compiler produce verbose output that lists
15008 # what "hidden" libraries, object files and flags are used when
15009 # linking a shared library.
15010 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15018 # PORTME: fill in a description of your system's C++ link characteristics
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15020 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15024 # FIXME: insert proper C++ library support
15028 if test "$host_cpu" = ia64; then
15029 # On IA64, the linker does run time linking by default, so we don't
15030 # have to do anything special.
15031 aix_use_runtimelinking=no
15032 exp_sym_flag='-Bexport'
15035 aix_use_runtimelinking=no
15037 # Test if we are trying to use run time linking or normal
15038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15039 # need to do runtime linking.
15040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15041 for ld_flag in $LDFLAGS; do
15044 aix_use_runtimelinking=yes
15052 exp_sym_flag='-bexport'
15053 no_entry_flag='-bnoentry'
15056 # When large executables or shared objects are built, AIX ld can
15057 # have problems creating the table of contents. If linking a library
15058 # or program results in "error TOC overflow" add -mminimal-toc to
15059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15062 archive_cmds_CXX=''
15063 hardcode_direct_CXX=yes
15064 hardcode_direct_absolute_CXX=yes
15065 hardcode_libdir_separator_CXX=':'
15066 link_all_deplibs_CXX=yes
15067 file_list_spec_CXX='${wl}-f,'
15069 if test "$GXX" = yes; then
15070 case $host_os in aix4.[012]|aix4.[012].*)
15071 # We only want to do this on AIX 4.2 and lower, the check
15072 # below for broken collect2 doesn't work under 4.3+
15073 collect2name=`${CC} -print-prog-name=collect2`
15074 if test -f "$collect2name" &&
15075 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15077 # We have reworked collect2
15080 # We have old collect2
15081 hardcode_direct_CXX=unsupported
15082 # It fails to find uninstalled libraries when the uninstalled
15083 # path is not listed in the libpath. Setting hardcode_minus_L
15084 # to unsupported forces relinking
15085 hardcode_minus_L_CXX=yes
15086 hardcode_libdir_flag_spec_CXX='-L$libdir'
15087 hardcode_libdir_separator_CXX=
15090 shared_flag='-shared'
15091 if test "$aix_use_runtimelinking" = yes; then
15092 shared_flag="$shared_flag "'${wl}-G'
15096 if test "$host_cpu" = ia64; then
15097 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15098 # chokes on -Wl,-G. The following line is correct:
15101 if test "$aix_use_runtimelinking" = yes; then
15102 shared_flag='${wl}-G'
15104 shared_flag='${wl}-bM:SRE'
15109 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15110 # It seems that -bexpall does not export symbols beginning with
15111 # underscore (_), so it is better to generate a list of symbols to
15113 always_export_symbols_CXX=yes
15114 if test "$aix_use_runtimelinking" = yes; then
15115 # Warning - without using the other runtime loading flags (-brtl),
15116 # -berok will link without error, but may produce a broken library.
15117 allow_undefined_flag_CXX='-berok'
15118 # Determine the default libpath from the value encoded in an empty
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15131 if ac_fn_cxx_try_link "$LINENO"; then :
15133 lt_aix_libpath_sed='
15134 /Import File Strings/,/^$/ {
15140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15141 # Check for a 64-bit object if we didn't find anything.
15142 if test -z "$aix_libpath"; then
15143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15146 rm -f core conftest.err conftest.$ac_objext \
15147 conftest$ac_exeext conftest.$ac_ext
15148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15150 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15152 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"
15154 if test "$host_cpu" = ia64; then
15155 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15156 allow_undefined_flag_CXX="-z nodefs"
15157 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"
15159 # Determine the default libpath from the value encoded in an
15160 # empty executable.
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15172 if ac_fn_cxx_try_link "$LINENO"; then :
15174 lt_aix_libpath_sed='
15175 /Import File Strings/,/^$/ {
15181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 # Check for a 64-bit object if we didn't find anything.
15183 if test -z "$aix_libpath"; then
15184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15187 rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15191 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15192 # Warning - without using the other run time loading flags,
15193 # -berok will link without error, but may produce a broken library.
15194 no_undefined_flag_CXX=' ${wl}-bernotok'
15195 allow_undefined_flag_CXX=' ${wl}-berok'
15196 # Exported symbols can be pulled into shared objects from archives
15197 whole_archive_flag_spec_CXX='$convenience'
15198 archive_cmds_need_lc_CXX=yes
15199 # This is similar to how AIX traditionally builds its shared
15201 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'
15207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15208 allow_undefined_flag_CXX=unsupported
15209 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15210 # support --undefined. This deserves some investigation. FIXME
15211 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15218 case $cc_basename in
15220 # FIXME: insert proper C++ library support
15226 cygwin* | mingw* | pw32* | cegcc*)
15227 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15228 # as there is no search path for DLLs.
15229 hardcode_libdir_flag_spec_CXX='-L$libdir'
15230 allow_undefined_flag_CXX=unsupported
15231 always_export_symbols_CXX=no
15232 enable_shared_with_static_runtimes_CXX=yes
15234 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15235 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'
15236 # If the export-symbols file already is a .def file (1st line
15237 # is EXPORTS), use it as is; otherwise, prepend...
15238 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15239 cp $export_symbols $output_objdir/$soname.def;
15241 echo EXPORTS > $output_objdir/$soname.def;
15242 cat $export_symbols >> $output_objdir/$soname.def;
15244 $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'
15249 darwin* | rhapsody*)
15252 archive_cmds_need_lc_CXX=no
15253 hardcode_direct_CXX=no
15254 hardcode_automatic_CXX=yes
15255 hardcode_shlibpath_var_CXX=unsupported
15256 whole_archive_flag_spec_CXX=''
15257 link_all_deplibs_CXX=yes
15258 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15259 case $cc_basename in
15260 ifort*) _lt_dar_can_shared=yes ;;
15261 *) _lt_dar_can_shared=$GCC ;;
15263 if test "$_lt_dar_can_shared" = "yes"; then
15264 output_verbose_link_cmd=echo
15265 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}"
15266 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15267 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}"
15268 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}"
15269 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15270 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}"
15271 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}"
15281 case $cc_basename in
15283 # FIXME: insert proper C++ library support
15287 # Green Hills C++ Compiler
15288 # FIXME: insert proper C++ library support
15292 # FIXME: insert proper C++ library support
15299 # C++ shared libraries reported to be fairly broken before
15305 archive_cmds_need_lc_CXX=no
15308 freebsd* | dragonfly*)
15309 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15318 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15319 hardcode_libdir_separator_CXX=:
15320 export_dynamic_flag_spec_CXX='${wl}-E'
15321 hardcode_direct_CXX=yes
15322 hardcode_minus_L_CXX=yes # Not in the search PATH,
15323 # but as the default
15324 # location of the library.
15326 case $cc_basename in
15328 # FIXME: insert proper C++ library support
15332 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'
15333 # Commands to make compiler produce verbose output that lists
15334 # what "hidden" libraries, object files and flags are used when
15335 # linking a shared library.
15337 # There doesn't appear to be a way to prevent this compiler from
15338 # explicitly linking system object files so we need to strip them
15339 # from the output so that they don't get included in the library
15341 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'
15344 if test "$GXX" = yes; then
15345 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'
15347 # FIXME: insert proper C++ library support
15355 if test $with_gnu_ld = no; then
15356 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15357 hardcode_libdir_separator_CXX=:
15363 export_dynamic_flag_spec_CXX='${wl}-E'
15369 hardcode_direct_CXX=no
15370 hardcode_shlibpath_var_CXX=no
15373 hardcode_direct_CXX=yes
15374 hardcode_direct_absolute_CXX=yes
15375 hardcode_minus_L_CXX=yes # Not in the search PATH,
15376 # but as the default
15377 # location of the library.
15381 case $cc_basename in
15383 # FIXME: insert proper C++ library support
15389 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15398 # Commands to make compiler produce verbose output that lists
15399 # what "hidden" libraries, object files and flags are used when
15400 # linking a shared library.
15402 # There doesn't appear to be a way to prevent this compiler from
15403 # explicitly linking system object files so we need to strip them
15404 # from the output so that they don't get included in the library
15406 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'
15409 if test "$GXX" = yes; then
15410 if test $with_gnu_ld = no; then
15413 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15416 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15419 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'
15424 # FIXME: insert proper C++ library support
15432 hardcode_direct_CXX=no
15433 hardcode_shlibpath_var_CXX=no
15434 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15435 export_dynamic_flag_spec_CXX='${wl}-E'
15436 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15437 # Instead, shared libraries are loaded at an image base (0x10000000 by
15438 # default) and relocated if they conflict, which is a slow very memory
15439 # consuming and fragmenting process. To avoid this, we pick a random,
15440 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15441 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15442 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'
15443 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'
15446 case $cc_basename in
15449 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'
15451 # Archives containing C++ object files must be created using
15452 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15453 # necessary to make sure instantiated templates are included
15455 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15458 if test "$GXX" = yes; then
15459 if test "$with_gnu_ld" = no; then
15460 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'
15462 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'
15465 link_all_deplibs_CXX=yes
15468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15469 hardcode_libdir_separator_CXX=:
15470 inherit_rpath_CXX=yes
15473 linux* | k*bsd*-gnu)
15474 case $cc_basename in
15476 # Kuck and Associates, Inc. (KAI) C++ Compiler
15478 # KCC will only create a shared library if the output file
15479 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15480 # to its proper name (with version) after linking.
15481 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'
15482 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'
15483 # Commands to make compiler produce verbose output that lists
15484 # what "hidden" libraries, object files and flags are used when
15485 # linking a shared library.
15487 # There doesn't appear to be a way to prevent this compiler from
15488 # explicitly linking system object files so we need to strip them
15489 # from the output so that they don't get included in the library
15491 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'
15493 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15494 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15496 # Archives containing C++ object files must be created using
15497 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15498 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15503 # version 8.0 and above of icpc choke on multiply defined symbols
15504 # if we add $predep_objects and $postdep_objects, however 7.1 and
15505 # earlier do not add the objects themselves.
15506 case `$CC -V 2>&1` in
15508 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15509 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'
15511 *) # Version 8.0 or newer
15514 ia64*) tmp_idyn=' -i_dynamic';;
15516 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15517 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'
15520 archive_cmds_need_lc_CXX=no
15521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15522 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15523 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15526 # Portland Group C++ compiler
15528 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15529 prelink_cmds_CXX='tpldir=Template.dir~
15531 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15532 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15533 old_archive_cmds_CXX='tpldir=Template.dir~
15535 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15536 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15538 archive_cmds_CXX='tpldir=Template.dir~
15540 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15541 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15542 archive_expsym_cmds_CXX='tpldir=Template.dir~
15544 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15545 $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'
15547 *) # Version 6 will use weak symbols
15548 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15549 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'
15553 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15555 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'
15559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15560 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'
15562 runpath_var=LD_RUN_PATH
15563 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15564 hardcode_libdir_separator_CXX=:
15566 # Commands to make compiler produce verbose output that lists
15567 # what "hidden" libraries, object files and flags are used when
15568 # linking a shared library.
15570 # There doesn't appear to be a way to prevent this compiler from
15571 # explicitly linking system object files so we need to strip them
15572 # from the output so that they don't get included in the library
15574 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'
15577 # IBM XL 8.0 on PPC, with GNU ld
15578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15580 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15581 if test "x$supports_anon_versioning" = xyes; then
15582 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15584 echo "local: *; };" >> $output_objdir/$libname.ver~
15585 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15589 case `$CC -V 2>&1 | sed 5q` in
15592 no_undefined_flag_CXX=' -zdefs'
15593 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15594 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'
15595 hardcode_libdir_flag_spec_CXX='-R$libdir'
15596 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'
15597 compiler_needs_object_CXX=yes
15599 # Not sure whether something based on
15600 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15602 output_verbose_link_cmd='echo'
15604 # Archives containing C++ object files must be created using
15605 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15606 # necessary to make sure instantiated templates are included
15608 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15616 # FIXME: insert proper C++ library support
15621 # FIXME: insert proper C++ library support
15626 case $cc_basename in
15628 # FIXME: insert proper C++ library support
15632 # FIXME: insert proper C++ library support
15639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15640 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15642 hardcode_libdir_flag_spec_CXX='-R$libdir'
15643 hardcode_direct_CXX=yes
15644 hardcode_shlibpath_var_CXX=no
15646 # Workaround some broken pre-1.5 toolchains
15647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15655 # C++ shared libraries are fairly broken
15660 if test -f /usr/libexec/ld.so; then
15661 hardcode_direct_CXX=yes
15662 hardcode_shlibpath_var_CXX=no
15663 hardcode_direct_absolute_CXX=yes
15664 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15667 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15668 export_dynamic_flag_spec_CXX='${wl}-E'
15669 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15671 output_verbose_link_cmd=echo
15677 osf3* | osf4* | osf5*)
15678 case $cc_basename in
15680 # Kuck and Associates, Inc. (KAI) C++ Compiler
15682 # KCC will only create a shared library if the output file
15683 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15684 # to its proper name (with version) after linking.
15685 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'
15687 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15688 hardcode_libdir_separator_CXX=:
15690 # Archives containing C++ object files must be created using
15691 # the KAI C++ compiler.
15693 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15694 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15698 # Rational C++ 2.4.1
15699 # FIXME: insert proper C++ library support
15705 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15706 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'
15707 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15710 allow_undefined_flag_CXX=' -expect_unresolved \*'
15711 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'
15712 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15713 echo "-hidden">> $lib.exp~
15714 $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~
15716 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15720 hardcode_libdir_separator_CXX=:
15722 # Commands to make compiler produce verbose output that lists
15723 # what "hidden" libraries, object files and flags are used when
15724 # linking a shared library.
15726 # There doesn't appear to be a way to prevent this compiler from
15727 # explicitly linking system object files so we need to strip them
15728 # from the output so that they don't get included in the library
15730 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'
15733 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15734 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15737 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'
15740 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'
15744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator_CXX=:
15747 # Commands to make compiler produce verbose output that lists
15748 # what "hidden" libraries, object files and flags are used when
15749 # linking a shared library.
15750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15753 # FIXME: insert proper C++ library support
15761 # FIXME: insert proper C++ library support
15766 case $cc_basename in
15769 # FIXME: insert proper C++ library support
15774 # FIXME: insert proper C++ library support
15778 # FIXME: insert proper C++ library support
15785 case $cc_basename in
15787 # Sun C++ 4.2, 5.x and Centerline C++
15788 archive_cmds_need_lc_CXX=yes
15789 no_undefined_flag_CXX=' -zdefs'
15790 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15791 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15792 $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'
15794 hardcode_libdir_flag_spec_CXX='-R$libdir'
15795 hardcode_shlibpath_var_CXX=no
15797 solaris2.[0-5] | solaris2.[0-5].*) ;;
15799 # The compiler driver will combine and reorder linker options,
15800 # but understands `-z linker_flag'.
15801 # Supported since Solaris 2.6 (maybe 2.5.1?)
15802 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15805 link_all_deplibs_CXX=yes
15807 output_verbose_link_cmd='echo'
15809 # Archives containing C++ object files must be created using
15810 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15811 # necessary to make sure instantiated templates are included
15813 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15816 # Green Hills C++ Compiler
15817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15819 # The C++ compiler must be used to create the archive.
15820 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15823 # GNU C++ compiler with Solaris linker
15824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15825 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15826 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15827 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15828 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15829 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15831 # Commands to make compiler produce verbose output that lists
15832 # what "hidden" libraries, object files and flags are used when
15833 # linking a shared library.
15834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15836 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15838 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15839 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15840 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15842 # Commands to make compiler produce verbose output that lists
15843 # what "hidden" libraries, object files and flags are used when
15844 # linking a shared library.
15845 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15848 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15850 solaris2.[0-5] | solaris2.[0-5].*) ;;
15852 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15860 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15861 no_undefined_flag_CXX='${wl}-z,text'
15862 archive_cmds_need_lc_CXX=no
15863 hardcode_shlibpath_var_CXX=no
15864 runpath_var='LD_RUN_PATH'
15866 case $cc_basename in
15868 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15872 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15873 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 sysv5* | sco3.2v5* | sco5v6*)
15879 # Note: We can NOT use -z defs as we might desire, because we do not
15880 # link with -lc, and that would cause any symbols used from libc to
15881 # always be unresolved, which means just about no library would
15882 # ever link correctly. If we're not using GNU ld we use -z text
15883 # though, which does catch some bad symbols but isn't as heavy-handed
15885 no_undefined_flag_CXX='${wl}-z,text'
15886 allow_undefined_flag_CXX='${wl}-z,nodefs'
15887 archive_cmds_need_lc_CXX=no
15888 hardcode_shlibpath_var_CXX=no
15889 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15890 hardcode_libdir_separator_CXX=':'
15891 link_all_deplibs_CXX=yes
15892 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15893 runpath_var='LD_RUN_PATH'
15895 case $cc_basename in
15897 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15901 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15908 case $cc_basename in
15910 # NonStop-UX NCC 3.20
15911 # FIXME: insert proper C++ library support
15915 # FIXME: insert proper C++ library support
15922 # FIXME: insert proper C++ library support
15927 # FIXME: insert proper C++ library support
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15933 $as_echo "$ld_shlibs_CXX" >&6; }
15934 test "$ld_shlibs_CXX" = no && can_build_shared=no
15940 ## There is no encapsulation within the following macros, do not change
15941 ## the running order or otherwise move them around unless you know exactly
15942 ## what you are doing...
15943 # Dependencies to place before and after the object being linked:
15944 predep_objects_CXX=
15945 postdep_objects_CXX=
15948 compiler_lib_search_path_CXX=
15950 cat > conftest.$ac_ext <<_LT_EOF
15954 Foo (void) { a = 0; }
15960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15961 (eval $ac_compile) 2>&5
15963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15964 test $ac_status = 0; }; then
15965 # Parse the compiler output and extract the necessary
15966 # objects, libraries and library flags.
15968 # Sentinel used to keep track of whether or not we are before
15969 # the conftest object file.
15970 pre_test_object_deps_done=no
15972 for p in `eval "$output_verbose_link_cmd"`; do
15976 # Some compilers place space between "-{L,R}" and the path.
15977 # Remove the space.
15978 if test $p = "-L" ||
15979 test $p = "-R"; then
15986 if test "$pre_test_object_deps_done" = no; then
15989 # Internal compiler library paths should come after those
15990 # provided the user. The postdeps already come after the
15991 # user supplied libs so there is no need to process them.
15992 if test -z "$compiler_lib_search_path_CXX"; then
15993 compiler_lib_search_path_CXX="${prev}${p}"
15995 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15998 # The "-l" case would never come before the object being
15999 # linked, so don't bother handling this case.
16002 if test -z "$postdeps_CXX"; then
16003 postdeps_CXX="${prev}${p}"
16005 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16011 # This assumes that the test object file only shows up
16012 # once in the compiler output.
16013 if test "$p" = "conftest.$objext"; then
16014 pre_test_object_deps_done=yes
16018 if test "$pre_test_object_deps_done" = no; then
16019 if test -z "$predep_objects_CXX"; then
16020 predep_objects_CXX="$p"
16022 predep_objects_CXX="$predep_objects_CXX $p"
16025 if test -z "$postdep_objects_CXX"; then
16026 postdep_objects_CXX="$p"
16028 postdep_objects_CXX="$postdep_objects_CXX $p"
16033 *) ;; # Ignore the rest.
16041 echo "libtool.m4: error: problem compiling CXX test program"
16044 $RM -f confest.$objext
16046 # PORTME: override above test on systems where it is broken
16049 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16050 # hack all around it, let's just trust "g++" to DTRT.
16051 predep_objects_CXX=
16052 postdep_objects_CXX=
16057 case `$CC -V 2>&1 | sed 5q` in
16061 # The more standards-conforming stlport4 library is
16062 # incompatible with the Cstd library. Avoid specifying
16063 # it if it's in CXXFLAGS. Ignore libCrun as
16064 # -library=stlport4 depends on it.
16065 case " $CXX $CXXFLAGS " in
16066 *" -library=stlport4 "*)
16067 solaris_use_stlport4=yes
16071 if test "$solaris_use_stlport4" != yes; then
16072 postdeps_CXX='-library=Cstd -library=Crun'
16079 case $cc_basename in
16081 # The more standards-conforming stlport4 library is
16082 # incompatible with the Cstd library. Avoid specifying
16083 # it if it's in CXXFLAGS. Ignore libCrun as
16084 # -library=stlport4 depends on it.
16085 case " $CXX $CXXFLAGS " in
16086 *" -library=stlport4 "*)
16087 solaris_use_stlport4=yes
16091 # Adding this requires a known-good setup of shared libraries for
16092 # Sun compiler versions before 5.6, else PIC objects from an old
16093 # archive will be linked into the output, leading to subtle bugs.
16094 if test "$solaris_use_stlport4" != yes; then
16095 postdeps_CXX='-library=Cstd -library=Crun'
16103 case " $postdeps_CXX " in
16104 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16106 compiler_lib_search_dirs_CXX=
16107 if test -n "${compiler_lib_search_path_CXX}"; then
16108 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16141 lt_prog_compiler_wl_CXX=
16142 lt_prog_compiler_pic_CXX=
16143 lt_prog_compiler_static_CXX=
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16146 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16148 # C++ specific cases for pic, static, wl, etc.
16149 if test "$GXX" = yes; then
16150 lt_prog_compiler_wl_CXX='-Wl,'
16151 lt_prog_compiler_static_CXX='-static'
16155 # All AIX code is PIC.
16156 if test "$host_cpu" = ia64; then
16157 # AIX 5 now supports IA64 processor
16158 lt_prog_compiler_static_CXX='-Bstatic'
16165 # see comment about AmigaOS4 .so support
16166 lt_prog_compiler_pic_CXX='-fPIC'
16169 # FIXME: we need at least 68020 code to build shared libraries, but
16170 # adding the `-m68020' flag to GCC prevents building anything better,
16172 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16178 # PIC is the default for these OSes.
16180 mingw* | cygwin* | os2* | pw32* | cegcc*)
16181 # This hack is so that the source file can tell whether it is being
16182 # built for inclusion in a dll (and should export symbols for example).
16183 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16184 # (--disable-auto-import) libraries
16185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16187 darwin* | rhapsody*)
16188 # PIC is the default on this platform
16189 # Common symbols not allowed in MH_DYLIB files
16190 lt_prog_compiler_pic_CXX='-fno-common'
16193 # DJGPP does not support shared libraries at all
16194 lt_prog_compiler_pic_CXX=
16197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16198 # Instead, we relocate shared libraries at runtime.
16201 if test -d /usr/nec; then
16202 lt_prog_compiler_pic_CXX=-Kconform_pic
16206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16208 # sets the default TLS model and affects inlining.
16213 lt_prog_compiler_pic_CXX='-fPIC'
16218 # QNX uses GNU C++, but need to define -shared option too, otherwise
16219 # it will coredump.
16220 lt_prog_compiler_pic_CXX='-fPIC -shared'
16223 lt_prog_compiler_pic_CXX='-fPIC'
16229 # All AIX code is PIC.
16230 if test "$host_cpu" = ia64; then
16231 # AIX 5 now supports IA64 processor
16232 lt_prog_compiler_static_CXX='-Bstatic'
16234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16238 case $cc_basename in
16240 # Green Hills C++ Compiler
16241 # _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"
16246 case $cc_basename in
16248 lt_prog_compiler_pic_CXX='-KPIC'
16251 # Green Hills C++ Compiler
16252 lt_prog_compiler_pic_CXX='-pic'
16258 freebsd* | dragonfly*)
16259 # FreeBSD uses GNU C++
16261 hpux9* | hpux10* | hpux11*)
16262 case $cc_basename in
16264 lt_prog_compiler_wl_CXX='-Wl,'
16265 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16266 if test "$host_cpu" != ia64; then
16267 lt_prog_compiler_pic_CXX='+Z'
16271 lt_prog_compiler_wl_CXX='-Wl,'
16272 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16278 lt_prog_compiler_pic_CXX='+Z'
16287 # This is c89, which is MS Visual C++ (no shared libs)
16288 # Anyone wants to do a port?
16290 irix5* | irix6* | nonstopux*)
16291 case $cc_basename in
16293 lt_prog_compiler_wl_CXX='-Wl,'
16294 lt_prog_compiler_static_CXX='-non_shared'
16295 # CC pic flag -KPIC is the default.
16301 linux* | k*bsd*-gnu)
16302 case $cc_basename in
16305 lt_prog_compiler_wl_CXX='--backend -Wl,'
16306 lt_prog_compiler_pic_CXX='-fPIC'
16309 # old Intel C++ for x86_64 which still supported -KPIC.
16310 lt_prog_compiler_wl_CXX='-Wl,'
16311 lt_prog_compiler_pic_CXX='-KPIC'
16312 lt_prog_compiler_static_CXX='-static'
16315 # Intel C++, used to be incompatible with GCC.
16316 # ICC 10 doesn't accept -KPIC any more.
16317 lt_prog_compiler_wl_CXX='-Wl,'
16318 lt_prog_compiler_pic_CXX='-fPIC'
16319 lt_prog_compiler_static_CXX='-static'
16322 # Portland Group C++ compiler
16323 lt_prog_compiler_wl_CXX='-Wl,'
16324 lt_prog_compiler_pic_CXX='-fpic'
16325 lt_prog_compiler_static_CXX='-Bstatic'
16329 # Make sure the PIC flag is empty. It appears that all Alpha
16330 # Linux and Compaq Tru64 Unix objects are PIC.
16331 lt_prog_compiler_pic_CXX=
16332 lt_prog_compiler_static_CXX='-non_shared'
16335 # IBM XL 8.0 on PPC
16336 lt_prog_compiler_wl_CXX='-Wl,'
16337 lt_prog_compiler_pic_CXX='-qpic'
16338 lt_prog_compiler_static_CXX='-qstaticlink'
16341 case `$CC -V 2>&1 | sed 5q` in
16344 lt_prog_compiler_pic_CXX='-KPIC'
16345 lt_prog_compiler_static_CXX='-Bstatic'
16346 lt_prog_compiler_wl_CXX='-Qoption ld '
16357 case $cc_basename in
16359 lt_prog_compiler_pic_CXX='-W c,exportall'
16368 # QNX uses GNU C++, but need to define -shared option too, otherwise
16369 # it will coredump.
16370 lt_prog_compiler_pic_CXX='-fPIC -shared'
16372 osf3* | osf4* | osf5*)
16373 case $cc_basename in
16375 lt_prog_compiler_wl_CXX='--backend -Wl,'
16378 # Rational C++ 2.4.1
16379 lt_prog_compiler_pic_CXX='-pic'
16382 # Digital/Compaq C++
16383 lt_prog_compiler_wl_CXX='-Wl,'
16384 # Make sure the PIC flag is empty. It appears that all Alpha
16385 # Linux and Compaq Tru64 Unix objects are PIC.
16386 lt_prog_compiler_pic_CXX=
16387 lt_prog_compiler_static_CXX='-non_shared'
16396 case $cc_basename in
16398 # Sun C++ 4.2, 5.x and Centerline C++
16399 lt_prog_compiler_pic_CXX='-KPIC'
16400 lt_prog_compiler_static_CXX='-Bstatic'
16401 lt_prog_compiler_wl_CXX='-Qoption ld '
16404 # Green Hills C++ Compiler
16405 lt_prog_compiler_pic_CXX='-PIC'
16412 case $cc_basename in
16415 lt_prog_compiler_pic_CXX='-pic'
16416 lt_prog_compiler_static_CXX='-Bstatic'
16420 lt_prog_compiler_pic_CXX='-pic'
16426 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16427 case $cc_basename in
16429 lt_prog_compiler_wl_CXX='-Wl,'
16430 lt_prog_compiler_pic_CXX='-KPIC'
16431 lt_prog_compiler_static_CXX='-Bstatic'
16436 case $cc_basename in
16438 # NonStop-UX NCC 3.20
16439 lt_prog_compiler_pic_CXX='-KPIC'
16448 lt_prog_compiler_can_build_shared_CXX=no
16454 # For platforms which do not support PIC, -DPIC is meaningless:
16456 lt_prog_compiler_pic_CXX=
16459 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16463 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16468 # Check to make sure the PIC flag actually works.
16470 if test -n "$lt_prog_compiler_pic_CXX"; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16472 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16473 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16474 $as_echo_n "(cached) " >&6
16476 lt_cv_prog_compiler_pic_works_CXX=no
16477 ac_outfile=conftest.$ac_objext
16478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16479 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16480 # Insert the option either (1) after the last *FLAGS variable, or
16481 # (2) before a word containing "conftest.", or (3) at the end.
16482 # Note that $ac_compile itself does not contain backslashes and begins
16483 # with a dollar sign (not a hyphen), so the echo should work correctly.
16484 # The option is referenced via a variable to avoid confusing sed.
16485 lt_compile=`echo "$ac_compile" | $SED \
16486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16488 -e 's:$: $lt_compiler_flag:'`
16489 (eval echo "\"\$as_me:16489: $lt_compile\"" >&5)
16490 (eval "$lt_compile" 2>conftest.err)
16492 cat conftest.err >&5
16493 echo "$as_me:16493: \$? = $ac_status" >&5
16494 if (exit $ac_status) && test -s "$ac_outfile"; then
16495 # The compiler can only warn and ignore the option if not recognized
16496 # So say no if there are warnings other than the usual output.
16497 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16500 lt_cv_prog_compiler_pic_works_CXX=yes
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16507 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16509 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16510 case $lt_prog_compiler_pic_CXX in
16512 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16515 lt_prog_compiler_pic_CXX=
16516 lt_prog_compiler_can_build_shared_CXX=no
16524 # Check to make sure the static flag actually works.
16526 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16528 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16529 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16530 $as_echo_n "(cached) " >&6
16532 lt_cv_prog_compiler_static_works_CXX=no
16533 save_LDFLAGS="$LDFLAGS"
16534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16537 # The linker can only warn and ignore the option if not recognized
16538 # So say no if there are warnings
16539 if test -s conftest.err; then
16540 # Append any errors to the config.log.
16541 cat conftest.err 1>&5
16542 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16544 if diff conftest.exp conftest.er2 >/dev/null; then
16545 lt_cv_prog_compiler_static_works_CXX=yes
16548 lt_cv_prog_compiler_static_works_CXX=yes
16552 LDFLAGS="$save_LDFLAGS"
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16556 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16558 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16561 lt_prog_compiler_static_CXX=
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16568 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16569 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16570 $as_echo_n "(cached) " >&6
16572 lt_cv_prog_compiler_c_o_CXX=no
16573 $RM -r conftest 2>/dev/null
16577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16579 lt_compiler_flag="-o out/conftest2.$ac_objext"
16580 # Insert the option either (1) after the last *FLAGS variable, or
16581 # (2) before a word containing "conftest.", or (3) at the end.
16582 # Note that $ac_compile itself does not contain backslashes and begins
16583 # with a dollar sign (not a hyphen), so the echo should work correctly.
16584 lt_compile=`echo "$ac_compile" | $SED \
16585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16587 -e 's:$: $lt_compiler_flag:'`
16588 (eval echo "\"\$as_me:16588: $lt_compile\"" >&5)
16589 (eval "$lt_compile" 2>out/conftest.err)
16591 cat out/conftest.err >&5
16592 echo "$as_me:16592: \$? = $ac_status" >&5
16593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16595 # The compiler can only warn and ignore the option if not recognized
16596 # So say no if there are warnings
16597 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16600 lt_cv_prog_compiler_c_o_CXX=yes
16605 # SGI C++ compiler will create directory out/ii_files/ for
16606 # template instantiation
16607 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16608 $RM out/* && rmdir out
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16615 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16621 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16622 $as_echo_n "(cached) " >&6
16624 lt_cv_prog_compiler_c_o_CXX=no
16625 $RM -r conftest 2>/dev/null
16629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16631 lt_compiler_flag="-o out/conftest2.$ac_objext"
16632 # Insert the option either (1) after the last *FLAGS variable, or
16633 # (2) before a word containing "conftest.", or (3) at the end.
16634 # Note that $ac_compile itself does not contain backslashes and begins
16635 # with a dollar sign (not a hyphen), so the echo should work correctly.
16636 lt_compile=`echo "$ac_compile" | $SED \
16637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16639 -e 's:$: $lt_compiler_flag:'`
16640 (eval echo "\"\$as_me:16640: $lt_compile\"" >&5)
16641 (eval "$lt_compile" 2>out/conftest.err)
16643 cat out/conftest.err >&5
16644 echo "$as_me:16644: \$? = $ac_status" >&5
16645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16647 # The compiler can only warn and ignore the option if not recognized
16648 # So say no if there are warnings
16649 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16652 lt_cv_prog_compiler_c_o_CXX=yes
16657 # SGI C++ compiler will create directory out/ii_files/ for
16658 # template instantiation
16659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16660 $RM out/* && rmdir out
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16667 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16672 hard_links="nottested"
16673 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16674 # do not overwrite the value of need_locks provided by the user
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16676 $as_echo_n "checking if we can lock with hard links... " >&6; }
16679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16681 ln conftest.a conftest.b 2>&5 || hard_links=no
16682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16684 $as_echo "$hard_links" >&6; }
16685 if test "$hard_links" = no; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16687 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16699 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16702 # If we're using GNU nm, then we don't want the "-C" option.
16703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16704 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16705 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'
16707 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'
16711 export_symbols_cmds_CXX="$ltdll_cmds"
16713 cygwin* | mingw* | cegcc*)
16714 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'
16717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16720 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16723 $as_echo "$ld_shlibs_CXX" >&6; }
16724 test "$ld_shlibs_CXX" = no && can_build_shared=no
16726 with_gnu_ld_CXX=$with_gnu_ld
16734 # Do we need to explicitly link libc?
16736 case "x$archive_cmds_need_lc_CXX" in
16738 # Assume -lc should be added
16739 archive_cmds_need_lc_CXX=yes
16741 if test "$enable_shared" = yes && test "$GCC" = yes; then
16742 case $archive_cmds_CXX in
16744 # FIXME: we may have to deal with multi-command sequences.
16747 # Test whether the compiler implicitly links with -lc since on some
16748 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16749 # to ld, don't add -lc before -lgcc.
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16751 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16756 (eval $ac_compile) 2>&5
16758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16759 test $ac_status = 0; } 2>conftest.err; then
16762 libobjs=conftest.$ac_objext
16764 wl=$lt_prog_compiler_wl_CXX
16765 pic_flag=$lt_prog_compiler_pic_CXX
16771 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16772 allow_undefined_flag_CXX=
16773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16774 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16777 test $ac_status = 0; }
16779 archive_cmds_need_lc_CXX=no
16781 archive_cmds_need_lc_CXX=yes
16783 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16785 cat conftest.err 1>&5
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16789 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16860 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16862 library_names_spec=
16863 libname_spec='lib$name'
16867 postuninstall_cmds=
16871 shlibpath_overrides_runpath=unknown
16873 dynamic_linker="$host_os ld.so"
16874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16875 need_lib_prefix=unknown
16876 hardcode_into_libs=no
16878 # when you set need_version to no, make sure it does not cause -set_version
16879 # flags to be left without arguments
16880 need_version=unknown
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16886 shlibpath_var=LIBPATH
16888 # AIX 3 has no versioning support, so we append a major version to the name.
16889 soname_spec='${libname}${release}${shared_ext}$major'
16896 hardcode_into_libs=yes
16897 if test "$host_cpu" = ia64; then
16898 # AIX 5 supports IA64
16899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16900 shlibpath_var=LD_LIBRARY_PATH
16902 # With GCC up to 2.95.x, collect2 would create an import file
16903 # for dependence libraries. The import file would start with
16904 # the line `#! .'. This would cause the generated library to
16905 # depend on `.', always an invalid library. This was fixed in
16906 # development snapshots of GCC prior to 3.0.
16908 aix4 | aix4.[01] | aix4.[01].*)
16909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16911 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16914 can_build_shared=no
16918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16919 # soname into executable. Probably we can add versioning support to
16920 # collect2, so additional links can be useful in future.
16921 if test "$aix_use_runtimelinking" = yes; then
16922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16923 # instead of lib<name>.a to let people know that these are not
16924 # typical AIX shared libraries.
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16927 # We preserve .a as extension for shared libraries through AIX4.2
16928 # and later when we are not doing run time linking.
16929 library_names_spec='${libname}${release}.a $libname.a'
16930 soname_spec='${libname}${release}${shared_ext}$major'
16932 shlibpath_var=LIBPATH
16939 # Since July 2007 AmigaOS4 officially supports .so libraries.
16940 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16944 library_names_spec='$libname.ixlibrary $libname.a'
16945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16946 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'
16952 library_names_spec='${libname}${shared_ext}'
16953 dynamic_linker="$host_os ld.so"
16954 shlibpath_var=LIBRARY_PATH
16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961 soname_spec='${libname}${release}${shared_ext}$major'
16962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16963 shlibpath_var=LD_LIBRARY_PATH
16964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16966 # the default ld.so.conf also contains /usr/contrib/lib and
16967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16968 # libtool to hard-code these into programs
16971 cygwin* | mingw* | pw32* | cegcc*)
16972 version_type=windows
16977 case $GCC,$host_os in
16978 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16979 library_names_spec='$libname.dll.a'
16980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16981 postinstall_cmds='base_file=`basename \${file}`~
16982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16983 dldir=$destdir/`dirname \$dlpath`~
16984 test -d \$dldir || mkdir -p \$dldir~
16985 $install_prog $dir/$dlname \$dldir/$dlname~
16986 chmod a+x \$dldir/$dlname~
16987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991 dlpath=$dir/\$dldll~
16993 shlibpath_overrides_runpath=yes
16997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17002 # MinGW DLLs use traditional 'lib' prefix
17003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17006 # It is most probably a Windows format PATH printed by
17007 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008 # path with ; separators, and with drive letters. We can handle the
17009 # drive letters (cygwin fileutils understands them), so leave them,
17010 # especially as we might pass files found there to a mingw objdump,
17011 # which wouldn't understand a cygwinified path. Ahh.
17012 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17018 # pw32 DLLs use 'pw' prefix rather than 'lib'
17019 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17025 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028 dynamic_linker='Win32 ld.exe'
17029 # FIXME: first we should search . and the directory the executable is in
17033 darwin* | rhapsody*)
17034 dynamic_linker="$host_os dyld"
17035 version_type=darwin
17038 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039 soname_spec='${libname}${release}${major}$shared_ext'
17040 shlibpath_overrides_runpath=yes
17041 shlibpath_var=DYLD_LIBRARY_PATH
17042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17052 soname_spec='${libname}${release}${shared_ext}$major'
17053 shlibpath_var=LD_LIBRARY_PATH
17060 freebsd* | dragonfly*)
17061 # DragonFly does not have aout. When/if they implement a new
17062 # versioning mechanism, adjust this.
17063 if test -x /usr/bin/objformat; then
17064 objformat=`/usr/bin/objformat`
17067 freebsd[123]*) objformat=aout ;;
17068 *) objformat=elf ;;
17071 version_type=freebsd-$objformat
17072 case $version_type in
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17083 shlibpath_var=LD_LIBRARY_PATH
17086 shlibpath_overrides_runpath=yes
17088 freebsd3.[01]* | freebsdelf3.[01]*)
17089 shlibpath_overrides_runpath=yes
17090 hardcode_into_libs=yes
17092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17094 shlibpath_overrides_runpath=no
17095 hardcode_into_libs=yes
17097 *) # from 4.6 on, and DragonFly
17098 shlibpath_overrides_runpath=yes
17099 hardcode_into_libs=yes
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17109 soname_spec='${libname}${release}${shared_ext}$major'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 hardcode_into_libs=yes
17114 hpux9* | hpux10* | hpux11*)
17115 # Give a soname corresponding to the major version so that dld.sl refuses to
17116 # link against other versions.
17123 hardcode_into_libs=yes
17124 dynamic_linker="$host_os dld.so"
17125 shlibpath_var=LD_LIBRARY_PATH
17126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128 soname_spec='${libname}${release}${shared_ext}$major'
17129 if test "X$HPUX_IA64_MODE" = X32; then
17130 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17132 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17138 hardcode_into_libs=yes
17139 dynamic_linker="$host_os dld.sl"
17140 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17149 dynamic_linker="$host_os dld.sl"
17150 shlibpath_var=SHLIB_PATH
17151 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17156 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17157 postinstall_cmds='chmod 555 $lib'
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 shlibpath_overrides_runpath=no
17169 hardcode_into_libs=yes
17172 irix5* | irix6* | nonstopux*)
17174 nonstopux*) version_type=nonstopux ;;
17176 if test "$lt_cv_prog_gnu_ld" = yes; then
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17187 irix5* | nonstopux*)
17188 libsuff= shlibsuff=
17191 case $LD in # libtool.m4 will add one of these switches to LD
17192 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17193 libsuff= shlibsuff= libmagic=32-bit;;
17194 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17195 libsuff=32 shlibsuff=N32 libmagic=N32;;
17196 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17197 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17198 *) libsuff= shlibsuff= libmagic=never-match;;
17202 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17203 shlibpath_overrides_runpath=no
17204 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17205 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17206 hardcode_into_libs=yes
17209 # No shared lib support for Linux oldld, aout, or coff.
17210 linux*oldld* | linux*aout* | linux*coff*)
17214 # This must be Linux ELF.
17215 linux* | k*bsd*-gnu)
17219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17220 soname_spec='${libname}${release}${shared_ext}$major'
17221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=no
17224 # Some binutils ld are patched to set DT_RUNPATH
17225 save_LDFLAGS=$LDFLAGS
17226 save_libdir=$libdir
17227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230 /* end confdefs.h. */
17240 if ac_fn_cxx_try_link "$LINENO"; then :
17241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17242 shlibpath_overrides_runpath=yes
17245 rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17247 LDFLAGS=$save_LDFLAGS
17248 libdir=$save_libdir
17250 # This implies no fast_install, which is unacceptable.
17251 # Some rework will be needed to allow for fast_install
17252 # before this can be enabled.
17253 hardcode_into_libs=yes
17255 # Add ABI-specific directories to the system library path.
17256 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17258 # Append ld.so.conf contents to the search path
17259 if test -f /etc/ld.so.conf; then
17260 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' ' '`
17261 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17264 # We used to test for /lib/ld.so.1 and disable shared libraries on
17265 # powerpc, because MkLinux only supported shared libraries with the
17266 # GNU dynamic linker. Since this was broken with cross compilers,
17267 # most powerpc-linux boxes support dynamic linking these days and
17268 # people can always --disable-shared, the test was removed, and we
17269 # assume the GNU/Linux dynamic linker is in use.
17270 dynamic_linker='GNU/Linux ld.so'
17277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17280 dynamic_linker='NetBSD (a.out) ld.so'
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17284 dynamic_linker='NetBSD ld.elf_so'
17286 shlibpath_var=LD_LIBRARY_PATH
17287 shlibpath_overrides_runpath=yes
17288 hardcode_into_libs=yes
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=yes
17302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303 soname_spec='${libname}${release}${shared_ext}$major'
17304 shlibpath_var=LD_LIBRARY_PATH
17305 shlibpath_overrides_runpath=no
17306 hardcode_into_libs=yes
17307 dynamic_linker='ldqnx.so'
17312 sys_lib_dlsearch_path_spec="/usr/lib"
17314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17317 *) need_version=no ;;
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17321 shlibpath_var=LD_LIBRARY_PATH
17322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17324 openbsd2.[89] | openbsd2.[89].*)
17325 shlibpath_overrides_runpath=no
17328 shlibpath_overrides_runpath=yes
17332 shlibpath_overrides_runpath=yes
17337 libname_spec='$name'
17340 library_names_spec='$libname${shared_ext} $libname.a'
17341 dynamic_linker='OS/2 ld.exe'
17342 shlibpath_var=LIBPATH
17345 osf3* | osf4* | osf5*)
17349 soname_spec='${libname}${release}${shared_ext}$major'
17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17351 shlibpath_var=LD_LIBRARY_PATH
17352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 shlibpath_var=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath=yes
17368 hardcode_into_libs=yes
17369 # ldd complains unless libraries are executable
17370 postinstall_cmds='chmod +x $lib'
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 shlibpath_overrides_runpath=yes
17379 if test "$with_gnu_ld" = yes; then
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 case $host_vendor in
17392 shlibpath_overrides_runpath=no
17394 runpath_var=LD_RUN_PATH
17402 shlibpath_overrides_runpath=no
17403 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17409 if test -d /usr/nec ;then
17411 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17412 soname_spec='$libname${shared_ext}.$major'
17413 shlibpath_var=LD_LIBRARY_PATH
17417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17418 version_type=freebsd-elf
17421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17422 soname_spec='${libname}${release}${shared_ext}$major'
17423 shlibpath_var=LD_LIBRARY_PATH
17424 shlibpath_overrides_runpath=yes
17425 hardcode_into_libs=yes
17426 if test "$with_gnu_ld" = yes; then
17427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17429 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17432 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17436 sys_lib_dlsearch_path_spec='/usr/lib'
17440 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445 shlibpath_var=LD_LIBRARY_PATH
17446 shlibpath_overrides_runpath=no
17447 hardcode_into_libs=yes
17452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17453 soname_spec='${libname}${release}${shared_ext}$major'
17454 shlibpath_var=LD_LIBRARY_PATH
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17462 $as_echo "$dynamic_linker" >&6; }
17463 test "$dynamic_linker" = no && can_build_shared=no
17465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17466 if test "$GCC" = yes; then
17467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17470 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17471 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17473 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17513 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17514 hardcode_action_CXX=
17515 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17516 test -n "$runpath_var_CXX" ||
17517 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17519 # We can hardcode non-existent directories.
17520 if test "$hardcode_direct_CXX" != no &&
17521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17522 # have to relink, otherwise we might link with an installed library
17523 # when we should be linking with a yet-to-be-installed one
17524 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17525 test "$hardcode_minus_L_CXX" != no; then
17526 # Linking always hardcodes the temporary library directory.
17527 hardcode_action_CXX=relink
17529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17530 hardcode_action_CXX=immediate
17533 # We cannot hardcode anything, or else we can only hardcode existing
17535 hardcode_action_CXX=unsupported
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17538 $as_echo "$hardcode_action_CXX" >&6; }
17540 if test "$hardcode_action_CXX" = relink ||
17541 test "$inherit_rpath_CXX" = yes; then
17542 # Fast installation is not supported
17543 enable_fast_install=no
17544 elif test "$shlibpath_overrides_runpath" = yes ||
17545 test "$enable_shared" = no; then
17546 # Fast installation is not necessary
17547 enable_fast_install=needless
17556 fi # test -n "$compiler"
17562 with_gnu_ld=$lt_save_with_gnu_ld
17563 lt_cv_path_LDCXX=$lt_cv_path_LD
17564 lt_cv_path_LD=$lt_save_path_LD
17565 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17566 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17567 fi # test "$_lt_caught_CXX_error" != yes
17570 ac_cpp='$CPP $CPPFLAGS'
17571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17587 ac_config_commands="$ac_config_commands libtool"
17592 # Only expand once:
17598 # Configure libltdl
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
17608 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
17609 if test "${libltdl_cv_shlibext+set}" = set; then :
17610 $as_echo_n "(cached) " >&6
17614 eval libltdl_cv_shlibext=$shrext_cmds
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
17618 $as_echo "$libltdl_cv_shlibext" >&6; }
17619 if test -n "$libltdl_cv_shlibext"; then
17621 cat >>confdefs.h <<_ACEOF
17622 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
17628 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
17629 if test "${lt_cv_module_path_var+set}" = set; then :
17630 $as_echo_n "(cached) " >&6
17632 lt_cv_module_path_var="$shlibpath_var"
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
17635 $as_echo "$lt_cv_module_path_var" >&6; }
17636 if test -n "$lt_cv_module_path_var"; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
17645 $as_echo_n "checking for the default library search path... " >&6; }
17646 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
17647 $as_echo_n "(cached) " >&6
17649 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
17652 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17653 if test -n "$lt_cv_sys_dlsearch_path"; then
17655 for dir in $lt_cv_sys_dlsearch_path; do
17656 if test -z "$sys_dlsearch_path"; then
17657 sys_dlsearch_path="$dir"
17659 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17663 cat >>confdefs.h <<_ACEOF
17664 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17674 ac_cpp='$CPP $CPPFLAGS'
17675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17682 $as_echo_n "checking for library containing dlopen... " >&6; }
17683 if test "${ac_cv_search_dlopen+set}" = set; then :
17684 $as_echo_n "(cached) " >&6
17686 ac_func_search_save_LIBS=$LIBS
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17690 /* Override any GCC internal prototype to avoid an error.
17691 Use char because int might match the return type of a GCC
17692 builtin and then its argument prototype would still apply. */
17705 for ac_lib in '' dl; do
17706 if test -z "$ac_lib"; then
17707 ac_res="none required"
17710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17712 if ac_fn_c_try_link "$LINENO"; then :
17713 ac_cv_search_dlopen=$ac_res
17715 rm -f core conftest.err conftest.$ac_objext \
17717 if test "${ac_cv_search_dlopen+set}" = set; then :
17721 if test "${ac_cv_search_dlopen+set}" = set; then :
17724 ac_cv_search_dlopen=no
17726 rm conftest.$ac_ext
17727 LIBS=$ac_func_search_save_LIBS
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17730 $as_echo "$ac_cv_search_dlopen" >&6; }
17731 ac_res=$ac_cv_search_dlopen
17732 if test "$ac_res" != no; then :
17733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17735 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17737 if test "$ac_cv_search_dlopen" != "none required" ; then
17738 LIBADD_DLOPEN="-ldl"
17740 libltdl_cv_lib_dl_dlopen="yes"
17741 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17746 # include <dlfcn.h>
17757 if ac_fn_c_try_link "$LINENO"; then :
17759 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17761 libltdl_cv_func_dlopen="yes"
17762 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17765 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17766 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17767 $as_echo_n "(cached) " >&6
17769 ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-lsvld $LIBS"
17771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17772 /* end confdefs.h. */
17774 /* Override any GCC internal prototype to avoid an error.
17775 Use char because int might match the return type of a GCC
17776 builtin and then its argument prototype would still apply. */
17789 if ac_fn_c_try_link "$LINENO"; then :
17790 ac_cv_lib_svld_dlopen=yes
17792 ac_cv_lib_svld_dlopen=no
17794 rm -f core conftest.err conftest.$ac_objext \
17795 conftest$ac_exeext conftest.$ac_ext
17796 LIBS=$ac_check_lib_save_LIBS
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17799 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17800 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17802 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17804 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17805 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17809 rm -f core conftest.err conftest.$ac_objext \
17810 conftest$ac_exeext conftest.$ac_ext
17813 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17815 lt_save_LIBS="$LIBS"
17816 LIBS="$LIBS $LIBADD_DLOPEN"
17817 for ac_func in dlerror
17819 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17820 if test "x$ac_cv_func_dlerror" = x""yes; then :
17821 cat >>confdefs.h <<_ACEOF
17822 #define HAVE_DLERROR 1
17828 LIBS="$lt_save_LIBS"
17833 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17834 if test "x$ac_cv_func_shl_load" = x""yes; then :
17836 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17838 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17841 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17842 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17845 ac_check_lib_save_LIBS=$LIBS
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17860 return shl_load ();
17865 if ac_fn_c_try_link "$LINENO"; then :
17866 ac_cv_lib_dld_shl_load=yes
17868 ac_cv_lib_dld_shl_load=no
17870 rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17875 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17876 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17878 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17880 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17881 LIBADD_SHL_LOAD="-ldld"
17890 # We only want this for pre-Mac OS X 10.4.
17891 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17892 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
17894 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
17896 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17901 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17903 cygwin* | mingw* | os2* | pw32*)
17904 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17906 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17912 cat >>confdefs.h <<_ACEOF
17913 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
17916 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17921 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17922 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17923 $as_echo_n "(cached) " >&6
17925 ac_check_lib_save_LIBS=$LIBS
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17930 /* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17940 return dld_link ();
17945 if ac_fn_c_try_link "$LINENO"; then :
17946 ac_cv_lib_dld_dld_link=yes
17948 ac_cv_lib_dld_dld_link=no
17950 rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952 LIBS=$ac_check_lib_save_LIBS
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17955 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17956 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17958 $as_echo "#define HAVE_DLD 1" >>confdefs.h
17960 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17967 if test -n "$LT_DLLOADERS"
17969 for lt_loader in $LT_DLLOADERS; do
17970 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17973 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
17978 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17982 ac_cpp='$CPP $CPPFLAGS'
17983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
17989 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
17990 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
17991 $as_echo_n "(cached) " >&6
17993 lt_cv_sys_symbol_underscore=no
17994 cat > conftest.$ac_ext <<_LT_EOF
17995 void nm_test_func(){}
17996 int main(){nm_test_func;return 0;}
17998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17999 (eval $ac_compile) 2>&5
18001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18002 test $ac_status = 0; }; then
18003 # Now try to grab the symbols.
18004 ac_nlist=conftest.nm
18005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18009 test $ac_status = 0; } && test -s "$ac_nlist"; then
18010 # See whether the symbols have a leading underscore.
18011 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18012 lt_cv_sys_symbol_underscore=yes
18014 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18017 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18021 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18024 echo "configure: failed program was:" >&5
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18031 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18032 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18035 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18036 if test x"$libltdl_cv_func_dlopen" = xyes ||
18037 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
18039 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
18040 if test "${libltdl_cv_need_uscore+set}" = set; then :
18041 $as_echo_n "(cached) " >&6
18043 libltdl_cv_need_uscore=unknown
18045 LIBS="$LIBS $LIBADD_DLOPEN"
18046 if test "$cross_compiling" = yes; then :
18047 libltdl_cv_need_uscore=cross
18049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18050 lt_status=$lt_dlunknown
18051 cat > conftest.$ac_ext <<_LT_EOF
18052 #line 18052 "configure"
18053 #include "confdefs.h"
18062 # define LT_DLGLOBAL RTLD_GLOBAL
18065 # define LT_DLGLOBAL DL_GLOBAL
18067 # define LT_DLGLOBAL 0
18071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18072 find out it does not work in some platform. */
18073 #ifndef LT_DLLAZY_OR_NOW
18075 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18078 # define LT_DLLAZY_OR_NOW DL_LAZY
18081 # define LT_DLLAZY_OR_NOW RTLD_NOW
18084 # define LT_DLLAZY_OR_NOW DL_NOW
18086 # define LT_DLLAZY_OR_NOW 0
18093 void fnord() { int i=42;}
18096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18097 int status = $lt_dlunknown;
18101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18102 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18103 /* dlclose (self); */
18111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18112 (eval $ac_link) 2>&5
18114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18115 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18116 (./conftest; exit; ) >&5 2>/dev/null
18118 case x$lt_status in
18119 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18120 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18121 x$lt_dlunknown|x*) ;;
18124 # compilation failed
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
18134 $as_echo "$libltdl_cv_need_uscore" >&6; }
18138 if test x"$libltdl_cv_need_uscore" = xyes; then
18140 $as_echo "#define NEED_USCORE 1" >>confdefs.h
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
18145 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
18146 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
18147 $as_echo_n "(cached) " >&6
18149 # PORTME does your system automatically load deplibs for dlopen?
18150 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18151 # For now, we just catch OSes we know something about -- in the
18152 # future, we'll try test this programmatically.
18153 lt_cv_sys_dlopen_deplibs=unknown
18155 aix3*|aix4.1.*|aix4.2.*)
18156 # Unknown whether this is true for these versions of AIX, but
18157 # we want this `case' here to explicitly catch those versions.
18158 lt_cv_sys_dlopen_deplibs=unknown
18161 lt_cv_sys_dlopen_deplibs=yes
18166 lt_cv_sys_dlopen_deplibs=no
18171 # Assuming the user has installed a libdl from somewhere, this is true
18172 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18173 lt_cv_sys_dlopen_deplibs=yes
18175 freebsd* | dragonfly*)
18176 lt_cv_sys_dlopen_deplibs=yes
18178 gnu* | linux* | k*bsd*-gnu)
18179 # GNU and its variants, using gnu ld.so (Glibc)
18180 lt_cv_sys_dlopen_deplibs=yes
18183 lt_cv_sys_dlopen_deplibs=yes
18186 lt_cv_sys_dlopen_deplibs=yes
18188 irix[12345]*|irix6.[01]*)
18189 # Catch all versions of IRIX before 6.2, and indicate that we don't
18190 # know how it worked for any of those versions.
18191 lt_cv_sys_dlopen_deplibs=unknown
18194 # The case above catches anything before 6.2, and it's known that
18195 # at 6.2 and later dlopen does load deplibs.
18196 lt_cv_sys_dlopen_deplibs=yes
18199 lt_cv_sys_dlopen_deplibs=yes
18202 lt_cv_sys_dlopen_deplibs=yes
18205 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18206 # it did *not* use an RPATH in a shared library to find objects the
18207 # library depends on, so we explicitly say `no'.
18208 lt_cv_sys_dlopen_deplibs=no
18210 osf5.0|osf5.0a|osf5.1)
18211 # dlopen *does* load deplibs and with the right loader patch applied
18212 # it even uses RPATH in a shared library to search for shared objects
18213 # that the library depends on, but there's no easy way to know if that
18214 # patch is installed. Since this is the case, all we can really
18215 # say is unknown -- it depends on the patch being installed. If
18216 # it is, this changes to `yes'. Without it, it would be `no'.
18217 lt_cv_sys_dlopen_deplibs=unknown
18220 # the two cases above should catch all versions of osf <= 5.1. Read
18221 # the comments above for what we know about them.
18222 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18223 # is used to find them so we can finally say `yes'.
18224 lt_cv_sys_dlopen_deplibs=yes
18227 lt_cv_sys_dlopen_deplibs=yes
18230 lt_cv_sys_dlopen_deplibs=yes
18232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18233 libltdl_cv_sys_dlopen_deplibs=yes
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
18239 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18240 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18242 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
18248 for ac_header in argz.h
18250 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18252 if test "x$ac_cv_header_argz_h" = x""yes; then :
18253 cat >>confdefs.h <<_ACEOF
18254 #define HAVE_ARGZ_H 1
18262 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
18266 if test "x$ac_cv_type_error_t" = x""yes; then :
18268 cat >>confdefs.h <<_ACEOF
18269 #define HAVE_ERROR_T 1
18275 $as_echo "#define error_t int" >>confdefs.h
18278 $as_echo "#define __error_t_defined 1" >>confdefs.h
18284 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18285 argz_next argz_stringify
18287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18289 eval as_val=\$$as_ac_var
18290 if test "x$as_val" = x""yes; then :
18291 cat >>confdefs.h <<_ACEOF
18292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18298 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18304 if test -z "$ARGZ_H"; then :
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
18306 $as_echo_n "checking if argz actually works... " >&6; }
18307 if test "${lt_cv_sys_argz_works+set}" = set; then :
18308 $as_echo_n "(cached) " >&6
18310 case $host_os in #(
18312 lt_cv_sys_argz_works=no
18313 if test "$cross_compiling" != no; then
18314 lt_cv_sys_argz_works="guessing no"
18316 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18319 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18324 if test "$lt_os_major" -gt 1 \
18325 || { test "$lt_os_major" -eq 1 \
18326 && { test "$lt_os_minor" -gt 5 \
18327 || { test "$lt_os_minor" -eq 5 \
18328 && test "$lt_os_micro" -gt 24; }; }; }; then
18329 lt_cv_sys_argz_works=yes
18333 *) lt_cv_sys_argz_works=yes ;;
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
18337 $as_echo "$lt_cv_sys_argz_works" >&6; }
18338 if test $lt_cv_sys_argz_works = yes; then :
18340 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
18346 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
18354 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
18355 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
18356 $as_echo_n "(cached) " >&6
18358 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18359 libltdl_cv_preloaded_symbols=yes
18361 libltdl_cv_preloaded_symbols=no
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
18366 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18367 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18369 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
18385 # Check whether --with-included_ltdl was given.
18386 if test "${with_included_ltdl+set}" = set; then :
18387 withval=$with_included_ltdl;
18391 if test "x$with_included_ltdl" != xyes; then
18392 # We are not being forced to use the included libltdl sources, so
18393 # decide whether there is a useful installed version we can use.
18394 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
18397 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18398 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
18401 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
18403 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
18404 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
18405 $as_echo_n "(cached) " >&6
18407 ac_check_lib_save_LIBS=$LIBS
18408 LIBS="-lltdl $LIBS"
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18418 char lt_dladvise_preload ();
18422 return lt_dladvise_preload ();
18427 if ac_fn_c_try_link "$LINENO"; then :
18428 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18430 ac_cv_lib_ltdl_lt_dladvise_preload=no
18432 rm -f core conftest.err conftest.$ac_objext \
18433 conftest$ac_exeext conftest.$ac_ext
18434 LIBS=$ac_check_lib_save_LIBS
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
18437 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
18438 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
18439 with_included_ltdl=no
18441 with_included_ltdl=yes
18445 with_included_ltdl=yes
18449 with_included_ltdl=yes
18458 # Check whether --with-ltdl_include was given.
18459 if test "${with_ltdl_include+set}" = set; then :
18460 withval=$with_ltdl_include;
18464 if test -n "$with_ltdl_include"; then
18465 if test -f "$with_ltdl_include/ltdl.h"; then :
18467 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
18470 with_ltdl_include=no
18474 # Check whether --with-ltdl_lib was given.
18475 if test "${with_ltdl_lib+set}" = set; then :
18476 withval=$with_ltdl_lib;
18480 if test -n "$with_ltdl_lib"; then
18481 if test -f "$with_ltdl_lib/libltdl.la"; then :
18483 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
18489 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18491 case $enable_ltdl_convenience in
18492 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
18493 "") enable_ltdl_convenience=yes
18494 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18496 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18498 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18504 # For backwards non-gettext consistent compatibility...
18505 INCLTDL="$LTDLINCL"
18510 # If the included ltdl is not to be used, then use the
18511 # preinstalled libltdl we found.
18513 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
18520 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
18522 *) with_included_ltdl=no
18523 LIBLTDL="-L$with_ltdl_lib -lltdl"
18525 LTDLINCL="-I$with_ltdl_include"
18528 INCLTDL="$LTDLINCL"
18530 # Report our decision...
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
18532 $as_echo_n "checking where to find libltdl headers... " >&6; }
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
18534 $as_echo "$LTDLINCL" >&6; }
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
18536 $as_echo_n "checking where to find libltdl library... " >&6; }
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
18538 $as_echo "$LIBLTDL" >&6; }
18542 # Check whether --enable-ltdl-install was given.
18543 if test "${enable_ltdl_install+set}" = set; then :
18544 enableval=$enable_ltdl_install;
18548 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18550 *) enable_ltdl_convenience=yes ;;
18553 if test x"${enable_ltdl_install-no}" != xno; then
18555 INSTALL_LTDL_FALSE='#'
18557 INSTALL_LTDL_TRUE='#'
18558 INSTALL_LTDL_FALSE=
18561 if test x"${enable_ltdl_convenience-no}" != xno; then
18562 CONVENIENCE_LTDL_TRUE=
18563 CONVENIENCE_LTDL_FALSE='#'
18565 CONVENIENCE_LTDL_TRUE='#'
18566 CONVENIENCE_LTDL_FALSE=
18575 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18576 # the user used. This is so that ltdl.h can pick up the parent projects
18577 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
18578 # definitions required by ltdl.c.
18579 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18583 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
18585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18588 eval as_val=\$$as_ac_Header
18589 if test "x$as_val" = x""yes; then :
18590 cat >>confdefs.h <<_ACEOF
18591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18599 for ac_func in closedir opendir readdir
18601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18603 eval as_val=\$$as_ac_var
18604 if test "x$as_val" = x""yes; then :
18605 cat >>confdefs.h <<_ACEOF
18606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18612 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18617 for ac_func in strlcat strlcpy
18619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18621 eval as_val=\$$as_ac_var
18622 if test "x$as_val" = x""yes; then :
18623 cat >>confdefs.h <<_ACEOF
18624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18630 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18637 cat >>confdefs.h <<_ACEOF
18638 #define LT_LIBEXT "$libext"
18643 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18652 # Only expand once:
18656 # Check to see if building shared libraries
18657 libtool_build_shared_libs='no'
18658 if test "$enable_shared" = 'yes'; then
18659 libtool_build_shared_libs='yes'
18662 # Check to see if building static libraries
18663 libtool_build_static_libs='no'
18664 if test "$enable_static" = 'yes'; then
18665 libtool_build_static_libs='yes'
18668 # MinGW and Cygwin can't build C++ DLLs which support exceptions.
18669 if test "${StaticCplusPlusLibraries}" = 'yes'; then
18670 LTCXXLIBOPTS='--static'
18675 # Enable support for building loadable modules
18678 # Check whether --with-modules was given.
18679 if test "${with_modules+set}" = set; then :
18680 withval=$with_modules; with_modules=$withval
18682 with_modules=$libtool_build_shared_libs
18686 # Only allow building loadable modules if we are building shared libraries
18687 if test "$with_modules" != 'no' ; then
18688 if test "$libtool_build_shared_libs" = 'no'; then
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
18690 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18694 if test "$with_modules" != 'no'; then
18696 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
18699 if test "$with_modules" != 'no'; then
18701 WITH_MODULES_FALSE='#'
18703 WITH_MODULES_TRUE='#'
18704 WITH_MODULES_FALSE=
18708 # Enable building/use of libltdl if we are building shared libraries regardless
18709 # of whether modules are built or not.
18711 if test "$libtool_build_shared_libs" != 'no'; then
18715 if test "$with_ltdl" != 'no'; then
18717 WITH_LTDL_FALSE='#'
18723 if test "$with_ltdl" != 'no'; then
18725 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
18729 if test X"$enable_shared" = Xyes; then
18730 DLLDFLAGS=-export-dynamic
18735 # Enable build using delegate libraries built in subdirectories rather than installed
18736 # delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18737 # Check whether --enable-delegate-build was given.
18738 if test "${enable_delegate_build+set}" = set; then :
18739 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18741 enable_delegate_build='no'
18745 # Check whether --enable-deprecated was given.
18746 if test "${enable_deprecated+set}" = set; then :
18747 enableval=$enable_deprecated; enable_deprecated=$enableval
18749 enable_deprecated='no'
18753 if test "$enable_deprecated" = 'yes'; then
18755 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
18758 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18761 # Build a version of ImageMagick which operates uninstalled.
18762 # Used to build distributions located via MAGICK_HOME / executable path
18763 # Check whether --enable-installed was given.
18764 if test "${enable_installed+set}" = set; then :
18765 enableval=$enable_installed; enable_installed=$enableval
18767 enable_installed='yes'
18771 if test "$enable_installed" = 'yes'; then
18773 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
18776 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18779 # Permit enciphering and deciphering image pixels.
18780 # Check whether --enable-cipher was given.
18781 if test "${enable_cipher+set}" = set; then :
18782 enableval=$enable_cipher; enable_cipher=$enableval
18784 enable_cipher='yes'
18788 if test "$enable_cipher" = 'yes'; then
18790 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
18794 # Build an embeddable version of ImageMagick.
18795 # Check whether --enable-embeddable was given.
18796 if test "${enable_embeddable+set}" = set; then :
18797 enableval=$enable_embeddable; enable_embeddable=$enableval
18799 enable_embeddable='no'
18803 if test "$enable_embeddable" = 'yes'; then
18805 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
18809 # Build a high dynamic range version of ImageMagick.
18810 # Check whether --enable-hdri was given.
18811 if test "${enable_hdri+set}" = set; then :
18812 enableval=$enable_hdri; enable_hdri=$enableval
18819 if test "$enable_hdri" = 'yes'; then
18822 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
18826 # Build a version of ImageMagick with assert statements.
18827 # Check whether --enable-assert was given.
18828 if test "${enable_assert+set}" = set; then :
18829 enableval=$enable_assert; enable_assert=$enableval
18831 enable_assert='yes'
18835 if test "$enable_assert" = 'no'; then
18837 $as_echo "#define NDEBUG 1" >>confdefs.h
18841 # Add configure option --enable-maintainer-mode which enables dependency
18842 # checking and generation useful to package maintainers. This is made an
18843 # option to avoid confusing end users.
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18846 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18847 # Check whether --enable-maintainer-mode was given.
18848 if test "${enable_maintainer_mode+set}" = set; then :
18849 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18851 USE_MAINTAINER_MODE=no
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18855 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18856 if test $USE_MAINTAINER_MODE = yes; then
18857 MAINTAINER_MODE_TRUE=
18858 MAINTAINER_MODE_FALSE='#'
18860 MAINTAINER_MODE_TRUE='#'
18861 MAINTAINER_MODE_FALSE=
18864 MAINT=$MAINTAINER_MODE_TRUE
18869 # Enable ccmalloc memory debugging support
18870 # Check whether --enable-ccmalloc was given.
18871 if test "${enable_ccmalloc+set}" = set; then :
18872 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18874 enable_ccmalloc='no'
18878 # Enable Electric Fence memory debugging support
18879 # Check whether --enable-efence was given.
18880 if test "${enable_efence+set}" = set; then :
18881 enableval=$enable_efence; enable_efence=$enableval
18887 # Enable prof-based profiling support
18888 # Check whether --enable-prof was given.
18889 if test "${enable_prof+set}" = set; then :
18890 enableval=$enable_prof; enable_prof=$enableval
18896 # Enable gprof-based profiling support
18897 # Check whether --enable-gprof was given.
18898 if test "${enable_gprof+set}" = set; then :
18899 enableval=$enable_gprof; enable_gprof=$enableval
18905 # Enable gcov-based profiling support
18906 # Check whether --enable-gcov was given.
18907 if test "${enable_gcov+set}" = set; then :
18908 enableval=$enable_gcov; enable_gcov=$enableval
18914 enable_profiling='no'
18915 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18916 enable_profiling='yes'
18917 if test "$libtool_build_shared_libs" = 'yes'; then
18918 echo "Warning: Can not profile code using shared libraries"
18922 # Magick API method prefix
18924 # Check whether --with-method-prefix was given.
18925 if test "${with_method_prefix+set}" = set; then :
18926 withval=$with_method_prefix; with_method_prefix=$enableval
18928 with_method_prefix=''
18932 if test "$with_method_prefix" != ''; then
18934 cat >>confdefs.h <<_ACEOF
18935 #define NAMESPACE_PREFIX $with_method_prefix
18940 # Number of bits in a Quantum
18942 # Check whether --with-quantum-depth was given.
18943 if test "${with_quantum_depth+set}" = set; then :
18944 withval=$with_quantum_depth; with_quantum_depth=$withval
18946 with_quantum_depth=16
18950 if test "$with_quantum_depth" != '8'; then
18951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18954 case "${with_quantum_depth}" in
18959 * ) { as_fn_set_status 16
18960 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
18962 QUANTUM_DEPTH="$with_quantum_depth"
18964 cat >>confdefs.h <<_ACEOF
18965 #define QUANTUM_DEPTH $QUANTUM_DEPTH
18969 # Set pixel cache threshold
18971 # Check whether --with-cache was given.
18972 if test "${with_cache+set}" = set; then :
18973 withval=$with_cache; with_cache=$withval
18979 if test "$with_cache" != ''; then
18981 cat >>confdefs.h <<_ACEOF
18982 #define PixelCacheThreshold $with_cache
18985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18988 # Disable/Enable support for full delegate paths
18990 # Check whether --with-frozenpaths was given.
18991 if test "${with_frozenpaths+set}" = set; then :
18992 withval=$with_frozenpaths; with_frozenpaths=$withval
18994 with_frozenpaths='no'
18998 # Enable build/install of Magick++
19000 # Check whether --with-magick-plus-plus was given.
19001 if test "${with_magick_plus_plus+set}" = set; then :
19002 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19004 with_magick_plus_plus='yes'
19008 # Disable build/install of PerlMagick.
19010 # Check whether --with-perl was given.
19011 if test "${with_perl+set}" = set; then :
19012 withval=$with_perl; with_perl=$withval
19014 with_perl=$libtool_build_shared_libs
19018 # Options to pass when configuring PerlMagick
19020 # Check whether --with-perl-options was given.
19021 if test "${with_perl_options+set}" = set; then :
19022 withval=$with_perl_options;
19026 PERL_MAKE_OPTIONS=$with_perl_options
19030 # Enable umem, object-caching memory allocation library.
19032 # Check whether --with-umem was given.
19033 if test "${with_umem+set}" = set; then :
19034 withval=$with_umem; with_umem=$withval
19039 if test "$with_umem" != 'yes' ; then
19040 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19044 # Specify path to shared libstdc++ if not in normal location
19047 # Check whether --with-libstdc was given.
19048 if test "${with_libstdc+set}" = set; then :
19049 withval=$with_libstdc; with_libstdc=$withval
19055 if test "$with_libstdc" != ''; then
19056 if test -d "$with_libstdc"; then
19057 LIBSTDCLDFLAGS="-L$with_libstdc"
19062 # Does gcc required -traditional?
19063 if test $ac_cv_c_compiler_gnu = yes; then
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19065 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19066 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19067 $as_echo_n "(cached) " >&6
19069 ac_pattern="Autoconf.*'x'"
19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h. */
19075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19076 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19077 ac_cv_prog_gcc_traditional=yes
19079 ac_cv_prog_gcc_traditional=no
19084 if test $ac_cv_prog_gcc_traditional = no; then
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19087 #include <termio.h>
19090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19091 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19092 ac_cv_prog_gcc_traditional=yes
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19099 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19100 if test $ac_cv_prog_gcc_traditional = yes; then
19101 CC="$CC -traditional"
19108 # Set defines required to build DLLs and modules using MinGW
19111 # These options are set for multi-thread DLL module build
19112 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19114 # executable/Magick++: _DLL _MAGICKMOD_
19115 MODULE_EXTRA_CPPFLAGS=''
19116 LIBRARY_EXTRA_CPPFLAGS=''
19117 if test "${native_win32_build}" = 'yes'; then
19118 if test "${libtool_build_shared_libs}" = 'yes'; then
19119 CPPFLAGS="$CPPFLAGS -D_DLL"
19120 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19121 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19122 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19123 if test "$with_modules" = 'yes'; then
19124 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19126 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19129 CPPFLAGS="$CPPFLAGS -D_LIB"
19130 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19131 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19133 if test "$with_threads" = 'yes'; then
19134 CPPFLAGS="$CPPFLAGS -D_MT"
19135 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19136 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19142 # Check standard headers
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19144 $as_echo_n "checking for ANSI C header files... " >&6; }
19145 if test "${ac_cv_header_stdc+set}" = set; then :
19146 $as_echo_n "(cached) " >&6
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19150 #include <stdlib.h>
19151 #include <stdarg.h>
19152 #include <string.h>
19163 if ac_fn_c_try_compile "$LINENO"; then :
19164 ac_cv_header_stdc=yes
19166 ac_cv_header_stdc=no
19168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19170 if test $ac_cv_header_stdc = yes; then
19171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173 /* end confdefs.h. */
19174 #include <string.h>
19177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19178 $EGREP "memchr" >/dev/null 2>&1; then :
19181 ac_cv_header_stdc=no
19187 if test $ac_cv_header_stdc = yes; then
19188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19191 #include <stdlib.h>
19194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19195 $EGREP "free" >/dev/null 2>&1; then :
19198 ac_cv_header_stdc=no
19204 if test $ac_cv_header_stdc = yes; then
19205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19206 if test "$cross_compiling" = yes; then :
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19212 #include <stdlib.h>
19213 #if ((' ' & 0x0FF) == 0x020)
19214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19217 # define ISLOWER(c) \
19218 (('a' <= (c) && (c) <= 'i') \
19219 || ('j' <= (c) && (c) <= 'r') \
19220 || ('s' <= (c) && (c) <= 'z'))
19221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19229 for (i = 0; i < 256; i++)
19230 if (XOR (islower (i), ISLOWER (i))
19231 || toupper (i) != TOUPPER (i))
19236 if ac_fn_c_try_run "$LINENO"; then :
19239 ac_cv_header_stdc=no
19241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19242 conftest.$ac_objext conftest.beam conftest.$ac_ext
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19248 $as_echo "$ac_cv_header_stdc" >&6; }
19249 if test $ac_cv_header_stdc = yes; then
19251 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19255 if ! test x"$ac_cv_header_stdc" = x"yes"; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
19257 header files. Compilation cannot proceed. Please install the ANSI C
19258 headers and rerun this script." >&5
19259 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19260 header files. Compilation cannot proceed. Please install the ANSI C
19261 headers and rerun this script." >&2;};
19263 ac_header_dirent=no
19264 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19265 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19267 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
19269 $as_echo_n "(cached) " >&6
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19273 #include <sys/types.h>
19285 if ac_fn_c_try_compile "$LINENO"; then :
19286 eval "$as_ac_Header=yes"
19288 eval "$as_ac_Header=no"
19290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292 eval ac_res=\$$as_ac_Header
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19294 $as_echo "$ac_res" >&6; }
19295 eval as_val=\$$as_ac_Header
19296 if test "x$as_val" = x""yes; then :
19297 cat >>confdefs.h <<_ACEOF
19298 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19301 ac_header_dirent=$ac_hdr; break
19305 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19306 if test $ac_header_dirent = dirent.h; then
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19308 $as_echo_n "checking for library containing opendir... " >&6; }
19309 if test "${ac_cv_search_opendir+set}" = set; then :
19310 $as_echo_n "(cached) " >&6
19312 ac_func_search_save_LIBS=$LIBS
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h. */
19316 /* Override any GCC internal prototype to avoid an error.
19317 Use char because int might match the return type of a GCC
19318 builtin and then its argument prototype would still apply. */
19331 for ac_lib in '' dir; do
19332 if test -z "$ac_lib"; then
19333 ac_res="none required"
19336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19338 if ac_fn_c_try_link "$LINENO"; then :
19339 ac_cv_search_opendir=$ac_res
19341 rm -f core conftest.err conftest.$ac_objext \
19343 if test "${ac_cv_search_opendir+set}" = set; then :
19347 if test "${ac_cv_search_opendir+set}" = set; then :
19350 ac_cv_search_opendir=no
19352 rm conftest.$ac_ext
19353 LIBS=$ac_func_search_save_LIBS
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19356 $as_echo "$ac_cv_search_opendir" >&6; }
19357 ac_res=$ac_cv_search_opendir
19358 if test "$ac_res" != no; then :
19359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19365 $as_echo_n "checking for library containing opendir... " >&6; }
19366 if test "${ac_cv_search_opendir+set}" = set; then :
19367 $as_echo_n "(cached) " >&6
19369 ac_func_search_save_LIBS=$LIBS
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19373 /* Override any GCC internal prototype to avoid an error.
19374 Use char because int might match the return type of a GCC
19375 builtin and then its argument prototype would still apply. */
19388 for ac_lib in '' x; do
19389 if test -z "$ac_lib"; then
19390 ac_res="none required"
19393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19395 if ac_fn_c_try_link "$LINENO"; then :
19396 ac_cv_search_opendir=$ac_res
19398 rm -f core conftest.err conftest.$ac_objext \
19400 if test "${ac_cv_search_opendir+set}" = set; then :
19404 if test "${ac_cv_search_opendir+set}" = set; then :
19407 ac_cv_search_opendir=no
19409 rm conftest.$ac_ext
19410 LIBS=$ac_func_search_save_LIBS
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19413 $as_echo "$ac_cv_search_opendir" >&6; }
19414 ac_res=$ac_cv_search_opendir
19415 if test "$ac_res" != no; then :
19416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19423 # Check additional headers
19424 for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
19426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19427 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19428 eval as_val=\$$as_ac_Header
19429 if test "x$as_val" = x""yes; then :
19430 cat >>confdefs.h <<_ACEOF
19431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19441 # Checks for typedefs, structures, and compiler characteristics.
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19446 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19447 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19448 $as_echo_n "(cached) " >&6
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19453 #include <stdbool.h>
19455 "error: bool is not defined"
19458 "error: false is not defined"
19461 "error: false is not 0"
19464 "error: true is not defined"
19467 "error: true is not 1"
19469 #ifndef __bool_true_false_are_defined
19470 "error: __bool_true_false_are_defined is not defined"
19473 struct s { _Bool s: 1; _Bool t; } s;
19475 char a[true == 1 ? 1 : -1];
19476 char b[false == 0 ? 1 : -1];
19477 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19478 char d[(bool) 0.5 == true ? 1 : -1];
19480 char f[(_Bool) 0.0 == false ? 1 : -1];
19482 char h[sizeof (_Bool)];
19483 char i[sizeof s.t];
19484 enum { j = false, k = true, l = false * true, m = true * 256 };
19485 /* The following fails for
19486 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19488 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19489 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19490 # if defined __xlc__ || defined __GNUC__
19491 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19492 reported by James Lemley on 2005-10-05; see
19493 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19494 This test is not quite right, since xlc is allowed to
19495 reject this program, as the initializer for xlcbug is
19496 not one of the forms that C requires support for.
19497 However, doing the test right would require a runtime
19498 test, and that would make cross-compilation harder.
19499 Let us hope that IBM fixes the xlc bug, and also adds
19500 support for this kind of constant expression. In the
19501 meantime, this test will reject xlc, which is OK, since
19502 our stdbool.h substitute should suffice. We also test
19503 this with GCC, where it should work, to detect more
19504 quickly whether someone messes up the test in the
19506 char digs[] = "0123456789";
19507 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19509 /* Catch a bug in an HP-UX C compiler. See
19510 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19511 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19522 /* Refer to every declared value, to avoid compiler optimizations. */
19523 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19524 + !m + !n + !o + !p + !q + !pq);
19530 if ac_fn_c_try_compile "$LINENO"; then :
19531 ac_cv_header_stdbool_h=yes
19533 ac_cv_header_stdbool_h=no
19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19538 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19539 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19540 if test "x$ac_cv_type__Bool" = x""yes; then :
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE__BOOL 1
19549 if test $ac_cv_header_stdbool_h = yes; then
19551 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19556 $as_echo_n "checking for working volatile... " >&6; }
19557 if test "${ac_cv_c_volatile+set}" = set; then :
19558 $as_echo_n "(cached) " >&6
19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h. */
19568 int * volatile y = (int *) 0;
19574 if ac_fn_c_try_compile "$LINENO"; then :
19575 ac_cv_c_volatile=yes
19577 ac_cv_c_volatile=no
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19582 $as_echo "$ac_cv_c_volatile" >&6; }
19583 if test $ac_cv_c_volatile = no; then
19585 $as_echo "#define volatile /**/" >>confdefs.h
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
19590 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
19591 if test "${ac_cv_c_stringize+set}" = set; then :
19592 $as_echo_n "(cached) " >&6
19594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h. */
19598 char *s = x(teststring);
19600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19601 $EGREP "#teststring" >/dev/null 2>&1; then :
19602 ac_cv_c_stringize=no
19604 ac_cv_c_stringize=yes
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
19610 $as_echo "$ac_cv_c_stringize" >&6; }
19611 if test $ac_cv_c_stringize = yes; then
19613 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19618 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19619 if test "${ac_cv_header_stat_broken+set}" = set; then :
19620 $as_echo_n "(cached) " >&6
19622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19623 /* end confdefs.h. */
19624 #include <sys/types.h>
19625 #include <sys/stat.h>
19627 #if defined S_ISBLK && defined S_IFDIR
19628 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19631 #if defined S_ISBLK && defined S_IFCHR
19632 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19635 #if defined S_ISLNK && defined S_IFREG
19636 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19639 #if defined S_ISSOCK && defined S_IFREG
19640 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19644 if ac_fn_c_try_compile "$LINENO"; then :
19645 ac_cv_header_stat_broken=no
19647 ac_cv_header_stat_broken=yes
19649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19652 $as_echo "$ac_cv_header_stat_broken" >&6; }
19653 if test $ac_cv_header_stat_broken = yes; then
19655 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19660 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19661 if test "${ac_cv_header_time+set}" = set; then :
19662 $as_echo_n "(cached) " >&6
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <sys/types.h>
19667 #include <sys/time.h>
19673 if ((struct tm *) 0)
19679 if ac_fn_c_try_compile "$LINENO"; then :
19680 ac_cv_header_time=yes
19682 ac_cv_header_time=no
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19687 $as_echo "$ac_cv_header_time" >&6; }
19688 if test $ac_cv_header_time = yes; then
19690 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19695 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19696 if test "${ac_cv_struct_tm+set}" = set; then :
19697 $as_echo_n "(cached) " >&6
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701 #include <sys/types.h>
19708 int *p = &tm.tm_sec;
19714 if ac_fn_c_try_compile "$LINENO"; then :
19715 ac_cv_struct_tm=time.h
19717 ac_cv_struct_tm=sys/time.h
19719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19722 $as_echo "$ac_cv_struct_tm" >&6; }
19723 if test $ac_cv_struct_tm = sys/time.h; then
19725 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
19730 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
19731 if test "${ac_cv_sys_interpreter+set}" = set; then :
19732 $as_echo_n "(cached) " >&6
19738 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19739 if test $? -ne 69; then
19740 ac_cv_sys_interpreter=yes
19742 ac_cv_sys_interpreter=no
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
19747 $as_echo "$ac_cv_sys_interpreter" >&6; }
19748 interpval=$ac_cv_sys_interpreter
19751 # If the C compiler does not fully support the ANSI C qualifier const,
19752 # define const to be empty.
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19754 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19755 if test "${ac_cv_c_const+set}" = set; then :
19756 $as_echo_n "(cached) " >&6
19758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759 /* end confdefs.h. */
19764 /* FIXME: Include the comments suggested by Paul. */
19765 #ifndef __cplusplus
19766 /* Ultrix mips cc rejects this. */
19767 typedef int charset[2];
19769 /* SunOS 4.1.1 cc rejects this. */
19770 char const *const *pcpcc;
19772 /* NEC SVR4.0.2 mips cc rejects this. */
19773 struct point {int x, y;};
19774 static struct point const zero = {0,0};
19775 /* AIX XL C 1.02.0.0 rejects this.
19776 It does not let you subtract one const X* pointer from another in
19777 an arm of an if-expression whose if-part is not a constant
19779 const char *g = "string";
19780 pcpcc = &g + (g ? g-g : 0);
19781 /* HPUX 7.0 cc rejects these. */
19783 ppc = (char**) pcpcc;
19784 pcpcc = (char const *const *) ppc;
19785 { /* SCO 3.2v4 cc rejects this. */
19787 char const *s = 0 ? (char *) 0 : (char const *) 0;
19792 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19793 int x[] = {25, 17};
19794 const int *foo = &x[0];
19797 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19798 typedef const int *iptr;
19802 { /* AIX XL C 1.02.0.0 rejects this saying
19803 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19804 struct s { int j; const int *ap[3]; };
19805 struct s *b; b->j = 5;
19807 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19808 const int foo = 10;
19809 if (!foo) return 0;
19811 return !cs[0] && !zero.x;
19818 if ac_fn_c_try_compile "$LINENO"; then :
19823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19826 $as_echo "$ac_cv_c_const" >&6; }
19827 if test $ac_cv_c_const = no; then
19829 $as_echo "#define const /**/" >>confdefs.h
19834 # If the C compiler supports the keyword inline, do nothing. Otherwise
19835 # define inline to __inline__ or __inline if it accepts one of those,
19836 # otherwise define inline to be empty.
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19838 $as_echo_n "checking for inline... " >&6; }
19839 if test "${ac_cv_c_inline+set}" = set; then :
19840 $as_echo_n "(cached) " >&6
19843 for ac_kw in inline __inline__ __inline; do
19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h. */
19846 #ifndef __cplusplus
19848 static $ac_kw foo_t static_foo () {return 0; }
19849 $ac_kw foo_t foo () {return 0; }
19853 if ac_fn_c_try_compile "$LINENO"; then :
19854 ac_cv_c_inline=$ac_kw
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 test "$ac_cv_c_inline" != no && break
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19862 $as_echo "$ac_cv_c_inline" >&6; }
19864 case $ac_cv_c_inline in
19867 case $ac_cv_c_inline in
19869 *) ac_val=$ac_cv_c_inline;;
19871 cat >>confdefs.h <<_ACEOF
19872 #ifndef __cplusplus
19873 #define inline $ac_val
19880 # If the C compiler supports the keyword restrict, do nothing. Otherwise
19881 # define restrict to __restrict__ or __restrict if it accepts one of those,
19882 # otherwise define restrict to be empty.
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19884 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19885 if test "${ac_cv_c_restrict+set}" = set; then :
19886 $as_echo_n "(cached) " >&6
19888 ac_cv_c_restrict=no
19889 # The order here caters to the fact that C++ does not require restrict.
19890 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 typedef int * int_ptr;
19894 int foo (int_ptr $ac_kw ip) {
19901 int * $ac_kw t = s;
19908 if ac_fn_c_try_compile "$LINENO"; then :
19909 ac_cv_c_restrict=$ac_kw
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912 test "$ac_cv_c_restrict" != no && break
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19917 $as_echo "$ac_cv_c_restrict" >&6; }
19919 case $ac_cv_c_restrict in
19921 no) $as_echo "#define restrict /**/" >>confdefs.h
19923 *) cat >>confdefs.h <<_ACEOF
19924 #define restrict $ac_cv_c_restrict
19930 # If words are stored with the most significant byte first (like
19931 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19933 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19934 if test "${ac_cv_c_bigendian+set}" = set; then :
19935 $as_echo_n "(cached) " >&6
19937 ac_cv_c_bigendian=unknown
19938 # See if we're dealing with a universal compiler.
19939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940 /* end confdefs.h. */
19941 #ifndef __APPLE_CC__
19942 not a universal capable compiler
19947 if ac_fn_c_try_compile "$LINENO"; then :
19949 # Check for potential -arch flags. It is not universal unless
19950 # there are at least two -arch flags with different values.
19953 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19954 if test -n "$ac_prev"; then
19956 i?86 | x86_64 | ppc | ppc64)
19957 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19960 ac_cv_c_bigendian=universal
19966 elif test "x$ac_word" = "x-arch"; then
19971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19972 if test $ac_cv_c_bigendian = unknown; then
19973 # See if sys/param.h defines the BYTE_ORDER macro.
19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19976 #include <sys/types.h>
19977 #include <sys/param.h>
19982 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19983 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19985 bogus endian macros
19992 if ac_fn_c_try_compile "$LINENO"; then :
19993 # It does; now see whether it defined to BIG_ENDIAN or not.
19994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19995 /* end confdefs.h. */
19996 #include <sys/types.h>
19997 #include <sys/param.h>
20002 #if BYTE_ORDER != BIG_ENDIAN
20010 if ac_fn_c_try_compile "$LINENO"; then :
20011 ac_cv_c_bigendian=yes
20013 ac_cv_c_bigendian=no
20015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 if test $ac_cv_c_bigendian = unknown; then
20020 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20023 #include <limits.h>
20028 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20029 bogus endian macros
20036 if ac_fn_c_try_compile "$LINENO"; then :
20037 # It does; now see whether it defined to _BIG_ENDIAN or not.
20038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* end confdefs.h. */
20040 #include <limits.h>
20045 #ifndef _BIG_ENDIAN
20053 if ac_fn_c_try_compile "$LINENO"; then :
20054 ac_cv_c_bigendian=yes
20056 ac_cv_c_bigendian=no
20058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20062 if test $ac_cv_c_bigendian = unknown; then
20063 # Compile a test program.
20064 if test "$cross_compiling" = yes; then :
20065 # Try to guess by grepping values from an object file.
20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20068 short int ascii_mm[] =
20069 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20070 short int ascii_ii[] =
20071 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20072 int use_ascii (int i) {
20073 return ascii_mm[i] + ascii_ii[i];
20075 short int ebcdic_ii[] =
20076 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20077 short int ebcdic_mm[] =
20078 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20079 int use_ebcdic (int i) {
20080 return ebcdic_mm[i] + ebcdic_ii[i];
20087 return use_ascii (foo) == use_ebcdic (foo);
20092 if ac_fn_c_try_compile "$LINENO"; then :
20093 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20094 ac_cv_c_bigendian=yes
20096 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20097 if test "$ac_cv_c_bigendian" = unknown; then
20098 ac_cv_c_bigendian=no
20100 # finding both strings is unlikely to happen, but who knows?
20101 ac_cv_c_bigendian=unknown
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h. */
20109 $ac_includes_default
20114 /* Are we little or big endian? From Harbison&Steele. */
20118 char c[sizeof (long int)];
20121 return u.c[sizeof (long int) - 1] == 1;
20127 if ac_fn_c_try_run "$LINENO"; then :
20128 ac_cv_c_bigendian=no
20130 ac_cv_c_bigendian=yes
20132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20133 conftest.$ac_objext conftest.beam conftest.$ac_ext
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20139 $as_echo "$ac_cv_c_bigendian" >&6; }
20140 case $ac_cv_c_bigendian in #(
20142 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20148 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20152 as_fn_error "unknown endianness
20153 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20157 # Define mode_t to a suitable type, if standard headers do not define it.
20158 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20159 if test "x$ac_cv_type_mode_t" = x""yes; then :
20163 cat >>confdefs.h <<_ACEOF
20170 # Define off_t to a suitable type, if standard headers do not define it.
20171 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20172 if test "x$ac_cv_type_off_t" = x""yes; then :
20176 cat >>confdefs.h <<_ACEOF
20177 #define off_t long int
20183 # Define pid_t to a suitable type, if standard headers do not define it.
20184 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20185 if test "x$ac_cv_type_pid_t" = x""yes; then :
20189 cat >>confdefs.h <<_ACEOF
20196 # Define size_t to a suitable type, if standard headers do not define it.
20197 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20198 if test "x$ac_cv_type_size_t" = x""yes; then :
20202 cat >>confdefs.h <<_ACEOF
20203 #define size_t unsigned int
20209 # Define ssize_t to a suitable type, if standard headers do not define it.
20210 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20211 if test "x$ac_cv_type_ssize_t" = x""yes; then :
20215 cat >>confdefs.h <<_ACEOF
20216 #define ssize_t int
20222 # If the C compiler supports a working long double type with more range
20223 # or precision than the double type, define HAVE_LONG_DOUBLE.
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
20226 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
20227 if test "${ac_cv_type_long_double_wider+set}" = set; then :
20228 $as_echo_n "(cached) " >&6
20230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20233 long double const a[] =
20235 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20236 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20241 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20242 + (x ? f (x) : 'c'));
20248 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20249 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20250 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20251 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20252 && (int) LDBL_EPSILON == 0
20260 if ac_fn_c_try_compile "$LINENO"; then :
20261 ac_cv_type_long_double_wider=yes
20263 ac_cv_type_long_double_wider=no
20265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
20268 $as_echo "$ac_cv_type_long_double_wider" >&6; }
20269 if test $ac_cv_type_long_double_wider = yes; then
20271 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
20276 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20277 # C compiler predefines it.
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
20279 $as_echo_n "checking whether char is unsigned... " >&6; }
20280 if test "${ac_cv_c_char_unsigned+set}" = set; then :
20281 $as_echo_n "(cached) " >&6
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20285 $ac_includes_default
20289 static int test_array [1 - 2 * !(((char) -1) < 0)];
20296 if ac_fn_c_try_compile "$LINENO"; then :
20297 ac_cv_c_char_unsigned=no
20299 ac_cv_c_char_unsigned=yes
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
20304 $as_echo "$ac_cv_c_char_unsigned" >&6; }
20305 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20306 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
20311 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20312 # The cast to long int works around a bug in the HP C Compiler
20313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20315 # This bug is HP SR number 8606223364.
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
20317 $as_echo_n "checking size of signed short... " >&6; }
20318 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
20319 $as_echo_n "(cached) " >&6
20321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
20324 if test "$ac_cv_type_signed_short" = yes; then
20325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20327 { as_fn_set_status 77
20328 as_fn_error "cannot compute sizeof (signed short)
20329 See \`config.log' for more details." "$LINENO" 5; }; }
20331 ac_cv_sizeof_signed_short=0
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
20337 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
20341 cat >>confdefs.h <<_ACEOF
20342 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20347 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20348 # The cast to long int works around a bug in the HP C Compiler
20349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20351 # This bug is HP SR number 8606223364.
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20353 $as_echo_n "checking size of unsigned short... " >&6; }
20354 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
20355 $as_echo_n "(cached) " >&6
20357 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20360 if test "$ac_cv_type_unsigned_short" = yes; then
20361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20363 { as_fn_set_status 77
20364 as_fn_error "cannot compute sizeof (unsigned short)
20365 See \`config.log' for more details." "$LINENO" 5; }; }
20367 ac_cv_sizeof_unsigned_short=0
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20373 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20377 cat >>confdefs.h <<_ACEOF
20378 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20383 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20384 # The cast to long int works around a bug in the HP C Compiler
20385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20387 # This bug is HP SR number 8606223364.
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
20389 $as_echo_n "checking size of signed int... " >&6; }
20390 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
20391 $as_echo_n "(cached) " >&6
20393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
20396 if test "$ac_cv_type_signed_int" = yes; then
20397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20399 { as_fn_set_status 77
20400 as_fn_error "cannot compute sizeof (signed int)
20401 See \`config.log' for more details." "$LINENO" 5; }; }
20403 ac_cv_sizeof_signed_int=0
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
20409 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
20413 cat >>confdefs.h <<_ACEOF
20414 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20419 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20420 # The cast to long int works around a bug in the HP C Compiler
20421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20423 # This bug is HP SR number 8606223364.
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20425 $as_echo_n "checking size of unsigned int... " >&6; }
20426 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
20427 $as_echo_n "(cached) " >&6
20429 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20432 if test "$ac_cv_type_unsigned_int" = yes; then
20433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20435 { as_fn_set_status 77
20436 as_fn_error "cannot compute sizeof (unsigned int)
20437 See \`config.log' for more details." "$LINENO" 5; }; }
20439 ac_cv_sizeof_unsigned_int=0
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20445 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20449 cat >>confdefs.h <<_ACEOF
20450 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20455 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20456 # The cast to long int works around a bug in the HP C Compiler
20457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20459 # This bug is HP SR number 8606223364.
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
20461 $as_echo_n "checking size of signed long... " >&6; }
20462 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
20463 $as_echo_n "(cached) " >&6
20465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
20468 if test "$ac_cv_type_signed_long" = yes; then
20469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20471 { as_fn_set_status 77
20472 as_fn_error "cannot compute sizeof (signed long)
20473 See \`config.log' for more details." "$LINENO" 5; }; }
20475 ac_cv_sizeof_signed_long=0
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
20481 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
20485 cat >>confdefs.h <<_ACEOF
20486 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20491 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20492 # The cast to long int works around a bug in the HP C Compiler
20493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20495 # This bug is HP SR number 8606223364.
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20497 $as_echo_n "checking size of unsigned long... " >&6; }
20498 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
20499 $as_echo_n "(cached) " >&6
20501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20504 if test "$ac_cv_type_unsigned_long" = yes; then
20505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20507 { as_fn_set_status 77
20508 as_fn_error "cannot compute sizeof (unsigned long)
20509 See \`config.log' for more details." "$LINENO" 5; }; }
20511 ac_cv_sizeof_unsigned_long=0
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20517 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20521 cat >>confdefs.h <<_ACEOF
20522 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20527 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20528 # 'signed long long' is not supported then the value defined is zero.
20529 # The cast to long int works around a bug in the HP C Compiler
20530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20532 # This bug is HP SR number 8606223364.
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
20534 $as_echo_n "checking size of signed long long... " >&6; }
20535 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
20536 $as_echo_n "(cached) " >&6
20538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
20541 if test "$ac_cv_type_signed_long_long" = yes; then
20542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20544 { as_fn_set_status 77
20545 as_fn_error "cannot compute sizeof (signed long long)
20546 See \`config.log' for more details." "$LINENO" 5; }; }
20548 ac_cv_sizeof_signed_long_long=0
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
20554 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20558 cat >>confdefs.h <<_ACEOF
20559 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20564 # Obtain size of a 'unsigned long long' and define as
20565 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20566 # supported then the value defined is zero.
20567 # The cast to long int works around a bug in the HP C Compiler
20568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20570 # This bug is HP SR number 8606223364.
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20572 $as_echo_n "checking size of unsigned long long... " >&6; }
20573 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
20574 $as_echo_n "(cached) " >&6
20576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
20579 if test "$ac_cv_type_unsigned_long_long" = yes; then
20580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20582 { as_fn_set_status 77
20583 as_fn_error "cannot compute sizeof (unsigned long long)
20584 See \`config.log' for more details." "$LINENO" 5; }; }
20586 ac_cv_sizeof_unsigned_long_long=0
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20592 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20596 cat >>confdefs.h <<_ACEOF
20597 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20602 # Obtain size of off_t and define as SIZEOF_OFF_T
20603 # The cast to long int works around a bug in the HP C Compiler
20604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20606 # This bug is HP SR number 8606223364.
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
20608 $as_echo_n "checking size of off_t... " >&6; }
20609 if test "${ac_cv_sizeof_off_t+set}" = set; then :
20610 $as_echo_n "(cached) " >&6
20612 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
20615 if test "$ac_cv_type_off_t" = yes; then
20616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20618 { as_fn_set_status 77
20619 as_fn_error "cannot compute sizeof (off_t)
20620 See \`config.log' for more details." "$LINENO" 5; }; }
20622 ac_cv_sizeof_off_t=0
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
20628 $as_echo "$ac_cv_sizeof_off_t" >&6; }
20632 cat >>confdefs.h <<_ACEOF
20633 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20638 # Obtain size of size_t and define as SIZEOF_SIZE_T
20639 # The cast to long int works around a bug in the HP C Compiler
20640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20642 # This bug is HP SR number 8606223364.
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20644 $as_echo_n "checking size of size_t... " >&6; }
20645 if test "${ac_cv_sizeof_size_t+set}" = set; then :
20646 $as_echo_n "(cached) " >&6
20648 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
20651 if test "$ac_cv_type_size_t" = yes; then
20652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20654 { as_fn_set_status 77
20655 as_fn_error "cannot compute sizeof (size_t)
20656 See \`config.log' for more details." "$LINENO" 5; }; }
20658 ac_cv_sizeof_size_t=0
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20664 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20668 cat >>confdefs.h <<_ACEOF
20669 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20674 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20675 # The cast to long int works around a bug in the HP C Compiler
20676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20678 # This bug is HP SR number 8606223364.
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
20680 $as_echo_n "checking size of unsigned int*... " >&6; }
20681 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
20682 $as_echo_n "(cached) " >&6
20684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
20687 if test "$ac_cv_type_unsigned_intp" = yes; then
20688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20690 { as_fn_set_status 77
20691 as_fn_error "cannot compute sizeof (unsigned int*)
20692 See \`config.log' for more details." "$LINENO" 5; }; }
20694 ac_cv_sizeof_unsigned_intp=0
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
20700 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20704 cat >>confdefs.h <<_ACEOF
20705 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20711 # Compute sized types for current CPU and compiler options.
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
20715 $as_echo_n "checking for signed 8-bit type... " >&6; }
20716 INT8_T='signed char'
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
20718 $as_echo "$INT8_T" >&6; }
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
20722 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
20723 UINT8_T='unsigned char'
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
20725 $as_echo "$UINT8_T" >&6; }
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
20729 $as_echo_n "checking for signed 16-bit type... " >&6; }
20730 INT16_T='signed short'
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
20732 $as_echo "$INT16_T" >&6; }
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
20736 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
20737 UINT16_T='unsigned short'
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
20739 $as_echo "$UINT16_T" >&6; }
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
20743 $as_echo_n "checking for signed 32-bit type... " >&6; }
20745 if test $ac_cv_sizeof_signed_int -eq 4; then
20746 INT32_T='signed int'
20747 elif test $ac_cv_sizeof_signed_long -eq 4; then
20748 INT32_T='signed long'
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
20751 $as_echo "$INT32_T" >&6; }
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
20755 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
20757 if test $ac_cv_sizeof_unsigned_int -eq 4; then
20758 UINT32_T='unsigned int'
20759 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20760 UINT32_T='unsigned long'
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
20763 $as_echo "$UINT32_T" >&6; }
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
20767 $as_echo_n "checking for signed 64-bit type... " >&6; }
20769 if test $ac_cv_sizeof_signed_long -eq 8; then
20770 INT64_T='signed long'
20771 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20772 INT64_T='signed long long'
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
20775 $as_echo "$INT64_T" >&6; }
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
20779 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
20781 if test $ac_cv_sizeof_unsigned_long -eq 8; then
20782 UINT64_T='unsigned long'
20783 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20784 UINT64_T='unsigned long long'
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
20787 $as_echo "$UINT64_T" >&6; }
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
20791 $as_echo_n "checking for unsigned maximum type... " >&6; }
20793 if test "$UINT64_T" != 'none'; then
20794 UINTMAX_T=$UINT64_T
20795 elif test "$UINT32_T" != 'none'; then
20796 UINTMAX_T=$UINT32_T
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
20799 $as_echo "$UINTMAX_T" >&6; }
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
20803 $as_echo_n "checking for pointer difference type... " >&6; }
20805 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20806 UINTPTR_T='unsigned long'
20807 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20808 UINTPTR_T='unsigned long long'
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
20811 $as_echo "$UINTPTR_T" >&6; }
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
20815 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20822 { const char *func = __func__; return(func != 0 ? 0 : 1); }
20827 if ac_fn_c_try_compile "$LINENO"; then :
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20829 $as_echo "yes" >&6; }
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20832 $as_echo "no" >&6; }
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
20834 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836 /* end confdefs.h. */
20841 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20846 if ac_fn_c_try_compile "$LINENO"; then :
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20848 $as_echo "yes" >&6; }
20850 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20854 $as_echo "no" >&6; }
20856 $as_echo "#define __func__ __FILE__" >>confdefs.h
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 # Check for functions
20868 for ac_header in stdlib.h unistd.h
20870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20872 eval as_val=\$$as_ac_Header
20873 if test "x$as_val" = x""yes; then :
20874 cat >>confdefs.h <<_ACEOF
20875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20882 for ac_func in getpagesize
20884 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20885 if test "x$ac_cv_func_getpagesize" = x""yes; then :
20886 cat >>confdefs.h <<_ACEOF
20887 #define HAVE_GETPAGESIZE 1
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
20894 $as_echo_n "checking for working mmap file i/o... " >&6; }
20895 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
20896 $as_echo_n "(cached) " >&6
20898 if test "$cross_compiling" = yes; then :
20899 magick_cv_func_mmap_fileio=no
20901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902 /* end confdefs.h. */
20903 $ac_includes_default
20904 /* malloc might have been renamed as rpl_malloc. */
20908 This test is derived from GNU Autoconf's similar macro.
20909 The purpose of this test is to verify that files may be memory
20910 mapped, and that memory mapping and file I/O are coherent.
20912 The test creates a test file, memory maps the file, updates
20913 the file using the memory map, and then reads the file using
20914 file I/O to verify that the file contains the updates.
20918 #include <sys/mman.h>
20920 #if !STDC_HEADERS && !HAVE_STDLIB_H
20924 /* This mess was copied from the GNU getpagesize.h. */
20925 #if !HAVE_GETPAGESIZE
20926 /* Assume that all systems that can run configure have sys/param.h. */
20927 # if !HAVE_SYS_PARAM_H
20928 # define HAVE_SYS_PARAM_H 1
20931 # ifdef _SC_PAGESIZE
20932 # define getpagesize() sysconf(_SC_PAGESIZE)
20933 # else /* no _SC_PAGESIZE */
20934 # if HAVE_SYS_PARAM_H
20935 # include <sys/param.h>
20936 # ifdef EXEC_PAGESIZE
20937 # define getpagesize() EXEC_PAGESIZE
20938 # else /* no EXEC_PAGESIZE */
20940 # define getpagesize() NBPG * CLSIZE
20943 # endif /* no CLSIZE */
20944 # else /* no NBPG */
20946 # define getpagesize() NBPC
20947 # else /* no NBPC */
20949 # define getpagesize() PAGESIZE
20950 # endif /* PAGESIZE */
20951 # endif /* no NBPC */
20952 # endif /* no NBPG */
20953 # endif /* no EXEC_PAGESIZE */
20954 # else /* no HAVE_SYS_PARAM_H */
20955 # define getpagesize() 8192 /* punt totally */
20956 # endif /* no HAVE_SYS_PARAM_H */
20957 # endif /* no _SC_PAGESIZE */
20959 #endif /* no HAVE_GETPAGESIZE */
20964 char *data, *data2, *data3;
20968 pagesize = getpagesize ();
20970 /* First, make a file with some known garbage in it. */
20971 data = (char *) malloc (pagesize);
20974 for (i = 0; i < pagesize; ++i)
20975 *(data + i) = rand ();
20977 fd = creat ("conftest.mmap", 0600);
20980 if (write (fd, data, pagesize) != pagesize)
20984 /* Mmap the file as read/write/shared and verify that we see the
20986 fd = open ("conftest.mmap", O_RDWR);
20989 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20992 for (i = 0; i < pagesize; ++i)
20993 if (*(data + i) != *(data2 + i))
20996 /* Finally, make sure that changes to the mapped area
20997 percolate back to the file as seen by read(). */
20998 for (i = 0; i < pagesize; ++i)
20999 *(data2 + i) = *(data2 + i) + 1;
21000 data3 = (char *) malloc (pagesize);
21003 if (read (fd, data3, pagesize) != pagesize)
21005 for (i = 0; i < pagesize; ++i)
21006 if (*(data2 + i) != *(data3 + i))
21012 if ac_fn_c_try_run "$LINENO"; then :
21013 magick_cv_func_mmap_fileio=yes
21015 magick_cv_func_mmap_fileio=no
21017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21018 conftest.$ac_objext conftest.beam conftest.$ac_ext
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
21023 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
21024 if test $magick_cv_func_mmap_fileio = yes; then
21026 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
21029 rm -f conftest.mmap
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
21032 $as_echo_n "checking whether closedir returns void... " >&6; }
21033 if test "${ac_cv_func_closedir_void+set}" = set; then :
21034 $as_echo_n "(cached) " >&6
21036 if test "$cross_compiling" = yes; then :
21037 ac_cv_func_closedir_void=yes
21039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21040 /* end confdefs.h. */
21041 $ac_includes_default
21042 #include <$ac_header_dirent>
21043 #ifndef __cplusplus
21050 return closedir (opendir (".")) != 0;
21055 if ac_fn_c_try_run "$LINENO"; then :
21056 ac_cv_func_closedir_void=no
21058 ac_cv_func_closedir_void=yes
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061 conftest.$ac_objext conftest.beam conftest.$ac_ext
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
21066 $as_echo "$ac_cv_func_closedir_void" >&6; }
21067 if test $ac_cv_func_closedir_void = yes; then
21069 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
21076 for ac_header in $ac_header_list
21078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21081 eval as_val=\$$as_ac_Header
21082 if test "x$as_val" = x""yes; then :
21083 cat >>confdefs.h <<_ACEOF
21084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21098 for ac_func in getpagesize
21100 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21101 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21102 cat >>confdefs.h <<_ACEOF
21103 #define HAVE_GETPAGESIZE 1
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21110 $as_echo_n "checking for working mmap... " >&6; }
21111 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
21112 $as_echo_n "(cached) " >&6
21114 if test "$cross_compiling" = yes; then :
21115 ac_cv_func_mmap_fixed_mapped=no
21117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 /* malloc might have been renamed as rpl_malloc. */
21123 /* Thanks to Mike Haertel and Jim Avera for this test.
21124 Here is a matrix of mmap possibilities:
21125 mmap private not fixed
21126 mmap private fixed at somewhere currently unmapped
21127 mmap private fixed at somewhere already mapped
21128 mmap shared not fixed
21129 mmap shared fixed at somewhere currently unmapped
21130 mmap shared fixed at somewhere already mapped
21131 For private mappings, we should verify that changes cannot be read()
21132 back from the file, nor mmap's back from the file at a different
21133 address. (There have been systems where private was not correctly
21134 implemented like the infamous i386 svr4.0, and systems where the
21135 VM page cache was not coherent with the file system buffer cache
21136 like early versions of FreeBSD and possibly contemporary NetBSD.)
21137 For shared mappings, we should conversely verify that changes get
21138 propagated back to all the places they're supposed to be.
21140 Grep wants private fixed already mapped.
21141 The main things grep needs to know about mmap are:
21142 * does it exist and is it safe to write into the mmap'd area
21143 * how to use it (BSD variants) */
21146 #include <sys/mman.h>
21148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21152 /* This mess was copied from the GNU getpagesize.h. */
21153 #ifndef HAVE_GETPAGESIZE
21154 # ifdef _SC_PAGESIZE
21155 # define getpagesize() sysconf(_SC_PAGESIZE)
21156 # else /* no _SC_PAGESIZE */
21157 # ifdef HAVE_SYS_PARAM_H
21158 # include <sys/param.h>
21159 # ifdef EXEC_PAGESIZE
21160 # define getpagesize() EXEC_PAGESIZE
21161 # else /* no EXEC_PAGESIZE */
21163 # define getpagesize() NBPG * CLSIZE
21166 # endif /* no CLSIZE */
21167 # else /* no NBPG */
21169 # define getpagesize() NBPC
21170 # else /* no NBPC */
21172 # define getpagesize() PAGESIZE
21173 # endif /* PAGESIZE */
21174 # endif /* no NBPC */
21175 # endif /* no NBPG */
21176 # endif /* no EXEC_PAGESIZE */
21177 # else /* no HAVE_SYS_PARAM_H */
21178 # define getpagesize() 8192 /* punt totally */
21179 # endif /* no HAVE_SYS_PARAM_H */
21180 # endif /* no _SC_PAGESIZE */
21182 #endif /* no HAVE_GETPAGESIZE */
21187 char *data, *data2, *data3;
21188 const char *cdata2;
21192 pagesize = getpagesize ();
21194 /* First, make a file with some known garbage in it. */
21195 data = (char *) malloc (pagesize);
21198 for (i = 0; i < pagesize; ++i)
21199 *(data + i) = rand ();
21201 fd = creat ("conftest.mmap", 0600);
21204 if (write (fd, data, pagesize) != pagesize)
21208 /* Next, check that the tail of a page is zero-filled. File must have
21209 non-zero length, otherwise we risk SIGBUS for entire page. */
21210 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21214 if (write (fd2, cdata2, 1) != 1)
21216 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21217 if (data2 == MAP_FAILED)
21219 for (i = 0; i < pagesize; ++i)
21223 if (munmap (data2, pagesize))
21226 /* Next, try to mmap the file at a fixed address which already has
21227 something else allocated at it. If we can, also make sure that
21228 we see the same garbage. */
21229 fd = open ("conftest.mmap", O_RDWR);
21232 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21233 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21235 for (i = 0; i < pagesize; ++i)
21236 if (*(data + i) != *(data2 + i))
21239 /* Finally, make sure that changes to the mapped area do not
21240 percolate back to the file as seen by read(). (This is a bug on
21241 some variants of i386 svr4.0.) */
21242 for (i = 0; i < pagesize; ++i)
21243 *(data2 + i) = *(data2 + i) + 1;
21244 data3 = (char *) malloc (pagesize);
21247 if (read (fd, data3, pagesize) != pagesize)
21249 for (i = 0; i < pagesize; ++i)
21250 if (*(data + i) != *(data3 + i))
21256 if ac_fn_c_try_run "$LINENO"; then :
21257 ac_cv_func_mmap_fixed_mapped=yes
21259 ac_cv_func_mmap_fixed_mapped=no
21261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21262 conftest.$ac_objext conftest.beam conftest.$ac_ext
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21267 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21270 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
21273 rm -f conftest.mmap conftest.txt
21275 for ac_header in vfork.h
21277 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21278 if test "x$ac_cv_header_vfork_h" = x""yes; then :
21279 cat >>confdefs.h <<_ACEOF
21280 #define HAVE_VFORK_H 1
21287 for ac_func in fork vfork
21289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21290 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21291 eval as_val=\$$as_ac_var
21292 if test "x$as_val" = x""yes; then :
21293 cat >>confdefs.h <<_ACEOF
21294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21300 if test "x$ac_cv_func_fork" = xyes; then
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21302 $as_echo_n "checking for working fork... " >&6; }
21303 if test "${ac_cv_func_fork_works+set}" = set; then :
21304 $as_echo_n "(cached) " >&6
21306 if test "$cross_compiling" = yes; then :
21307 ac_cv_func_fork_works=cross
21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21310 /* end confdefs.h. */
21311 $ac_includes_default
21316 /* By Ruediger Kuhlmann. */
21317 return fork () < 0;
21323 if ac_fn_c_try_run "$LINENO"; then :
21324 ac_cv_func_fork_works=yes
21326 ac_cv_func_fork_works=no
21328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21329 conftest.$ac_objext conftest.beam conftest.$ac_ext
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21334 $as_echo "$ac_cv_func_fork_works" >&6; }
21337 ac_cv_func_fork_works=$ac_cv_func_fork
21339 if test "x$ac_cv_func_fork_works" = xcross; then
21341 *-*-amigaos* | *-*-msdosdjgpp*)
21342 # Override, as these systems have only a dummy fork() stub
21343 ac_cv_func_fork_works=no
21346 ac_cv_func_fork_works=yes
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21350 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21352 ac_cv_func_vfork_works=$ac_cv_func_vfork
21353 if test "x$ac_cv_func_vfork" = xyes; then
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21355 $as_echo_n "checking for working vfork... " >&6; }
21356 if test "${ac_cv_func_vfork_works+set}" = set; then :
21357 $as_echo_n "(cached) " >&6
21359 if test "$cross_compiling" = yes; then :
21360 ac_cv_func_vfork_works=cross
21362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21364 /* Thanks to Paul Eggert for this test. */
21365 $ac_includes_default
21366 #include <sys/wait.h>
21367 #ifdef HAVE_VFORK_H
21368 # include <vfork.h>
21370 /* On some sparc systems, changes by the child to local and incoming
21371 argument registers are propagated back to the parent. The compiler
21372 is told about this with #include <vfork.h>, but some compilers
21373 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21374 static variable whose address is put into a register that is
21375 clobbered by the vfork. */
21378 sparc_address_test (int arg)
21380 sparc_address_test (arg) int arg;
21383 static pid_t child;
21401 pid_t parent = getpid ();
21404 sparc_address_test (0);
21409 /* Here is another test for sparc vfork register problems. This
21410 test uses lots of local variables, at least as many local
21411 variables as main has allocated so far including compiler
21412 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21413 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21414 reuse the register of parent for one of the local variables,
21415 since it will think that parent can't possibly be used any more
21416 in this routine. Assigning to the local variable will thus
21417 munge parent in the parent process. */
21419 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21420 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21421 /* Convince the compiler that p..p7 are live; otherwise, it might
21422 use the same hardware register for all 8 local variables. */
21423 if (p != p1 || p != p2 || p != p3 || p != p4
21424 || p != p5 || p != p6 || p != p7)
21427 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21428 from child file descriptors. If the child closes a descriptor
21429 before it execs or exits, this munges the parent's descriptor
21430 as well. Test for this by closing stdout in the child. */
21431 _exit(close(fileno(stdout)) != 0);
21436 while (wait(&status) != child)
21439 /* Was there some problem with vforking? */
21442 /* Did the child fail? (This shouldn't happen.) */
21445 /* Did the vfork/compiler bug occur? */
21446 || parent != getpid()
21448 /* Did the file descriptor bug occur? */
21449 || fstat(fileno(stdout), &st) != 0
21454 if ac_fn_c_try_run "$LINENO"; then :
21455 ac_cv_func_vfork_works=yes
21457 ac_cv_func_vfork_works=no
21459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21460 conftest.$ac_objext conftest.beam conftest.$ac_ext
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21465 $as_echo "$ac_cv_func_vfork_works" >&6; }
21468 if test "x$ac_cv_func_fork_works" = xcross; then
21469 ac_cv_func_vfork_works=$ac_cv_func_vfork
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21471 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21474 if test "x$ac_cv_func_vfork_works" = xyes; then
21476 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21480 $as_echo "#define vfork fork" >>confdefs.h
21483 if test "x$ac_cv_func_fork_works" = xyes; then
21485 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
21490 $as_echo_n "checking for working memcmp... " >&6; }
21491 if test "${ac_cv_func_memcmp_working+set}" = set; then :
21492 $as_echo_n "(cached) " >&6
21494 if test "$cross_compiling" = yes; then :
21495 ac_cv_func_memcmp_working=no
21497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21499 $ac_includes_default
21504 /* Some versions of memcmp are not 8-bit clean. */
21505 char c0 = '\100', c1 = '\200', c2 = '\201';
21506 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21509 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21510 or more and with at least one buffer not starting on a 4-byte boundary.
21511 William Lewis provided this test program. */
21516 for (i = 0; i < 4; i++)
21520 strcpy (a, "--------01111111");
21521 strcpy (b, "--------10000000");
21522 if (memcmp (a, b, 16) >= 0)
21532 if ac_fn_c_try_run "$LINENO"; then :
21533 ac_cv_func_memcmp_working=yes
21535 ac_cv_func_memcmp_working=no
21537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21538 conftest.$ac_objext conftest.beam conftest.$ac_ext
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21543 $as_echo "$ac_cv_func_memcmp_working" >&6; }
21544 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21545 *" memcmp.$ac_objext "* ) ;;
21546 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21551 for ac_header in sys/select.h sys/socket.h
21553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21555 eval as_val=\$$as_ac_Header
21556 if test "x$as_val" = x""yes; then :
21557 cat >>confdefs.h <<_ACEOF
21558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21566 $as_echo_n "checking types of arguments for select... " >&6; }
21567 if test "${ac_cv_func_select_args+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21570 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21571 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21572 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 #ifdef HAVE_SYS_SELECT_H
21577 # include <sys/select.h>
21579 #ifdef HAVE_SYS_SOCKET_H
21580 # include <sys/socket.h>
21586 extern int select ($ac_arg1,
21587 $ac_arg234, $ac_arg234, $ac_arg234,
21593 if ac_fn_c_try_compile "$LINENO"; then :
21594 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 # Provide a safe default value.
21601 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21605 $as_echo "$ac_cv_func_select_args" >&6; }
21606 ac_save_IFS=$IFS; IFS=','
21607 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21611 cat >>confdefs.h <<_ACEOF
21612 #define SELECT_TYPE_ARG1 $1
21616 cat >>confdefs.h <<_ACEOF
21617 #define SELECT_TYPE_ARG234 ($2)
21621 cat >>confdefs.h <<_ACEOF
21622 #define SELECT_TYPE_ARG5 ($3)
21627 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
21628 $as_echo_n "(cached) " >&6
21630 ac_cv_func_setvbuf_reversed=no
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21635 $as_echo_n "checking return type of signal handlers... " >&6; }
21636 if test "${ac_cv_type_signal+set}" = set; then :
21637 $as_echo_n "(cached) " >&6
21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h. */
21641 #include <sys/types.h>
21642 #include <signal.h>
21647 return *(signal (0, 0)) (0) == 1;
21652 if ac_fn_c_try_compile "$LINENO"; then :
21653 ac_cv_type_signal=int
21655 ac_cv_type_signal=void
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21660 $as_echo "$ac_cv_type_signal" >&6; }
21662 cat >>confdefs.h <<_ACEOF
21663 #define RETSIGTYPE $ac_cv_type_signal
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
21668 $as_echo_n "checking for working strtod... " >&6; }
21669 if test "${ac_cv_func_strtod+set}" = set; then :
21670 $as_echo_n "(cached) " >&6
21672 if test "$cross_compiling" = yes; then :
21673 ac_cv_func_strtod=no
21675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h. */
21678 $ac_includes_default
21686 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21687 char *string = " +69";
21690 value = strtod (string, &term);
21691 if (value != 69 || term != (string + 4))
21696 /* Under Solaris 2.4, strtod returns the wrong value for the
21697 terminating character under some conditions. */
21698 char *string = "NaN";
21700 strtod (string, &term);
21701 if (term != string && *(term - 1) == 0)
21708 if ac_fn_c_try_run "$LINENO"; then :
21709 ac_cv_func_strtod=yes
21711 ac_cv_func_strtod=no
21713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21714 conftest.$ac_objext conftest.beam conftest.$ac_ext
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
21719 $as_echo "$ac_cv_func_strtod" >&6; }
21720 if test $ac_cv_func_strtod = no; then
21721 case " $LIBOBJS " in
21722 *" strtod.$ac_objext "* ) ;;
21723 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21727 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21728 if test "x$ac_cv_func_pow" = x""yes; then :
21732 if test $ac_cv_func_pow = no; then
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21734 $as_echo_n "checking for pow in -lm... " >&6; }
21735 if test "${ac_cv_lib_m_pow+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21738 ac_check_lib_save_LIBS=$LIBS
21740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21741 /* end confdefs.h. */
21743 /* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
21758 if ac_fn_c_try_link "$LINENO"; then :
21759 ac_cv_lib_m_pow=yes
21763 rm -f core conftest.err conftest.$ac_objext \
21764 conftest$ac_exeext conftest.$ac_ext
21765 LIBS=$ac_check_lib_save_LIBS
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21768 $as_echo "$ac_cv_lib_m_pow" >&6; }
21769 if test "x$ac_cv_lib_m_pow" = x""yes; then :
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
21773 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21780 for ac_func in vprintf
21782 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21783 if test "x$ac_cv_func_vprintf" = x""yes; then :
21784 cat >>confdefs.h <<_ACEOF
21785 #define HAVE_VPRINTF 1
21788 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21789 if test "x$ac_cv_func__doprnt" = x""yes; then :
21791 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21800 for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r 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 strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
21802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21804 eval as_val=\$$as_ac_var
21805 if test "x$as_val" = x""yes; then :
21806 cat >>confdefs.h <<_ACEOF
21807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21815 # Check for clock_gettime().
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21818 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21819 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21822 ac_func_search_save_LIBS=$LIBS
21823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21824 /* end confdefs.h. */
21826 /* Override any GCC internal prototype to avoid an error.
21827 Use char because int might match the return type of a GCC
21828 builtin and then its argument prototype would still apply. */
21832 char clock_gettime ();
21836 return clock_gettime ();
21841 for ac_lib in '' rt; do
21842 if test -z "$ac_lib"; then
21843 ac_res="none required"
21846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21848 if ac_fn_c_try_link "$LINENO"; then :
21849 ac_cv_search_clock_gettime=$ac_res
21851 rm -f core conftest.err conftest.$ac_objext \
21853 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21857 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21860 ac_cv_search_clock_gettime=no
21862 rm conftest.$ac_ext
21863 LIBS=$ac_func_search_save_LIBS
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21866 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21867 ac_res=$ac_cv_search_clock_gettime
21868 if test "$ac_res" != no; then :
21869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21872 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
21875 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
21876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21882 clockid_t clockType = CLOCK_REALTIME;
21887 if ac_fn_c_try_compile "$LINENO"; then :
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21890 $as_echo "yes" >&6; }
21892 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21897 $as_echo "no" >&6; }
21900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 for ac_func in gettimeofday ftime
21906 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21908 eval as_val=\$$as_ac_var
21909 if test "x$as_val" = x""yes; then :
21910 cat >>confdefs.h <<_ACEOF
21911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21924 # Check for function prototypes
21928 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
21929 #include <unistd.h>
21931 if test "x$ac_cv_have_decl_pread" = x""yes; then :
21937 cat >>confdefs.h <<_ACEOF
21938 #define HAVE_DECL_PREAD $ac_have_decl
21940 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
21941 #include <unistd.h>
21943 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21949 cat >>confdefs.h <<_ACEOF
21950 #define HAVE_DECL_PWRITE $ac_have_decl
21954 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
21955 #include <strings.h>
21957 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21963 cat >>confdefs.h <<_ACEOF
21964 #define HAVE_DECL_STRLCPY $ac_have_decl
21968 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
21970 #include <stdarg.h>
21972 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_DECL_VSNPRINTF $ac_have_decl
21985 # C++ Support Tests (For Magick++)
21988 have_magick_plus_plus='no'
21989 if test "$with_magick_plus_plus" = 'yes'; then
21993 ac_cpp='$CXXCPP $CPPFLAGS'
21994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21999 # Full set of headers used...
22000 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22001 # functional iomanip iosfwd iostream iterator list string strstream utility
22003 ac_cpp='$CXXCPP $CPPFLAGS'
22004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22009 ac_cpp='$CXXCPP $CPPFLAGS'
22010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22013 if test -z "$CXX"; then
22014 if test -n "$CCC"; then
22017 if test -n "$ac_tool_prefix"; then
22018 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22023 $as_echo_n "checking for $ac_word... " >&6; }
22024 if test "${ac_cv_prog_CXX+set}" = set; then :
22025 $as_echo_n "(cached) " >&6
22027 if test -n "$CXX"; then
22028 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22031 for as_dir in $PATH
22034 test -z "$as_dir" && as_dir=.
22035 for ac_exec_ext in '' $ac_executable_extensions; do
22036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22037 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22047 CXX=$ac_cv_prog_CXX
22048 if test -n "$CXX"; then
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
22050 $as_echo "$CXX" >&6; }
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22053 $as_echo "no" >&6; }
22057 test -n "$CXX" && break
22060 if test -z "$CXX"; then
22062 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22064 # Extract the first word of "$ac_prog", so it can be a program name with args.
22065 set dummy $ac_prog; ac_word=$2
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22067 $as_echo_n "checking for $ac_word... " >&6; }
22068 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
22069 $as_echo_n "(cached) " >&6
22071 if test -n "$ac_ct_CXX"; then
22072 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22075 for as_dir in $PATH
22078 test -z "$as_dir" && as_dir=.
22079 for ac_exec_ext in '' $ac_executable_extensions; do
22080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22081 ac_cv_prog_ac_ct_CXX="$ac_prog"
22082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22091 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22092 if test -n "$ac_ct_CXX"; then
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
22094 $as_echo "$ac_ct_CXX" >&6; }
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22097 $as_echo "no" >&6; }
22101 test -n "$ac_ct_CXX" && break
22104 if test "x$ac_ct_CXX" = x; then
22107 case $cross_compiling:$ac_tool_warned in
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22111 ac_tool_warned=yes ;;
22119 # Provide some information about the compiler.
22120 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
22123 for ac_option in --version -v -V -qversion; do
22124 { { ac_try="$ac_compiler $ac_option >&5"
22125 case "(($ac_try" in
22126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22130 $as_echo "$ac_try_echo"; } >&5
22131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22133 if test -s conftest.err; then
22135 ... rest of stderr output deleted ...
22136 10q' conftest.err >conftest.er1
22137 cat conftest.er1 >&5
22139 rm -f conftest.er1 conftest.err
22140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22141 test $ac_status = 0; }
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
22145 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22146 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
22147 $as_echo_n "(cached) " >&6
22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22150 /* end confdefs.h. */
22163 if ac_fn_cxx_try_compile "$LINENO"; then :
22164 ac_compiler_gnu=yes
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
22173 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22174 if test $ac_compiler_gnu = yes; then
22179 ac_test_CXXFLAGS=${CXXFLAGS+set}
22180 ac_save_CXXFLAGS=$CXXFLAGS
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
22182 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
22183 if test "${ac_cv_prog_cxx_g+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22186 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22187 ac_cxx_werror_flag=yes
22188 ac_cv_prog_cxx_g=no
22190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22191 /* end confdefs.h. */
22201 if ac_fn_cxx_try_compile "$LINENO"; then :
22202 ac_cv_prog_cxx_g=yes
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h. */
22216 if ac_fn_cxx_try_compile "$LINENO"; then :
22219 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h. */
22232 if ac_fn_cxx_try_compile "$LINENO"; then :
22233 ac_cv_prog_cxx_g=yes
22235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22240 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
22243 $as_echo "$ac_cv_prog_cxx_g" >&6; }
22244 if test "$ac_test_CXXFLAGS" = set; then
22245 CXXFLAGS=$ac_save_CXXFLAGS
22246 elif test $ac_cv_prog_cxx_g = yes; then
22247 if test "$GXX" = yes; then
22253 if test "$GXX" = yes; then
22260 ac_cpp='$CXXCPP $CPPFLAGS'
22261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22265 depcc="$CXX" am_compiler_list=
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22268 $as_echo_n "checking dependency style of $depcc... " >&6; }
22269 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
22270 $as_echo_n "(cached) " >&6
22272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22273 # We make a subdir and do the tests there. Otherwise we can end up
22274 # making bogus files that we don't know about and never remove. For
22275 # instance it was reported that on HP-UX the gcc test will end up
22276 # making a dummy file named `D' -- because `-MD' means `put the output
22279 # Copy depcomp to subdir because otherwise we won't find it if we're
22280 # using a relative directory.
22281 cp "$am_depcomp" conftest.dir
22283 # We will build objects and dependencies in a subdirectory because
22284 # it helps to detect inapplicable dependency modes. For instance
22285 # both Tru64's cc and ICC support -MD to output dependencies as a
22286 # side effect of compilation, but ICC will put the dependencies in
22287 # the current directory while Tru64 will put them in the object
22291 am_cv_CXX_dependencies_compiler_type=none
22292 if test "$am_compiler_list" = ""; then
22293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22295 am__universal=false
22296 case " $depcc " in #(
22297 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22300 for depmode in $am_compiler_list; do
22301 # Setup a source with many dependencies, because some compilers
22302 # like to wrap large dependency lists on column 80 (with \), and
22303 # we should not choose a depcomp mode which is confused by this.
22305 # We need to recreate these files for each test, as the compiler may
22306 # overwrite some of them when testing with obscure command lines.
22307 # This happens at least with the AIX C compiler.
22309 for i in 1 2 3 4 5 6; do
22310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22311 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22312 # Solaris 8's {/usr,}/bin/sh.
22313 touch sub/conftst$i.h
22315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22317 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22318 # mode. It turns out that the SunPro C++ compiler does not properly
22319 # handle `-M -o', and we need to detect this. Also, some Intel
22320 # versions had trouble with output in subdirs
22321 am__obj=sub/conftest.${OBJEXT-o}
22322 am__minus_obj="-o $am__obj"
22325 # This depmode causes a compiler race in universal mode.
22326 test "$am__universal" = false || continue
22329 # after this tag, mechanisms are not by side-effect, so they'll
22330 # only be used when explicitly requested
22331 if test "x$enable_dependency_tracking" = xyes; then
22337 msvisualcpp | msvcmsys)
22338 # This compiler won't grok `-c -o', but also, the minuso test has
22339 # not run yet. These depmodes are late enough in the game, and
22340 # so weak that their functioning should not be impacted.
22341 am__obj=conftest.${OBJEXT-o}
22346 if depmode=$depmode \
22347 source=sub/conftest.c object=$am__obj \
22348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22350 >/dev/null 2>conftest.err &&
22351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22355 # icc doesn't choke on unknown options, it will just issue warnings
22356 # or remarks (even with -Werror). So we grep stderr for any message
22357 # that says an option was ignored or not supported.
22358 # When given -MP, icc 7.0 and 7.1 complain thusly:
22359 # icc: Command line warning: ignoring option '-M'; no argument required
22360 # The diagnosis changed in icc 8.0:
22361 # icc: Command line remark: option '-MP' not supported
22362 if (grep 'ignoring option' conftest.err ||
22363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22364 am_cv_CXX_dependencies_compiler_type=$depmode
22371 rm -rf conftest.dir
22373 am_cv_CXX_dependencies_compiler_type=none
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
22378 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22379 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22382 test "x$enable_dependency_tracking" != xno \
22383 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22384 am__fastdepCXX_TRUE=
22385 am__fastdepCXX_FALSE='#'
22387 am__fastdepCXX_TRUE='#'
22388 am__fastdepCXX_FALSE=
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
22393 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
22394 if test "${ac_cv_cxx_have_bool+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22399 ac_cpp='$CXXCPP $CPPFLAGS'
22400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h. */
22407 int f(int x){return 1;}
22408 int f(char x){return 1;}
22409 int f(bool x){return 1;}
22414 bool b = true; return f(b);
22419 if ac_fn_cxx_try_compile "$LINENO"; then :
22420 ac_cv_cxx_have_bool=yes
22422 ac_cv_cxx_have_bool=no
22424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426 ac_cpp='$CXXCPP $CPPFLAGS'
22427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
22434 $as_echo "$ac_cv_cxx_have_bool" >&6; }
22435 if test "$ac_cv_cxx_have_bool" = yes; then
22437 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
22442 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
22443 if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
22444 $as_echo_n "(cached) " >&6
22448 ac_cpp='$CXXCPP $CPPFLAGS'
22449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22455 namespace Outer { namespace Inner { int i = 0; }}
22459 using namespace Outer::Inner; return i;
22464 if ac_fn_cxx_try_compile "$LINENO"; then :
22465 ac_cv_cxx_have_namespaces=yes
22467 ac_cv_cxx_have_namespaces=no
22469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 ac_cpp='$CXXCPP $CPPFLAGS'
22472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
22479 $as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22480 if test "$ac_cv_cxx_have_namespaces" = yes; then
22482 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
22487 $as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
22488 if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
22489 $as_echo_n "(cached) " >&6
22493 ac_cpp='$CXXCPP $CPPFLAGS'
22494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h. */
22500 #include <iostream>
22501 std::istream& is = std::cin;
22511 if ac_fn_cxx_try_compile "$LINENO"; then :
22512 ac_cv_cxx_have_std_namespace=yes
22514 ac_cv_cxx_have_std_namespace=no
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 ac_cpp='$CXXCPP $CPPFLAGS'
22519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
22526 $as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22527 if test "$ac_cv_cxx_have_std_namespace" = yes; then
22529 $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
22534 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
22535 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
22536 $as_echo_n "(cached) " >&6
22541 ac_cpp='$CXXCPP $CPPFLAGS'
22542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h. */
22548 #include <iostream>
22552 #ifdef HAVE_NAMESPACES
22553 using namespace std;
22563 if ac_fn_cxx_try_compile "$LINENO"; then :
22564 ac_cv_cxx_have_std_libs=yes
22566 ac_cv_cxx_have_std_libs=no
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 ac_cpp='$CXXCPP $CPPFLAGS'
22571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
22578 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22579 if test "$ac_cv_cxx_have_std_libs" = yes; then
22581 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
22586 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
22587 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
22588 $as_echo_n "(cached) " >&6
22592 ac_cpp='$CXXCPP $CPPFLAGS'
22593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22598 /* end confdefs.h. */
22599 const wchar_t* s=L"wide string";
22601 if ac_fn_cxx_try_compile "$LINENO"; then :
22602 ac_cv_cxx_have_lstring=yes
22604 ac_cv_cxx_have_lstring=no
22606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608 ac_cpp='$CXXCPP $CPPFLAGS'
22609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
22616 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
22617 if test "$ac_cv_cxx_have_lstring" = yes; then
22619 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
22625 # Check whether --enable-openmp was given.
22626 if test "${enable_openmp+set}" = set; then :
22627 enableval=$enable_openmp;
22630 if test "$enable_openmp" != no; then
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22632 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
22633 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
22634 $as_echo_n "(cached) " >&6
22636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22637 /* end confdefs.h. */
22643 int main () { return omp_get_num_threads (); }
22646 if ac_fn_cxx_try_link "$LINENO"; then :
22647 ac_cv_prog_cxx_openmp='none needed'
22649 ac_cv_prog_cxx_openmp='unsupported'
22650 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22651 ac_save_CXXFLAGS=$CXXFLAGS
22652 CXXFLAGS="$CXXFLAGS $ac_option"
22653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22660 int main () { return omp_get_num_threads (); }
22663 if ac_fn_cxx_try_link "$LINENO"; then :
22664 ac_cv_prog_cxx_openmp=$ac_option
22666 rm -f core conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
22668 CXXFLAGS=$ac_save_CXXFLAGS
22669 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22674 rm -f core conftest.err conftest.$ac_objext \
22675 conftest$ac_exeext conftest.$ac_ext
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
22678 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22679 case $ac_cv_prog_cxx_openmp in #(
22680 "none needed" | unsupported)
22683 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
22689 ac_cpp='$CPP $CPPFLAGS'
22690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
22696 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22698 test $ac_cv_cxx_have_bool = 'yes' && \
22699 test $ac_cv_cxx_have_lstring = 'yes' && \
22700 test $ac_cv_cxx_have_namespaces = 'yes' && \
22701 test $ac_cv_cxx_have_std_libs = 'yes' && \
22702 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22703 have_magick_plus_plus='yes'
22705 have_magick_plus_plus='no (failed tests)'
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
22708 $as_echo "$have_magick_plus_plus" >&6; }
22711 if test "$have_magick_plus_plus" = 'yes'; then
22712 WITH_MAGICK_PLUS_PLUS_TRUE=
22713 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22715 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22716 WITH_MAGICK_PLUS_PLUS_FALSE=
22720 # Only check for delegate libraries in subdirectories if requested.
22721 if test "$enable_delegate_build" != 'no'; then
22722 # Check for delegate sub-directories and add -I & -L options as required.
22723 # This presumes that delegates are installed as detailed in the ImageMagick
22724 # README. If delegates are installed in a standard location where the
22725 # compiler will automatically find them then these options should not be
22729 # Most delegates have includes in the same directory as the library, but not all...
22732 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22733 if test -d "$builddir/$dir"; then
22734 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22736 if test -d "$srcdirfull/$dir"; then
22737 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22743 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22744 if test -d "$builddir/$dir/.libs"; then
22745 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22747 if test -d "$srcdirfull/$dir/.libs"; then
22748 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22751 if test -d "$builddir/$dir"; then
22752 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22754 if test -d "$srcdirfull/$dir"; then
22755 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22761 # Assume that delegate headers reside under same directory as ImageMagick
22762 # installation prefix.
22763 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22766 # Find the X11 RGB database
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
22769 $as_echo_n "checking for X11 configure files... " >&6; }
22770 if test "${im_cv_x_configure+set}" = set; then :
22771 $as_echo_n "(cached) " >&6
22773 # Look for the header file in a standard set of common directories.
22774 # Check X11 before X11Rn because it is often a symlink to the current release.
22783 /usr/XFree86/lib/X11 \
22791 /usr/local/X11/lib \
22792 /usr/local/X11R4/lib \
22793 /usr/local/X11R5/lib \
22794 /usr/local/X11R6/lib \
22796 /usr/local/lib/X11 \
22797 /usr/local/lib/X11R4 \
22798 /usr/local/lib/X11R5 \
22799 /usr/local/lib/X11R6 \
22800 /usr/local/lib/X11R7 \
22801 /usr/local/x11r5/lib \
22802 /usr/lpp/Xamples/lib \
22804 /usr/openwin/share/lib \
22805 /usr/unsupported/lib \
22808 if test -f "$ac_dir/X11/rgb.txt"; then
22809 im_cv_x_configure="$ac_dir/X11/"
22811 elif test -f "$ac_dir/rgb.txt"; then
22812 im_cv_x_configure="$ac_dir/"
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
22819 $as_echo "$im_cv_x_configure" >&6; }
22820 X11_CONFIGURE_PATH="$im_cv_x_configure"
22821 case "${build_os}" in
22823 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22827 cat >>confdefs.h <<_ACEOF
22828 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
22833 # Find OpenMP library
22836 if test "$enable_openmp" != 'no'; then
22837 if test "${GCC}" = "yes"; then
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
22839 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
22840 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
22841 $as_echo_n "(cached) " >&6
22843 ac_check_lib_save_LIBS=$LIBS
22844 LIBS="-lgomp $LIBS"
22845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22846 /* end confdefs.h. */
22848 /* Override any GCC internal prototype to avoid an error.
22849 Use char because int might match the return type of a GCC
22850 builtin and then its argument prototype would still apply. */
22854 char GOMP_parallel_start ();
22858 return GOMP_parallel_start ();
22863 if ac_fn_c_try_link "$LINENO"; then :
22864 ac_cv_lib_gomp_GOMP_parallel_start=yes
22866 ac_cv_lib_gomp_GOMP_parallel_start=no
22868 rm -f core conftest.err conftest.$ac_objext \
22869 conftest$ac_exeext conftest.$ac_ext
22870 LIBS=$ac_check_lib_save_LIBS
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
22873 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
22874 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
22880 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
22881 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
22882 $as_echo_n "(cached) " >&6
22884 ac_check_lib_save_LIBS=$LIBS
22885 LIBS="-lmtsk $LIBS"
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22889 /* Override any GCC internal prototype to avoid an error.
22890 Use char because int might match the return type of a GCC
22891 builtin and then its argument prototype would still apply. */
22895 char sunw_mp_register_warn ();
22899 return sunw_mp_register_warn ();
22904 if ac_fn_c_try_link "$LINENO"; then :
22905 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22907 ac_cv_lib_mtsk_sunw_mp_register_warn=no
22909 rm -f core conftest.err conftest.$ac_objext \
22910 conftest$ac_exeext conftest.$ac_ext
22911 LIBS=$ac_check_lib_save_LIBS
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
22914 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
22915 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
22920 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
22921 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
22922 $as_echo_n "(cached) " >&6
22924 ac_check_lib_save_LIBS=$LIBS
22925 LIBS="-lxlsmp $LIBS"
22926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h. */
22929 /* Override any GCC internal prototype to avoid an error.
22930 Use char because int might match the return type of a GCC
22931 builtin and then its argument prototype would still apply. */
22935 char _xlsmpFlush ();
22939 return _xlsmpFlush ();
22944 if ac_fn_c_try_link "$LINENO"; then :
22945 ac_cv_lib_xlsmp__xlsmpFlush=yes
22947 ac_cv_lib_xlsmp__xlsmpFlush=no
22949 rm -f core conftest.err conftest.$ac_objext \
22950 conftest$ac_exeext conftest.$ac_ext
22951 LIBS=$ac_check_lib_save_LIBS
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
22954 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
22955 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
22956 GOMP_LIBS="-lxlsmp"
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
22960 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
22961 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
22962 $as_echo_n "(cached) " >&6
22964 ac_check_lib_save_LIBS=$LIBS
22966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22967 /* end confdefs.h. */
22969 /* Override any GCC internal prototype to avoid an error.
22970 Use char because int might match the return type of a GCC
22971 builtin and then its argument prototype would still apply. */
22975 char mp_destroy ();
22979 return mp_destroy ();
22984 if ac_fn_c_try_link "$LINENO"; then :
22985 ac_cv_lib_mp_mp_destroy=yes
22987 ac_cv_lib_mp_mp_destroy=no
22989 rm -f core conftest.err conftest.$ac_objext \
22990 conftest$ac_exeext conftest.$ac_ext
22991 LIBS=$ac_check_lib_save_LIBS
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
22994 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
22995 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
22998 # SGI IRIX 6.5 MIPSpro C/C++
23000 LIBS="$GOMP_LIBS $LIBS"
23005 # Find Posix threads library
23008 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23010 if test "x$PTHREAD_LIBS" = "x"; then
23011 case "${host_cpu}-${host_os}" in
23017 ac_cpp='$CPP $CPPFLAGS'
23018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23022 magick_pthread_lib_ok=no
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23029 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23031 /* end confdefs.h. */
23032 #include <pthread.h>
23037 pthread_join(th, 0);
23038 pthread_attr_init(0);
23039 pthread_cleanup_push(0, 0);
23040 pthread_create(0,0,0,0);
23041 pthread_cleanup_pop(0);
23046 if ac_fn_c_try_link "$LINENO"; then :
23047 magick_pthread_lib_ok=yes
23049 rm -f core conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23053 $as_echo "${magick_pthread_lib_ok}" >&6; }
23054 if test "$magick_pthread_lib_ok" = yes
23066 ac_cpp='$CPP $CPPFLAGS'
23067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23075 for lib in pthread pthreads; do
23076 if test "x$PTHREAD_LIBS" = "x"; then
23081 ac_cpp='$CPP $CPPFLAGS'
23082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23086 magick_pthread_lib_ok=no
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23093 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23096 #include <pthread.h>
23101 pthread_join(th, 0);
23102 pthread_attr_init(0);
23103 pthread_cleanup_push(0, 0);
23104 pthread_create(0,0,0,0);
23105 pthread_cleanup_pop(0);
23110 if ac_fn_c_try_link "$LINENO"; then :
23111 magick_pthread_lib_ok=yes
23113 rm -f core conftest.err conftest.$ac_objext \
23114 conftest$ac_exeext conftest.$ac_ext
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23117 $as_echo "${magick_pthread_lib_ok}" >&6; }
23118 if test "$magick_pthread_lib_ok" = yes
23120 PTHREAD_LIBS=-l$lib
23130 ac_cpp='$CPP $CPPFLAGS'
23131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23139 THREAD_LIBS="$PTHREAD_LIBS"
23140 LIBS="$LIBS $THREAD_LIBS"
23149 if test "$with_umem" != 'no'; then
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
23151 $as_echo_n "checking for UMEM support ... " >&6; }
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23156 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23157 if test "x$ac_cv_header_umem_h" = x""yes; then :
23158 passed=`expr $passed + 1`
23160 failed=`expr $failed + 1`
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
23165 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
23166 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
23167 $as_echo_n "(cached) " >&6
23169 ac_check_lib_save_LIBS=$LIBS
23170 LIBS="-lumem $LIBS"
23171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23172 /* end confdefs.h. */
23174 /* Override any GCC internal prototype to avoid an error.
23175 Use char because int might match the return type of a GCC
23176 builtin and then its argument prototype would still apply. */
23180 char umem_alloc ();
23184 return umem_alloc ();
23189 if ac_fn_c_try_link "$LINENO"; then :
23190 ac_cv_lib_umem_umem_alloc=yes
23192 ac_cv_lib_umem_umem_alloc=no
23194 rm -f core conftest.err conftest.$ac_objext \
23195 conftest$ac_exeext conftest.$ac_ext
23196 LIBS=$ac_check_lib_save_LIBS
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
23199 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
23200 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
23201 passed=`expr $passed + 1`
23203 failed=`expr $failed + 1`
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
23207 $as_echo_n "checking for umem_free in -lumem... " >&6; }
23208 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23211 ac_check_lib_save_LIBS=$LIBS
23212 LIBS="-lumem $LIBS"
23213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214 /* end confdefs.h. */
23216 /* Override any GCC internal prototype to avoid an error.
23217 Use char because int might match the return type of a GCC
23218 builtin and then its argument prototype would still apply. */
23226 return umem_free ();
23231 if ac_fn_c_try_link "$LINENO"; then :
23232 ac_cv_lib_umem_umem_free=yes
23234 ac_cv_lib_umem_umem_free=no
23236 rm -f core conftest.err conftest.$ac_objext \
23237 conftest$ac_exeext conftest.$ac_ext
23238 LIBS=$ac_check_lib_save_LIBS
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
23241 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
23242 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
23243 passed=`expr $passed + 1`
23245 failed=`expr $failed + 1`
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
23249 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23250 if test $passed -gt 0; then
23251 if test $failed -gt 0; then
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23253 $as_echo "no -- some components failed test" >&6; }
23254 have_umem='no (failed tests)'
23257 LIBS="$UMEM_LIBS $LIBS"
23259 $as_echo "#define HasUMEM 1" >>confdefs.h
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23262 $as_echo "yes" >&6; }
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23267 $as_echo "no" >&6; }
23270 if test "$have_umem" = 'yes'; then
23281 # Add support for ccmalloc memory debugging library if requested
23285 if test "$enable_ccmalloc" = 'yes'; then
23286 # Extract the first word of "ccmalloc", so it can be a program name with args.
23287 set dummy ccmalloc; ac_word=$2
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23289 $as_echo_n "checking for $ac_word... " >&6; }
23290 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23293 case $CCMALLOCDelegate in
23295 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23299 for as_dir in $PATH
23302 test -z "$as_dir" && as_dir=.
23303 for ac_exec_ext in '' $ac_executable_extensions; do
23304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23305 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
23306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23316 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23317 if test -n "$CCMALLOCDelegate"; then
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
23319 $as_echo "$CCMALLOCDelegate" >&6; }
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23322 $as_echo "no" >&6; }
23326 if test -n "$CCMALLOCDelegate"; then
23327 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23329 # Assume that gcc is used with ccmalloc.
23330 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
23332 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
23333 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
23334 $as_echo_n "(cached) " >&6
23336 ac_check_lib_save_LIBS=$LIBS
23337 LIBS="-lccmalloc -ldl $LIBS"
23338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23339 /* end confdefs.h. */
23341 /* Override any GCC internal prototype to avoid an error.
23342 Use char because int might match the return type of a GCC
23343 builtin and then its argument prototype would still apply. */
23347 char ccmalloc_malloc ();
23351 return ccmalloc_malloc ();
23356 if ac_fn_c_try_link "$LINENO"; then :
23357 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23359 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
23361 rm -f core conftest.err conftest.$ac_objext \
23362 conftest$ac_exeext conftest.$ac_ext
23363 LIBS=$ac_check_lib_save_LIBS
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
23366 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
23367 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
23368 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23371 if test -n "$CCMALLOC_LIBS"; then
23373 LIBS="$LIBS $CCMALLOC_LIBS"
23374 have_ccmalloc='yes'
23382 # Add support for efence memory debugging library if requested
23384 if test "$enable_efence" = 'yes'; then
23385 EFENCE_LIBS='-lefence'
23386 LIBS="$EFENCE_LIBS $LIBS"
23390 # Find math library
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23394 $as_echo_n "checking for sqrt in -lm... " >&6; }
23395 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23396 $as_echo_n "(cached) " >&6
23398 ac_check_lib_save_LIBS=$LIBS
23400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23401 /* end confdefs.h. */
23403 /* Override any GCC internal prototype to avoid an error.
23404 Use char because int might match the return type of a GCC
23405 builtin and then its argument prototype would still apply. */
23418 if ac_fn_c_try_link "$LINENO"; then :
23419 ac_cv_lib_m_sqrt=yes
23421 ac_cv_lib_m_sqrt=no
23423 rm -f core conftest.err conftest.$ac_objext \
23424 conftest$ac_exeext conftest.$ac_ext
23425 LIBS=$ac_check_lib_save_LIBS
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23428 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23429 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23433 LIBS="$MATH_LIBS $LIBS"
23442 # Check whether --with-bzlib was given.
23443 if test "${with_bzlib+set}" = set; then :
23444 withval=$with_bzlib; with_bzlib=$withval
23450 if test "$with_bzlib" != 'yes'; then
23451 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23455 if test "$with_bzlib" != 'no'; then
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
23458 $as_echo "-------------------------------------------------------------" >&6; }
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
23460 $as_echo_n "checking for BZLIB... " >&6; }
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23466 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23467 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
23468 passed=`expr $passed + 1`
23470 failed=`expr $failed + 1`
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
23475 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
23476 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
23477 $as_echo_n "(cached) " >&6
23479 ac_check_lib_save_LIBS=$LIBS
23481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482 /* end confdefs.h. */
23484 /* Override any GCC internal prototype to avoid an error.
23485 Use char because int might match the return type of a GCC
23486 builtin and then its argument prototype would still apply. */
23490 char BZ2_bzDecompress ();
23494 return BZ2_bzDecompress ();
23499 if ac_fn_c_try_link "$LINENO"; then :
23500 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23502 ac_cv_lib_bz2_BZ2_bzDecompress=no
23504 rm -f core conftest.err conftest.$ac_objext \
23505 conftest$ac_exeext conftest.$ac_ext
23506 LIBS=$ac_check_lib_save_LIBS
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
23509 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
23510 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
23511 found_libbz=`expr $found_libbz + 1`
23514 if test "$native_win32_build" = 'yes'; then
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
23516 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
23517 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
23518 $as_echo_n "(cached) " >&6
23520 ac_check_lib_save_LIBS=$LIBS
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h. */
23525 /* Override any GCC internal prototype to avoid an error.
23526 Use char because int might match the return type of a GCC
23527 builtin and then its argument prototype would still apply. */
23531 char _imp__BZ2_decompress ();
23535 return _imp__BZ2_decompress ();
23540 if ac_fn_c_try_link "$LINENO"; then :
23541 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23543 ac_cv_lib_bz2__imp__BZ2_decompress=no
23545 rm -f core conftest.err conftest.$ac_objext \
23546 conftest$ac_exeext conftest.$ac_ext
23547 LIBS=$ac_check_lib_save_LIBS
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
23550 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
23551 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
23552 found_libbz=`expr $found_libbz + 1`
23556 if test $found_libbz -gt 0; then
23557 passed=`expr $passed + 1`
23559 failed=`expr $failed + 1`
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
23562 $as_echo_n "checking if BZLIB package is complete... " >&6; }
23563 if test $passed -gt 0; then
23564 if test $failed -gt 0; then
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23566 $as_echo "no -- some components failed test" >&6; }
23567 have_bzlib='no (failed tests)'
23570 LIBS="$BZLIB_LIBS $LIBS"
23572 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23575 $as_echo "yes" >&6; }
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23580 $as_echo "no" >&6; }
23583 if test "$have_bzlib" = 'yes'; then
23584 BZLIB_DELEGATE_TRUE=
23585 BZLIB_DELEGATE_FALSE='#'
23587 BZLIB_DELEGATE_TRUE='#'
23588 BZLIB_DELEGATE_FALSE=
23594 # Find the X11 include and library directories.
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
23601 $as_echo_n "checking for X... " >&6; }
23604 # Check whether --with-x was given.
23605 if test "${with_x+set}" = set; then :
23609 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23610 if test "x$with_x" = xno; then
23611 # The user explicitly disabled X.
23614 case $x_includes,$x_libraries in #(
23615 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23616 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
23617 $as_echo_n "(cached) " >&6
23619 # One or both of the vars are not set, and there is no cached value.
23620 ac_x_includes=no ac_x_libraries=no
23621 rm -f -r conftest.dir
23622 if mkdir conftest.dir; then
23624 cat >Imakefile <<'_ACEOF'
23626 @echo incroot='${INCROOT}'
23628 @echo usrlibdir='${USRLIBDIR}'
23630 @echo libdir='${LIBDIR}'
23632 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23634 for ac_var in incroot usrlibdir libdir; do
23635 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23637 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23638 for ac_extension in a so sl dylib la dll; do
23639 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23640 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23641 ac_im_usrlibdir=$ac_im_libdir; break
23644 # Screen out bogus values from the imake configuration. They are
23645 # bogus both because they are the default anyway, and because
23646 # using them would break gcc on systems where it needs fixed includes.
23647 case $ac_im_incroot in
23648 /usr/include) ac_x_includes= ;;
23649 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23651 case $ac_im_usrlibdir in
23652 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23653 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23657 rm -f -r conftest.dir
23660 # Standard set of common directories for X headers.
23661 # Check X11 before X11Rn because it is often a symlink to the current release.
23675 /usr/local/X11/include
23676 /usr/local/X11R7/include
23677 /usr/local/X11R6/include
23678 /usr/local/X11R5/include
23679 /usr/local/X11R4/include
23681 /usr/local/include/X11
23682 /usr/local/include/X11R7
23683 /usr/local/include/X11R6
23684 /usr/local/include/X11R5
23685 /usr/local/include/X11R4
23689 /usr/XFree86/include/X11
23693 /usr/unsupported/include
23694 /usr/athena/include
23695 /usr/local/x11r5/include
23696 /usr/lpp/Xamples/include
23698 /usr/openwin/include
23699 /usr/openwin/share/include'
23701 if test "$ac_x_includes" = no; then
23702 # Guess where to find include files, by looking for Xlib.h.
23703 # First, try using that file with no special directory specified.
23704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23705 /* end confdefs.h. */
23706 #include <X11/Xlib.h>
23708 if ac_fn_c_try_cpp "$LINENO"; then :
23709 # We can compile using X headers with no special include directory.
23712 for ac_dir in $ac_x_header_dirs; do
23713 if test -r "$ac_dir/X11/Xlib.h"; then
23714 ac_x_includes=$ac_dir
23719 rm -f conftest.err conftest.$ac_ext
23720 fi # $ac_x_includes = no
23722 if test "$ac_x_libraries" = no; then
23723 # Check for the libraries.
23724 # See if we find them without any special options.
23725 # Don't add to $LIBS permanently.
23728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23729 /* end confdefs.h. */
23730 #include <X11/Xlib.h>
23739 if ac_fn_c_try_link "$LINENO"; then :
23741 # We can link X programs with no special library path.
23745 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23747 # Don't even attempt the hair of trying to link an X program!
23748 for ac_extension in a so sl dylib la dll; do
23749 if test -r "$ac_dir/libX11.$ac_extension"; then
23750 ac_x_libraries=$ac_dir
23756 rm -f core conftest.err conftest.$ac_objext \
23757 conftest$ac_exeext conftest.$ac_ext
23758 fi # $ac_x_libraries = no
23760 case $ac_x_includes,$ac_x_libraries in #(
23761 no,* | *,no | *\'*)
23762 # Didn't find X, or a directory has "'" in its name.
23763 ac_cv_have_x="have_x=no";; #(
23765 # Record where we found X for the cache.
23766 ac_cv_have_x="have_x=yes\
23767 ac_x_includes='$ac_x_includes'\
23768 ac_x_libraries='$ac_x_libraries'"
23774 eval "$ac_cv_have_x"
23777 if test "$have_x" != yes; then
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
23779 $as_echo "$have_x" >&6; }
23782 # If each of the values was on the command line, it overrides each guess.
23783 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23784 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23785 # Update the cache value to reflect the command line values.
23786 ac_cv_have_x="have_x=yes\
23787 ac_x_includes='$x_includes'\
23788 ac_x_libraries='$x_libraries'"
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
23790 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23793 if test "$no_x" = yes; then
23794 # Not all programs may use this symbol, but it does not hurt to define it.
23796 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
23798 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23800 if test -n "$x_includes"; then
23801 X_CFLAGS="$X_CFLAGS -I$x_includes"
23804 # It would also be nice to do this for all -L options, not just this one.
23805 if test -n "$x_libraries"; then
23806 X_LIBS="$X_LIBS -L$x_libraries"
23807 # For Solaris; some versions of Sun CC require a space after -R and
23808 # others require no space. Words are not sufficient . . . .
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
23810 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
23811 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23812 ac_xsave_c_werror_flag=$ac_c_werror_flag
23813 ac_c_werror_flag=yes
23814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815 /* end confdefs.h. */
23825 if ac_fn_c_try_link "$LINENO"; then :
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23827 $as_echo "no" >&6; }
23828 X_LIBS="$X_LIBS -R$x_libraries"
23830 LIBS="$ac_xsave_LIBS -R $x_libraries"
23831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23832 /* end confdefs.h. */
23842 if ac_fn_c_try_link "$LINENO"; then :
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23844 $as_echo "yes" >&6; }
23845 X_LIBS="$X_LIBS -R $x_libraries"
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
23848 $as_echo "neither works" >&6; }
23850 rm -f core conftest.err conftest.$ac_objext \
23851 conftest$ac_exeext conftest.$ac_ext
23853 rm -f core conftest.err conftest.$ac_objext \
23854 conftest$ac_exeext conftest.$ac_ext
23855 ac_c_werror_flag=$ac_xsave_c_werror_flag
23856 LIBS=$ac_xsave_LIBS
23859 # Check for system-dependent libraries X programs must link with.
23860 # Do this before checking for the system-independent R6 libraries
23861 # (-lICE), since we may need -lsocket or whatever for X linking.
23863 if test "$ISC" = yes; then
23864 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23866 # Martyn Johnson says this is needed for Ultrix, if the X
23867 # libraries were built with DECnet support. And Karl Berry says
23868 # the Alpha needs dnet_stub (dnet does not exist).
23869 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23871 /* end confdefs.h. */
23873 /* Override any GCC internal prototype to avoid an error.
23874 Use char because int might match the return type of a GCC
23875 builtin and then its argument prototype would still apply. */
23879 char XOpenDisplay ();
23883 return XOpenDisplay ();
23888 if ac_fn_c_try_link "$LINENO"; then :
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
23892 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
23893 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
23894 $as_echo_n "(cached) " >&6
23896 ac_check_lib_save_LIBS=$LIBS
23897 LIBS="-ldnet $LIBS"
23898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23899 /* end confdefs.h. */
23901 /* Override any GCC internal prototype to avoid an error.
23902 Use char because int might match the return type of a GCC
23903 builtin and then its argument prototype would still apply. */
23911 return dnet_ntoa ();
23916 if ac_fn_c_try_link "$LINENO"; then :
23917 ac_cv_lib_dnet_dnet_ntoa=yes
23919 ac_cv_lib_dnet_dnet_ntoa=no
23921 rm -f core conftest.err conftest.$ac_objext \
23922 conftest$ac_exeext conftest.$ac_ext
23923 LIBS=$ac_check_lib_save_LIBS
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23926 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23927 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
23928 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23931 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
23933 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
23934 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
23935 $as_echo_n "(cached) " >&6
23937 ac_check_lib_save_LIBS=$LIBS
23938 LIBS="-ldnet_stub $LIBS"
23939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23940 /* end confdefs.h. */
23942 /* Override any GCC internal prototype to avoid an error.
23943 Use char because int might match the return type of a GCC
23944 builtin and then its argument prototype would still apply. */
23952 return dnet_ntoa ();
23957 if ac_fn_c_try_link "$LINENO"; then :
23958 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23960 ac_cv_lib_dnet_stub_dnet_ntoa=no
23962 rm -f core conftest.err conftest.$ac_objext \
23963 conftest$ac_exeext conftest.$ac_ext
23964 LIBS=$ac_check_lib_save_LIBS
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23967 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23968 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
23969 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23974 rm -f core conftest.err conftest.$ac_objext \
23975 conftest$ac_exeext conftest.$ac_ext
23976 LIBS="$ac_xsave_LIBS"
23978 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23979 # to get the SysV transport functions.
23980 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23982 # The nsl library prevents programs from opening the X display
23983 # on Irix 5.2, according to T.E. Dickey.
23984 # The functions gethostbyname, getservbyname, and inet_addr are
23985 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23986 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23987 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
23991 if test $ac_cv_func_gethostbyname = no; then
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23993 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23994 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
23995 $as_echo_n "(cached) " >&6
23997 ac_check_lib_save_LIBS=$LIBS
23999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000 /* end confdefs.h. */
24002 /* Override any GCC internal prototype to avoid an error.
24003 Use char because int might match the return type of a GCC
24004 builtin and then its argument prototype would still apply. */
24008 char gethostbyname ();
24012 return gethostbyname ();
24017 if ac_fn_c_try_link "$LINENO"; then :
24018 ac_cv_lib_nsl_gethostbyname=yes
24020 ac_cv_lib_nsl_gethostbyname=no
24022 rm -f core conftest.err conftest.$ac_objext \
24023 conftest$ac_exeext conftest.$ac_ext
24024 LIBS=$ac_check_lib_save_LIBS
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24027 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24028 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24032 if test $ac_cv_lib_nsl_gethostbyname = no; then
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24034 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24035 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24036 $as_echo_n "(cached) " >&6
24038 ac_check_lib_save_LIBS=$LIBS
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h. */
24043 /* Override any GCC internal prototype to avoid an error.
24044 Use char because int might match the return type of a GCC
24045 builtin and then its argument prototype would still apply. */
24049 char gethostbyname ();
24053 return gethostbyname ();
24058 if ac_fn_c_try_link "$LINENO"; then :
24059 ac_cv_lib_bsd_gethostbyname=yes
24061 ac_cv_lib_bsd_gethostbyname=no
24063 rm -f core conftest.err conftest.$ac_objext \
24064 conftest$ac_exeext conftest.$ac_ext
24065 LIBS=$ac_check_lib_save_LIBS
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24068 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24069 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24070 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24076 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24077 # socket/setsockopt and other routines are undefined under SCO ODT
24078 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24079 # on later versions), says Simon Leinen: it contains gethostby*
24080 # variants that don't use the name server (or something). -lsocket
24081 # must be given before -lnsl if both are needed. We assume that
24082 # if connect needs -lnsl, so does gethostbyname.
24083 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24084 if test "x$ac_cv_func_connect" = x""yes; then :
24088 if test $ac_cv_func_connect = no; then
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24090 $as_echo_n "checking for connect in -lsocket... " >&6; }
24091 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24092 $as_echo_n "(cached) " >&6
24094 ac_check_lib_save_LIBS=$LIBS
24095 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24097 /* end confdefs.h. */
24099 /* Override any GCC internal prototype to avoid an error.
24100 Use char because int might match the return type of a GCC
24101 builtin and then its argument prototype would still apply. */
24114 if ac_fn_c_try_link "$LINENO"; then :
24115 ac_cv_lib_socket_connect=yes
24117 ac_cv_lib_socket_connect=no
24119 rm -f core conftest.err conftest.$ac_objext \
24120 conftest$ac_exeext conftest.$ac_ext
24121 LIBS=$ac_check_lib_save_LIBS
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24124 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24125 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24126 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24131 # Guillermo Gomez says -lposix is necessary on A/UX.
24132 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24133 if test "x$ac_cv_func_remove" = x""yes; then :
24137 if test $ac_cv_func_remove = no; then
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24139 $as_echo_n "checking for remove in -lposix... " >&6; }
24140 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24141 $as_echo_n "(cached) " >&6
24143 ac_check_lib_save_LIBS=$LIBS
24144 LIBS="-lposix $LIBS"
24145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146 /* end confdefs.h. */
24148 /* Override any GCC internal prototype to avoid an error.
24149 Use char because int might match the return type of a GCC
24150 builtin and then its argument prototype would still apply. */
24163 if ac_fn_c_try_link "$LINENO"; then :
24164 ac_cv_lib_posix_remove=yes
24166 ac_cv_lib_posix_remove=no
24168 rm -f core conftest.err conftest.$ac_objext \
24169 conftest$ac_exeext conftest.$ac_ext
24170 LIBS=$ac_check_lib_save_LIBS
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24173 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24174 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24180 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24181 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24182 if test "x$ac_cv_func_shmat" = x""yes; then :
24186 if test $ac_cv_func_shmat = no; then
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24188 $as_echo_n "checking for shmat in -lipc... " >&6; }
24189 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24190 $as_echo_n "(cached) " >&6
24192 ac_check_lib_save_LIBS=$LIBS
24194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24195 /* end confdefs.h. */
24197 /* Override any GCC internal prototype to avoid an error.
24198 Use char because int might match the return type of a GCC
24199 builtin and then its argument prototype would still apply. */
24212 if ac_fn_c_try_link "$LINENO"; then :
24213 ac_cv_lib_ipc_shmat=yes
24215 ac_cv_lib_ipc_shmat=no
24217 rm -f core conftest.err conftest.$ac_objext \
24218 conftest$ac_exeext conftest.$ac_ext
24219 LIBS=$ac_check_lib_save_LIBS
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24222 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24223 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24224 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24230 # Check for libraries that X11R6 Xt/Xaw programs need.
24231 ac_save_LDFLAGS=$LDFLAGS
24232 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24233 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24234 # check for ICE first), but we must link in the order -lSM -lICE or
24235 # we get undefined symbols. So assume we have SM if we have ICE.
24236 # These have to be linked with before -lX11, unlike the other
24237 # libraries we check for below, so use a different variable.
24238 # John Interrante, Karl Berry
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24240 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24241 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24242 $as_echo_n "(cached) " >&6
24244 ac_check_lib_save_LIBS=$LIBS
24245 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h. */
24249 /* Override any GCC internal prototype to avoid an error.
24250 Use char because int might match the return type of a GCC
24251 builtin and then its argument prototype would still apply. */
24255 char IceConnectionNumber ();
24259 return IceConnectionNumber ();
24264 if ac_fn_c_try_link "$LINENO"; then :
24265 ac_cv_lib_ICE_IceConnectionNumber=yes
24267 ac_cv_lib_ICE_IceConnectionNumber=no
24269 rm -f core conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
24271 LIBS=$ac_check_lib_save_LIBS
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24274 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24275 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24276 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24279 LDFLAGS=$ac_save_LDFLAGS
24283 if test "$no_x" != 'yes'; then
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24285 $as_echo "-------------------------------------------------------------" >&6; }
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
24287 $as_echo_n "checking for X11... " >&6; }
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24290 LDFLAGS="$LDFLAGS $X_LIBS"
24291 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24292 LIBS="$X11_LIBS $LIBS"
24293 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24296 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
24299 # Check for X11 shared memory extension
24301 # shmctl is required to support the shared memory extension
24302 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24303 if test "x$ac_cv_func_shmctl" = x""yes; then :
24307 if test "$have_shmctl" != 'yes'; then
24309 LIBS="$LIBS -lcygipc"
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h. */
24313 /* Override any GCC internal prototype to avoid an error.
24314 Use char because int might match the return type of a GCC
24315 builtin and then its argument prototype would still apply. */
24328 if ac_fn_c_try_link "$LINENO"; then :
24329 have_shmctl='yes'; IPC_LIBS='-lcygipc'
24331 rm -f core conftest.err conftest.$ac_objext \
24332 conftest$ac_exeext conftest.$ac_ext
24336 if test "$have_shmctl" = 'yes'; then
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
24338 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
24339 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24342 ac_check_lib_save_LIBS=$LIBS
24343 LIBS="-lXext $LIBS"
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h. */
24347 /* Override any GCC internal prototype to avoid an error.
24348 Use char because int might match the return type of a GCC
24349 builtin and then its argument prototype would still apply. */
24353 char XShmAttach ();
24357 return XShmAttach ();
24362 if ac_fn_c_try_link "$LINENO"; then :
24363 ac_cv_lib_Xext_XShmAttach=yes
24365 ac_cv_lib_Xext_XShmAttach=no
24367 rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24369 LIBS=$ac_check_lib_save_LIBS
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
24372 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
24373 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
24374 XEXT_LIBS='-lXext' ;
24375 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
24382 # Check for X11 shape extension
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
24385 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
24386 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
24387 $as_echo_n "(cached) " >&6
24389 ac_check_lib_save_LIBS=$LIBS
24390 LIBS="-lXext $LIBS"
24391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24392 /* end confdefs.h. */
24394 /* Override any GCC internal prototype to avoid an error.
24395 Use char because int might match the return type of a GCC
24396 builtin and then its argument prototype would still apply. */
24400 char XShapeCombineMask ();
24404 return XShapeCombineMask ();
24409 if ac_fn_c_try_link "$LINENO"; then :
24410 ac_cv_lib_Xext_XShapeCombineMask=yes
24412 ac_cv_lib_Xext_XShapeCombineMask=no
24414 rm -f core conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
24416 LIBS=$ac_check_lib_save_LIBS
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
24419 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
24420 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
24421 XEXT_LIBS='-lXext' ;
24422 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
24427 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
24428 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
24429 $as_echo_n "(cached) " >&6
24431 ac_check_lib_save_LIBS=$LIBS
24433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24434 /* end confdefs.h. */
24436 /* Override any GCC internal prototype to avoid an error.
24437 Use char because int might match the return type of a GCC
24438 builtin and then its argument prototype would still apply. */
24442 char XtSetEventDispatcher ();
24446 return XtSetEventDispatcher ();
24451 if ac_fn_c_try_link "$LINENO"; then :
24452 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24454 ac_cv_lib_Xt_XtSetEventDispatcher=no
24456 rm -f core conftest.err conftest.$ac_objext \
24457 conftest$ac_exeext conftest.$ac_ext
24458 LIBS=$ac_check_lib_save_LIBS
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
24461 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
24462 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
24466 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24468 if test "$no_x" != 'yes'; then
24473 if test "$have_x" = 'yes'; then
24475 X11_DELEGATE_FALSE='#'
24477 X11_DELEGATE_TRUE='#'
24478 X11_DELEGATE_FALSE=
24489 # Check whether --with-zlib was given.
24490 if test "${with_zlib+set}" = set; then :
24491 withval=$with_zlib; with_zlib=$withval
24497 if test "$with_zlib" != 'yes'; then
24498 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24503 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24505 $as_echo "-------------------------------------------------------------" >&6; }
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
24507 $as_echo_n "checking for ZLIB... " >&6; }
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24513 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24514 if test "x$ac_cv_header_zconf_h" = x""yes; then :
24515 passed=`expr $passed + 1`
24517 failed=`expr $failed + 1`
24521 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24522 if test "x$ac_cv_header_zlib_h" = x""yes; then :
24523 passed=`expr $passed + 1`
24525 failed=`expr $failed + 1`
24529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
24530 $as_echo_n "checking for compress in -lz... " >&6; }
24531 if test "${ac_cv_lib_z_compress+set}" = set; then :
24532 $as_echo_n "(cached) " >&6
24534 ac_check_lib_save_LIBS=$LIBS
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h. */
24539 /* Override any GCC internal prototype to avoid an error.
24540 Use char because int might match the return type of a GCC
24541 builtin and then its argument prototype would still apply. */
24549 return compress ();
24554 if ac_fn_c_try_link "$LINENO"; then :
24555 ac_cv_lib_z_compress=yes
24557 ac_cv_lib_z_compress=no
24559 rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
24561 LIBS=$ac_check_lib_save_LIBS
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
24564 $as_echo "$ac_cv_lib_z_compress" >&6; }
24565 if test "x$ac_cv_lib_z_compress" = x""yes; then :
24566 passed=`expr $passed + 1`
24568 failed=`expr $failed + 1`
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24572 $as_echo_n "checking for uncompress in -lz... " >&6; }
24573 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24574 $as_echo_n "(cached) " >&6
24576 ac_check_lib_save_LIBS=$LIBS
24578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24579 /* end confdefs.h. */
24581 /* Override any GCC internal prototype to avoid an error.
24582 Use char because int might match the return type of a GCC
24583 builtin and then its argument prototype would still apply. */
24587 char uncompress ();
24591 return uncompress ();
24596 if ac_fn_c_try_link "$LINENO"; then :
24597 ac_cv_lib_z_uncompress=yes
24599 ac_cv_lib_z_uncompress=no
24601 rm -f core conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
24603 LIBS=$ac_check_lib_save_LIBS
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24606 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24607 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
24608 passed=`expr $passed + 1`
24610 failed=`expr $failed + 1`
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
24614 $as_echo_n "checking for deflate in -lz... " >&6; }
24615 if test "${ac_cv_lib_z_deflate+set}" = set; then :
24616 $as_echo_n "(cached) " >&6
24618 ac_check_lib_save_LIBS=$LIBS
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h. */
24623 /* Override any GCC internal prototype to avoid an error.
24624 Use char because int might match the return type of a GCC
24625 builtin and then its argument prototype would still apply. */
24638 if ac_fn_c_try_link "$LINENO"; then :
24639 ac_cv_lib_z_deflate=yes
24641 ac_cv_lib_z_deflate=no
24643 rm -f core conftest.err conftest.$ac_objext \
24644 conftest$ac_exeext conftest.$ac_ext
24645 LIBS=$ac_check_lib_save_LIBS
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
24648 $as_echo "$ac_cv_lib_z_deflate" >&6; }
24649 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
24650 passed=`expr $passed + 1`
24652 failed=`expr $failed + 1`
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
24656 $as_echo_n "checking for inflate in -lz... " >&6; }
24657 if test "${ac_cv_lib_z_inflate+set}" = set; then :
24658 $as_echo_n "(cached) " >&6
24660 ac_check_lib_save_LIBS=$LIBS
24662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24663 /* end confdefs.h. */
24665 /* Override any GCC internal prototype to avoid an error.
24666 Use char because int might match the return type of a GCC
24667 builtin and then its argument prototype would still apply. */
24680 if ac_fn_c_try_link "$LINENO"; then :
24681 ac_cv_lib_z_inflate=yes
24683 ac_cv_lib_z_inflate=no
24685 rm -f core conftest.err conftest.$ac_objext \
24686 conftest$ac_exeext conftest.$ac_ext
24687 LIBS=$ac_check_lib_save_LIBS
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
24690 $as_echo "$ac_cv_lib_z_inflate" >&6; }
24691 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
24692 passed=`expr $passed + 1`
24694 failed=`expr $failed + 1`
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
24698 $as_echo_n "checking for gzseek in -lz... " >&6; }
24699 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
24700 $as_echo_n "(cached) " >&6
24702 ac_check_lib_save_LIBS=$LIBS
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h. */
24707 /* Override any GCC internal prototype to avoid an error.
24708 Use char because int might match the return type of a GCC
24709 builtin and then its argument prototype would still apply. */
24722 if ac_fn_c_try_link "$LINENO"; then :
24723 ac_cv_lib_z_gzseek=yes
24725 ac_cv_lib_z_gzseek=no
24727 rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24729 LIBS=$ac_check_lib_save_LIBS
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
24732 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
24733 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
24734 passed=`expr $passed + 1`
24736 failed=`expr $failed + 1`
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
24740 $as_echo_n "checking for gztell in -lz... " >&6; }
24741 if test "${ac_cv_lib_z_gztell+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24744 ac_check_lib_save_LIBS=$LIBS
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h. */
24749 /* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24764 if ac_fn_c_try_link "$LINENO"; then :
24765 ac_cv_lib_z_gztell=yes
24767 ac_cv_lib_z_gztell=no
24769 rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
24771 LIBS=$ac_check_lib_save_LIBS
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
24774 $as_echo "$ac_cv_lib_z_gztell" >&6; }
24775 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
24776 passed=`expr $passed + 1`
24778 failed=`expr $failed + 1`
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
24782 $as_echo_n "checking if ZLIB package is complete... " >&6; }
24783 if test $passed -gt 0; then
24784 if test $failed -gt 0; then
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24786 $as_echo "no -- some components failed test" >&6; }
24787 have_zlib='no (failed tests)'
24790 LIBS="$ZLIB_LIBS $LIBS"
24792 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24795 $as_echo "yes" >&6; }
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24800 $as_echo "no" >&6; }
24803 if test "$have_zlib" = 'yes'; then
24804 ZLIB_DELEGATE_TRUE=
24805 ZLIB_DELEGATE_FALSE='#'
24807 ZLIB_DELEGATE_TRUE='#'
24808 ZLIB_DELEGATE_FALSE=
24814 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24817 if test "$enable_profiling" = 'yes'; then
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24820 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24823 ac_check_lib_save_LIBS=$LIBS
24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h. */
24828 /* Override any GCC internal prototype to avoid an error.
24829 Use char because int might match the return type of a GCC
24830 builtin and then its argument prototype would still apply. */
24843 if ac_fn_c_try_link "$LINENO"; then :
24844 ac_cv_lib_dl_dlopen=yes
24846 ac_cv_lib_dl_dlopen=no
24848 rm -f core conftest.err conftest.$ac_objext \
24849 conftest$ac_exeext conftest.$ac_ext
24850 LIBS=$ac_check_lib_save_LIBS
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24854 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
24858 LIBS="$LIB_DL $LIBS"
24864 # Check for Autotrace delegate library.
24867 # Check whether --with-autotrace was given.
24868 if test "${with_autotrace+set}" = set; then :
24869 withval=$with_autotrace; with_autotrace=$withval
24871 with_autotrace='no'
24875 if test "$with_autotrace" != 'yes'; then
24876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24879 have_autotrace='no'
24880 AUTOTRACE_CFLAGS=""
24883 if test "x$with_autotrace" = "xyes"; then
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24885 $as_echo "-------------------------------------------------------------" >&6; }
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
24889 $as_echo_n "checking for AUTOTRACE... " >&6; }
24891 if test -n "$AUTOTRACE_CFLAGS"; then
24892 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24893 elif test -n "$PKG_CONFIG"; then
24894 if test -n "$PKG_CONFIG" && \
24895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24896 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899 test $ac_status = 0; }; then
24900 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24907 if test -n "$AUTOTRACE_LIBS"; then
24908 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24909 elif test -n "$PKG_CONFIG"; then
24910 if test -n "$PKG_CONFIG" && \
24911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24912 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24915 test $ac_status = 0; }; then
24916 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24926 if test $pkg_failed = yes; then
24928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24929 _pkg_short_errors_supported=yes
24931 _pkg_short_errors_supported=no
24933 if test $_pkg_short_errors_supported = yes; then
24934 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24936 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24938 # Put the nasty error message in config.log where it belongs
24939 echo "$AUTOTRACE_PKG_ERRORS" >&5
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24942 $as_echo "no" >&6; }
24944 elif test $pkg_failed = untried; then
24947 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24948 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24950 $as_echo "yes" >&6; }
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24957 if test "$have_autotrace" = 'yes'; then
24960 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
24962 if test "$with_modules" = 'no'; then
24963 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24967 if test "$have_autotrace" = 'yes'; then
24968 AUTOTRACE_DELEGATE_TRUE=
24969 AUTOTRACE_DELEGATE_FALSE='#'
24971 AUTOTRACE_DELEGATE_TRUE='#'
24972 AUTOTRACE_DELEGATE_FALSE=
24980 # Check for Display Postscript delegate library.
24983 # Check whether --with-dps was given.
24984 if test "${with_dps+set}" = set; then :
24985 withval=$with_dps; with_dps=$withval
24991 if test "$with_dps" != 'yes'; then
24992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24997 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24999 $as_echo "-------------------------------------------------------------" >&6; }
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
25001 $as_echo_n "checking for DPS... " >&6; }
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25006 PERSIST_CPPFLAGS="$CPPFLAGS"
25007 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
25008 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25009 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
25010 passed=`expr $passed + 1`
25012 failed=`expr $failed + 1`
25017 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25018 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25019 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25020 # ImageMagick itself doesn't use -lXt.
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25024 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25025 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25026 $as_echo_n "(cached) " >&6
25028 ac_check_lib_save_LIBS=$LIBS
25030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25031 /* end confdefs.h. */
25033 /* Override any GCC internal prototype to avoid an error.
25034 Use char because int might match the return type of a GCC
25035 builtin and then its argument prototype would still apply. */
25039 char DPSInitialize ();
25043 return DPSInitialize ();
25048 if ac_fn_c_try_link "$LINENO"; then :
25049 ac_cv_lib_dps_DPSInitialize=yes
25051 ac_cv_lib_dps_DPSInitialize=no
25053 rm -f core conftest.err conftest.$ac_objext \
25054 conftest$ac_exeext conftest.$ac_ext
25055 LIBS=$ac_check_lib_save_LIBS
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25058 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25059 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25065 if test "$have_libdps" != 'yes'; then
25066 # Unset cache variable so we can try again.
25067 unset ac_cv_lib_dps_DPSInitialize
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25069 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25070 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25071 $as_echo_n "(cached) " >&6
25073 ac_check_lib_save_LIBS=$LIBS
25074 LIBS="-ldps -lXt $LIBS"
25075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25076 /* end confdefs.h. */
25078 /* Override any GCC internal prototype to avoid an error.
25079 Use char because int might match the return type of a GCC
25080 builtin and then its argument prototype would still apply. */
25084 char DPSInitialize ();
25088 return DPSInitialize ();
25093 if ac_fn_c_try_link "$LINENO"; then :
25094 ac_cv_lib_dps_DPSInitialize=yes
25096 ac_cv_lib_dps_DPSInitialize=no
25098 rm -f core conftest.err conftest.$ac_objext \
25099 conftest$ac_exeext conftest.$ac_ext
25100 LIBS=$ac_check_lib_save_LIBS
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25103 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25104 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25110 if test "$have_libdps" = 'yes'; then
25114 if test "$have_libdps" = 'yes'; then
25115 passed=`expr $passed + 1`
25117 failed=`expr $failed + 1`
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
25120 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
25121 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
25122 $as_echo_n "(cached) " >&6
25124 ac_check_lib_save_LIBS=$LIBS
25125 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
25126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25127 /* end confdefs.h. */
25129 /* Override any GCC internal prototype to avoid an error.
25130 Use char because int might match the return type of a GCC
25131 builtin and then its argument prototype would still apply. */
25135 char XDPSPixelsPerPoint ();
25139 return XDPSPixelsPerPoint ();
25144 if ac_fn_c_try_link "$LINENO"; then :
25145 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25147 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
25149 rm -f core conftest.err conftest.$ac_objext \
25150 conftest$ac_exeext conftest.$ac_ext
25151 LIBS=$ac_check_lib_save_LIBS
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
25154 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
25155 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
25156 passed=`expr $passed + 1`
25158 failed=`expr $failed + 1`
25161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
25162 $as_echo_n "checking if DPS package is complete... " >&6; }
25163 if test $passed -gt 0; then
25164 if test $failed -gt 0; then
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25166 $as_echo "no -- some components failed test" >&6; }
25167 have_dps='no (failed tests)'
25168 CPPFLAGS="$PERSIST_CPPFLAGS"
25170 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25171 LIBS="$DPS_LIBS $LIBS"
25173 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25176 $as_echo "yes" >&6; }
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25181 $as_echo "no" >&6; }
25182 CPPFLAGS=$PERSIST_CPPFLAGS
25185 if test "$have_dps" = 'yes'; then
25187 DPS_DELEGATE_FALSE='#'
25189 DPS_DELEGATE_TRUE='#'
25190 DPS_DELEGATE_FALSE=
25197 # Check for DJVU delegate library.
25200 # Check whether --with-djvu was given.
25201 if test "${with_djvu+set}" = set; then :
25202 withval=$with_djvu; with_djvu=$withval
25208 if test "$with_djvu" != 'yes'; then
25209 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25214 if test "$with_djvu" != 'no'; then
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25216 $as_echo "-------------------------------------------------------------" >&6; }
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
25218 $as_echo_n "checking for DJVU... " >&6; }
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25223 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25224 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
25225 passed=`expr $passed + 1`
25227 failed=`expr $failed + 1`
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
25232 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
25233 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
25234 $as_echo_n "(cached) " >&6
25236 ac_check_lib_save_LIBS=$LIBS
25237 LIBS="-ldjvulibre $LIBS"
25238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25239 /* end confdefs.h. */
25241 /* Override any GCC internal prototype to avoid an error.
25242 Use char because int might match the return type of a GCC
25243 builtin and then its argument prototype would still apply. */
25247 char ddjvu_context_create ();
25251 return ddjvu_context_create ();
25256 if ac_fn_c_try_link "$LINENO"; then :
25257 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25259 ac_cv_lib_djvulibre_ddjvu_context_create=no
25261 rm -f core conftest.err conftest.$ac_objext \
25262 conftest$ac_exeext conftest.$ac_ext
25263 LIBS=$ac_check_lib_save_LIBS
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
25266 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
25267 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
25268 passed=`expr $passed + 1`
25270 failed=`expr $failed + 1`
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
25274 $as_echo_n "checking if DJVU package is complete... " >&6; }
25275 if test $passed -gt 0; then
25276 if test $failed -gt 0; then
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25278 $as_echo "no -- some components failed test" >&6; }
25279 have_djvu='no (failed tests)'
25281 DJVU_LIBS='-ldjvulibre'
25282 LIBS="$DJVU_LIBS $LIBS"
25284 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25287 $as_echo "yes" >&6; }
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25292 $as_echo "no" >&6; }
25295 if test "$have_djvu" = 'yes'; then
25296 DJVU_DELEGATE_TRUE=
25297 DJVU_DELEGATE_FALSE='#'
25299 DJVU_DELEGATE_TRUE='#'
25300 DJVU_DELEGATE_FALSE=
25307 # Check for FFTW delegate library.
25310 # Check whether --with-fftw was given.
25311 if test "${with_fftw+set}" = set; then :
25312 withval=$with_fftw; with_fftw=$withval
25318 if test "$with_fftw" != 'yes'; then
25319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25324 if test "$with_fftw" != 'no'; then
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25326 $as_echo "-------------------------------------------------------------" >&6; }
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
25328 $as_echo_n "checking for FFTW... " >&6; }
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25333 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25334 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
25335 passed=`expr $passed + 1`
25337 failed=`expr $failed + 1`
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
25342 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
25343 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25346 ac_check_lib_save_LIBS=$LIBS
25347 LIBS="-lfftw3 $LIBS"
25348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25349 /* end confdefs.h. */
25351 /* Override any GCC internal prototype to avoid an error.
25352 Use char because int might match the return type of a GCC
25353 builtin and then its argument prototype would still apply. */
25357 char fftw_execute ();
25361 return fftw_execute ();
25366 if ac_fn_c_try_link "$LINENO"; then :
25367 ac_cv_lib_fftw3_fftw_execute=yes
25369 ac_cv_lib_fftw3_fftw_execute=no
25371 rm -f core conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
25373 LIBS=$ac_check_lib_save_LIBS
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
25376 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
25377 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
25378 passed=`expr $passed + 1`
25380 failed=`expr $failed + 1`
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
25384 $as_echo_n "checking if FFTW package is complete... " >&6; }
25385 if test $passed -gt 0; then
25386 if test $failed -gt 0; then
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25388 $as_echo "no -- some components failed test" >&6; }
25389 have_fftw='no (failed tests)'
25391 FFTW_LIBS='-lfftw3'
25392 LIBS="$FFTW_LIBS $LIBS"
25394 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25397 $as_echo "yes" >&6; }
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25402 $as_echo "no" >&6; }
25405 if test "$have_fftw" = 'yes'; then
25406 FFTW_DELEGATE_TRUE=
25407 FFTW_DELEGATE_FALSE='#'
25409 FFTW_DELEGATE_TRUE='#'
25410 FFTW_DELEGATE_FALSE=
25417 # Check for FlashPIX delegate library.
25420 # Check whether --with-fpx was given.
25421 if test "${with_fpx+set}" = set; then :
25422 withval=$with_fpx; with_fpx=$withval
25428 if test "$with_fpx" != 'yes'; then
25429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25434 if test "$with_fpx" != 'no'; then
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25436 $as_echo "-------------------------------------------------------------" >&6; }
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
25438 $as_echo_n "checking for FlashPIX... " >&6; }
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25444 ac_cpp='$CXXCPP $CPPFLAGS'
25445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25450 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25451 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
25452 passed=`expr $passed + 1`
25454 failed=`expr $failed + 1`
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
25459 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
25460 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
25461 $as_echo_n "(cached) " >&6
25463 ac_check_lib_save_LIBS=$LIBS
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h. */
25468 /* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25474 char FPX_OpenImageByFilename ();
25478 return FPX_OpenImageByFilename ();
25483 if ac_fn_cxx_try_link "$LINENO"; then :
25484 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25486 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
25488 rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
25490 LIBS=$ac_check_lib_save_LIBS
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
25493 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
25494 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
25495 passed=`expr $passed + 1`
25497 failed=`expr $failed + 1`
25501 ac_cpp='$CPP $CPPFLAGS'
25502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
25507 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
25508 if test $passed -gt 0; then
25509 if test $failed -gt 0; then
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25511 $as_echo "no -- some components failed test" >&6; }
25512 have_fpx='no (failed tests)'
25516 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25519 $as_echo "yes" >&6; }
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25525 $as_echo "no" >&6; }
25528 if test "$have_fpx" = 'yes'; then
25530 FPX_DELEGATE_FALSE='#'
25532 FPX_DELEGATE_TRUE='#'
25533 FPX_DELEGATE_FALSE=
25540 # Check for fontconfig delegate library.
25543 # Check whether --with-fontconfig was given.
25544 if test "${with_fontconfig+set}" = set; then :
25545 withval=$with_fontconfig; with_fontconfig=$withval
25547 with_fontconfig=$have_x
25551 if test "$with_fontconfig" != 'yes'; then
25552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25555 have_fontconfig='no'
25556 FONTCONFIG_CFLAGS=""
25559 if test "x$with_fontconfig" = "xyes"; then
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25561 $as_echo "-------------------------------------------------------------" >&6; }
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
25565 $as_echo_n "checking for FONTCONFIG... " >&6; }
25567 if test -n "$FONTCONFIG_CFLAGS"; then
25568 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25569 elif test -n "$PKG_CONFIG"; then
25570 if test -n "$PKG_CONFIG" && \
25571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25572 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; then
25576 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25583 if test -n "$FONTCONFIG_LIBS"; then
25584 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25585 elif test -n "$PKG_CONFIG"; then
25586 if test -n "$PKG_CONFIG" && \
25587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25588 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; then
25592 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25602 if test $pkg_failed = yes; then
25604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25605 _pkg_short_errors_supported=yes
25607 _pkg_short_errors_supported=no
25609 if test $_pkg_short_errors_supported = yes; then
25610 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25612 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25614 # Put the nasty error message in config.log where it belongs
25615 echo "$FONTCONFIG_PKG_ERRORS" >&5
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25618 $as_echo "no" >&6; }
25620 elif test $pkg_failed = untried; then
25623 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25624 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25626 $as_echo "yes" >&6; }
25627 have_fontconfig=yes
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25633 if test "$have_fontconfig" = 'yes'; then
25635 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
25637 if test "$with_modules" = 'no'; then
25638 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25642 if test "$have_fontconfig" = 'yes'; then
25643 FONTCONFIG_DELEGATE_TRUE=
25644 FONTCONFIG_DELEGATE_FALSE='#'
25646 FONTCONFIG_DELEGATE_TRUE='#'
25647 FONTCONFIG_DELEGATE_FALSE=
25655 # Check for freetype delegate library.
25658 # Check whether --with-freetype was given.
25659 if test "${with_freetype+set}" = set; then :
25660 withval=$with_freetype; with_freetype=$withval
25662 with_freetype='yes'
25667 if test "$with_freetype" != 'yes'; then
25668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25673 if test "$with_freetype" != 'no'; then
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25675 $as_echo "-------------------------------------------------------------" >&6; }
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
25677 $as_echo_n "checking for FreeType 2.0... " >&6; }
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25682 PERSIST_LIBS="$LIBS"
25683 PERSIST_CPPFLAGS="$CPPFLAGS"
25684 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25688 for ac_prog in freetype-config
25690 # Extract the first word of "$ac_prog", so it can be a program name with args.
25691 set dummy $ac_prog; ac_word=$2
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25693 $as_echo_n "checking for $ac_word... " >&6; }
25694 if test "${ac_cv_prog_freetype_config+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25697 if test -n "$freetype_config"; then
25698 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25701 for as_dir in $PATH
25704 test -z "$as_dir" && as_dir=.
25705 for ac_exec_ext in '' $ac_executable_extensions; do
25706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25707 ac_cv_prog_freetype_config="$ac_prog"
25708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25717 freetype_config=$ac_cv_prog_freetype_config
25718 if test -n "$freetype_config"; then
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
25720 $as_echo "$freetype_config" >&6; }
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25723 $as_echo "no" >&6; }
25727 test -n "$freetype_config" && break
25729 if test -n "$freetype_config"; then
25730 freetype_cflags=`$freetype_config --cflags`
25731 freetype_libs=`$freetype_config --libs`
25732 LIBS="$LIBS $freetype_libs"
25733 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25737 if test "$FREETYPE_LIBS" = ''; then
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
25739 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
25740 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25743 ac_check_lib_save_LIBS=$LIBS
25744 LIBS="-lfreetype $LIBS"
25745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25746 /* end confdefs.h. */
25748 /* Override any GCC internal prototype to avoid an error.
25749 Use char because int might match the return type of a GCC
25750 builtin and then its argument prototype would still apply. */
25754 char FT_Init_FreeType ();
25758 return FT_Init_FreeType ();
25763 if ac_fn_c_try_link "$LINENO"; then :
25764 ac_cv_lib_freetype_FT_Init_FreeType=yes
25766 ac_cv_lib_freetype_FT_Init_FreeType=no
25768 rm -f core conftest.err conftest.$ac_objext \
25769 conftest$ac_exeext conftest.$ac_ext
25770 LIBS=$ac_check_lib_save_LIBS
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
25773 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
25774 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
25775 FREETYPE_LIBS='-lfreetype'
25778 if test "$FREETYPE_LIBS" != ''; then
25779 passed=`expr $passed + 1`
25781 failed=`expr $failed + 1`
25782 LIBS="$PERSIST_LIBS"
25786 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25787 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
25788 FT2BUILD_H='#include <ft2build.h>'
25794 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25796 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
25797 have_freetype_h='yes'
25799 have_freetype_h='no'
25803 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25804 passed=`expr $passed + 1`
25806 failed=`expr $failed + 1`
25807 CPPFLAGS="$PERSIST_CPPFLAGS"
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
25811 $as_echo_n "checking if FreeType package is complete... " >&6; }
25812 if test $passed -gt 0; then
25813 if test $failed -gt 0; then
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25816 $as_echo "no -- some components failed test" >&6; }
25817 have_freetype='no (failed tests)'
25819 LIBS="$FREETYPE_LIBS $LIBS"
25821 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
25823 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25825 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25829 $as_echo "yes" >&6; }
25830 have_freetype='yes'
25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25834 $as_echo "no" >&6; }
25837 if test "$have_freetype" = 'yes'; then
25838 FREETYPE_DELEGATE_TRUE=
25839 FREETYPE_DELEGATE_FALSE='#'
25841 FREETYPE_DELEGATE_TRUE='#'
25842 FREETYPE_DELEGATE_FALSE=
25850 # Check for Ghostscript library or framework.
25852 # Test for iapi.h & test for gsapi_new_instance in -lgs
25853 # or -framework Ghostscript
25856 # Check whether --with-gslib was given.
25857 if test "${with_gslib+set}" = set; then :
25858 withval=$with_gslib; with_gslib=$withval
25864 gslib_framework='no'
25865 if test "$with_gslib" != 'yes'; then
25866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25871 if test "$with_gslib" != 'no'; then
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25873 $as_echo "-------------------------------------------------------------" >&6; }
25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
25875 $as_echo_n "checking for Ghostscript... " >&6; }
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25881 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25882 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
25883 passed=`expr $passed + 1`
25885 failed=`expr $failed + 1`
25889 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25890 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
25891 passed=`expr $passed + 1`
25893 failed=`expr $failed + 1`
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
25898 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
25899 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
25900 $as_echo_n "(cached) " >&6
25902 ac_check_framework_save_LIBS=$LIBS
25903 LIBS="-framework Ghostscript $LIBS"
25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25905 /* end confdefs.h. */
25907 /* Override any GCC internal prototype to avoid an error.
25908 Use char because int might match the return type of a GCC
25909 builtin and then its argument prototype would still apply. */
25913 char gsapi_new_instance ();
25917 return gsapi_new_instance ();
25922 if ac_fn_c_try_link "$LINENO"; then :
25923 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25925 ac_cv_framework_Ghostscript_gsapi_new_instance=no
25927 rm -f core conftest.err conftest.$ac_objext \
25928 conftest$ac_exeext conftest.$ac_ext
25929 LIBS=$ac_check_framework_save_LIBS
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
25932 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
25933 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
25934 framework=`expr $framework + 1`
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
25937 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
25938 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
25939 $as_echo_n "(cached) " >&6
25941 ac_check_lib_save_LIBS=$LIBS
25943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h. */
25946 /* Override any GCC internal prototype to avoid an error.
25947 Use char because int might match the return type of a GCC
25948 builtin and then its argument prototype would still apply. */
25952 char gsapi_new_instance ();
25956 return gsapi_new_instance ();
25961 if ac_fn_c_try_link "$LINENO"; then :
25962 ac_cv_lib_gs_gsapi_new_instance=yes
25964 ac_cv_lib_gs_gsapi_new_instance=no
25966 rm -f core conftest.err conftest.$ac_objext \
25967 conftest$ac_exeext conftest.$ac_ext
25968 LIBS=$ac_check_lib_save_LIBS
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
25971 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
25972 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
25973 passed=`expr $passed + 1`
25975 failed=`expr $failed + 1`
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
25980 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
25981 if test $passed -gt 0; then
25982 if test $failed -gt 0; then
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25984 $as_echo "no -- some components failed test" >&6; }
25985 have_gslib='no (failed tests)'
25987 if test $framework -gt 0; then
25988 GS_LIBS='-framework Ghostscript'
25989 gslib_framework='yes'
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
25991 $as_echo "yes, using framework." >&6; }
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
25994 $as_echo "yes, using library." >&6; }
25997 LIBS="$GS_LIBS $LIBS"
25999 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26005 $as_echo "no" >&6; }
26008 if test "$have_gslib" = 'yes'; then
26010 GS_DELEGATE_FALSE='#'
26012 GS_DELEGATE_TRUE='#'
26018 # Set default font search path
26020 # Check whether --with-fontpath was given.
26021 if test "${with_fontpath+set}" = set; then :
26022 withval=$with_fontpath; with_fontpath=$withval
26028 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26032 cat >>confdefs.h <<_ACEOF
26033 #define MAGICK_FONT_PATH "$with_fontpath"
26037 if test "$with_fontpath=" != ''; then
26038 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26041 # Set Ghostscript font directory
26043 # Check whether --with-gs-font-dir was given.
26044 if test "${with_gs_font_dir+set}" = set; then :
26045 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26047 with_gs_font_dir='default'
26051 if test "$with_gs_font_dir" != 'default'; then
26052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26057 # Check for GVC delegate library.
26060 # Check whether --with-gvc was given.
26061 if test "${with_gvc+set}" = set; then :
26062 withval=$with_gvc; with_gvc=$withval
26068 if test "$with_gvc" != 'yes'; then
26069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26073 if test "x$with_gvc" = "xyes"; then
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26075 $as_echo "-------------------------------------------------------------" >&6; }
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
26079 $as_echo_n "checking for GVC... " >&6; }
26081 if test -n "$GVC_CFLAGS"; then
26082 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26083 elif test -n "$PKG_CONFIG"; then
26084 if test -n "$PKG_CONFIG" && \
26085 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26086 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; then
26090 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26097 if test -n "$GVC_LIBS"; then
26098 pkg_cv_GVC_LIBS="$GVC_LIBS"
26099 elif test -n "$PKG_CONFIG"; then
26100 if test -n "$PKG_CONFIG" && \
26101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26102 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26105 test $ac_status = 0; }; then
26106 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26116 if test $pkg_failed = yes; then
26118 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26119 _pkg_short_errors_supported=yes
26121 _pkg_short_errors_supported=no
26123 if test $_pkg_short_errors_supported = yes; then
26124 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26126 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26128 # Put the nasty error message in config.log where it belongs
26129 echo "$GVC_PKG_ERRORS" >&5
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26132 $as_echo "no" >&6; }
26134 elif test $pkg_failed = untried; then
26137 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26138 GVC_LIBS=$pkg_cv_GVC_LIBS
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26140 $as_echo "yes" >&6; }
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26147 if test "$have_gvc" = 'yes'; then
26149 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
26151 if test "$with_modules" = 'no'; then
26152 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26156 if test "$have_gvc" = 'yes'; then
26158 GVC_DELEGATE_FALSE='#'
26160 GVC_DELEGATE_TRUE='#'
26161 GVC_DELEGATE_FALSE=
26169 # Check for JBIG delegate library.
26173 # Check whether --with-jbig was given.
26174 if test "${with_jbig+set}" = set; then :
26175 withval=$with_jbig; with_jbig=$withval
26183 if test "$with_jbig" != 'no'; then
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26185 $as_echo "-------------------------------------------------------------" >&6; }
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
26187 $as_echo_n "checking for JBIG... " >&6; }
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26192 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26193 if test "x$ac_cv_header_jbig_h" = x""yes; then :
26194 passed=`expr $passed + 1`
26196 failed=`expr $failed + 1`
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
26201 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
26202 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
26203 $as_echo_n "(cached) " >&6
26205 ac_check_lib_save_LIBS=$LIBS
26206 LIBS="-ljbig $LIBS"
26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h. */
26210 /* Override any GCC internal prototype to avoid an error.
26211 Use char because int might match the return type of a GCC
26212 builtin and then its argument prototype would still apply. */
26216 char jbg_dec_init ();
26220 return jbg_dec_init ();
26225 if ac_fn_c_try_link "$LINENO"; then :
26226 ac_cv_lib_jbig_jbg_dec_init=yes
26228 ac_cv_lib_jbig_jbg_dec_init=no
26230 rm -f core conftest.err conftest.$ac_objext \
26231 conftest$ac_exeext conftest.$ac_ext
26232 LIBS=$ac_check_lib_save_LIBS
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
26235 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
26236 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
26237 passed=`expr $passed + 1`
26239 failed=`expr $failed + 1`
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
26243 $as_echo_n "checking if JBIG package is complete... " >&6; }
26244 if test $passed -gt 0; then
26245 if test $failed -gt 0; then
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26247 $as_echo "no -- some components failed test" >&6; }
26248 have_jbig='no (failed tests)'
26251 LIBS="$JBIG_LIBS $LIBS"
26253 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26256 $as_echo "yes" >&6; }
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26261 $as_echo "no" >&6; }
26264 if test "$have_jbig" = 'yes'; then
26265 JBIG_DELEGATE_TRUE=
26266 JBIG_DELEGATE_FALSE='#'
26268 JBIG_DELEGATE_TRUE='#'
26269 JBIG_DELEGATE_FALSE=
26276 # Check for JPEG delegate library.
26279 # Check whether --with-jpeg was given.
26280 if test "${with_jpeg+set}" = set; then :
26281 withval=$with_jpeg; with_jpeg=$withval
26287 if test "$with_jpeg" != 'yes'; then
26288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26293 if test "$with_jpeg" != 'no'; then
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26295 $as_echo "-------------------------------------------------------------" >&6; }
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
26297 $as_echo_n "checking for JPEG... " >&6; }
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26302 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26303 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
26304 passed=`expr $passed + 1`
26306 failed=`expr $failed + 1`
26310 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26311 if test "x$ac_cv_header_jerror_h" = x""yes; then :
26312 passed=`expr $passed + 1`
26314 failed=`expr $failed + 1`
26318 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26319 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
26320 passed=`expr $passed + 1`
26322 failed=`expr $failed + 1`
26326 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26327 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
26328 passed=`expr $passed + 1`
26330 failed=`expr $failed + 1`
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
26335 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
26336 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
26337 $as_echo_n "(cached) " >&6
26339 ac_check_lib_save_LIBS=$LIBS
26340 LIBS="-ljpeg $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 jpeg_read_header ();
26354 return jpeg_read_header ();
26359 if ac_fn_c_try_link "$LINENO"; then :
26360 ac_cv_lib_jpeg_jpeg_read_header=yes
26362 ac_cv_lib_jpeg_jpeg_read_header=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_jpeg_jpeg_read_header" >&5
26369 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26370 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
26371 passed=`expr $passed + 1`
26373 failed=`expr $failed + 1`
26377 # Test for compatible JPEG library
26378 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
26380 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
26381 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
26382 $as_echo_n "(cached) " >&6
26384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26385 /* end confdefs.h. */
26387 #include <stdlib.h>
26388 #include <jpeglib.h>
26394 #if JPEG_LIB_VERSION < 62
26395 #error IJG JPEG library must be version 6b or newer!
26403 if ac_fn_c_try_compile "$LINENO"; then :
26404 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26406 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
26408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
26411 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
26414 $as_echo_n "checking if JPEG package is complete... " >&6; }
26415 if test $passed -gt 0; then
26416 if test $failed -gt 0; then
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26418 $as_echo "no -- some components failed test" >&6; }
26419 have_jpeg='no (failed tests)'
26422 LIBS="$JPEG_LIBS $LIBS"
26424 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26427 $as_echo "yes" >&6; }
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26432 $as_echo "no" >&6; }
26435 if test "$have_jpeg" = 'yes'; then
26436 JPEG_DELEGATE_TRUE=
26437 JPEG_DELEGATE_FALSE='#'
26439 JPEG_DELEGATE_TRUE='#'
26440 JPEG_DELEGATE_FALSE=
26447 # Check for JPEG Version 2 delegate library.
26450 # Check whether --with-jp2 was given.
26451 if test "${with_jp2+set}" = set; then :
26452 withval=$with_jp2; with_jp2=$withval
26458 if test "$with_jp2" != 'yes'; then
26459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26464 if test "$with_jp2" != 'no'; then
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26466 $as_echo "-------------------------------------------------------------" >&6; }
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
26468 $as_echo_n "checking for JPEG Version 2... " >&6; }
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26473 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26474 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
26475 passed=`expr $passed + 1`
26477 failed=`expr $failed + 1`
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
26482 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
26483 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
26484 $as_echo_n "(cached) " >&6
26486 ac_check_lib_save_LIBS=$LIBS
26487 LIBS="-ljasper $LIBS"
26488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26489 /* end confdefs.h. */
26491 /* Override any GCC internal prototype to avoid an error.
26492 Use char because int might match the return type of a GCC
26493 builtin and then its argument prototype would still apply. */
26497 char jas_stream_fopen ();
26501 return jas_stream_fopen ();
26506 if ac_fn_c_try_link "$LINENO"; then :
26507 ac_cv_lib_jasper_jas_stream_fopen=yes
26509 ac_cv_lib_jasper_jas_stream_fopen=no
26511 rm -f core conftest.err conftest.$ac_objext \
26512 conftest$ac_exeext conftest.$ac_ext
26513 LIBS=$ac_check_lib_save_LIBS
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
26516 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
26517 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
26518 passed=`expr $passed + 1`
26520 failed=`expr $failed + 1`
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
26524 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26525 if test $passed -gt 0; then
26526 if test $failed -gt 0; then
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26528 $as_echo "no -- some components failed test" >&6; }
26529 have_jp2='no (failed tests)'
26531 JP2_LIBS='-ljasper'
26532 LIBS="$JP2_LIBS $LIBS"
26534 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26537 $as_echo "yes" >&6; }
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26542 $as_echo "no" >&6; }
26545 if test "$have_jp2" = 'yes'; then
26547 JP2_DELEGATE_FALSE='#'
26549 JP2_DELEGATE_TRUE='#'
26550 JP2_DELEGATE_FALSE=
26557 # Check for LCMS delegate library.
26560 # Check whether --with-lcms was given.
26561 if test "${with_lcms+set}" = set; then :
26562 withval=$with_lcms; with_lcms=$withval
26568 if test "$with_lcms" != 'yes'; then
26569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26574 if test "$with_lcms" != 'no'; then
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26576 $as_echo "-------------------------------------------------------------" >&6; }
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
26578 $as_echo_n "checking for LCMS... " >&6; }
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26583 have_lcms_header='no'
26584 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26585 if test "x$ac_cv_header_lcms_h" = x""yes; then :
26586 have_lcms_header='yes'
26590 if test "$have_lcms_header" = 'yes'; then
26591 passed=`expr $passed + 1`
26593 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
26596 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26597 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
26598 have_lcms_header='yes'
26602 if test "$have_lcms_header" = 'yes'; then
26603 passed=`expr $passed + 1`
26605 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
26608 failed=`expr $failed + 1`
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
26612 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
26613 if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
26614 $as_echo_n "(cached) " >&6
26616 ac_check_lib_save_LIBS=$LIBS
26617 LIBS="-llcms $LIBS"
26618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619 /* end confdefs.h. */
26621 /* Override any GCC internal prototype to avoid an error.
26622 Use char because int might match the return type of a GCC
26623 builtin and then its argument prototype would still apply. */
26627 char cmsOpenProfileFromMem ();
26631 return cmsOpenProfileFromMem ();
26636 if ac_fn_c_try_link "$LINENO"; then :
26637 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26639 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
26641 rm -f core conftest.err conftest.$ac_objext \
26642 conftest$ac_exeext conftest.$ac_ext
26643 LIBS=$ac_check_lib_save_LIBS
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
26646 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
26647 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
26648 passed=`expr $passed + 1`
26650 failed=`expr $failed + 1`
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
26654 $as_echo_n "checking if LCMS package is complete... " >&6; }
26655 if test $passed -gt 0; then
26656 if test $failed -gt 0; then
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26658 $as_echo "no -- some components failed test" >&6; }
26659 have_lcms='no (failed tests)'
26662 LIBS="$LCMS_LIBS $LIBS"
26664 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26667 $as_echo "yes" >&6; }
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26672 $as_echo "no" >&6; }
26675 if test "$have_lcms" = 'yes'; then
26676 LCMS_DELEGATE_TRUE=
26677 LCMS_DELEGATE_FALSE='#'
26679 LCMS_DELEGATE_TRUE='#'
26680 LCMS_DELEGATE_FALSE=
26687 # Check for the LQR (Liquid Rescale) delegate library.
26690 # Check whether --with-lqr was given.
26691 if test "${with_lqr+set}" = set; then :
26692 withval=$with_lqr; with_lqr=$withval
26698 if test "$with_lqr" != 'yes'; then
26699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26706 if test "x$with_lqr" = "xyes"; then
26707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26708 $as_echo "-------------------------------------------------------------" >&6; }
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
26712 $as_echo_n "checking for LQR... " >&6; }
26714 if test -n "$LQR_CFLAGS"; then
26715 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26716 elif test -n "$PKG_CONFIG"; then
26717 if test -n "$PKG_CONFIG" && \
26718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26719 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26722 test $ac_status = 0; }; then
26723 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26730 if test -n "$LQR_LIBS"; then
26731 pkg_cv_LQR_LIBS="$LQR_LIBS"
26732 elif test -n "$PKG_CONFIG"; then
26733 if test -n "$PKG_CONFIG" && \
26734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26735 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26738 test $ac_status = 0; }; then
26739 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26749 if test $pkg_failed = yes; then
26751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26752 _pkg_short_errors_supported=yes
26754 _pkg_short_errors_supported=no
26756 if test $_pkg_short_errors_supported = yes; then
26757 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26759 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26761 # Put the nasty error message in config.log where it belongs
26762 echo "$LQR_PKG_ERRORS" >&5
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26765 $as_echo "no" >&6; }
26767 elif test $pkg_failed = untried; then
26770 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26771 LQR_LIBS=$pkg_cv_LQR_LIBS
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26773 $as_echo "yes" >&6; }
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26780 if test "$have_lqr" = 'yes'; then
26782 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
26784 CFLAGS="$LQR_CFLAGS $CFLAGS"
26787 if test "$have_lqr" = 'yes'; then
26789 LQR_DELEGATE_FALSE='#'
26791 LQR_DELEGATE_TRUE='#'
26792 LQR_DELEGATE_FALSE=
26800 # Check for the OpenEXR delegate library.
26803 # Check whether --with-openexr was given.
26804 if test "${with_openexr+set}" = set; then :
26805 withval=$with_openexr; with_openexr=$withval
26811 if test "$with_openexr" != 'yes'; then
26812 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26819 if test "x$with_openexr" = "xyes"; then
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26821 $as_echo "-------------------------------------------------------------" >&6; }
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
26825 $as_echo_n "checking for OPENEXR... " >&6; }
26827 if test -n "$OPENEXR_CFLAGS"; then
26828 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26829 elif test -n "$PKG_CONFIG"; then
26830 if test -n "$PKG_CONFIG" && \
26831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26832 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26835 test $ac_status = 0; }; then
26836 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26843 if test -n "$OPENEXR_LIBS"; then
26844 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26845 elif test -n "$PKG_CONFIG"; then
26846 if test -n "$PKG_CONFIG" && \
26847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26848 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26851 test $ac_status = 0; }; then
26852 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26862 if test $pkg_failed = yes; then
26864 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26865 _pkg_short_errors_supported=yes
26867 _pkg_short_errors_supported=no
26869 if test $_pkg_short_errors_supported = yes; then
26870 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26872 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26874 # Put the nasty error message in config.log where it belongs
26875 echo "$OPENEXR_PKG_ERRORS" >&5
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26878 $as_echo "no" >&6; }
26880 elif test $pkg_failed = untried; then
26883 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26884 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26886 $as_echo "yes" >&6; }
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26893 if test "$have_openexr" = 'yes'; then
26895 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
26897 if test "$with_modules" = 'no'; then
26898 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26902 if test "$have_openexr" = 'yes'; then
26903 OPENEXR_DELEGATE_TRUE=
26904 OPENEXR_DELEGATE_FALSE='#'
26906 OPENEXR_DELEGATE_TRUE='#'
26907 OPENEXR_DELEGATE_FALSE=
26915 # Check for PNG delegate library.
26918 # Check whether --with-png was given.
26919 if test "${with_png+set}" = set; then :
26920 withval=$with_png; with_png=$withval
26926 if test "$with_png" != 'yes'; then
26927 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26932 if test "$with_png" != 'no'; then
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26934 $as_echo "-------------------------------------------------------------" >&6; }
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
26936 $as_echo_n "checking for PNG... " >&6; }
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26941 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26942 if test "x$ac_cv_header_png_h" = x""yes; then :
26943 passed=`expr $passed + 1`
26945 failed=`expr $failed + 1`
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
26950 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
26951 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
26952 $as_echo_n "(cached) " >&6
26954 ac_check_lib_save_LIBS=$LIBS
26956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26957 /* end confdefs.h. */
26959 /* Override any GCC internal prototype to avoid an error.
26960 Use char because int might match the return type of a GCC
26961 builtin and then its argument prototype would still apply. */
26965 char png_get_io_ptr ();
26969 return png_get_io_ptr ();
26974 if ac_fn_c_try_link "$LINENO"; then :
26975 ac_cv_lib_png_png_get_io_ptr=yes
26977 ac_cv_lib_png_png_get_io_ptr=no
26979 rm -f core conftest.err conftest.$ac_objext \
26980 conftest$ac_exeext conftest.$ac_ext
26981 LIBS=$ac_check_lib_save_LIBS
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
26984 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
26985 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
26986 passed=`expr $passed + 1`
26988 failed=`expr $failed + 1`
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
26992 $as_echo_n "checking if PNG package is complete... " >&6; }
26993 if test $passed -gt 0; then
26994 if test $failed -gt 0; then
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26996 $as_echo "no -- some components failed test" >&6; }
26997 have_png='no (failed tests)'
27000 LIBS="$PNG_LIBS $LIBS"
27002 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27005 $as_echo "yes" >&6; }
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27010 $as_echo "no" >&6; }
27013 if test "$have_png" = 'yes'; then
27015 PNG_DELEGATE_FALSE='#'
27017 PNG_DELEGATE_TRUE='#'
27018 PNG_DELEGATE_FALSE=
27025 # Check for RSVG delegate library.
27028 # Check whether --with-rsvg was given.
27029 if test "${with_rsvg+set}" = set; then :
27030 withval=$with_rsvg; with_rsvg=$withval
27036 if test "$with_rsvg" != 'yes'; then
27037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27045 if test "x$with_rsvg" = "xyes"; then
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27047 $as_echo "-------------------------------------------------------------" >&6; }
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
27051 $as_echo_n "checking for RSVG... " >&6; }
27053 if test -n "$RSVG_CFLAGS"; then
27054 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27055 elif test -n "$PKG_CONFIG"; then
27056 if test -n "$PKG_CONFIG" && \
27057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27058 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27061 test $ac_status = 0; }; then
27062 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27069 if test -n "$RSVG_LIBS"; then
27070 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27071 elif test -n "$PKG_CONFIG"; then
27072 if test -n "$PKG_CONFIG" && \
27073 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27074 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27077 test $ac_status = 0; }; then
27078 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27088 if test $pkg_failed = yes; then
27090 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27091 _pkg_short_errors_supported=yes
27093 _pkg_short_errors_supported=no
27095 if test $_pkg_short_errors_supported = yes; then
27096 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27098 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27100 # Put the nasty error message in config.log where it belongs
27101 echo "$RSVG_PKG_ERRORS" >&5
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27104 $as_echo "no" >&6; }
27106 elif test $pkg_failed = untried; then
27109 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27110 RSVG_LIBS=$pkg_cv_RSVG_LIBS
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27112 $as_echo "yes" >&6; }
27115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
27120 $as_echo_n "checking for CAIRO_SVG... " >&6; }
27122 if test -n "$CAIRO_SVG_CFLAGS"; then
27123 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27124 elif test -n "$PKG_CONFIG"; then
27125 if test -n "$PKG_CONFIG" && \
27126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27127 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27130 test $ac_status = 0; }; then
27131 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27138 if test -n "$CAIRO_SVG_LIBS"; then
27139 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27140 elif test -n "$PKG_CONFIG"; then
27141 if test -n "$PKG_CONFIG" && \
27142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27143 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27146 test $ac_status = 0; }; then
27147 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27157 if test $pkg_failed = yes; then
27159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27160 _pkg_short_errors_supported=yes
27162 _pkg_short_errors_supported=no
27164 if test $_pkg_short_errors_supported = yes; then
27165 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27167 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27169 # Put the nasty error message in config.log where it belongs
27170 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27173 $as_echo "no" >&6; }
27175 elif test $pkg_failed = untried; then
27178 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27179 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27181 $as_echo "yes" >&6; }
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27188 if test "$have_rsvg" = 'yes'; then
27190 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
27192 if test "$with_modules" = 'no'; then
27193 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27197 if test "$have_cairo" = 'yes'; then
27199 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
27201 if test "$with_modules" = 'no'; then
27202 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27206 if test "$have_rsvg" = 'yes'; then
27207 RSVG_DELEGATE_TRUE=
27208 RSVG_DELEGATE_FALSE='#'
27210 RSVG_DELEGATE_TRUE='#'
27211 RSVG_DELEGATE_FALSE=
27214 if test "$have_cairo" = 'yes'; then
27215 CAIRO_DELEGATE_TRUE=
27216 CAIRO_DELEGATE_FALSE='#'
27218 CAIRO_DELEGATE_TRUE='#'
27219 CAIRO_DELEGATE_FALSE=
27227 # Check for TIFF delegate library.
27230 # Check whether --with-tiff was given.
27231 if test "${with_tiff+set}" = set; then :
27232 withval=$with_tiff; with_tiff=$withval
27238 if test "$with_tiff" != 'yes'; then
27239 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27244 if test "$with_tiff" != 'no'; then
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27246 $as_echo "-------------------------------------------------------------" >&6; }
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
27248 $as_echo_n "checking for TIFF... " >&6; }
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27253 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27254 if test "x$ac_cv_header_tiff_h" = x""yes; then :
27255 passed=`expr $passed + 1`
27257 failed=`expr $failed + 1`
27261 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27262 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
27263 passed=`expr $passed + 1`
27265 failed=`expr $failed + 1`
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
27270 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
27271 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
27272 $as_echo_n "(cached) " >&6
27274 ac_check_lib_save_LIBS=$LIBS
27275 LIBS="-ltiff $LIBS"
27276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h. */
27279 /* Override any GCC internal prototype to avoid an error.
27280 Use char because int might match the return type of a GCC
27281 builtin and then its argument prototype would still apply. */
27289 return TIFFOpen ();
27294 if ac_fn_c_try_link "$LINENO"; then :
27295 ac_cv_lib_tiff_TIFFOpen=yes
27297 ac_cv_lib_tiff_TIFFOpen=no
27299 rm -f core conftest.err conftest.$ac_objext \
27300 conftest$ac_exeext conftest.$ac_ext
27301 LIBS=$ac_check_lib_save_LIBS
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
27304 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
27305 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
27306 passed=`expr $passed + 1`
27308 failed=`expr $failed + 1`
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
27312 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
27313 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
27314 $as_echo_n "(cached) " >&6
27316 ac_check_lib_save_LIBS=$LIBS
27317 LIBS="-ltiff $LIBS"
27318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27319 /* end confdefs.h. */
27321 /* Override any GCC internal prototype to avoid an error.
27322 Use char because int might match the return type of a GCC
27323 builtin and then its argument prototype would still apply. */
27327 char TIFFClientOpen ();
27331 return TIFFClientOpen ();
27336 if ac_fn_c_try_link "$LINENO"; then :
27337 ac_cv_lib_tiff_TIFFClientOpen=yes
27339 ac_cv_lib_tiff_TIFFClientOpen=no
27341 rm -f core conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
27343 LIBS=$ac_check_lib_save_LIBS
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
27346 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
27347 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
27348 passed=`expr $passed + 1`
27350 failed=`expr $failed + 1`
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
27354 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
27355 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
27356 $as_echo_n "(cached) " >&6
27358 ac_check_lib_save_LIBS=$LIBS
27359 LIBS="-ltiff $LIBS"
27360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27361 /* end confdefs.h. */
27363 /* Override any GCC internal prototype to avoid an error.
27364 Use char because int might match the return type of a GCC
27365 builtin and then its argument prototype would still apply. */
27369 char TIFFIsByteSwapped ();
27373 return TIFFIsByteSwapped ();
27378 if ac_fn_c_try_link "$LINENO"; then :
27379 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27381 ac_cv_lib_tiff_TIFFIsByteSwapped=no
27383 rm -f core conftest.err conftest.$ac_objext \
27384 conftest$ac_exeext conftest.$ac_ext
27385 LIBS=$ac_check_lib_save_LIBS
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
27388 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
27389 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
27390 passed=`expr $passed + 1`
27392 failed=`expr $failed + 1`
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
27396 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
27397 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
27398 $as_echo_n "(cached) " >&6
27400 ac_check_lib_save_LIBS=$LIBS
27401 LIBS="-ltiff $LIBS"
27402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27403 /* end confdefs.h. */
27405 /* Override any GCC internal prototype to avoid an error.
27406 Use char because int might match the return type of a GCC
27407 builtin and then its argument prototype would still apply. */
27411 char TIFFReadRGBATile ();
27415 return TIFFReadRGBATile ();
27420 if ac_fn_c_try_link "$LINENO"; then :
27421 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27423 ac_cv_lib_tiff_TIFFReadRGBATile=no
27425 rm -f core conftest.err conftest.$ac_objext \
27426 conftest$ac_exeext conftest.$ac_ext
27427 LIBS=$ac_check_lib_save_LIBS
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
27430 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
27431 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
27432 passed=`expr $passed + 1`
27434 failed=`expr $failed + 1`
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
27438 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
27439 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
27440 $as_echo_n "(cached) " >&6
27442 ac_check_lib_save_LIBS=$LIBS
27443 LIBS="-ltiff $LIBS"
27444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27445 /* end confdefs.h. */
27447 /* Override any GCC internal prototype to avoid an error.
27448 Use char because int might match the return type of a GCC
27449 builtin and then its argument prototype would still apply. */
27453 char TIFFReadRGBAStrip ();
27457 return TIFFReadRGBAStrip ();
27462 if ac_fn_c_try_link "$LINENO"; then :
27463 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27465 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
27467 rm -f core conftest.err conftest.$ac_objext \
27468 conftest$ac_exeext conftest.$ac_ext
27469 LIBS=$ac_check_lib_save_LIBS
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
27472 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
27473 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
27474 passed=`expr $passed + 1`
27476 failed=`expr $failed + 1`
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
27480 $as_echo_n "checking if TIFF package is complete... " >&6; }
27481 if test $passed -gt 0; then
27482 if test $failed -gt 0; then
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27484 $as_echo "no -- some components failed test" >&6; }
27485 have_tiff='no (failed tests)'
27488 LIBS="$TIFF_LIBS $LIBS"
27490 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27493 $as_echo "yes" >&6; }
27495 for ac_header in tiffconf.h
27497 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27498 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
27499 cat >>confdefs.h <<_ACEOF
27500 #define HAVE_TIFFCONF_H 1
27507 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
27508 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27509 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
27511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27513 eval as_val=\$$as_ac_var
27514 if test "x$as_val" = x""yes; then :
27515 cat >>confdefs.h <<_ACEOF
27516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27525 $as_echo "no" >&6; }
27528 if test "$have_tiff" = 'yes'; then
27529 TIFF_DELEGATE_TRUE=
27530 TIFF_DELEGATE_FALSE='#'
27532 TIFF_DELEGATE_TRUE='#'
27533 TIFF_DELEGATE_FALSE=
27540 # Set Windows font directory.
27543 # Check whether --with-windows-font-dir was given.
27544 if test "${with_windows_font_dir+set}" = set; then :
27545 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27547 with_windows_font_dir=''
27550 if test "$with_windows_font_dir" != '' ; then
27551 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27556 # Check for WMF delegate library.
27559 # Check whether --with-wmf was given.
27560 if test "${with_wmf+set}" = set; then :
27561 withval=$with_wmf; with_wmf=$withval
27563 with_wmf=$with_modules
27567 if test "$with_wmf" != 'yes'; then
27568 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27575 if test "$with_wmf" != 'no'; then
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27577 $as_echo "-------------------------------------------------------------" >&6; }
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
27579 $as_echo_n "checking for WMF... " >&6; }
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27583 have_libwmflite='no'
27584 have_libwmf_ipa_h='no'
27586 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27588 if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
27589 have_libwmf_ipa_h='yes'
27593 if test "$have_libwmf_ipa_h" = 'yes'; then
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
27595 $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
27596 if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
27597 $as_echo_n "(cached) " >&6
27599 ac_check_lib_save_LIBS=$LIBS
27600 LIBS="-lwmflite $LIBS"
27601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27602 /* end confdefs.h. */
27604 /* Override any GCC internal prototype to avoid an error.
27605 Use char because int might match the return type of a GCC
27606 builtin and then its argument prototype would still apply. */
27610 char wmf_lite_create ();
27614 return wmf_lite_create ();
27619 if ac_fn_c_try_link "$LINENO"; then :
27620 ac_cv_lib_wmflite_wmf_lite_create=yes
27622 ac_cv_lib_wmflite_wmf_lite_create=no
27624 rm -f core conftest.err conftest.$ac_objext \
27625 conftest$ac_exeext conftest.$ac_ext
27626 LIBS=$ac_check_lib_save_LIBS
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
27629 $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
27630 if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
27631 have_libwmflite='yes'
27634 if test "$have_libwmflite" = 'yes'; then
27636 $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
27638 WMF_LIBS='-lwmflite'
27639 LIBS="$WMF_LIBS $LIBS"
27643 WMF_CONFIG_LIBS=`libwmf-config --libs`
27644 for lib in xml2 expat freetype jpeg png z; do
27646 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
27649 $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
27650 if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
27651 $as_echo_n "(cached) " >&6
27653 ac_check_lib_save_LIBS=$LIBS
27654 LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
27655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27656 /* end confdefs.h. */
27658 /* Override any GCC internal prototype to avoid an error.
27659 Use char because int might match the return type of a GCC
27660 builtin and then its argument prototype would still apply. */
27664 char wmf_api_create ();
27668 return wmf_api_create ();
27673 if ac_fn_c_try_link "$LINENO"; then :
27674 ac_cv_lib_wmf_wmf_api_create=yes
27676 ac_cv_lib_wmf_wmf_api_create=no
27678 rm -f core conftest.err conftest.$ac_objext \
27679 conftest$ac_exeext conftest.$ac_ext
27680 LIBS=$ac_check_lib_save_LIBS
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
27683 $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
27684 if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
27688 if test "$have_libwmf" = 'yes'; then
27690 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
27693 LIBS="$WMF_LIBS $LIBS"
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27697 $as_echo "no -- some components failed test" >&6; }
27698 have_wmf='no (failed tests)'
27699 have_wmflite='no (failed tests)'
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
27706 $as_echo_n "checking if WMF package is complete... " >&6; }
27707 if test "$have_wmf" = 'yes'; then
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27709 $as_echo "yes" >&6; }
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27712 $as_echo "no" >&6; }
27715 if test "$have_wmf" = 'yes'; then
27717 WMF_DELEGATE_FALSE='#'
27719 WMF_DELEGATE_TRUE='#'
27720 WMF_DELEGATE_FALSE=
27728 # Check for XML delegate library.
27731 # Check whether --with-xml was given.
27732 if test "${with_xml+set}" = set; then :
27733 withval=$with_xml; with_xml=$withval
27739 if test "$with_xml" != 'yes' ; then
27740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27745 if test "$with_xml" != 'no'; then
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27747 $as_echo "-------------------------------------------------------------" >&6; }
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
27749 $as_echo_n "checking for XML... " >&6; }
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27752 PERSIST_LDFLAGS=$LDFLAGS
27753 PERSIST_CPPFLAGS=$CPPFLAGS
27755 for ac_prog in xml2-config
27757 # Extract the first word of "$ac_prog", so it can be a program name with args.
27758 set dummy $ac_prog; ac_word=$2
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27760 $as_echo_n "checking for $ac_word... " >&6; }
27761 if test "${ac_cv_prog_xml2_config+set}" = set; then :
27762 $as_echo_n "(cached) " >&6
27764 if test -n "$xml2_config"; then
27765 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27768 for as_dir in $PATH
27771 test -z "$as_dir" && as_dir=.
27772 for ac_exec_ext in '' $ac_executable_extensions; do
27773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27774 ac_cv_prog_xml2_config="$ac_prog"
27775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27784 xml2_config=$ac_cv_prog_xml2_config
27785 if test -n "$xml2_config"; then
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
27787 $as_echo "$xml2_config" >&6; }
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27790 $as_echo "no" >&6; }
27794 test -n "$xml2_config" && break
27796 if test -n "$xml2_config"; then
27797 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27798 # the shared library installed under /usr/lib, whereas the package
27799 # installs itself under $prefix/libxml and $prefix/lib.
27800 xml2_prefix=`xml2-config --prefix`
27801 if test -d "${xml2_prefix}/include/libxml2"; then
27802 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27804 if test "${xml2_prefix}" != '/usr'; then
27805 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27810 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27811 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
27812 passed=`expr $passed + 1`
27814 failed=`expr $failed + 1`
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
27819 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
27820 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
27821 $as_echo_n "(cached) " >&6
27823 ac_check_lib_save_LIBS=$LIBS
27824 LIBS="-lxml2 $LIBS"
27825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27826 /* end confdefs.h. */
27828 /* Override any GCC internal prototype to avoid an error.
27829 Use char because int might match the return type of a GCC
27830 builtin and then its argument prototype would still apply. */
27834 char xmlParseExternalEntity ();
27838 return xmlParseExternalEntity ();
27843 if ac_fn_c_try_link "$LINENO"; then :
27844 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27846 ac_cv_lib_xml2_xmlParseExternalEntity=no
27848 rm -f core conftest.err conftest.$ac_objext \
27849 conftest$ac_exeext conftest.$ac_ext
27850 LIBS=$ac_check_lib_save_LIBS
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
27853 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
27854 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
27855 passed=`expr $passed + 1`
27857 failed=`expr $failed + 1`
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
27861 $as_echo_n "checking if XML package is complete... " >&6; }
27862 if test $passed -gt 0; then
27863 if test $failed -gt 0; then
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27865 $as_echo "no -- some components failed test" >&6; }
27866 have_xml='no (failed tests)'
27867 LDFLAGS="$PERSIST_LDFLAGS"
27868 CPPFLAGS="$PERSIST_CPPFLAGS"
27871 LIBS="$XML_LIBS $LIBS"
27873 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27876 $as_echo "yes" >&6; }
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27881 $as_echo "no" >&6; }
27884 if test "$have_xml" = 'yes'; then
27886 XML_DELEGATE_FALSE='#'
27888 XML_DELEGATE_TRUE='#'
27889 XML_DELEGATE_FALSE=
27895 # Substitute compiler name to build/link PerlMagick
27900 # Configure install Paths
27903 # Subdirectory under lib to place ImageMagick lib files
27904 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27906 cat >>confdefs.h <<_ACEOF
27907 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27911 # Path to ImageMagick bin directory
27912 EXECUTABLE_PATH="${BIN_DIR}"
27913 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27914 case "${build_os}" in
27916 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27920 cat >>confdefs.h <<_ACEOF
27921 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27926 # Path to ImageMagick lib
27927 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27928 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27929 case "${build_os}" in
27931 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27935 cat >>confdefs.h <<_ACEOF
27936 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27941 # Subdirectory under lib to place ImageMagick configuration files
27942 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27944 cat >>confdefs.h <<_ACEOF
27945 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27948 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27949 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27950 case "${build_os}" in
27952 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27956 cat >>confdefs.h <<_ACEOF
27957 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27963 # Subdirectory under lib to place ImageMagick coder module files
27964 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27966 cat >>confdefs.h <<_ACEOF
27967 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27970 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27971 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27972 case "${build_os}" in
27974 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27978 cat >>confdefs.h <<_ACEOF
27979 #define CODER_PATH "$DEFINE_CODER_PATH"
27985 # Subdirectory under lib to place ImageMagick filter module files
27986 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27988 cat >>confdefs.h <<_ACEOF
27989 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27992 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27993 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27994 case "${build_os}" in
27996 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28000 cat >>confdefs.h <<_ACEOF
28001 #define FILTER_PATH "$DEFINE_FILTER_PATH"
28007 # Path to ImageMagick documentation files
28008 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28009 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28010 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28011 case "${build_os}" in
28013 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28017 cat >>confdefs.h <<_ACEOF
28018 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28024 # Path to ImageMagick share files
28025 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28026 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28027 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28028 case "${build_os}" in
28030 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28034 cat >>confdefs.h <<_ACEOF
28035 #define SHARE_PATH "$DEFINE_SHARE_PATH"
28040 # Subdirectory under share to place ImageMagick configuration files
28041 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28043 cat >>confdefs.h <<_ACEOF
28044 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28047 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28048 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28049 case "${build_os}" in
28051 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28055 cat >>confdefs.h <<_ACEOF
28056 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28062 # program_transform_name is formed for use in a Makefile, so create a
28063 # modified version for use in a shell script.
28064 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28066 # Default delegate definitions
28067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28068 $as_echo "-------------------------------------------------------------" >&6; }
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
28070 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28073 AutotraceDecodeDelegateDefault='autotrace'
28074 AVIDecodeDelegateDefault='mplayer'
28075 BlenderDecodeDelegateDefault='blender'
28076 BZIPDelegateDefault='bzip2'
28077 BrowseDelegateDefault='xdg-open'
28078 CGMDecodeDelegateDefault='ralcgm'
28079 CatDelegateDefault='cat'
28080 DNGDecodeDelegateDefault='ufraw-batch'
28081 GVCDecodeDelegateDefault='dot'
28082 DVIDecodeDelegateDefault='dvips'
28083 EchoDelegateDefault='echo'
28084 EditorDelegateDefault='xterm'
28085 FIGDecodeDelegateDefault='fig2dev'
28086 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28087 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28088 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28089 GnuplotDecodeDelegateDefault='gnuplot'
28090 HDRDecodeDelegateDefault='ra_pfm'
28091 HPGLDecodeDelegateDefault='hp2xx'
28092 HTMLDecodeDelegateDefault='html2ps'
28093 ILBMDecodeDelegateDefault='ilbmtoppm'
28094 ILBMEncodeDelegateDefault='ppmtoilbm'
28095 LPDelegateDefault='lp'
28096 LPRDelegateDefault='lpr'
28097 LZWDecodeDelegateDefault='uncompress'
28098 LZWEncodeDelegateDefault='compress'
28099 LaunchDelegateDefault='gimp'
28100 MANDelegateDefault='groff'
28101 MPEGDecodeDelegateDefault='ffmpeg'
28102 MPEGEncodeDelegateDefault='ffmpeg'
28103 MVDelegateDefault='mv'
28104 PCLDelegateDefault='pcl6'
28105 PGPDecodeDelegateDefault='pgpv'
28106 POVDelegateDefault='povray'
28107 if test "$native_win32_build" = 'yes'; then
28108 PSDelegateDefault='gswin32c'
28109 elif test "$gslib_framework" = 'yes'; then
28110 PSDelegateDefault='gsc'
28112 PSDelegateDefault='gs'
28114 RLEEncodeDelegateDefault='rawtorle'
28115 RMDelegateDefault='rm'
28116 SCANDecodeDelegateDefault='scanimage'
28117 TXTDelegateDefault='enscript'
28118 WMFDecodeDelegateDefault='wmf2eps'
28119 WWWDecodeDelegateDefault='curl'
28120 XPSDelegateDefault='gxps'
28121 ZipDelegateDefault='gzip'
28123 # Search for delegates
28124 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28125 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28127 $as_echo_n "checking for $ac_word... " >&6; }
28128 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
28129 $as_echo_n "(cached) " >&6
28131 case $AutotraceDecodeDelegate in
28133 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28137 for as_dir in $PATH
28140 test -z "$as_dir" && as_dir=.
28141 for ac_exec_ext in '' $ac_executable_extensions; do
28142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28143 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28151 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28155 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28156 if test -n "$AutotraceDecodeDelegate"; then
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
28158 $as_echo "$AutotraceDecodeDelegate" >&6; }
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161 $as_echo "no" >&6; }
28165 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28166 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28168 $as_echo_n "checking for $ac_word... " >&6; }
28169 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
28170 $as_echo_n "(cached) " >&6
28172 case $AVIDecodeDelegate in
28174 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28178 for as_dir in $PATH
28181 test -z "$as_dir" && as_dir=.
28182 for ac_exec_ext in '' $ac_executable_extensions; do
28183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28184 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28192 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28196 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28197 if test -n "$AVIDecodeDelegate"; then
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
28199 $as_echo "$AVIDecodeDelegate" >&6; }
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28202 $as_echo "no" >&6; }
28206 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28207 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28209 $as_echo_n "checking for $ac_word... " >&6; }
28210 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
28211 $as_echo_n "(cached) " >&6
28213 case $BlenderDecodeDelegate in
28215 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28219 for as_dir in $PATH
28222 test -z "$as_dir" && as_dir=.
28223 for ac_exec_ext in '' $ac_executable_extensions; do
28224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28225 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28233 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28237 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28238 if test -n "$BlenderDecodeDelegate"; then
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
28240 $as_echo "$BlenderDecodeDelegate" >&6; }
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28243 $as_echo "no" >&6; }
28247 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28248 set dummy "$BZIPDelegateDefault"; ac_word=$2
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28250 $as_echo_n "checking for $ac_word... " >&6; }
28251 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
28252 $as_echo_n "(cached) " >&6
28254 case $BZIPDelegate in
28256 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28260 for as_dir in $PATH
28263 test -z "$as_dir" && as_dir=.
28264 for ac_exec_ext in '' $ac_executable_extensions; do
28265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28266 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
28267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28274 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28278 BZIPDelegate=$ac_cv_path_BZIPDelegate
28279 if test -n "$BZIPDelegate"; then
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
28281 $as_echo "$BZIPDelegate" >&6; }
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28284 $as_echo "no" >&6; }
28288 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28289 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28291 $as_echo_n "checking for $ac_word... " >&6; }
28292 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
28293 $as_echo_n "(cached) " >&6
28295 case $BrowseDelegate in
28297 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28301 for as_dir in $PATH
28304 test -z "$as_dir" && as_dir=.
28305 for ac_exec_ext in '' $ac_executable_extensions; do
28306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28307 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
28308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28315 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28319 BrowseDelegate=$ac_cv_path_BrowseDelegate
28320 if test -n "$BrowseDelegate"; then
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
28322 $as_echo "$BrowseDelegate" >&6; }
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28325 $as_echo "no" >&6; }
28329 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28330 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28332 $as_echo_n "checking for $ac_word... " >&6; }
28333 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
28334 $as_echo_n "(cached) " >&6
28336 case $CGMDecodeDelegate in
28338 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28342 for as_dir in $PATH
28345 test -z "$as_dir" && as_dir=.
28346 for ac_exec_ext in '' $ac_executable_extensions; do
28347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28348 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28356 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28360 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28361 if test -n "$CGMDecodeDelegate"; then
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
28363 $as_echo "$CGMDecodeDelegate" >&6; }
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28366 $as_echo "no" >&6; }
28370 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28371 set dummy "$CatDelegateDefault"; ac_word=$2
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28373 $as_echo_n "checking for $ac_word... " >&6; }
28374 if test "${ac_cv_path_CatDelegate+set}" = set; then :
28375 $as_echo_n "(cached) " >&6
28377 case $CatDelegate in
28379 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28383 for as_dir in $PATH
28386 test -z "$as_dir" && as_dir=.
28387 for ac_exec_ext in '' $ac_executable_extensions; do
28388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28389 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
28390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28397 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28401 CatDelegate=$ac_cv_path_CatDelegate
28402 if test -n "$CatDelegate"; then
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
28404 $as_echo "$CatDelegate" >&6; }
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28407 $as_echo "no" >&6; }
28411 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28412 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28414 $as_echo_n "checking for $ac_word... " >&6; }
28415 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
28416 $as_echo_n "(cached) " >&6
28418 case $DNGDecodeDelegate in
28420 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28424 for as_dir in $PATH
28427 test -z "$as_dir" && as_dir=.
28428 for ac_exec_ext in '' $ac_executable_extensions; do
28429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28430 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28438 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28442 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28443 if test -n "$DNGDecodeDelegate"; then
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
28445 $as_echo "$DNGDecodeDelegate" >&6; }
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28448 $as_echo "no" >&6; }
28452 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28453 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28455 $as_echo_n "checking for $ac_word... " >&6; }
28456 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
28457 $as_echo_n "(cached) " >&6
28459 case $GVCDecodeDelegate in
28461 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28465 for as_dir in $PATH
28468 test -z "$as_dir" && as_dir=.
28469 for ac_exec_ext in '' $ac_executable_extensions; do
28470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28471 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28479 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28483 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28484 if test -n "$GVCDecodeDelegate"; then
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
28486 $as_echo "$GVCDecodeDelegate" >&6; }
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28489 $as_echo "no" >&6; }
28493 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28494 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28496 $as_echo_n "checking for $ac_word... " >&6; }
28497 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
28498 $as_echo_n "(cached) " >&6
28500 case $DVIDecodeDelegate in
28502 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28506 for as_dir in $PATH
28509 test -z "$as_dir" && as_dir=.
28510 for ac_exec_ext in '' $ac_executable_extensions; do
28511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28512 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28520 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28524 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28525 if test -n "$DVIDecodeDelegate"; then
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
28527 $as_echo "$DVIDecodeDelegate" >&6; }
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28530 $as_echo "no" >&6; }
28534 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28535 set dummy "$EchoDelegateDefault"; ac_word=$2
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28537 $as_echo_n "checking for $ac_word... " >&6; }
28538 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
28539 $as_echo_n "(cached) " >&6
28541 case $EchoDelegate in
28543 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28547 for as_dir in $PATH
28550 test -z "$as_dir" && as_dir=.
28551 for ac_exec_ext in '' $ac_executable_extensions; do
28552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28553 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
28554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28561 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28565 EchoDelegate=$ac_cv_path_EchoDelegate
28566 if test -n "$EchoDelegate"; then
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
28568 $as_echo "$EchoDelegate" >&6; }
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28571 $as_echo "no" >&6; }
28575 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28576 set dummy "$EditorDelegateDefault"; ac_word=$2
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28578 $as_echo_n "checking for $ac_word... " >&6; }
28579 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
28580 $as_echo_n "(cached) " >&6
28582 case $EditorDelegate in
28584 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28588 for as_dir in $PATH
28591 test -z "$as_dir" && as_dir=.
28592 for ac_exec_ext in '' $ac_executable_extensions; do
28593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28594 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
28595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28602 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28606 EditorDelegate=$ac_cv_path_EditorDelegate
28607 if test -n "$EditorDelegate"; then
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
28609 $as_echo "$EditorDelegate" >&6; }
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28612 $as_echo "no" >&6; }
28616 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28617 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28619 $as_echo_n "checking for $ac_word... " >&6; }
28620 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
28621 $as_echo_n "(cached) " >&6
28623 case $FIGDecodeDelegate in
28625 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28629 for as_dir in $PATH
28632 test -z "$as_dir" && as_dir=.
28633 for ac_exec_ext in '' $ac_executable_extensions; do
28634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28635 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28643 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28647 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28648 if test -n "$FIGDecodeDelegate"; then
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
28650 $as_echo "$FIGDecodeDelegate" >&6; }
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28653 $as_echo "no" >&6; }
28657 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28658 set dummy "$ConvertDelegateDefault"; ac_word=$2
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28660 $as_echo_n "checking for $ac_word... " >&6; }
28661 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
28662 $as_echo_n "(cached) " >&6
28664 case $ConvertDelegate in
28666 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28670 for as_dir in $PATH
28673 test -z "$as_dir" && as_dir=.
28674 for ac_exec_ext in '' $ac_executable_extensions; do
28675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28676 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
28677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28684 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28688 ConvertDelegate=$ac_cv_path_ConvertDelegate
28689 if test -n "$ConvertDelegate"; then
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
28691 $as_echo "$ConvertDelegate" >&6; }
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28694 $as_echo "no" >&6; }
28698 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28699 set dummy "$DisplayDelegateDefault"; ac_word=$2
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28701 $as_echo_n "checking for $ac_word... " >&6; }
28702 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
28703 $as_echo_n "(cached) " >&6
28705 case $DisplayDelegate in
28707 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28711 for as_dir in $PATH
28714 test -z "$as_dir" && as_dir=.
28715 for ac_exec_ext in '' $ac_executable_extensions; do
28716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28717 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
28718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28725 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28729 DisplayDelegate=$ac_cv_path_DisplayDelegate
28730 if test -n "$DisplayDelegate"; then
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
28732 $as_echo "$DisplayDelegate" >&6; }
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28735 $as_echo "no" >&6; }
28739 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28740 set dummy "$MogrifyDelegateDefault"; ac_word=$2
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28742 $as_echo_n "checking for $ac_word... " >&6; }
28743 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
28744 $as_echo_n "(cached) " >&6
28746 case $MogrifyDelegate in
28748 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28752 for as_dir in $PATH
28755 test -z "$as_dir" && as_dir=.
28756 for ac_exec_ext in '' $ac_executable_extensions; do
28757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28758 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
28759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28766 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28770 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28771 if test -n "$MogrifyDelegate"; then
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
28773 $as_echo "$MogrifyDelegate" >&6; }
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28776 $as_echo "no" >&6; }
28780 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28781 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28783 $as_echo_n "checking for $ac_word... " >&6; }
28784 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
28785 $as_echo_n "(cached) " >&6
28787 case $GnuplotDecodeDelegate in
28789 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28793 for as_dir in $PATH
28796 test -z "$as_dir" && as_dir=.
28797 for ac_exec_ext in '' $ac_executable_extensions; do
28798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28799 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28807 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28811 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28812 if test -n "$GnuplotDecodeDelegate"; then
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
28814 $as_echo "$GnuplotDecodeDelegate" >&6; }
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28817 $as_echo "no" >&6; }
28821 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28822 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28824 $as_echo_n "checking for $ac_word... " >&6; }
28825 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
28826 $as_echo_n "(cached) " >&6
28828 case $HDRDecodeDelegate in
28830 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28834 for as_dir in $PATH
28837 test -z "$as_dir" && as_dir=.
28838 for ac_exec_ext in '' $ac_executable_extensions; do
28839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28840 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28848 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28852 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28853 if test -n "$HDRDecodeDelegate"; then
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
28855 $as_echo "$HDRDecodeDelegate" >&6; }
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858 $as_echo "no" >&6; }
28862 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28863 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28865 $as_echo_n "checking for $ac_word... " >&6; }
28866 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
28867 $as_echo_n "(cached) " >&6
28869 case $HPGLDecodeDelegate in
28871 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875 for as_dir in $PATH
28878 test -z "$as_dir" && as_dir=.
28879 for ac_exec_ext in '' $ac_executable_extensions; do
28880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28881 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28889 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28893 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28894 if test -n "$HPGLDecodeDelegate"; then
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
28896 $as_echo "$HPGLDecodeDelegate" >&6; }
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28899 $as_echo "no" >&6; }
28903 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28904 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28906 $as_echo_n "checking for $ac_word... " >&6; }
28907 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
28908 $as_echo_n "(cached) " >&6
28910 case $HTMLDecodeDelegate in
28912 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28916 for as_dir in $PATH
28919 test -z "$as_dir" && as_dir=.
28920 for ac_exec_ext in '' $ac_executable_extensions; do
28921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28922 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28930 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28934 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28935 if test -n "$HTMLDecodeDelegate"; then
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
28937 $as_echo "$HTMLDecodeDelegate" >&6; }
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28940 $as_echo "no" >&6; }
28944 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28945 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28947 $as_echo_n "checking for $ac_word... " >&6; }
28948 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
28949 $as_echo_n "(cached) " >&6
28951 case $ILBMDecodeDelegate in
28953 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28957 for as_dir in $PATH
28960 test -z "$as_dir" && as_dir=.
28961 for ac_exec_ext in '' $ac_executable_extensions; do
28962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28963 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28971 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28975 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28976 if test -n "$ILBMDecodeDelegate"; then
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
28978 $as_echo "$ILBMDecodeDelegate" >&6; }
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28981 $as_echo "no" >&6; }
28985 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28986 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28988 $as_echo_n "checking for $ac_word... " >&6; }
28989 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
28990 $as_echo_n "(cached) " >&6
28992 case $ILBMEncodeDelegate in
28994 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28998 for as_dir in $PATH
29001 test -z "$as_dir" && as_dir=.
29002 for ac_exec_ext in '' $ac_executable_extensions; do
29003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29004 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29012 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29016 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29017 if test -n "$ILBMEncodeDelegate"; then
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
29019 $as_echo "$ILBMEncodeDelegate" >&6; }
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29022 $as_echo "no" >&6; }
29026 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29027 set dummy "$LPDelegateDefault"; ac_word=$2
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29029 $as_echo_n "checking for $ac_word... " >&6; }
29030 if test "${ac_cv_path_LPDelegate+set}" = set; then :
29031 $as_echo_n "(cached) " >&6
29033 case $LPDelegate in
29035 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29039 for as_dir in $PATH
29042 test -z "$as_dir" && as_dir=.
29043 for ac_exec_ext in '' $ac_executable_extensions; do
29044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29045 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
29046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29053 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29057 LPDelegate=$ac_cv_path_LPDelegate
29058 if test -n "$LPDelegate"; then
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
29060 $as_echo "$LPDelegate" >&6; }
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29063 $as_echo "no" >&6; }
29067 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29068 set dummy "$LPRDelegateDefault"; ac_word=$2
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29070 $as_echo_n "checking for $ac_word... " >&6; }
29071 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
29072 $as_echo_n "(cached) " >&6
29074 case $LPRDelegate in
29076 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29080 for as_dir in $PATH
29083 test -z "$as_dir" && as_dir=.
29084 for ac_exec_ext in '' $ac_executable_extensions; do
29085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29086 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
29087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29094 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29098 LPRDelegate=$ac_cv_path_LPRDelegate
29099 if test -n "$LPRDelegate"; then
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
29101 $as_echo "$LPRDelegate" >&6; }
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29104 $as_echo "no" >&6; }
29108 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29109 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29111 $as_echo_n "checking for $ac_word... " >&6; }
29112 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
29113 $as_echo_n "(cached) " >&6
29115 case $LZWDecodeDelegate in
29117 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29121 for as_dir in $PATH
29124 test -z "$as_dir" && as_dir=.
29125 for ac_exec_ext in '' $ac_executable_extensions; do
29126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29127 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29135 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29139 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29140 if test -n "$LZWDecodeDelegate"; then
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
29142 $as_echo "$LZWDecodeDelegate" >&6; }
29144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29145 $as_echo "no" >&6; }
29149 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29150 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29152 $as_echo_n "checking for $ac_word... " >&6; }
29153 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
29154 $as_echo_n "(cached) " >&6
29156 case $LZWEncodeDelegate in
29158 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29162 for as_dir in $PATH
29165 test -z "$as_dir" && as_dir=.
29166 for ac_exec_ext in '' $ac_executable_extensions; do
29167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29168 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29176 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29180 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29181 if test -n "$LZWEncodeDelegate"; then
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
29183 $as_echo "$LZWEncodeDelegate" >&6; }
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29186 $as_echo "no" >&6; }
29190 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29191 set dummy "$LaunchDelegateDefault"; ac_word=$2
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29193 $as_echo_n "checking for $ac_word... " >&6; }
29194 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
29195 $as_echo_n "(cached) " >&6
29197 case $LaunchDelegate in
29199 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29203 for as_dir in $PATH
29206 test -z "$as_dir" && as_dir=.
29207 for ac_exec_ext in '' $ac_executable_extensions; do
29208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29209 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
29210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29217 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29221 LaunchDelegate=$ac_cv_path_LaunchDelegate
29222 if test -n "$LaunchDelegate"; then
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
29224 $as_echo "$LaunchDelegate" >&6; }
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29227 $as_echo "no" >&6; }
29231 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29232 set dummy "$MANDelegateDefault"; ac_word=$2
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29234 $as_echo_n "checking for $ac_word... " >&6; }
29235 if test "${ac_cv_path_MANDelegate+set}" = set; then :
29236 $as_echo_n "(cached) " >&6
29238 case $MANDelegate in
29240 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29244 for as_dir in $PATH
29247 test -z "$as_dir" && as_dir=.
29248 for ac_exec_ext in '' $ac_executable_extensions; do
29249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29250 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
29251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29258 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29262 MANDelegate=$ac_cv_path_MANDelegate
29263 if test -n "$MANDelegate"; then
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
29265 $as_echo "$MANDelegate" >&6; }
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29268 $as_echo "no" >&6; }
29272 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29273 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29275 $as_echo_n "checking for $ac_word... " >&6; }
29276 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
29277 $as_echo_n "(cached) " >&6
29279 case $MPEGDecodeDelegate in
29281 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29285 for as_dir in $PATH
29288 test -z "$as_dir" && as_dir=.
29289 for ac_exec_ext in '' $ac_executable_extensions; do
29290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29291 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29299 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29303 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29304 if test -n "$MPEGDecodeDelegate"; then
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
29306 $as_echo "$MPEGDecodeDelegate" >&6; }
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29309 $as_echo "no" >&6; }
29313 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29314 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29316 $as_echo_n "checking for $ac_word... " >&6; }
29317 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
29318 $as_echo_n "(cached) " >&6
29320 case $MPEGEncodeDelegate in
29322 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29326 for as_dir in $PATH
29329 test -z "$as_dir" && as_dir=.
29330 for ac_exec_ext in '' $ac_executable_extensions; do
29331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29332 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29340 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29344 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29345 if test -n "$MPEGEncodeDelegate"; then
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
29347 $as_echo "$MPEGEncodeDelegate" >&6; }
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }
29354 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29355 set dummy "$MVDelegateDefault"; ac_word=$2
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29357 $as_echo_n "checking for $ac_word... " >&6; }
29358 if test "${ac_cv_path_MVDelegate+set}" = set; then :
29359 $as_echo_n "(cached) " >&6
29361 case $MVDelegate in
29363 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29367 for as_dir in $PATH
29370 test -z "$as_dir" && as_dir=.
29371 for ac_exec_ext in '' $ac_executable_extensions; do
29372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29373 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
29374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29381 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29385 MVDelegate=$ac_cv_path_MVDelegate
29386 if test -n "$MVDelegate"; then
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
29388 $as_echo "$MVDelegate" >&6; }
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29391 $as_echo "no" >&6; }
29395 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29396 set dummy "$PCLDelegateDefault"; ac_word=$2
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29398 $as_echo_n "checking for $ac_word... " >&6; }
29399 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
29400 $as_echo_n "(cached) " >&6
29402 case $PCLDelegate in
29404 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29408 for as_dir in $PATH
29411 test -z "$as_dir" && as_dir=.
29412 for ac_exec_ext in '' $ac_executable_extensions; do
29413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29414 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
29415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29422 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29426 PCLDelegate=$ac_cv_path_PCLDelegate
29427 if test -n "$PCLDelegate"; then
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
29429 $as_echo "$PCLDelegate" >&6; }
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29432 $as_echo "no" >&6; }
29436 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29437 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29439 $as_echo_n "checking for $ac_word... " >&6; }
29440 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
29441 $as_echo_n "(cached) " >&6
29443 case $PGPDecodeDelegate in
29445 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29449 for as_dir in $PATH
29452 test -z "$as_dir" && as_dir=.
29453 for ac_exec_ext in '' $ac_executable_extensions; do
29454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29455 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29463 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29467 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29468 if test -n "$PGPDecodeDelegate"; then
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
29470 $as_echo "$PGPDecodeDelegate" >&6; }
29472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29473 $as_echo "no" >&6; }
29477 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29478 set dummy "$POVDelegateDefault"; ac_word=$2
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29480 $as_echo_n "checking for $ac_word... " >&6; }
29481 if test "${ac_cv_path_POVDelegate+set}" = set; then :
29482 $as_echo_n "(cached) " >&6
29484 case $POVDelegate in
29486 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29490 for as_dir in $PATH
29493 test -z "$as_dir" && as_dir=.
29494 for ac_exec_ext in '' $ac_executable_extensions; do
29495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29496 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
29497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29504 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29508 POVDelegate=$ac_cv_path_POVDelegate
29509 if test -n "$POVDelegate"; then
29510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
29511 $as_echo "$POVDelegate" >&6; }
29513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29514 $as_echo "no" >&6; }
29518 for ac_prog in gsx gsc "$PSDelegateDefault"
29520 # Extract the first word of "$ac_prog", so it can be a program name with args.
29521 set dummy $ac_prog; ac_word=$2
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29523 $as_echo_n "checking for $ac_word... " >&6; }
29524 if test "${ac_cv_path_PSDelegate+set}" = set; then :
29525 $as_echo_n "(cached) " >&6
29527 case $PSDelegate in
29529 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29533 for as_dir in $PATH
29536 test -z "$as_dir" && as_dir=.
29537 for ac_exec_ext in '' $ac_executable_extensions; do
29538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29539 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
29540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29550 PSDelegate=$ac_cv_path_PSDelegate
29551 if test -n "$PSDelegate"; then
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
29553 $as_echo "$PSDelegate" >&6; }
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29556 $as_echo "no" >&6; }
29560 test -n "$PSDelegate" && break
29562 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29564 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29565 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
29566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29567 $as_echo_n "checking for $ac_word... " >&6; }
29568 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
29569 $as_echo_n "(cached) " >&6
29571 case $RLEEncodeDelegate in
29573 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29577 for as_dir in $PATH
29580 test -z "$as_dir" && as_dir=.
29581 for ac_exec_ext in '' $ac_executable_extensions; do
29582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29583 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29591 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29595 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29596 if test -n "$RLEEncodeDelegate"; then
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
29598 $as_echo "$RLEEncodeDelegate" >&6; }
29600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29601 $as_echo "no" >&6; }
29605 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29606 set dummy "$RMDelegateDefault"; ac_word=$2
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29608 $as_echo_n "checking for $ac_word... " >&6; }
29609 if test "${ac_cv_path_RMDelegate+set}" = set; then :
29610 $as_echo_n "(cached) " >&6
29612 case $RMDelegate in
29614 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29618 for as_dir in $PATH
29621 test -z "$as_dir" && as_dir=.
29622 for ac_exec_ext in '' $ac_executable_extensions; do
29623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29624 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
29625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29632 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29636 RMDelegate=$ac_cv_path_RMDelegate
29637 if test -n "$RMDelegate"; then
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
29639 $as_echo "$RMDelegate" >&6; }
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29642 $as_echo "no" >&6; }
29646 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29647 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29649 $as_echo_n "checking for $ac_word... " >&6; }
29650 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
29651 $as_echo_n "(cached) " >&6
29653 case $SCANDecodeDelegate in
29655 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29659 for as_dir in $PATH
29662 test -z "$as_dir" && as_dir=.
29663 for ac_exec_ext in '' $ac_executable_extensions; do
29664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29665 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29673 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29677 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29678 if test -n "$SCANDecodeDelegate"; then
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
29680 $as_echo "$SCANDecodeDelegate" >&6; }
29682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29683 $as_echo "no" >&6; }
29687 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29688 set dummy "$TXTDelegateDefault"; ac_word=$2
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29690 $as_echo_n "checking for $ac_word... " >&6; }
29691 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
29692 $as_echo_n "(cached) " >&6
29694 case $TXTDelegate in
29696 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29700 for as_dir in $PATH
29703 test -z "$as_dir" && as_dir=.
29704 for ac_exec_ext in '' $ac_executable_extensions; do
29705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29706 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
29707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29714 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29718 TXTDelegate=$ac_cv_path_TXTDelegate
29719 if test -n "$TXTDelegate"; then
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
29721 $as_echo "$TXTDelegate" >&6; }
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29724 $as_echo "no" >&6; }
29728 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29729 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29731 $as_echo_n "checking for $ac_word... " >&6; }
29732 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
29733 $as_echo_n "(cached) " >&6
29735 case $WMFDecodeDelegate in
29737 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29741 for as_dir in $PATH
29744 test -z "$as_dir" && as_dir=.
29745 for ac_exec_ext in '' $ac_executable_extensions; do
29746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29747 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29755 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29759 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29760 if test -n "$WMFDecodeDelegate"; then
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
29762 $as_echo "$WMFDecodeDelegate" >&6; }
29764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29765 $as_echo "no" >&6; }
29769 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29770 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29772 $as_echo_n "checking for $ac_word... " >&6; }
29773 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
29774 $as_echo_n "(cached) " >&6
29776 case $WWWDecodeDelegate in
29778 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29782 for as_dir in $PATH
29785 test -z "$as_dir" && as_dir=.
29786 for ac_exec_ext in '' $ac_executable_extensions; do
29787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29788 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29796 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29800 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29801 if test -n "$WWWDecodeDelegate"; then
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
29803 $as_echo "$WWWDecodeDelegate" >&6; }
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29806 $as_echo "no" >&6; }
29810 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29811 set dummy "$XPSDelegateDefault"; ac_word=$2
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29813 $as_echo_n "checking for $ac_word... " >&6; }
29814 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
29815 $as_echo_n "(cached) " >&6
29817 case $XPSDelegate in
29819 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29823 for as_dir in $PATH
29826 test -z "$as_dir" && as_dir=.
29827 for ac_exec_ext in '' $ac_executable_extensions; do
29828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29829 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
29830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29837 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29841 XPSDelegate=$ac_cv_path_XPSDelegate
29842 if test -n "$XPSDelegate"; then
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
29844 $as_echo "$XPSDelegate" >&6; }
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29847 $as_echo "no" >&6; }
29851 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29852 set dummy "$ZipDelegateDefault"; ac_word=$2
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29854 $as_echo_n "checking for $ac_word... " >&6; }
29855 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
29856 $as_echo_n "(cached) " >&6
29858 case $ZipDelegate in
29860 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29864 for as_dir in $PATH
29867 test -z "$as_dir" && as_dir=.
29868 for ac_exec_ext in '' $ac_executable_extensions; do
29869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29870 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
29871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29878 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29882 ZipDelegate=$ac_cv_path_ZipDelegate
29883 if test -n "$ZipDelegate"; then
29884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
29885 $as_echo "$ZipDelegate" >&6; }
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29888 $as_echo "no" >&6; }
29893 # Prefer lpr to lp; lp needs options tacked on.
29894 if test "$LPRDelegate" != no; then
29895 PrintDelegate="$LPRDelegate"
29897 PrintDelegate="$LPDelegate -c -s"
29901 # Installed ImageMagick utiltity paths
29902 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29903 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29904 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29906 # Set delegate booleans
29907 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29908 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29909 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29910 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29911 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29912 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29913 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29914 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29915 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29916 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29917 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29920 # Test for font directories
29922 type_include_files=''
29925 windows_font_dir=''
29926 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29927 windows_font_dir="${with_windows_font_dir}/"
29929 if test -n "$windows_font_dir"; then
29930 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29931 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29933 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29934 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29936 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29937 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29940 if test -n "$windows_font_dir"; then
29941 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
29947 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29948 ghostscript_font_dir=''
29949 if test "${with_gs_font_dir}" != 'default'; then
29950 ghostscript_font_dir="${with_gs_font_dir}/"
29952 if test "${native_win32_build}" = 'yes'; then
29953 # Native Windows Build
29954 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29955 if test -f "${font_dir}a010013l.pfb"; then
29956 ghostscript_font_dir="$font_dir"
29960 if test "${PSDelegate}" != 'gswin32c'; then
29961 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29964 # Linux / Mac OS X / Unix Build
29965 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
29966 if test -f "${font_dir}a010013l.pfb"; then
29967 ghostscript_font_dir="${font_dir}"
29971 if test "${ghostscript_font_dir}x" = 'x'; then
29972 if test "$PSDelegate" != 'gs'; then
29973 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29978 if test "${ghostscript_font_dir}x" != 'x'; then
29979 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
29981 $as_echo "$ghostscript_font_dir" >&6; }
29983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
29984 $as_echo "not found!" >&6; };
29987 case "${build_os}" in
29989 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29996 # Handle case where user doesn't want frozen paths
29998 if test "$with_frozenpaths" != 'yes'; then
29999 # Re-set delegate definitions to default (no paths)
30000 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30001 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30002 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30003 BZIPDelegate="$BZIPDelegateDefault"
30004 BrowseDelegate="$BrowseDelegateDefault"
30005 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30006 CatDelegate="$CatDelegateDefault"
30007 ConvertDelegate="$ConvertDelegateDefault"
30008 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30009 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30010 EchoDelegate="$EchoDelegateDefault"
30011 EditorDelegate="$EditorDelegateDefault"
30012 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30013 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30014 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30015 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30016 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30017 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30018 LPDelegate="$LPDelegateDefault"
30019 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30020 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30021 LaunchDelegate="$LaunchDelegateDefault"
30022 MANDelegate="$MANDelegateDefault"
30023 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30024 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30025 MVDelegate="$MVDelegateDefault"
30026 MogrifyDelegate="$MogrifyDelegateDefault"
30027 PCLDelegate="$PCLDelegateDefault"
30028 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30029 POVDelegate="$POVDelegateDefault"
30030 PSDelegate="$PSDelegateDefault"
30031 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30032 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30033 RMDelegate="$RMDelegateDefault"
30034 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30035 ShowImageDelegate="$ShowImageDelegateDefault"
30036 TXTDelegate="$TXTDelegateDefault"
30037 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30038 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30039 XPSDelegate="$XPSDelegateDefault"
30040 ZipDelegate="$ZipDelegateDefault"
30043 # Delegate substitutions
30090 for ac_prog in gnutar gtar tar
30092 # Extract the first word of "$ac_prog", so it can be a program name with args.
30093 set dummy $ac_prog; ac_word=$2
30094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30095 $as_echo_n "checking for $ac_word... " >&6; }
30096 if test "${ac_cv_prog_TAR+set}" = set; then :
30097 $as_echo_n "(cached) " >&6
30099 if test -n "$TAR"; then
30100 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30103 for as_dir in $PATH
30106 test -z "$as_dir" && as_dir=.
30107 for ac_exec_ext in '' $ac_executable_extensions; do
30108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30109 ac_cv_prog_TAR="$ac_prog"
30110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30119 TAR=$ac_cv_prog_TAR
30120 if test -n "$TAR"; then
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
30122 $as_echo "$TAR" >&6; }
30124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30125 $as_echo "no" >&6; }
30129 test -n "$TAR" && break
30132 for ac_prog in perl
30134 # Extract the first word of "$ac_prog", so it can be a program name with args.
30135 set dummy $ac_prog; ac_word=$2
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30137 $as_echo_n "checking for $ac_word... " >&6; }
30138 if test "${ac_cv_prog_PERL+set}" = set; then :
30139 $as_echo_n "(cached) " >&6
30141 if test -n "$PERL"; then
30142 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30145 for as_dir in $PATH
30148 test -z "$as_dir" && as_dir=.
30149 for ac_exec_ext in '' $ac_executable_extensions; do
30150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30151 ac_cv_prog_PERL="$ac_prog"
30152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30161 PERL=$ac_cv_prog_PERL
30162 if test -n "$PERL"; then
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30164 $as_echo "$PERL" >&6; }
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30167 $as_echo "no" >&6; }
30171 test -n "$PERL" && break
30174 for ac_prog in rpmbuild rpm
30176 # Extract the first word of "$ac_prog", so it can be a program name with args.
30177 set dummy $ac_prog; ac_word=$2
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30179 $as_echo_n "checking for $ac_word... " >&6; }
30180 if test "${ac_cv_prog_RPM+set}" = set; then :
30181 $as_echo_n "(cached) " >&6
30183 if test -n "$RPM"; then
30184 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30187 for as_dir in $PATH
30190 test -z "$as_dir" && as_dir=.
30191 for ac_exec_ext in '' $ac_executable_extensions; do
30192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30193 ac_cv_prog_RPM="$ac_prog"
30194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30203 RPM=$ac_cv_prog_RPM
30204 if test -n "$RPM"; then
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
30206 $as_echo "$RPM" >&6; }
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30209 $as_echo "no" >&6; }
30213 test -n "$RPM" && break
30217 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30220 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30223 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30226 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30229 if test "x$RPM" != "x" ; then
30231 RPM_DELEGATE_FALSE='#'
30233 RPM_DELEGATE_TRUE='#'
30234 RPM_DELEGATE_FALSE=
30239 # 7ZIP support (http://p7zip.sourceforge.net/)
30244 # Extract the first word of "$ac_prog", so it can be a program name with args.
30245 set dummy $ac_prog; ac_word=$2
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30247 $as_echo_n "checking for $ac_word... " >&6; }
30248 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
30249 $as_echo_n "(cached) " >&6
30251 if test -n "$P7ZIP"; then
30252 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30255 for as_dir in $PATH
30258 test -z "$as_dir" && as_dir=.
30259 for ac_exec_ext in '' $ac_executable_extensions; do
30260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30261 ac_cv_prog_P7ZIP="$ac_prog"
30262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30271 P7ZIP=$ac_cv_prog_P7ZIP
30272 if test -n "$P7ZIP"; then
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
30274 $as_echo "$P7ZIP" >&6; }
30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30277 $as_echo "no" >&6; }
30281 test -n "$P7ZIP" && break
30285 if test "x$P7ZIP" != "x" ; then
30286 P7ZIP_DELEGATE_TRUE=
30287 P7ZIP_DELEGATE_FALSE='#'
30289 P7ZIP_DELEGATE_TRUE='#'
30290 P7ZIP_DELEGATE_FALSE=
30295 # ZIP support (http://www.info-zip.org/Zip.html)
30300 # Extract the first word of "$ac_prog", so it can be a program name with args.
30301 set dummy $ac_prog; ac_word=$2
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30303 $as_echo_n "checking for $ac_word... " >&6; }
30304 if test "${ac_cv_prog_ZIP+set}" = set; then :
30305 $as_echo_n "(cached) " >&6
30307 if test -n "$ZIP"; then
30308 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30311 for as_dir in $PATH
30314 test -z "$as_dir" && as_dir=.
30315 for ac_exec_ext in '' $ac_executable_extensions; do
30316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30317 ac_cv_prog_ZIP="$ac_prog"
30318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30327 ZIP=$ac_cv_prog_ZIP
30328 if test -n "$ZIP"; then
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
30330 $as_echo "$ZIP" >&6; }
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30333 $as_echo "no" >&6; }
30337 test -n "$ZIP" && break
30341 if test "x$ZIP" != "x" ; then
30343 ZIP_DELEGATE_FALSE='#'
30345 ZIP_DELEGATE_TRUE='#'
30346 ZIP_DELEGATE_FALSE=
30351 # GhostPCL related configuration.
30353 PCLColorDevice=ppmraw
30354 PCLCMYKDevice=bmpsep8
30355 PCLMonoDevice=pbmraw
30356 if test -z "$PCLVersion"; then
30357 PCLVersion='unknown'
30359 if test $have_pcl = 'yes'; then
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30361 $as_echo "-------------------------------------------------------------" >&6; }
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
30363 $as_echo_n "checking for PCL... " >&6; }
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
30368 $as_echo_n "checking for pcl color device... " >&6; }
30369 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30372 PCLColorDevice=ppmraw
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
30375 $as_echo "$PCLColorDevice" >&6; }
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
30379 $as_echo_n "checking for pcl CMYK device... " >&6; }
30380 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30383 PCLCMYKDevice=$PCLColorDevice
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
30386 $as_echo "$PCLCMYKDevice" >&6; }
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
30390 $as_echo_n "checking for pcl mono device... " >&6; }
30391 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30394 PCLMonoDevice=$PCLColorDevice
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
30397 $as_echo "$PCLMonoDevice" >&6; }
30406 # GhostXPS related configuration.
30408 XPSColorDevice=ppmraw
30409 XPSCMYKDevice=bmpsep8
30410 XPSMonoDevice=pbmraw
30411 if test -z "$XPSVersion"; then
30412 XPSVersion='unknown'
30414 if test $have_xps = 'yes'; then
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30416 $as_echo "-------------------------------------------------------------" >&6; }
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
30418 $as_echo_n "checking for XPS... " >&6; }
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
30423 $as_echo_n "checking for xps color device... " >&6; }
30424 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30427 XPSColorDevice=ppmraw
30429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
30430 $as_echo "$XPSColorDevice" >&6; }
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
30434 $as_echo_n "checking for xps CMYK device... " >&6; }
30435 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30438 XPSCMYKDevice=$XPSColorDevice
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
30441 $as_echo "$XPSCMYKDevice" >&6; }
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
30445 $as_echo_n "checking for xps mono device... " >&6; }
30446 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30449 XPSMonoDevice=$XPSColorDevice
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
30452 $as_echo "$XPSMonoDevice" >&6; }
30461 # Ghostscript related configuration.
30463 if test "$have_png" = 'yes'; then
30464 GSAlphaDevice=pngalpha
30466 GSAlphaDevice=pnmraw
30468 GSColorDevice=pnmraw
30470 GSMonoDevice=pbmraw
30471 GSPDFDevice=pdfwrite
30473 GSEPSDevice=epswrite
30474 GSVersion='unknown'
30475 if test $have_gs = 'yes'; then
30476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30477 $as_echo "-------------------------------------------------------------" >&6; }
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
30479 $as_echo_n "checking for Ghostscript... " >&6; }
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
30483 $as_echo_n "checking for Ghostscript version... " >&6; }
30484 if GSVersion=`$PSDelegate --version`; then
30487 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
30490 $as_echo "$GSVersion" >&6; }
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
30494 $as_echo_n "checking for gs alpha device... " >&6; }
30495 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30498 GSAlphaDevice=pnmraw
30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
30501 $as_echo "$GSAlphaDevice" >&6; }
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
30505 $as_echo_n "checking for gs color device... " >&6; }
30506 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30509 GSColorDevice=pnmraw
30511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
30512 $as_echo "$GSColorDevice" >&6; }
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
30516 $as_echo_n "checking for gs CMYK device... " >&6; }
30517 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30520 GSCMYKDevice=bmpsep8
30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
30523 $as_echo "$GSCMYKDevice" >&6; }
30526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
30527 $as_echo_n "checking for gs mono device... " >&6; }
30528 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30531 GSMonoDevice=$GSColorDevice
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
30534 $as_echo "$GSMonoDevice" >&6; }
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
30538 $as_echo_n "checking for gs PDF writing device... " >&6; }
30539 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30542 GSPDFDevice=nodevice
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
30545 $as_echo "$GSPDFDevice" >&6; }
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
30549 $as_echo_n "checking for gs PS writing device... " >&6; }
30550 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30553 GSPSDevice=nodevice
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
30556 $as_echo "$GSPSDevice" >&6; }
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
30560 $as_echo_n "checking for gs EPS writing device... " >&6; }
30561 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30564 GSEPSDevice=nodevice
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
30567 $as_echo "$GSEPSDevice" >&6; }
30580 # PerlMagick-related configuration
30583 # Look for PERL if PerlMagick requested
30584 # If name/path of desired PERL interpreter is specified, look for that one first
30586 if test "$with_perl" != 'no'; then
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30588 $as_echo "-------------------------------------------------------------" >&6; }
30589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
30590 $as_echo_n "checking for Perl... " >&6; }
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30593 if test "$with_perl" != 'yes'; then
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
30595 $as_echo_n "checking for perl... " >&6; }
30596 if test "${ac_cv_path_PERL+set}" = set; then :
30597 $as_echo_n "(cached) " >&6
30599 ac_cv_path_PERL="$with_perl"
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
30602 $as_echo "$ac_cv_path_PERL" >&6; };
30603 PERL=$ac_cv_path_PERL
30604 have_perl="$ac_cv_path_PERL"
30606 for ac_prog in perl perl5
30608 # Extract the first word of "$ac_prog", so it can be a program name with args.
30609 set dummy $ac_prog; 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_PERL+set}" = set; then :
30613 $as_echo_n "(cached) " >&6
30617 ac_cv_path_PERL="$PERL" # 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_PERL="$as_dir/$ac_word$ac_exec_ext"
30628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30638 PERL=$ac_cv_path_PERL
30639 if test -n "$PERL"; then
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30641 $as_echo "$PERL" >&6; }
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30644 $as_echo "no" >&6; }
30648 test -n "$PERL" && break
30650 if test "$ac_cv_path_PERL"; then
30651 have_perl="$ac_cv_path_PERL"
30656 with_perl_static='no'
30657 with_perl_dynamic='no'
30658 if test "$have_perl" != 'no'; then
30659 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30660 with_perl_static='yes'
30662 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30663 with_perl_dynamic='yes'
30665 # Is PERL's MakeMaker new enough to support DESTDIR?
30666 # Make sure we have perl
30667 if test -z "$PERL"; then
30668 # Extract the first word of "perl", so it can be a program name with args.
30669 set dummy perl; ac_word=$2
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30671 $as_echo_n "checking for $ac_word... " >&6; }
30672 if test "${ac_cv_prog_PERL+set}" = set; then :
30673 $as_echo_n "(cached) " >&6
30675 if test -n "$PERL"; then
30676 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30679 for as_dir in $PATH
30682 test -z "$as_dir" && as_dir=.
30683 for ac_exec_ext in '' $ac_executable_extensions; do
30684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30685 ac_cv_prog_PERL="perl"
30686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30695 PERL=$ac_cv_prog_PERL
30696 if test -n "$PERL"; then
30697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30698 $as_echo "$PERL" >&6; }
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30701 $as_echo "no" >&6; }
30707 # Check if version of Perl is sufficient
30708 ac_perl_version="5.8.1"
30710 if test "x$PERL" != "x"; then
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
30712 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30713 # NB: It would be nice to log the error if there is one, but we cannot rely
30714 # on autoconf internals
30715 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30716 if test $? -ne 0; then
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30718 $as_echo "no" >&6; };
30719 PERL_SUPPORTS_DESTDIR='no'
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
30722 $as_echo "ok" >&6; };
30723 PERL_SUPPORTS_DESTDIR='yes'
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
30727 $as_echo "$as_me: WARNING: could not find perl" >&2;}
30731 if test "$have_perl" != 'no'; then
30733 WITH_PERL_FALSE='#'
30739 if test $with_perl_static = 'yes'; then
30740 WITH_PERL_STATIC_TRUE=
30741 WITH_PERL_STATIC_FALSE='#'
30743 WITH_PERL_STATIC_TRUE='#'
30744 WITH_PERL_STATIC_FALSE=
30747 if test $with_perl_dynamic = 'yes'; then
30748 WITH_PERL_DYNAMIC_TRUE=
30749 WITH_PERL_DYNAMIC_FALSE='#'
30751 WITH_PERL_DYNAMIC_TRUE='#'
30752 WITH_PERL_DYNAMIC_FALSE=
30757 # Determine path to pick up MagickCore library from for use with building PerlMagick
30758 MAGICKCORE_PATH="${LIB_DIR}"
30759 if test $with_perl_static = 'yes'; then
30760 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30761 libtool_objdir=$objdir
30763 # Linker search path to library, followed by -lMagickCore
30764 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30768 # Create a simple string containing format names for all delegate libraries
30770 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30771 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30772 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30773 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30774 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30775 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30776 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30777 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30778 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30779 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30780 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30781 if test "$have_jpeg" = 'yes'; then
30782 DELEGATES="$DELEGATES jpeg";
30783 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30785 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30786 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30787 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30788 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30789 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30790 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30791 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30792 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30793 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30794 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30795 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30796 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30801 # Handle special compiler flags
30804 # Add '-p' if prof source profiling support enabled
30805 if test "$enable_prof" = 'yes'; then
30806 CFLAGS="-p $CFLAGS"
30807 CXXFLAGS="-p $CXXFLAGS"
30808 LDFLAGS="-p $LDFLAGS"
30811 # Add '-pg' if gprof source profiling support enabled
30812 if test "$enable_gprof" = 'yes'; then
30813 CFLAGS="-pg $CFLAGS"
30814 CXXFLAGS="-pg $CXXFLAGS"
30815 LDFLAGS="-pg $LDFLAGS"
30818 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30819 # This is a gcc-specific feature
30820 if test "$enable_gcov" = 'yes'; then
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
30822 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
30823 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
30824 $as_echo_n "(cached) " >&6
30826 ac_check_lib_save_LIBS=$LIBS
30827 LIBS="-lgcov $LIBS"
30828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30829 /* end confdefs.h. */
30831 /* Override any GCC internal prototype to avoid an error.
30832 Use char because int might match the return type of a GCC
30833 builtin and then its argument prototype would still apply. */
30837 char _gcov_init ();
30841 return _gcov_init ();
30846 if ac_fn_c_try_link "$LINENO"; then :
30847 ac_cv_lib_gcov__gcov_init=yes
30849 ac_cv_lib_gcov__gcov_init=no
30851 rm -f core conftest.err conftest.$ac_objext \
30852 conftest$ac_exeext conftest.$ac_ext
30853 LIBS=$ac_check_lib_save_LIBS
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
30856 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
30857 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
30858 cat >>confdefs.h <<_ACEOF
30859 #define HAVE_LIBGCOV 1
30862 LIBS="-lgcov $LIBS"
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
30867 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
30868 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
30869 $as_echo_n "(cached) " >&6
30871 ac_check_lib_save_LIBS=$LIBS
30872 LIBS="-lgcov $LIBS"
30873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30874 /* end confdefs.h. */
30876 /* Override any GCC internal prototype to avoid an error.
30877 Use char because int might match the return type of a GCC
30878 builtin and then its argument prototype would still apply. */
30882 char __gcov_init ();
30886 return __gcov_init ();
30891 if ac_fn_c_try_link "$LINENO"; then :
30892 ac_cv_lib_gcov___gcov_init=yes
30894 ac_cv_lib_gcov___gcov_init=no
30896 rm -f core conftest.err conftest.$ac_objext \
30897 conftest$ac_exeext conftest.$ac_ext
30898 LIBS=$ac_check_lib_save_LIBS
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
30901 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
30902 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
30903 cat >>confdefs.h <<_ACEOF
30904 #define HAVE_LIBGCOV 1
30907 LIBS="-lgcov $LIBS"
30911 case "$target_os" in
30913 OSX_GCOV_LDFLAG="-Wl,-single_module"
30920 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30921 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30922 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30926 # Build library dependency list for libMagickCore
30929 MAGICK_LIBLTDL='' # Libltdl for build
30930 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30931 MAGICK_LTDLDEPS='' # extra libltdl dependencies
30932 if test "$with_ltdl" != 'no'
30934 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30935 MAGICK_API_LIBLTDL='-lltdl'
30937 MAGICK_LIBLTDL=${LIBLTDL}
30938 MAGICK_LTDLDEPS=${LTDLDEPS}
30943 if test "$with_modules" != 'no'; then
30944 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"
30946 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"
30951 # Remove extraneous spaces from output variables (asthetic)
30953 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30954 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30955 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30956 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30958 CC=`echo $CC | sed -e 's/ */ /g'`
30959 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30960 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30961 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30962 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30963 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30964 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30965 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30966 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30967 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30969 # Pass only user-provided LIBS as "global" libraries
30972 #AC_SUBST(CPPFLAGS)
30975 #AC_SUBST(X_PRE_LIBS)
30977 #AC_SUBST(X_EXTRA_LIBS)
30979 MAGICK_CFLAGS=$CFLAGS
30980 MAGICK_CXXFLAGS="$CXXFLAGS"
30981 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30982 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30983 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30984 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30993 # Set configured scripts to executable.
30994 ac_config_commands="$ac_config_commands default"
30996 ac_config_commands="$ac_config_commands MagickCore-config.in"
30998 ac_config_commands="$ac_config_commands Magick-config.in"
31000 ac_config_commands="$ac_config_commands MagickWand-config.in"
31002 ac_config_commands="$ac_config_commands Wand-config.in"
31004 ac_config_commands="$ac_config_commands Magick++-config.in"
31006 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31010 $as_echo "-------------------------------------------------------------" >&6; }
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
31012 $as_echo "Update ImageMagick configuration" >&6; }
31013 cat >confcache <<\_ACEOF
31014 # This file is a shell script that caches the results of configure
31015 # tests run on this system so they can be shared between configure
31016 # scripts and configure runs, see configure's option --config-cache.
31017 # It is not useful on other systems. If it contains results you don't
31018 # want to keep, you may remove or edit it.
31020 # config.status only pays attention to the cache file if you give it
31021 # the --recheck option to rerun configure.
31023 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31024 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31025 # following values.
31029 # The following way of writing the cache mishandles newlines in values,
31030 # but we know of no workaround that is simple, portable, and efficient.
31031 # So, we kill variables containing newlines.
31032 # Ultrix sh set writes to stderr and can't be redirected directly,
31033 # and sets the high bit in the cache file unless we assign to the vars.
31035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31036 eval ac_val=\$$ac_var
31040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31044 _ | IFS | as_nl) ;; #(
31045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31046 *) { eval $ac_var=; unset $ac_var;} ;;
31052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31053 *${as_nl}ac_space=\ *)
31054 # `set' does not quote correctly, so add quotes: double-quote
31055 # substitution turns \\\\ into \\, and sed turns \\ into \.
31058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31061 # `set' quotes correctly as required by POSIX, so do not add quotes.
31062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31076 if test -w "$cache_file"; then
31077 test "x$cache_file" != "x/dev/null" &&
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31079 $as_echo "$as_me: updating cache $cache_file" >&6;}
31080 cat confcache >$cache_file
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31089 # Let make expand exec_prefix.
31090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31092 DEFS=-DHAVE_CONFIG_H
31096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31097 # 1. Remove the extension, and $U if already installed.
31098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31099 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31101 # will be set to the directory where LIBOBJS objects are built.
31102 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31103 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31105 LIBOBJS=$ac_libobjs
31107 LTLIBOBJS=$ac_ltlibobjs
31110 if test -n "$EXEEXT"; then
31112 am__EXEEXT_FALSE='#'
31114 am__EXEEXT_TRUE='#'
31118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31119 as_fn_error "conditional \"AMDEP\" was never defined.
31120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31122 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31123 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31126 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31127 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31130 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
31131 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31134 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
31135 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31138 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
31139 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31142 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
31143 as_fn_error "conditional \"USING_CL\" was never defined.
31144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31146 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31147 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31150 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31151 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31154 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31155 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31158 LT_CONFIG_H=config/config.h
31162 if test -n "$_LT_LIBOBJS"; then
31163 # Remove the extension.
31164 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31165 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31166 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31167 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31170 ltdl_LIBOBJS=$_ltdl_libobjs
31172 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31175 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
31176 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31179 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
31180 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31183 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31184 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31188 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31189 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31192 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
31193 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31196 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
31197 as_fn_error "conditional \"HasUMEM\" was never defined.
31198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31200 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
31201 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31204 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
31205 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31208 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
31209 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31212 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
31213 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31216 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
31217 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31220 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
31221 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31224 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
31225 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31228 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
31229 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31232 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
31233 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31236 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
31237 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31240 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
31241 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31244 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
31245 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31248 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
31249 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31252 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
31253 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31256 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
31257 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31260 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
31261 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31264 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
31265 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31268 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
31269 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31272 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
31273 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31276 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
31277 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31280 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
31281 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31284 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
31285 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31288 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
31289 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31292 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
31293 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31296 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
31297 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31300 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
31301 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31304 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
31305 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31308 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
31309 as_fn_error "conditional \"WITH_PERL\" was never defined.
31310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31312 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
31313 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31316 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
31317 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31321 : ${CONFIG_STATUS=./config.status}
31323 ac_clean_files_save=$ac_clean_files
31324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31330 # Generated by $as_me.
31331 # Run this file to recreate the current configuration.
31332 # Compiler output produced by configure, useful for debugging
31333 # configure, is in config.log if it exists.
31336 ac_cs_recheck=false
31339 SHELL=\${CONFIG_SHELL-$SHELL}
31342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31343 ## -------------------- ##
31344 ## M4sh Initialization. ##
31345 ## -------------------- ##
31347 # Be more Bourne compatible
31348 DUALCASE=1; export DUALCASE # for MKS sh
31349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31353 # is contrary to our usage. Disable this feature.
31354 alias -g '${1+"$@"}'='"$@"'
31355 setopt NO_GLOB_SUBST
31357 case `(set -o) 2>/dev/null` in #(
31369 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31370 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31373 # Prefer a ksh shell builtin over an external printf program on Solaris,
31374 # but without wasting forks for bash or zsh.
31375 if test -z "$BASH_VERSION$ZSH_VERSION" \
31376 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31377 as_echo='print -r --'
31378 as_echo_n='print -rn --'
31379 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31380 as_echo='printf %s\n'
31381 as_echo_n='printf %s'
31383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31384 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31385 as_echo_n='/usr/ucb/echo -n'
31387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31388 as_echo_n_body='eval
31392 expr "X$arg" : "X\\(.*\\)$as_nl";
31393 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31395 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31397 export as_echo_n_body
31398 as_echo_n='sh -c $as_echo_n_body as_echo'
31400 export as_echo_body
31401 as_echo='sh -c $as_echo_body as_echo'
31404 # The user is always right.
31405 if test "${PATH_SEPARATOR+set}" != set; then
31407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31408 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31415 # We need space, tab and new line, in precisely that order. Quoting is
31416 # there to prevent editors from complaining about space-tab.
31417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31418 # splitting by setting IFS to empty value.)
31421 # Find who we are. Look in the path if we contain no directory separator.
31423 *[\\/]* ) as_myself=$0 ;;
31424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31425 for as_dir in $PATH
31428 test -z "$as_dir" && as_dir=.
31429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31435 # We did not find ourselves, most probably we were run as `sh COMMAND'
31436 # in which case we are not to be found in the path.
31437 if test "x$as_myself" = x; then
31440 if test ! -f "$as_myself"; then
31441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31445 # Unset variables that we do not need and which cause bugs (e.g. in
31446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31447 # suppresses any "Segmentation fault" message there. '((' could
31448 # trigger a bug in pdksh 5.2.14.
31449 for as_var in BASH_ENV ENV MAIL MAILPATH
31450 do eval test x\${$as_var+set} = xset \
31451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31467 # as_fn_error ERROR [LINENO LOG_FD]
31468 # ---------------------------------
31469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31471 # script with status $?, using 1 if that was 0.
31474 as_status=$?; test $as_status -eq 0 && as_status=1
31476 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31479 $as_echo "$as_me: error: $1" >&2
31480 as_fn_exit $as_status
31484 # as_fn_set_status STATUS
31485 # -----------------------
31486 # Set $? to STATUS, without forking.
31487 as_fn_set_status ()
31490 } # as_fn_set_status
31492 # as_fn_exit STATUS
31493 # -----------------
31494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31498 as_fn_set_status $1
31504 # Portably unset VAR.
31507 { eval $1=; unset $1;}
31509 as_unset=as_fn_unset
31510 # as_fn_append VAR VALUE
31511 # ----------------------
31512 # Append the text in VALUE to the end of the definition contained in VAR. Take
31513 # advantage of any shell optimizations that allow amortized linear growth over
31514 # repeated appends, instead of the typical quadratic growth present in naive
31516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31517 eval 'as_fn_append ()
31528 # as_fn_arith ARG...
31529 # ------------------
31530 # Perform arithmetic evaluation on the ARGs, and store the result in the
31531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31532 # must be portable across $(()) and expr.
31533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31534 eval 'as_fn_arith ()
31541 as_val=`expr "$@" || test $? -eq 1`
31546 if expr a : '\(a\)' >/dev/null 2>&1 &&
31547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31554 as_basename=basename
31559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31565 as_me=`$as_basename -- "$0" ||
31566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31567 X"$0" : 'X\(//\)$' \| \
31568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31570 sed '/^.*\/\([^/][^/]*\)\/*$/{
31584 # Avoid depending upon Character Ranges.
31585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31588 as_cr_digits='0123456789'
31589 as_cr_alnum=$as_cr_Letters$as_cr_digits
31591 ECHO_C= ECHO_N= ECHO_T=
31592 case `echo -n x` in #(((((
31594 case `echo 'xy\c'` in
31595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31604 rm -f conf$$ conf$$.exe conf$$.file
31605 if test -d conf$$.dir; then
31606 rm -f conf$$.dir/conf$$.file
31609 mkdir conf$$.dir 2>/dev/null
31611 if (echo >conf$$.file) 2>/dev/null; then
31612 if ln -s conf$$.file conf$$ 2>/dev/null; then
31614 # ... but there are two gotchas:
31615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31617 # In both cases, we have to default to `cp -p'.
31618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31620 elif ln conf$$.file conf$$ 2>/dev/null; then
31628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31629 rmdir conf$$.dir 2>/dev/null
31634 # Create "$as_dir" as a directory, including parents if necessary.
31639 -*) as_dir=./$as_dir;;
31641 test -d "$as_dir" || eval $as_mkdir_p || {
31645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31646 *) as_qdir=$as_dir;;
31648 as_dirs="'$as_qdir' $as_dirs"
31649 as_dir=`$as_dirname -- "$as_dir" ||
31650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31651 X"$as_dir" : 'X\(//\)[^/]' \| \
31652 X"$as_dir" : 'X\(//\)$' \| \
31653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31654 $as_echo X"$as_dir" |
31655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31659 /^X\(\/\/\)[^/].*/{
31672 test -d "$as_dir" && break
31674 test -z "$as_dirs" || eval "mkdir $as_dirs"
31675 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31679 if mkdir -p . 2>/dev/null; then
31680 as_mkdir_p='mkdir -p "$as_dir"'
31682 test -d ./-p && rmdir ./-p
31686 if test -x / >/dev/null 2>&1; then
31687 as_test_x='test -x'
31689 if ls -dL / >/dev/null 2>&1; then
31696 if test -d "$1"; then
31702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31703 ???[sx]*):;;*)false;;esac;fi
31707 as_executable_p=$as_test_x
31709 # Sed expression to map a string onto a valid CPP name.
31710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31712 # Sed expression to map a string onto a valid variable name.
31713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31717 ## ----------------------------------- ##
31718 ## Main body of $CONFIG_STATUS script. ##
31719 ## ----------------------------------- ##
31721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31724 # Save the log message, to keep $0 and so on meaningful, and to
31725 # report actual input values of CONFIG_FILES etc. instead of their
31726 # values after options handling.
31728 This file was extended by ImageMagick $as_me 6.5.8, which was
31729 generated by GNU Autoconf 2.65. Invocation command line was
31731 CONFIG_FILES = $CONFIG_FILES
31732 CONFIG_HEADERS = $CONFIG_HEADERS
31733 CONFIG_LINKS = $CONFIG_LINKS
31734 CONFIG_COMMANDS = $CONFIG_COMMANDS
31737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31742 case $ac_config_files in *"
31743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31746 case $ac_config_headers in *"
31747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31752 # Files that config.status was made for.
31753 config_files="$ac_config_files"
31754 config_headers="$ac_config_headers"
31755 config_commands="$ac_config_commands"
31759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31761 \`$as_me' instantiates files and other configuration actions
31762 from templates according to the current configuration. Unless the files
31763 and actions are specified as TAGs, all are instantiated by default.
31765 Usage: $0 [OPTION]... [TAG]...
31767 -h, --help print this help, then exit
31768 -V, --version print version number and configuration settings, then exit
31769 --config print configuration, then exit
31770 -q, --quiet, --silent
31771 do not print progress messages
31772 -d, --debug don't remove temporary files
31773 --recheck update $as_me by reconfiguring in the same conditions
31774 --file=FILE[:TEMPLATE]
31775 instantiate the configuration file FILE
31776 --header=FILE[:TEMPLATE]
31777 instantiate the configuration header FILE
31779 Configuration files:
31782 Configuration headers:
31785 Configuration commands:
31788 Report bugs to <http://www.imagemagick.org>."
31791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31792 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31794 ImageMagick config.status 6.5.8
31795 configured by $0, generated by GNU Autoconf 2.65,
31796 with options \\"\$ac_cs_config\\"
31798 Copyright (C) 2009 Free Software Foundation, Inc.
31799 This config.status script is free software; the Free Software Foundation
31800 gives unlimited permission to copy, distribute and modify it."
31807 test -n "\$AWK" || AWK=awk
31810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31811 # The default lists apply if the user does not specify any file.
31817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31829 # Handling of the options.
31830 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31832 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31833 $as_echo "$ac_cs_version"; exit ;;
31834 --config | --confi | --conf | --con | --co | --c )
31835 $as_echo "$ac_cs_config"; exit ;;
31836 --debug | --debu | --deb | --de | --d | -d )
31838 --file | --fil | --fi | --f )
31841 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31843 as_fn_append CONFIG_FILES " '$ac_optarg'"
31844 ac_need_defaults=false;;
31845 --header | --heade | --head | --hea )
31848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31850 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31851 ac_need_defaults=false;;
31853 # Conflict between --help and --header
31854 as_fn_error "ambiguous option: \`$1'
31855 Try \`$0 --help' for more information.";;
31856 --help | --hel | -h )
31857 $as_echo "$ac_cs_usage"; exit ;;
31858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31859 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31862 # This is an error.
31863 -*) as_fn_error "unrecognized option: \`$1'
31864 Try \`$0 --help' for more information." ;;
31866 *) as_fn_append ac_config_targets " $1"
31867 ac_need_defaults=false ;;
31873 ac_configure_extra_args=
31875 if $ac_cs_silent; then
31877 ac_configure_extra_args="$ac_configure_extra_args --silent"
31881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31882 if \$ac_cs_recheck; then
31883 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31885 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31886 CONFIG_SHELL='$SHELL'
31887 export CONFIG_SHELL
31892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31896 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31897 ## Running $as_me. ##
31903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31908 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31911 # The HP-UX ksh and POSIX shell print the target directory to stdout
31912 # if CDPATH is set.
31913 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31915 sed_quote_subst='$sed_quote_subst'
31916 double_quote_subst='$double_quote_subst'
31917 delay_variable_subst='$delay_variable_subst'
31918 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31919 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31920 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31921 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31922 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31923 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31924 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31925 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31926 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31927 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31928 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31929 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31930 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31931 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31932 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31933 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31934 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31935 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31936 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31937 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31938 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31939 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31940 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31941 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31942 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31943 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31944 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31945 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31946 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31947 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31948 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31949 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31950 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31951 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31952 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31953 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31954 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31955 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31956 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31957 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31958 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31959 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31960 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31961 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31962 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31963 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31964 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"`'
31965 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"`'
31966 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31967 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31968 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31969 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31970 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31971 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31972 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31973 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31974 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31975 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31976 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31977 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31978 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31979 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31980 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31981 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31982 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31983 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31984 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31985 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31986 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31987 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31988 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31989 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31990 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31991 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31992 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31993 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31994 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31995 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31996 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31997 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31998 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31999 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
32000 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
32001 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
32002 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
32003 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
32004 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32005 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
32006 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
32007 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
32008 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
32009 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32010 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32011 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32012 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32013 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32014 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32015 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32016 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32017 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32018 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32019 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32020 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32021 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32022 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32023 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32024 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32025 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32026 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32027 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32028 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32029 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32030 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32031 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32032 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32033 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32034 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32035 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32036 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32037 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32038 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32039 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32040 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32041 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32042 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32043 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32044 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32076 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32077 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32078 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32079 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32080 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32081 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32082 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32083 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32084 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32085 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32086 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32087 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32088 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32089 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32090 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32093 LTCFLAGS='$LTCFLAGS'
32094 compiler='$compiler_DEFAULT'
32096 # Quote evaled strings.
32107 deplibs_check_method \
32116 lt_cv_sys_global_symbol_pipe \
32117 lt_cv_sys_global_symbol_to_cdecl \
32118 lt_cv_sys_global_symbol_to_c_name_address \
32119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32122 lt_prog_compiler_no_builtin_flag \
32123 lt_prog_compiler_wl \
32124 lt_prog_compiler_pic \
32125 lt_prog_compiler_static \
32126 lt_cv_prog_compiler_c_o \
32134 export_dynamic_flag_spec \
32135 whole_archive_flag_spec \
32136 compiler_needs_object \
32138 allow_undefined_flag \
32139 no_undefined_flag \
32140 hardcode_libdir_flag_spec \
32141 hardcode_libdir_flag_spec_ld \
32142 hardcode_libdir_separator \
32147 variables_saved_for_relink \
32149 library_names_spec \
32154 compiler_lib_search_dirs \
32159 compiler_lib_search_path \
32162 lt_prog_compiler_no_builtin_flag_CXX \
32163 lt_prog_compiler_wl_CXX \
32164 lt_prog_compiler_pic_CXX \
32165 lt_prog_compiler_static_CXX \
32166 lt_cv_prog_compiler_c_o_CXX \
32167 export_dynamic_flag_spec_CXX \
32168 whole_archive_flag_spec_CXX \
32169 compiler_needs_object_CXX \
32171 allow_undefined_flag_CXX \
32172 no_undefined_flag_CXX \
32173 hardcode_libdir_flag_spec_CXX \
32174 hardcode_libdir_flag_spec_ld_CXX \
32175 hardcode_libdir_separator_CXX \
32176 fix_srcfile_path_CXX \
32177 exclude_expsyms_CXX \
32178 include_expsyms_CXX \
32179 file_list_spec_CXX \
32180 compiler_lib_search_dirs_CXX \
32181 predep_objects_CXX \
32182 postdep_objects_CXX \
32185 compiler_lib_search_path_CXX; do
32186 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32187 *[\\\\\\\`\\"\\\$]*)
32188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32196 # Double-quote double-evaled strings.
32197 for var in reload_cmds \
32198 old_postinstall_cmds \
32199 old_postuninstall_cmds \
32201 extract_expsyms_cmds \
32202 old_archive_from_new_cmds \
32203 old_archive_from_expsyms_cmds \
32205 archive_expsym_cmds \
32207 module_expsym_cmds \
32208 export_symbols_cmds \
32211 postuninstall_cmds \
32213 sys_lib_search_path_spec \
32214 sys_lib_dlsearch_path_spec \
32215 old_archive_cmds_CXX \
32216 old_archive_from_new_cmds_CXX \
32217 old_archive_from_expsyms_cmds_CXX \
32219 archive_expsym_cmds_CXX \
32221 module_expsym_cmds_CXX \
32222 export_symbols_cmds_CXX \
32223 prelink_cmds_CXX; do
32224 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32225 *[\\\\\\\`\\"\\\$]*)
32226 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32229 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32234 # Fix-up fallback echo if it was mangled by the above quoting rules.
32236 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32240 ac_aux_dir='$ac_aux_dir'
32241 xsi_shell='$xsi_shell'
32242 lt_shell_append='$lt_shell_append'
32244 # See if we are running on zsh, and set the options which allow our
32245 # commands through without removal of \ escapes INIT.
32246 if test -n "\${ZSH_VERSION+set}" ; then
32247 setopt NO_GLOB_SUBST
32253 TIMESTAMP='$TIMESTAMP'
32264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32266 # Handling of arguments.
32267 for ac_config_target in $ac_config_targets
32269 case $ac_config_target in
32270 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32271 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32272 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32273 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32274 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32275 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32276 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32277 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32278 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32279 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32280 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32281 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32282 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32283 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32284 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32285 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32286 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32287 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32288 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32290 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32291 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32292 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32293 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32294 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32295 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32296 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32297 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32298 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32299 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32300 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32301 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32302 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32303 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32304 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32305 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32306 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32307 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32308 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32309 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32311 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32312 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32313 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32314 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32315 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32316 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32317 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32318 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32320 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32325 # If the user did not use the arguments to specify the items to instantiate,
32326 # then the envvar interface is used. Set only those that are not.
32327 # We use the long form for the default assignment because of an extremely
32328 # bizarre bug on SunOS 4.1.3.
32329 if $ac_need_defaults; then
32330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32335 # Have a temporary directory for convenience. Make it in the build tree
32336 # simply because there is no reason against having it here, and in addition,
32337 # creating and moving files from /tmp can sometimes cause problems.
32338 # Hook for its removal unless debugging.
32339 # Note that there is a small window in which the directory will not be cleaned:
32340 # after its creation but before its name has been assigned to `$tmp'.
32344 trap 'exit_status=$?
32345 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32347 trap 'as_fn_exit 1' 1 2 13 15
32349 # Create a (secure) tmp directory for tmp files.
32352 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32353 test -n "$tmp" && test -d "$tmp"
32356 tmp=./conf$$-$RANDOM
32357 (umask 077 && mkdir "$tmp")
32358 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
32360 # Set up the scripts for CONFIG_FILES section.
32361 # No need to generate them if there are no CONFIG_FILES.
32362 # This happens for instance with `./config.status config.h'.
32363 if test -n "$CONFIG_FILES"; then
32366 ac_cr=`echo X | tr X '\015'`
32367 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32368 # But we know of no other shell where ac_cr would be empty at this
32369 # point, so we can use a bashism as a fallback.
32370 if test "x$ac_cr" = x; then
32371 eval ac_cr=\$\'\\r\'
32373 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32374 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32377 ac_cs_awk_cr=$ac_cr
32380 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32385 echo "cat >conf$$subs.awk <<_ACEOF" &&
32386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32388 } >conf$$subs.sh ||
32389 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32390 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32392 for ac_last_try in false false false false false :; do
32393 . ./conf$$subs.sh ||
32394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32397 if test $ac_delim_n = $ac_delim_num; then
32399 elif $ac_last_try; then
32400 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32405 rm -f conf$$subs.sh
32407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32408 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32412 s/^/S["/; s/!.*/"]=/
32422 s/\(.\{148\}\)..*/\1/
32424 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32429 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32436 s/\(.\{148\}\)..*/\1/
32438 s/["\\]/\\&/g; s/^/"/; s/$/"/
32442 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32447 ' <conf$$subs.awk | sed '
32452 ' >>$CONFIG_STATUS || ac_write_fail=1
32453 rm -f conf$$subs.awk
32454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32456 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32457 for (key in S) S_is_set[key] = 1
32463 nfields = split(line, field, "@")
32465 len = length(field[1])
32466 for (i = 2; i < nfields; i++) {
32468 keylen = length(key)
32469 if (S_is_set[key]) {
32471 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32472 len += length(value) + length(field[++i])
32483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32484 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32488 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32489 || as_fn_error "could not setup config files machinery" "$LINENO" 5
32492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32494 # trailing colons and then remove the whole line if VPATH becomes empty
32495 # (actually we leave an empty line to preserve line numbers).
32496 if test "x$srcdir" = x.; then
32497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32498 s/:*\$(srcdir):*/:/
32499 s/:*\${srcdir}:*/:/
32501 s/^\([^=]*=[ ]*\):*/\1/
32507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32508 fi # test -n "$CONFIG_FILES"
32510 # Set up the scripts for CONFIG_HEADERS section.
32511 # No need to generate them if there are no CONFIG_HEADERS.
32512 # This happens for instance with `./config.status Makefile'.
32513 if test -n "$CONFIG_HEADERS"; then
32514 cat >"$tmp/defines.awk" <<\_ACAWK ||
32518 # Transform confdefs.h into an awk script `defines.awk', embedded as
32519 # here-document in config.status, that substitutes the proper values into
32520 # config.h.in to produce config.h.
32522 # Create a delimiter string that does not exist in confdefs.h, to ease
32523 # handling of long lines.
32525 for ac_last_try in false false :; do
32526 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32527 if test -z "$ac_t"; then
32529 elif $ac_last_try; then
32530 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
32532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32536 # For the awk script, D is an array of macro values keyed by name,
32537 # likewise P contains macro parameters if any. Preserve backslash
32538 # newline sequences.
32540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32542 s/.\{148\}/&'"$ac_delim"'/g
32545 s/^[ ]*#[ ]*define[ ][ ]*/ /
32552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32559 D["\1"]=" \3\\\\\\n"\\/p
32561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32566 s/.\{148\}/&'"$ac_delim"'/g
32571 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32574 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32576 ' <confdefs.h | sed '
32577 s/'"$ac_delim"'/"\\\
32578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32581 for (key in D) D_is_set[key] = 1
32584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32586 split(line, arg, " ")
32587 if (arg[1] == "#") {
32591 defundef = substr(arg[1], 2)
32594 split(mac1, mac2, "(") #)
32596 prefix = substr(line, 1, index(line, defundef) - 1)
32597 if (D_is_set[macro]) {
32598 # Preserve the white space surrounding the "#".
32599 print prefix "define", macro P[macro] D[macro]
32602 # Replace #undef with comments. This is necessary, for example,
32603 # in the case of _POSIX_SOURCE, which is predefined and required
32604 # on some systems where configure will not decide to define it.
32605 if (defundef == "undef") {
32606 print "/*", prefix defundef, macro, "*/"
32614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32615 as_fn_error "could not setup config headers machinery" "$LINENO" 5
32616 fi # test -n "$CONFIG_HEADERS"
32619 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32624 :[FHLC]) ac_mode=$ac_tag; continue;;
32626 case $ac_mode$ac_tag in
32628 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
32629 :[FH]-) ac_tag=-:-;;
32630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32647 -) ac_f="$tmp/stdin";;
32648 *) # Look for the file first in the build tree, then in the source tree
32649 # (if the path is not absolute). The absolute path cannot be DOS-style,
32650 # because $ac_f cannot contain `:'.
32654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32656 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32659 as_fn_append ac_file_inputs " '$ac_f'"
32662 # Let's still pretend it is `configure' which instantiates (i.e., don't
32663 # use $as_me), people would be surprised to read:
32664 # /* config.h. Generated by config.status. */
32665 configure_input='Generated from '`
32666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32668 if test x"$ac_file" != x-; then
32669 configure_input="$ac_file. $configure_input"
32670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32671 $as_echo "$as_me: creating $ac_file" >&6;}
32673 # Neutralize special characters interpreted by sed in replacement strings.
32674 case $configure_input in #(
32675 *\&* | *\|* | *\\* )
32676 ac_sed_conf_input=`$as_echo "$configure_input" |
32677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32678 *) ac_sed_conf_input=$configure_input;;
32682 *:-:* | *:-) cat >"$tmp/stdin" \
32683 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
32688 ac_dir=`$as_dirname -- "$ac_file" ||
32689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32690 X"$ac_file" : 'X\(//\)[^/]' \| \
32691 X"$ac_file" : 'X\(//\)$' \| \
32692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32693 $as_echo X"$ac_file" |
32694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32698 /^X\(\/\/\)[^/].*/{
32711 as_dir="$ac_dir"; as_fn_mkdir_p
32715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32718 # A ".." for each directory in $ac_dir_suffix.
32719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32720 case $ac_top_builddir_sub in
32721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32725 ac_abs_top_builddir=$ac_pwd
32726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32727 # for backward compatibility:
32728 ac_top_builddir=$ac_top_build_prefix
32731 .) # We are building in place.
32733 ac_top_srcdir=$ac_top_builddir_sub
32734 ac_abs_top_srcdir=$ac_pwd ;;
32735 [\\/]* | ?:[\\/]* ) # Absolute name.
32736 ac_srcdir=$srcdir$ac_dir_suffix;
32737 ac_top_srcdir=$srcdir
32738 ac_abs_top_srcdir=$srcdir ;;
32739 *) # Relative name.
32740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32741 ac_top_srcdir=$ac_top_build_prefix$srcdir
32742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32757 ac_MKDIR_P=$MKDIR_P
32759 [\\/$]* | ?:[\\/]* ) ;;
32760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32765 # If the template does not know about datarootdir, expand it.
32766 # FIXME: This hack should be removed a few years after 2.60.
32767 ac_datarootdir_hack=; ac_datarootdir_seen=
32778 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32779 *datarootdir*) ac_datarootdir_seen=yes;;
32780 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32782 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32785 ac_datarootdir_hack='
32786 s&@datadir@&$datadir&g
32787 s&@docdir@&$docdir&g
32788 s&@infodir@&$infodir&g
32789 s&@localedir@&$localedir&g
32790 s&@mandir@&$mandir&g
32791 s&\\\${datarootdir}&$datarootdir&g' ;;
32795 # Neutralize VPATH when `$srcdir' = `.'.
32796 # Shell code in configure.ac might set extrasub.
32797 # FIXME: do we really want to maintain this feature?
32798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32799 ac_sed_extra="$ac_vpsub
32802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32805 s|@configure_input@|$ac_sed_conf_input|;t t
32806 s&@top_builddir@&$ac_top_builddir_sub&;t t
32807 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32808 s&@srcdir@&$ac_srcdir&;t t
32809 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32810 s&@top_srcdir@&$ac_top_srcdir&;t t
32811 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32812 s&@builddir@&$ac_builddir&;t t
32813 s&@abs_builddir@&$ac_abs_builddir&;t t
32814 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32815 s&@INSTALL@&$ac_INSTALL&;t t
32816 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32817 $ac_datarootdir_hack
32819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32820 || as_fn_error "could not create $ac_file" "$LINENO" 5
32822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32823 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32826 which seems to be undefined. Please make sure it is defined." >&5
32827 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32828 which seems to be undefined. Please make sure it is defined." >&2;}
32832 -) cat "$tmp/out" && rm -f "$tmp/out";;
32833 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32835 || as_fn_error "could not create $ac_file" "$LINENO" 5
32841 if test x"$ac_file" != x-; then
32843 $as_echo "/* $configure_input */" \
32844 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32845 } >"$tmp/config.h" \
32846 || as_fn_error "could not create $ac_file" "$LINENO" 5
32847 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32848 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32849 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32852 mv "$tmp/config.h" "$ac_file" \
32853 || as_fn_error "could not create $ac_file" "$LINENO" 5
32856 $as_echo "/* $configure_input */" \
32857 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32858 || as_fn_error "could not create -" "$LINENO" 5
32860 # Compute "$ac_file"'s index in $config_headers.
32863 for _am_header in $config_headers :; do
32864 case $_am_header in
32865 $_am_arg | $_am_arg:* )
32868 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32871 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32872 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32873 X"$_am_arg" : 'X\(//\)[^/]' \| \
32874 X"$_am_arg" : 'X\(//\)$' \| \
32875 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32876 $as_echo X"$_am_arg" |
32877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32881 /^X\(\/\/\)[^/].*/{
32893 s/.*/./; q'`/stamp-h$_am_stamp_count
32896 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32897 $as_echo "$as_me: executing $ac_file commands" >&6;}
32902 case $ac_file$ac_mode in
32903 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32904 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32905 ac_prefix_conf_PKG=`echo MagickCore`
32906 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32907 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32908 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32909 if test ".$ac_prefix_conf_INP" = "."; then
32910 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32912 *.h) ac_prefix_conf_INP=$ac_file ;;
32915 test ".$ac_prefix_conf_INP" != "." && break
32918 if test ".$ac_prefix_conf_INP" = "."; then
32919 case "$ac_prefix_conf_OUT" in
32920 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32922 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32924 *) ac_prefix_conf_INP=config.h
32928 if test -z "$ac_prefix_conf_PKG" ; then
32929 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
32931 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32932 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
32935 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32936 if test -f $ac_prefix_conf_INP ; then
32937 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32938 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32939 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32940 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32941 echo "#endif/" >>conftest.prefix
32942 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32943 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32944 echo "#endif/" >> conftest.prefix
32945 # now executing _script on _DEF input to create _OUT output file
32946 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32947 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32948 echo ' ' >>$tmp/pconfig.h
32949 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32951 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32952 echo ' ' >>$tmp/pconfig.h
32953 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32954 echo "#endif" >>$tmp/pconfig.h
32955 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
32957 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32959 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32960 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32961 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32962 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32963 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32964 $as_echo X"$ac_prefix_conf_OUT" |
32965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32969 /^X\(\/\/\)[^/].*/{
32982 as_dir="$ac_dir"; as_fn_mkdir_p
32983 rm -f "$ac_prefix_conf_OUT"
32984 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32986 cp conftest.prefix _configs.sed
32988 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
32993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32994 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32995 # are listed without --file. Let's play safe and only enable the eval
32996 # if we detect the quoting.
32997 case $CONFIG_FILES in
32998 *\'*) eval set x "$CONFIG_FILES" ;;
32999 *) set x $CONFIG_FILES ;;
33004 # Strip MF so we end up with the name of the file.
33005 mf=`echo "$mf" | sed -e 's/:.*$//'`
33006 # Check whether this is an Automake generated Makefile or not.
33007 # We used to match only the files named `Makefile.in', but
33008 # some people rename them; so instead we look at the file content.
33009 # Grep'ing the first line is not enough: some people post-process
33010 # each Makefile.in and add a new line on top of each file to say so.
33011 # Grep'ing the whole file is not good either: AIX grep has a line
33012 # limit of 2048, but all sed's we know have understand at least 4000.
33013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33014 dirpart=`$as_dirname -- "$mf" ||
33015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33016 X"$mf" : 'X\(//\)[^/]' \| \
33017 X"$mf" : 'X\(//\)$' \| \
33018 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33024 /^X\(\/\/\)[^/].*/{
33040 # Extract the definition of DEPDIR, am__include, and am__quote
33041 # from the Makefile without running `make'.
33042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33043 test -z "$DEPDIR" && continue
33044 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33045 test -z "am__include" && continue
33046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33047 # When using ansi2knr, U may be empty or an underscore; expand it
33048 U=`sed -n 's/^U = //p' < "$mf"`
33049 # Find all dependency output files, they are included files with
33050 # $(DEPDIR) in their names. We invoke sed twice because it is the
33051 # simplest approach to changing $(DEPDIR) to its actual value in the
33053 for file in `sed -n "
33054 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33055 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33056 # Make sure the directory exists.
33057 test -f "$dirpart/$file" && continue
33058 fdir=`$as_dirname -- "$file" ||
33059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33060 X"$file" : 'X\(//\)[^/]' \| \
33061 X"$file" : 'X\(//\)$' \| \
33062 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33063 $as_echo X"$file" |
33064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33068 /^X\(\/\/\)[^/].*/{
33081 as_dir=$dirpart/$fdir; as_fn_mkdir_p
33082 # echo "creating $dirpart/$file"
33083 echo '# dummy' > "$dirpart/$file"
33090 # See if we are running on zsh, and set the options which allow our
33091 # commands through without removal of \ escapes.
33092 if test -n "${ZSH_VERSION+set}" ; then
33093 setopt NO_GLOB_SUBST
33096 cfgfile="${ofile}T"
33097 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33100 cat <<_LT_EOF >> "$cfgfile"
33103 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33104 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33105 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33106 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33108 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33109 # 2006, 2007, 2008 Free Software Foundation, Inc.
33110 # Written by Gordon Matzigkeit, 1996
33112 # This file is part of GNU Libtool.
33114 # GNU Libtool is free software; you can redistribute it and/or
33115 # modify it under the terms of the GNU General Public License as
33116 # published by the Free Software Foundation; either version 2 of
33117 # the License, or (at your option) any later version.
33119 # As a special exception to the GNU General Public License,
33120 # if you distribute this file as part of a program or library that
33121 # is built using GNU Libtool, you may include this file under the
33122 # same distribution terms that you use for the rest of that program.
33124 # GNU Libtool is distributed in the hope that it will be useful,
33125 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33127 # GNU General Public License for more details.
33129 # You should have received a copy of the GNU General Public License
33130 # along with GNU Libtool; see the file COPYING. If not, a copy
33131 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33132 # obtained by writing to the Free Software Foundation, Inc.,
33133 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33136 # The names of the tagged configurations supported by this script.
33137 available_tags="CXX "
33139 # ### BEGIN LIBTOOL CONFIG
33141 # A sed program that does not truncate output.
33144 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33145 Xsed="\$SED -e 1s/^X//"
33147 # A grep program that handles long lines.
33153 # A literal string matcher.
33156 # Which release of libtool.m4 was used?
33157 macro_version=$macro_version
33158 macro_revision=$macro_revision
33160 # Assembler program.
33163 # DLL creation program.
33166 # Object dumper program.
33169 # Whether or not to build shared libraries.
33170 build_libtool_libs=$enable_shared
33172 # Whether or not to build static libraries.
33173 build_old_libs=$enable_static
33175 # What type of objects to build.
33178 # Whether or not to optimize for fast installation.
33179 fast_install=$enable_fast_install
33182 host_alias=$host_alias
33186 # The build system.
33187 build_alias=$build_alias
33191 # A BSD- or MS-compatible name lister.
33194 # Whether we need soft or hard links.
33197 # What is the maximum length of a command?
33198 max_cmd_len=$max_cmd_len
33200 # Object file suffix (normally "o").
33203 # Executable file suffix (normally "").
33206 # whether the shell understands "unset".
33209 # turn spaces into newlines.
33212 # turn newlines into spaces.
33215 # How to create reloadable object files.
33216 reload_flag=$lt_reload_flag
33217 reload_cmds=$lt_reload_cmds
33219 # Method to check whether dependent libraries are shared objects.
33220 deplibs_check_method=$lt_deplibs_check_method
33222 # Command to use when deplibs_check_method == "file_magic".
33223 file_magic_cmd=$lt_file_magic_cmd
33227 AR_FLAGS=$lt_AR_FLAGS
33229 # A symbol stripping program.
33232 # Commands used to install an old-style archive.
33234 old_postinstall_cmds=$lt_old_postinstall_cmds
33235 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33240 # LTCC compiler flags.
33241 LTCFLAGS=$lt_CFLAGS
33243 # Take the output of nm and produce a listing of raw symbols and C names.
33244 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33246 # Transform the output of nm in a proper C declaration.
33247 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33249 # Transform the output of nm in a C name address pair.
33250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33252 # Transform the output of nm in a C name address pair when lib prefix is needed.
33253 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33255 # The name of the directory that contains temporary libtool files.
33258 # Shell to use when invoking shell scripts.
33261 # An echo program that does not interpret backslashes.
33264 # Used to examine libraries when file_magic_cmd begins with "file".
33265 MAGIC_CMD=$MAGIC_CMD
33267 # Must we lock files when doing compilation?
33268 need_locks=$lt_need_locks
33270 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33271 DSYMUTIL=$lt_DSYMUTIL
33273 # Tool to change global to local symbols on Mac OS X.
33276 # Tool to manipulate fat objects and archives on Mac OS X.
33279 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33282 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33283 OTOOL64=$lt_OTOOL64
33285 # Old archive suffix (normally "a").
33288 # Shared library suffix (normally ".so").
33289 shrext_cmds=$lt_shrext_cmds
33291 # The commands to extract the exported symbol list from a shared archive.
33292 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33294 # Variables whose values should be saved in libtool wrapper scripts and
33295 # restored at link time.
33296 variables_saved_for_relink=$lt_variables_saved_for_relink
33298 # Do we need the "lib" prefix for modules?
33299 need_lib_prefix=$need_lib_prefix
33301 # Do we need a version for libraries?
33302 need_version=$need_version
33304 # Library versioning type.
33305 version_type=$version_type
33307 # Shared library runtime path variable.
33308 runpath_var=$runpath_var
33310 # Shared library path variable.
33311 shlibpath_var=$shlibpath_var
33313 # Is shlibpath searched before the hard-coded library search path?
33314 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33316 # Format of library name prefix.
33317 libname_spec=$lt_libname_spec
33319 # List of archive names. First name is the real one, the rest are links.
33320 # The last name is the one that the linker finds with -lNAME
33321 library_names_spec=$lt_library_names_spec
33323 # The coded name of the library, if different from the real name.
33324 soname_spec=$lt_soname_spec
33326 # Command to use after installation of a shared archive.
33327 postinstall_cmds=$lt_postinstall_cmds
33329 # Command to use after uninstallation of a shared archive.
33330 postuninstall_cmds=$lt_postuninstall_cmds
33332 # Commands used to finish a libtool library installation in a directory.
33333 finish_cmds=$lt_finish_cmds
33335 # As "finish_cmds", except a single script fragment to be evaled but
33337 finish_eval=$lt_finish_eval
33339 # Whether we should hardcode library paths into libraries.
33340 hardcode_into_libs=$hardcode_into_libs
33342 # Compile-time system search path for libraries.
33343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33345 # Run-time system search path for libraries.
33346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33348 # Whether dlopen is supported.
33349 dlopen_support=$enable_dlopen
33351 # Whether dlopen of programs is supported.
33352 dlopen_self=$enable_dlopen_self
33354 # Whether dlopen of statically linked programs is supported.
33355 dlopen_self_static=$enable_dlopen_self_static
33357 # Commands to strip libraries.
33358 old_striplib=$lt_old_striplib
33359 striplib=$lt_striplib
33362 # The linker used to build libraries.
33365 # Commands used to build an old-style archive.
33366 old_archive_cmds=$lt_old_archive_cmds
33368 # A language specific compiler.
33371 # Is the compiler the GNU compiler?
33374 # Compiler flag to turn off builtin functions.
33375 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33377 # How to pass a linker flag through the compiler.
33378 wl=$lt_lt_prog_compiler_wl
33380 # Additional compiler flags for building library objects.
33381 pic_flag=$lt_lt_prog_compiler_pic
33383 # Compiler flag to prevent dynamic linking.
33384 link_static_flag=$lt_lt_prog_compiler_static
33386 # Does compiler simultaneously support -c and -o options?
33387 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33389 # Whether or not to add -lc for building shared libraries.
33390 build_libtool_need_lc=$archive_cmds_need_lc
33392 # Whether or not to disallow shared libs when runtime libs are static.
33393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33395 # Compiler flag to allow reflexive dlopens.
33396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33398 # Compiler flag to generate shared objects directly from archives.
33399 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33401 # Whether the compiler copes with passing no objects directly.
33402 compiler_needs_object=$lt_compiler_needs_object
33404 # Create an old-style archive from a shared archive.
33405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33407 # Create a temporary old-style archive to link instead of a shared archive.
33408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33410 # Commands used to build a shared archive.
33411 archive_cmds=$lt_archive_cmds
33412 archive_expsym_cmds=$lt_archive_expsym_cmds
33414 # Commands used to build a loadable module if different from building
33415 # a shared archive.
33416 module_cmds=$lt_module_cmds
33417 module_expsym_cmds=$lt_module_expsym_cmds
33419 # Whether we are building with GNU ld or not.
33420 with_gnu_ld=$lt_with_gnu_ld
33422 # Flag that allows shared libraries with undefined symbols to be built.
33423 allow_undefined_flag=$lt_allow_undefined_flag
33425 # Flag that enforces no undefined symbols.
33426 no_undefined_flag=$lt_no_undefined_flag
33428 # Flag to hardcode \$libdir into a binary during linking.
33429 # This must work even if \$libdir does not exist
33430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33432 # If ld is used when linking, flag to hardcode \$libdir into a binary
33433 # during linking. This must work even if \$libdir does not exist.
33434 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33436 # Whether we need a single "-rpath" flag with a separated argument.
33437 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33440 # DIR into the resulting binary.
33441 hardcode_direct=$hardcode_direct
33443 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33444 # DIR into the resulting binary and the resulting library dependency is
33445 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33446 # library is relocated.
33447 hardcode_direct_absolute=$hardcode_direct_absolute
33449 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33450 # into the resulting binary.
33451 hardcode_minus_L=$hardcode_minus_L
33453 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33454 # into the resulting binary.
33455 hardcode_shlibpath_var=$hardcode_shlibpath_var
33457 # Set to "yes" if building a shared library automatically hardcodes DIR
33458 # into the library and all subsequent libraries and executables linked
33460 hardcode_automatic=$hardcode_automatic
33462 # Set to yes if linker adds runtime paths of dependent libraries
33463 # to runtime path list.
33464 inherit_rpath=$inherit_rpath
33466 # Whether libtool must link a program against all its dependency libraries.
33467 link_all_deplibs=$link_all_deplibs
33469 # Fix the shell variable \$srcfile for the compiler.
33470 fix_srcfile_path=$lt_fix_srcfile_path
33472 # Set to "yes" if exported symbols are required.
33473 always_export_symbols=$always_export_symbols
33475 # The commands to list exported symbols.
33476 export_symbols_cmds=$lt_export_symbols_cmds
33478 # Symbols that should not be listed in the preloaded symbols.
33479 exclude_expsyms=$lt_exclude_expsyms
33481 # Symbols that must always be exported.
33482 include_expsyms=$lt_include_expsyms
33484 # Commands necessary for linking programs (against libraries) with templates.
33485 prelink_cmds=$lt_prelink_cmds
33487 # Specify filename containing input files.
33488 file_list_spec=$lt_file_list_spec
33490 # How to hardcode a shared library path into an executable.
33491 hardcode_action=$hardcode_action
33493 # The directories searched by this compiler when creating a shared library.
33494 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33496 # Dependencies to place before and after the objects being linked to
33497 # create a shared library.
33498 predep_objects=$lt_predep_objects
33499 postdep_objects=$lt_postdep_objects
33500 predeps=$lt_predeps
33501 postdeps=$lt_postdeps
33503 # The library search path used internally by the compiler when linking
33504 # a shared library.
33505 compiler_lib_search_path=$lt_compiler_lib_search_path
33507 # ### END LIBTOOL CONFIG
33513 cat <<\_LT_EOF >> "$cfgfile"
33514 # AIX sometimes has problems with the GCC collect2 program. For some
33515 # reason, if we set the COLLECT_NAMES environment variable, the problems
33516 # vanish in a puff of smoke.
33517 if test "X${COLLECT_NAMES+set}" != Xset; then
33519 export COLLECT_NAMES
33526 ltmain="$ac_aux_dir/ltmain.sh"
33529 # We use sed instead of cat because bash on DJGPP gets confused if
33530 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33531 # text mode, it properly converts lines to CR/LF. This bash problem
33532 # is reportedly fixed, but why not run on old versions too?
33533 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33534 || (rm -f "$cfgfile"; exit 1)
33538 cat << \_LT_EOF >> "$cfgfile"
33540 # func_dirname file append nondir_replacement
33541 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33542 # otherwise set result to NONDIR_REPLACEMENT.
33546 */*) func_dirname_result="${1%/*}${2}" ;;
33547 * ) func_dirname_result="${3}" ;;
33551 # func_basename file
33554 func_basename_result="${1##*/}"
33557 # func_dirname_and_basename file append nondir_replacement
33558 # perform func_basename and func_dirname in a single function
33560 # dirname: Compute the dirname of FILE. If nonempty,
33561 # add APPEND to the result, otherwise set result
33562 # to NONDIR_REPLACEMENT.
33563 # value returned in "$func_dirname_result"
33564 # basename: Compute filename of FILE.
33565 # value retuned in "$func_basename_result"
33566 # Implementation must be kept synchronized with func_dirname
33567 # and func_basename. For efficiency, we do not delegate to
33568 # those functions but instead duplicate the functionality here.
33569 func_dirname_and_basename ()
33572 */*) func_dirname_result="${1%/*}${2}" ;;
33573 * ) func_dirname_result="${3}" ;;
33575 func_basename_result="${1##*/}"
33578 # func_stripname prefix suffix name
33579 # strip PREFIX and SUFFIX off of NAME.
33580 # PREFIX and SUFFIX must not contain globbing or regex special
33581 # characters, hashes, percent signs, but SUFFIX may contain a leading
33582 # dot (in which case that matches only a dot).
33585 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33586 # positional parameters, so assign one to ordinary parameter first.
33587 func_stripname_result=${3}
33588 func_stripname_result=${func_stripname_result#"${1}"}
33589 func_stripname_result=${func_stripname_result%"${2}"}
33595 func_opt_split_opt=${1%%=*}
33596 func_opt_split_arg=${1#*=}
33603 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33604 *) func_lo2o_result=${1} ;;
33608 # func_xform libobj-or-source
33611 func_xform_result=${1%.*}.lo
33614 # func_arith arithmetic-term...
33617 func_arith_result=$(( $* ))
33621 # STRING may not start with a hyphen.
33624 func_len_result=${#1}
33629 *) # Bourne compatible functions.
33630 cat << \_LT_EOF >> "$cfgfile"
33632 # func_dirname file append nondir_replacement
33633 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33634 # otherwise set result to NONDIR_REPLACEMENT.
33637 # Extract subdirectory from the argument.
33638 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33639 if test "X$func_dirname_result" = "X${1}"; then
33640 func_dirname_result="${3}"
33642 func_dirname_result="$func_dirname_result${2}"
33646 # func_basename file
33649 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33653 # func_stripname prefix suffix name
33654 # strip PREFIX and SUFFIX off of NAME.
33655 # PREFIX and SUFFIX must not contain globbing or regex special
33656 # characters, hashes, percent signs, but SUFFIX may contain a leading
33657 # dot (in which case that matches only a dot).
33658 # func_strip_suffix prefix name
33662 .*) func_stripname_result=`$ECHO "X${3}" \
33663 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33664 *) func_stripname_result=`$ECHO "X${3}" \
33665 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
33670 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33671 my_sed_long_arg='1s/^-[^=]*=//'
33676 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33677 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
33683 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
33686 # func_xform libobj-or-source
33689 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
33692 # func_arith arithmetic-term...
33695 func_arith_result=`expr "$@"`
33699 # STRING may not start with a hyphen.
33702 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33708 case $lt_shell_append in
33710 cat << \_LT_EOF >> "$cfgfile"
33712 # func_append var value
33713 # Append VALUE to the end of shell variable VAR.
33721 cat << \_LT_EOF >> "$cfgfile"
33723 # func_append var value
33724 # Append VALUE to the end of shell variable VAR.
33735 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33736 || (rm -f "$cfgfile"; exit 1)
33738 mv -f "$cfgfile" "$ofile" ||
33739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33743 cat <<_LT_EOF >> "$ofile"
33745 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33747 # The linker used to build libraries.
33750 # Commands used to build an old-style archive.
33751 old_archive_cmds=$lt_old_archive_cmds_CXX
33753 # A language specific compiler.
33754 CC=$lt_compiler_CXX
33756 # Is the compiler the GNU compiler?
33759 # Compiler flag to turn off builtin functions.
33760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33762 # How to pass a linker flag through the compiler.
33763 wl=$lt_lt_prog_compiler_wl_CXX
33765 # Additional compiler flags for building library objects.
33766 pic_flag=$lt_lt_prog_compiler_pic_CXX
33768 # Compiler flag to prevent dynamic linking.
33769 link_static_flag=$lt_lt_prog_compiler_static_CXX
33771 # Does compiler simultaneously support -c and -o options?
33772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33774 # Whether or not to add -lc for building shared libraries.
33775 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33777 # Whether or not to disallow shared libs when runtime libs are static.
33778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33780 # Compiler flag to allow reflexive dlopens.
33781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33783 # Compiler flag to generate shared objects directly from archives.
33784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33786 # Whether the compiler copes with passing no objects directly.
33787 compiler_needs_object=$lt_compiler_needs_object_CXX
33789 # Create an old-style archive from a shared archive.
33790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33792 # Create a temporary old-style archive to link instead of a shared archive.
33793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33795 # Commands used to build a shared archive.
33796 archive_cmds=$lt_archive_cmds_CXX
33797 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33799 # Commands used to build a loadable module if different from building
33800 # a shared archive.
33801 module_cmds=$lt_module_cmds_CXX
33802 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33804 # Whether we are building with GNU ld or not.
33805 with_gnu_ld=$lt_with_gnu_ld_CXX
33807 # Flag that allows shared libraries with undefined symbols to be built.
33808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33810 # Flag that enforces no undefined symbols.
33811 no_undefined_flag=$lt_no_undefined_flag_CXX
33813 # Flag to hardcode \$libdir into a binary during linking.
33814 # This must work even if \$libdir does not exist
33815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33817 # If ld is used when linking, flag to hardcode \$libdir into a binary
33818 # during linking. This must work even if \$libdir does not exist.
33819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33821 # Whether we need a single "-rpath" flag with a separated argument.
33822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33825 # DIR into the resulting binary.
33826 hardcode_direct=$hardcode_direct_CXX
33828 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33829 # DIR into the resulting binary and the resulting library dependency is
33830 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33831 # library is relocated.
33832 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33834 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33835 # into the resulting binary.
33836 hardcode_minus_L=$hardcode_minus_L_CXX
33838 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33839 # into the resulting binary.
33840 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33842 # Set to "yes" if building a shared library automatically hardcodes DIR
33843 # into the library and all subsequent libraries and executables linked
33845 hardcode_automatic=$hardcode_automatic_CXX
33847 # Set to yes if linker adds runtime paths of dependent libraries
33848 # to runtime path list.
33849 inherit_rpath=$inherit_rpath_CXX
33851 # Whether libtool must link a program against all its dependency libraries.
33852 link_all_deplibs=$link_all_deplibs_CXX
33854 # Fix the shell variable \$srcfile for the compiler.
33855 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33857 # Set to "yes" if exported symbols are required.
33858 always_export_symbols=$always_export_symbols_CXX
33860 # The commands to list exported symbols.
33861 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33863 # Symbols that should not be listed in the preloaded symbols.
33864 exclude_expsyms=$lt_exclude_expsyms_CXX
33866 # Symbols that must always be exported.
33867 include_expsyms=$lt_include_expsyms_CXX
33869 # Commands necessary for linking programs (against libraries) with templates.
33870 prelink_cmds=$lt_prelink_cmds_CXX
33872 # Specify filename containing input files.
33873 file_list_spec=$lt_file_list_spec_CXX
33875 # How to hardcode a shared library path into an executable.
33876 hardcode_action=$hardcode_action_CXX
33878 # The directories searched by this compiler when creating a shared library.
33879 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33881 # Dependencies to place before and after the objects being linked to
33882 # create a shared library.
33883 predep_objects=$lt_predep_objects_CXX
33884 postdep_objects=$lt_postdep_objects_CXX
33885 predeps=$lt_predeps_CXX
33886 postdeps=$lt_postdeps_CXX
33888 # The library search path used internally by the compiler when linking
33889 # a shared library.
33890 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33892 # ### END LIBTOOL TAG CONFIG: CXX
33896 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33897 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33898 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33899 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33900 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33901 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33909 ac_clean_files=$ac_clean_files_save
33911 test $ac_write_fail = 0 ||
33912 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33915 # configure is writing to config.log, and then calls config.status.
33916 # config.status does its own redirection, appending to config.log.
33917 # Unfortunately, on DOS this fails, as config.log is still kept open
33918 # by configure, so config.status won't be able to write to it; its
33919 # output is simply discarded. So we exec the FD to /dev/null,
33920 # effectively closing config.log, so it can be properly (re)opened and
33921 # appended to by config.status. When coming back to configure, we
33922 # need to make the FD available again.
33923 if test "$no_create" != yes; then
33925 ac_config_status_args=
33926 test "$silent" = yes &&
33927 ac_config_status_args="$ac_config_status_args --quiet"
33929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33932 # would make configure fail if this is the last instruction.
33933 $ac_cs_success || as_fn_exit $?
33935 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33937 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33941 rm -f magick-version
33943 result_ghostscript_font_dir='none'
33944 if test "${ghostscript_font_dir}x" != 'x'; then
33945 result_ghostscript_font_dir=$ghostscript_font_dir
33948 result_windows_font_dir='none'
33949 if test "${windows_font_dir}x" != 'x'; then
33950 result_windows_font_dir=${windows_font_dir}
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
33954 ImageMagick is configured as follows. Please verify that this configuration
33955 matches your expectations.
33957 Host system type: $host
33958 Build system type: $build
33961 -------------------------------------------------------------------------------
33962 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33963 Static libraries --enable-static=$enable_static $libtool_build_static_libs
33964 Module support --with-modules=$with_modules $with_modules
33965 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33966 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33967 High Dynamic Range Imagery
33968 --enable-hdri=$enable_hdri $enable_hdri
33970 Delegate Configuration:
33971 BZLIB --with-bzlib=$with_bzlib $have_bzlib
33972 Autotrace --with-autotrace=$with_autotrace $have_autotrace
33973 DJVU --with-djvu=$with_djvu $have_djvu
33974 DPS --with-dps=$with_dps $have_dps
33975 FFTW --with-fftw=$with_fftw $have_fftw
33976 FlashPIX --with-fpx=$with_fpx $have_fpx
33977 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33978 FreeType --with-freetype=$with_freetype $have_freetype
33979 GhostPCL None $PCLDelegate ($PCLVersion)
33980 GhostXPS None $XPSDelegate ($XPSVersion)
33981 Ghostscript None $PSDelegate ($GSVersion)
33982 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33983 Ghostscript lib --with-gslib=$with_gslib $have_gslib
33984 Graphviz --with-gvc=$with_gvc $have_gvc
33985 JBIG --with-jbig=$with_jbig $have_jbig
33986 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33987 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33988 LCMS --with-lcms=$with_lcms $have_lcms
33989 LQR --with-lqr=$with_lqr $have_lqr
33990 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33991 OpenEXR --with-openexr=$with_openexr $have_openexr
33992 PERL --with-perl=$with_perl $have_perl
33993 PNG --with-png=$with_png $have_png
33994 RSVG --with-rsvg=$with_rsvg $have_rsvg
33995 TIFF --with-tiff=$with_tiff $have_tiff
33996 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33997 WMF --with-wmf=$with_wmf $have_wmf
33998 X11 --with-x=$with_x $have_x
33999 XML --with-xml=$with_xml $have_xml
34000 ZLIB --with-zlib=$with_zlib $have_zlib
34003 X_CFLAGS = $X_CFLAGS
34004 X_PRE_LIBS = $X_PRE_LIBS
34006 X_EXTRA_LIBS = $X_EXTRA_LIBS
34008 Options used to compile and link:
34009 PREFIX = $PREFIX_DIR
34010 EXEC-PREFIX = $EXEC_PREFIX_DIR
34011 VERSION = $PACKAGE_VERSION
34014 CPPFLAGS = $MAGICK_CPPFLAGS
34015 PCFLAGS = $MAGICK_PCFLAGS
34018 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34019 LIBS = $MAGICK_LIBS
34021 CXXFLAGS = $CXXFLAGS
34024 ImageMagick is configured as follows. Please verify that this configuration
34025 matches your expectations.
34027 Host system type: $host
34028 Build system type: $build
34031 -------------------------------------------------------------------------------
34032 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34033 Static libraries --enable-static=$enable_static $libtool_build_static_libs
34034 Module support --with-modules=$with_modules $with_modules
34035 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34036 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34037 High Dynamic Range Imagery
34038 --enable-hdri=$enable_hdri $enable_hdri
34040 Delegate Configuration:
34041 BZLIB --with-bzlib=$with_bzlib $have_bzlib
34042 Autotrace --with-autotrace=$with_autotrace $have_autotrace
34043 DJVU --with-djvu=$with_djvu $have_djvu
34044 DPS --with-dps=$with_dps $have_dps
34045 FFTW --with-fftw=$with_fftw $have_fftw
34046 FlashPIX --with-fpx=$with_fpx $have_fpx
34047 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34048 FreeType --with-freetype=$with_freetype $have_freetype
34049 GhostPCL None $PCLDelegate ($PCLVersion)
34050 GhostXPS None $XPSDelegate ($XPSVersion)
34051 Ghostscript None $PSDelegate ($GSVersion)
34052 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34053 Ghostscript lib --with-gslib=$with_gslib $have_gslib
34054 Graphviz --with-gvc=$with_gvc $have_gvc
34055 JBIG --with-jbig=$with_jbig $have_jbig
34056 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34057 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34058 LCMS --with-lcms=$with_lcms $have_lcms
34059 LQR --with-lqr=$with_lqr $have_lqr
34060 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34061 OpenEXR --with-openexr=$with_openexr $have_openexr
34062 PERL --with-perl=$with_perl $have_perl
34063 PNG --with-png=$with_png $have_png
34064 RSVG --with-rsvg=$with_rsvg $have_rsvg
34065 TIFF --with-tiff=$with_tiff $have_tiff
34066 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34067 WMF --with-wmf=$with_wmf $have_wmf
34068 X11 --with-x=$with_x $have_x
34069 XML --with-xml=$with_xml $have_xml
34070 ZLIB --with-zlib=$with_zlib $have_zlib
34073 X_CFLAGS = $X_CFLAGS
34074 X_PRE_LIBS = $X_PRE_LIBS
34076 X_EXTRA_LIBS = $X_EXTRA_LIBS
34078 Options used to compile and link:
34079 PREFIX = $PREFIX_DIR
34080 EXEC-PREFIX = $EXEC_PREFIX_DIR
34081 VERSION = $PACKAGE_VERSION
34084 CPPFLAGS = $MAGICK_CPPFLAGS
34085 PCFLAGS = $MAGICK_PCFLAGS
34088 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34089 LIBS = $MAGICK_LIBS
34091 CXXFLAGS = $CXXFLAGS